Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2002 12:11:51 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18483 for review
Message-ID:  <200210011911.g91JBpm5060492@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18483

Change 18483 by rwatson@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@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?200210011911.g91JBpm5060492>