public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
@ 2011-03-10  7:35 ubizjak at gmail dot com
  2011-03-10 10:19 ` [Bug lto/48055] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2011-03-10  7:35 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c
                    compilation,  -O2 -flto
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ubizjak@gmail.com
              Host: alphaev68-pc-linux-gnu
            Target: alphaev68-pc-linux-gnu
             Build: alphaev68-pc-linux-gnu


Recent changes cause three of ...-chk.c lto tests to fail on alpha [1]:

Executing on host: /space/uros/gcc-build/gcc/xgcc -B/space/uros/gcc-build/gcc/
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk-lib.c
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
 -w  -O2 -flto   -lm   -o
/space/uros/gcc-build/gcc/testsuite/gcc5/memcpy-chk.x9    (timeout = 300)
spawn /space/uros/gcc-build/gcc/xgcc -B/space/uros/gcc-build/gcc/
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk-lib.c
/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
-w -O2 -flto -lm -o /space/uros/gcc-build/gcc/testsuite/gcc5/memcpy-chk.x9^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf5' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf7' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf1' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
output is:
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf5' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf7' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf1' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M

FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
UNRESOLVED: gcc.c-torture/execute/builtins/memcpy-chk.c execution,  -O2 -flto

[1] http://gcc.gnu.org/ml/gcc-testresults/2011-03/msg00887.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
@ 2011-03-10 10:19 ` rguenth at gcc dot gnu.org
  2011-03-10 11:08 ` [Bug testsuite/48055] " ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-10 10:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-10 10:18:52 UTC ---
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
  2011-03-10 10:19 ` [Bug lto/48055] " rguenth at gcc dot gnu.org
@ 2011-03-10 11:08 ` ubizjak at gmail dot com
  2011-03-10 11:14 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2011-03-10 11:08 UTC (permalink / raw)
  To: gcc-bugs

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))


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
  2011-03-10 10:19 ` [Bug lto/48055] " rguenth at gcc dot gnu.org
  2011-03-10 11:08 ` [Bug testsuite/48055] " ubizjak at gmail dot com
@ 2011-03-10 11:14 ` rguenth at gcc dot gnu.org
  2011-03-10 12:10 ` ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-10 11:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-10 11:14:41 UTC ---
Are there conflicting definitions somewhere?  Then it would indeed be a
testsuite bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2011-03-10 11:14 ` rguenth at gcc dot gnu.org
@ 2011-03-10 12:10 ` ubizjak at gmail dot com
  2011-03-10 12:56   ` Jan Hubicka
  2011-03-10 12:57 ` hubicka at ucw dot cz
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 9+ messages in thread
From: ubizjak at gmail dot com @ 2011-03-10 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2011-03-10 12:09:50 UTC ---
(In reply to comment #3)
> Are there conflicting definitions somewhere?  Then it would indeed be a
> testsuite bug.

No, these are the only definitions for the particular testcase.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10 12:10 ` ubizjak at gmail dot com
@ 2011-03-10 12:56   ` Jan Hubicka
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Hubicka @ 2011-03-10 12:56 UTC (permalink / raw)
  To: ubizjak at gmail dot com; +Cc: gcc-bugs

> No, these are the only definitions for the particular testcase.
Hmm, in every case it is GNU ld bug - the GNU ld internal ironly section should not be leaking
to user warnings. Please fill in GNU ld PR.

Honza


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
                   ` (3 preceding siblings ...)
  2011-03-10 12:10 ` ubizjak at gmail dot com
@ 2011-03-10 12:57 ` hubicka at ucw dot cz
  2011-03-10 14:40 ` ubizjak at gmail dot com
  2011-03-10 16:51 ` ubizjak at gmail dot com
  6 siblings, 0 replies; 9+ messages in thread
From: hubicka at ucw dot cz @ 2011-03-10 12:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jan Hubicka <hubicka at ucw dot cz> 2011-03-10 12:56:56 UTC ---
> No, these are the only definitions for the particular testcase.
Hmm, in every case it is GNU ld bug - the GNU ld internal ironly section should
not be leaking
to user warnings. Please fill in GNU ld PR.

Honza


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
                   ` (4 preceding siblings ...)
  2011-03-10 12:57 ` hubicka at ucw dot cz
@ 2011-03-10 14:40 ` ubizjak at gmail dot com
  2011-03-10 16:51 ` ubizjak at gmail dot com
  6 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2011-03-10 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Uros Bizjak <ubizjak at gmail dot com> 2011-03-10 14:39:57 UTC ---
(In reply to comment #5)
> > No, these are the only definitions for the particular testcase.
> Hmm, in every case it is GNU ld bug - the GNU ld internal ironly section should
> not be leaking
> to user warnings. Please fill in GNU ld PR.

Submitted as binutils PR 12564.

Anyway, should the patch be committed to gcc testsuite, since it doesn't change
the test and avoids the linker bug at the same time?

[1] http://sourceware.org/bugzilla/show_bug.cgi?id=12564


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug testsuite/48055] FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
  2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
                   ` (5 preceding siblings ...)
  2011-03-10 14:40 ` ubizjak at gmail dot com
@ 2011-03-10 16:51 ` ubizjak at gmail dot com
  6 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2011-03-10 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2011-03-10 16:51:35 UTC ---
Linker bug, see also [1].

[1] http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00521.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-10 16:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10  7:35 [Bug lto/48055] New: FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O2 -flto ubizjak at gmail dot com
2011-03-10 10:19 ` [Bug lto/48055] " rguenth at gcc dot gnu.org
2011-03-10 11:08 ` [Bug testsuite/48055] " ubizjak at gmail dot com
2011-03-10 11:14 ` rguenth at gcc dot gnu.org
2011-03-10 12:10 ` ubizjak at gmail dot com
2011-03-10 12:56   ` Jan Hubicka
2011-03-10 12:57 ` hubicka at ucw dot cz
2011-03-10 14:40 ` ubizjak at gmail dot com
2011-03-10 16:51 ` ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).