Date: Tue, 1 Oct 2002 12:16:58 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 18484 for review Message-ID: <200210011916.g91JGwQQ060872@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18484 Change 18484 by rwatson@rwatson_tislabs on 2002/10/01 12:16:04 IFC gcc cpp change to avoid internal compiler error on make depend. Affected files ... .. //depot/projects/trustedbsd/mac/contrib/gcc/cppmacro.c#6 integrate Differences ... ==== //depot/projects/trustedbsd/mac/contrib/gcc/cppmacro.c#6 (text+ko) ==== @@ -349,6 +349,12 @@ /* Commit the memory, including NUL, and return the token. */ len = dest - BUFF_FRONT (pfile->u_buff); + if ((size_t) (BUFF_LIMIT (pfile->u_buff) - dest) < 1) + { + size_t len_so_far = dest - BUFF_FRONT (pfile->u_buff); + _cpp_extend_buff (pfile, &pfile->u_buff, 1); + dest = BUFF_FRONT (pfile->u_buff) + len_so_far; + } BUFF_FRONT (pfile->u_buff) = dest + 1; return new_string_token (pfile, dest - len, len); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210011916.g91JGwQQ060872>