public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65779] New: undefined local symbol on powerpc
@ 2015-04-15 21:45 joel at gcc dot gnu.org
  2015-04-16  7:39 ` [Bug target/65779] [5 Regression] undefined local symbol on powerpc [regression] rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: joel at gcc dot gnu.org @ 2015-04-15 21:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779

            Bug ID: 65779
           Summary: undefined local symbol on powerpc
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: joel at gcc dot gnu.org

Created attachment 35323
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35323&action=edit
Preprocessed source from zlib.c from RTEMS PowerPC bootloader

This file compiled without an undefined symbol with many gcc versions prior to
5.x.

powerpc-rtems4.11-gcc (GCC) 5.0.0 20150412 (experimental)

Fails:  powerpc-rtems4.11-gcc -mrelocatable -mcpu=603e -O2 -g zlib_pp.c 
Passes: powerpc-rtems4.11-gcc -mcpu=603e -O2 -g zlib_pp.c
Fails:  powerpc-rtems4.11-gcc -mrelocatable  -O2 -g zlib_pp.c

Also passes at -Os, -O0, and -O1.

The error is that the assembly language produced has a .4byte directive with a
reference to a symbol that is not generated.

$ grep LCL2 zlib_pp.s 
.LCL22:
    lwz 0,.LCL22-.LCF22(30)
.LCL23:
    lwz 0,.LCL23-.LCF23(30)
.LCL24:
    lwz 0,.LCL24-.LCF24(30)
.LCL25:
    lwz 0,.LCL25-.LCF25(30)
    .4byte    .LCL2
    .4byte    .LCL2


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

end of thread, other threads:[~2015-10-15 14:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 21:45 [Bug target/65779] New: undefined local symbol on powerpc joel at gcc dot gnu.org
2015-04-16  7:39 ` [Bug target/65779] [5 Regression] undefined local symbol on powerpc [regression] rguenth at gcc dot gnu.org
2015-04-16 14:00 ` [Bug target/65779] [5/6 " jakub at gcc dot gnu.org
2015-04-17  1:51 ` amodra at gmail dot com
2015-04-17  2:13 ` amodra at gmail dot com
2015-04-17  5:26 ` [Bug debug/65779] " amodra at gmail dot com
2015-04-17  7:28 ` jakub at gcc dot gnu.org
2015-04-22 11:58 ` jakub at gcc dot gnu.org
2015-06-30 10:20 ` rguenth at gcc dot gnu.org
2015-07-16  9:16 ` rguenth at gcc dot gnu.org
2015-10-08 23:55 ` pangbw at gmail dot com
2015-10-09 23:47 ` pangbw at gmail dot com
2015-10-15 14:31 ` segher 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).