PERFORCE change 18483 for review

Robert Watson rwatson at freebsd.org
Tue Oct 1 19:11:51 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18483

Change 18483 by rwatson at rwatson_tislabs on 2002/10/01 12:11:37

	Apply http://people.freebsd.org/~kan/gcc-cpp.diff to the
	TrustedBSD base compiler set, which is intended to resolve an
	issue where 'make depend' on a large source tree causes an
	internal compiler error in cpp.

Affected files ...

.. //depot/projects/trustedbsd/base/contrib/gcc/cppmacro.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/base/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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list