public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67417] New: powerpc64 bootstrap with -mcmodel=small results in linker error
@ 2015-09-01  4:52 amodra at gmail dot com
  2015-09-01  4:53 ` [Bug target/67417] " amodra at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amodra at gmail dot com @ 2015-09-01  4:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67417
           Summary: powerpc64 bootstrap with -mcmodel=small results in
                    linker error
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

To test recent powerpc64 linker changes I attempted to bootstrap gcc-5 with
-mcmodel=small, and ran into

/home/amodra/gnu/powerpc64-linux/bin/ld: libbackend.a(sel-sched-ir.o): In
function `loop_iterator::loop_iterator(loop**, unsigned int)':
sel-sched-ir.c:(.text+0x116f0): call to `loop_iterator::loop_iterator(loop**,
unsigned int)' lacks nop, can't restore toc; (-mcmodel=small toc adjust stub)

On investigating, I see there really isn't a nop, and the call is to a group
with a different toc pointer.  This despite the destination being defined in
the same file.  However, it is weak and there's another definition.

nm -o gcc/*.o | grep _ZN13loop_iteratorC1EPP4loopj
gcc/ipa-inline-analysis.o:0000000000000420 W _ZN13loop_iteratorC1EPP4loopj
gcc/sel-sched-ir.o:00000000000013e0 W _ZN13loop_iteratorC1EPP4loopj


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

end of thread, other threads:[~2015-09-01 23:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01  4:52 [Bug target/67417] New: powerpc64 bootstrap with -mcmodel=small results in linker error amodra at gmail dot com
2015-09-01  4:53 ` [Bug target/67417] " amodra at gmail dot com
2015-09-01  5:44 ` amodra at gmail dot com
2015-09-01 13:17 ` amodra at gmail dot com
2015-09-01 23:03 ` amodra at gcc dot gnu.org
2015-09-01 23:05 ` amodra at gcc dot gnu.org
2015-09-01 23:26 ` amodra at gcc dot gnu.org
2015-09-01 23:28 ` amodra 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).