http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48055

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|lto                         |testsuite

--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2011-03-10 11:08:00 
UTC ---
(In reply to comment #1)
> This looks like a linker issue.  I remember seeing similar errors when
> using GNU ld and not gold.
> 
> And I don't think GCC produces intermediate files named ccc3QsSw.o.ironly.

Indeed. The new warning is generated due to the upgrade to binutils-2.21.

Following testsuite patch fixes the problem:

Index: gcc.c-torture/execute/builtins/memcpy-chk.c
===================================================================
--- gcc.c-torture/execute/builtins/memcpy-chk.c    (revision 170823)
+++ gcc.c-torture/execute/builtins/memcpy-chk.c    (working copy)
@@ -78,10 +78,10 @@
     abort ();
 }

-long buf1[64];
+static long buf1[64];
 char *buf2 = (char *) (buf1 + 32);
-long buf5[20];
-char buf7[20];
+static long buf5[20];
+static char buf7[20];

 void
 __attribute__((noinline))
Index: gcc.c-torture/execute/builtins/memmove-chk.c
===================================================================
--- gcc.c-torture/execute/builtins/memmove-chk.c    (revision 170823)
+++ gcc.c-torture/execute/builtins/memmove-chk.c    (working copy)
@@ -81,10 +81,10 @@
     abort ();
 }

-long buf1[64];
+static long buf1[64];
 char *buf2 = (char *) (buf1 + 32);
-long buf5[20];
-char buf7[20];
+static long buf5[20];
+static char buf7[20];

 void
 __attribute__((noinline))
Index: gcc.c-torture/execute/builtins/mempcpy-chk.c
===================================================================
--- gcc.c-torture/execute/builtins/mempcpy-chk.c    (revision 170823)
+++ gcc.c-torture/execute/builtins/mempcpy-chk.c    (working copy)
@@ -84,10 +84,10 @@
   mempcpy_disallowed = 0;
 }

-long buf1[64];
+static long buf1[64];
 char *buf2 = (char *) (buf1 + 32);
-long buf5[20];
-char buf7[20];
+static long buf5[20];
+static char buf7[20];

 void
 __attribute__((noinline))

Reply via email to