public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/55994] New: multiple definition or memset or strlen for builtins tests with LTO options
@ 2013-01-15 17:10 janis at gcc dot gnu.org
  2013-01-15 17:15 ` [Bug lto/55994] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: janis at gcc dot gnu.org @ 2013-01-15 17:10 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55994
           Summary: multiple definition or memset or strlen for builtins
                    tests with LTO options
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: janis@gcc.gnu.org
            Target: *-*-eabi or *-elf


I get the following test failures for multiple targets for GCC 4.7 and
mainline:

FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/memmove-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/memops-asm.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/mempcpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/memset-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/memset.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/pr23484-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/snprintf-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/sprintf-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/stpcpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/stpncpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strcat-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strlen-2.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strlen-3.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strlen.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strncat-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/strncpy-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects
FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects 
FAIL: gcc.c-torture/execute/builtins/vsprintf-chk.c compilation,  -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects

The reported failure is

/tmp/cc3DFMVG.ltrans1.ltrans.o: In function `memset':
cc3DFMVG.ltrans1.o:(.text+0x558): multiple definition of `memset'
/scratch/janisjo/build6/fsf-4.7-arm-eabi/install/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-memset.o):/scratch/janisjo/build6/fsf-4.7-arm-eabi/src/newlib-mainline/newlib/libc/string/memset.c:57:
first defined here
collect2: error: ld returned 1 exit status

or

/tmp/cc2KdAgP.ltrans0.ltrans.o: In function `strlen':
cc2KdAgP.ltrans0.o:(.text+0x0): multiple definition of `strlen'
/scratch/janisjo/build6/fsf-4.7-arm-eabi/install/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-strlen.o):/scratch/janisjo/build6/fsf-4.7-arm-eabi/src/newlib-mainline/newlib/libc/machine/arm/strlen.c:68:
first defined here
collect2: error: ld returned 1 exit status

I've seen the failures for arm-none-eabi and powerpc-none-eabi with FSF sources
(the only targets I've tried) and also for CodeSourcery sources for those plus
mips-sde-elf, m68k-elf, and i686-mingw32.  They all use newlib.  The same tests
pass for GNU/Linux targets.

These test options were added for GCC 4.7.

This problem was mentioned in PR54139.


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

end of thread, other threads:[~2013-03-22 16:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-15 17:10 [Bug lto/55994] New: multiple definition or memset or strlen for builtins tests with LTO options janis at gcc dot gnu.org
2013-01-15 17:15 ` [Bug lto/55994] " pinskia at gcc dot gnu.org
2013-01-15 17:44 ` ubizjak at gmail dot com
2013-01-15 17:49 ` ubizjak at gmail dot com
2013-01-15 20:00 ` [Bug testsuite/55994] " janis at gcc dot gnu.org
2013-01-16 18:53 ` janis at gcc dot gnu.org
2013-01-25  0:27 ` janis at gcc dot gnu.org
2013-03-20  9:20 ` sebastian.huber@embedded-brains.de
2013-03-22 16:03 ` joel at gcc dot gnu.org

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