[PATCH, applied] Re: GCC build failed for native with your patch on 2003-10-06T13:00:02Z.

Andrew Pinski pinskia@physics.uc.edu
Mon Oct 6 13:42:00 GMT 2003


I had a bad yesterday, this patch fixes all the bootstrap errors dealing
with my patch, there should be no more build fails due to my patch:

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.1299
diff -u -p -r2.1299 ChangeLog
--- ChangeLog	6 Oct 2003 12:48:34 -0000	2.1299
+++ ChangeLog	6 Oct 2003 13:29:37 -0000
@@ -1,3 +1,9 @@
+2003-10-06  Andrew Pinski  <apinski@apple.com>
+
+	* config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
+	error in calculating the length of the string.
+	(machopic_stub_name): Likewise.
+
  2003-10-06  Roger Sayle  <roger@eyesopen.com>

  	* optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
Index: config/darwin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.c,v
retrieving revision 1.50
diff -u -p -r1.50 darwin.c
--- config/darwin.c	6 Oct 2003 07:56:37 -0000	1.50
+++ config/darwin.c	6 Oct 2003 13:29:41 -0000
@@ -311,7 +311,7 @@ machopic_non_lazy_ptr_name (const char *
        {
  	buffer[bufferlen] = '_';
  	memcpy (buffer + bufferlen +1, name, namelen+1);
-        bufferlen += namelen;
+        bufferlen += namelen +1;
        }

      memcpy (buffer + bufferlen, "$non_lazy_ptr", 
strlen("$non_lazy_ptr")+1);
@@ -386,7 +386,7 @@ machopic_stub_name (const char *name)
        {
  	buffer[bufferlen] = '_';
  	memcpy (buffer + bufferlen +1, name, namelen+1);
-        bufferlen += namelen;
+        bufferlen += namelen +1;
        }

      if (needs_quotes)





On Oct 6, 2003, at 06:17, GCC regression checker wrote:

> With your recent patch, GCC does not compile on:
>  native
> Attached is build output for those targets.
>
> The last time the regression tests were run, GCC did not compile 
> either,
> so the problem might not be caused by your patch.
>
> For more information, see http://gcc.gnu.org/regtest/.
> <ChangeLog.diff><native-log.txt>--
> Geoffrey Keating <geoffk@apple.com>
> (via an automated GCC regression-testing script.)



More information about the Gcc-regression mailing list