public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45053]  New: libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
@ 2010-07-24 12:42 gcc-bugzilla at gcc dot gnu dot org
  2010-07-24 13:23 ` [Bug bootstrap/45053] " mikpe at it dot uu dot se
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2010-07-24 12:42 UTC (permalink / raw)
  To: gcc-bugs


        [I know this is a duplicate of 43810, but the information there is
        partly misleading, so I decided to file a new report.]
        If GCC is configured for powerpc with --enable-target-optspace,
        libgcc_s objects get compiled with -Os, and this causes libgcc_s
        to contain undefined symbols _savegpr_* and _restgpr_*.
        This is probably due to this commit:
        http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151729
        (The use of those symbols might also depend on --with-float=soft,
        I didn't test with a different float option.)
        Those symbols _savegpr_* and _restgpr_* are defined in
        crtsavgpr_s.o and crtresgpr_s.o, respectively.  But those objects
        are not linked into libgcc_s.
        The problem also occurs with gcc-4.5.1-RC-20100722 and with
        gcc-4.4.4, if the patch for pr41175 is applied.

Environment:
System: Linux sonnet 2.6.24-28-generic #1 SMP Fri Jun 18 14:18:04 UTC 2010
x86_64 GNU/Linux


host: x86_64-unknown-linux-gnu
build: x86_64-unknown-linux-gnu
target: powerpc-none-linux-gnu
configured with: /work2/build/cross-own/src/gcc-4.5.0/configure
--target=powerpc-none-linux-gnu --prefix=/work2/build/cross-own/ppc-own-tmp
--disable-threads --disable-nls --disable-multilib --disable-libgomp
--disable-libssp --disable-libmudflap --enable-decimal-float=no
--disable-libssp --enable-shared --enable-languages=c --enable-checking=yes
--enable-symvers=gnu --enable-target-optspace --with-float=soft
--with-local-prefix=/work2/build/cross-own/ppc-own/sys-root
--with-build-sysroot=/work2/build/cross-own/ppc-own/sys-root
--with-sysroot=/work2/build/cross-own/ppc-own/sys-root

How-To-Repeat:
        configure for powerpc and --enable-target-optspace (and possibly
--with-float=soft)


------- Comment #1 from dv at vollmann dot ch  2010-07-24 12:42 -------
Fix:
        The workaround is not to use --enable-target-optspace.
        The correct fix would be to link libgcc_s against crtsavgpr_s.o
        and crtresgpr_s.o, but I don't know the build system of GCC well
        enough to figure out how to do that.


-- 
           Summary: libgcc_s link command misses crtsavgpr_s and crtresgpr_s
                    for powerpc
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dv at vollmann dot ch
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: powerpc-none-linux-gnu


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


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

end of thread, other threads:[~2013-02-07  8:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45053-4@http.gcc.gnu.org/bugzilla/>
2011-03-25 10:46 ` [Bug bootstrap/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc rguenth at gcc dot gnu.org
2012-04-12 14:44 ` [Bug target/45053] " rhabarber1848 at web dot de
2012-04-13 22:37 ` rhabarber1848 at web dot de
2013-02-07  8:37 ` amodra at gmail dot com
2013-02-07  8:41 ` amodra at gmail dot com
2010-07-24 12:42 [Bug bootstrap/45053] New: " gcc-bugzilla at gcc dot gnu dot org
2010-07-24 13:23 ` [Bug bootstrap/45053] " mikpe at it dot uu dot se
2010-07-24 13:36 ` dv at vollmann dot ch
2010-07-24 19:36 ` mikpe at it dot uu dot se
2010-08-05 14:38 ` paolo dot carlini at oracle dot com
2010-08-11  4:29 ` ian at airs dot com
2010-08-11  7:27 ` paolo dot carlini at oracle dot com
2010-08-11  7:31 ` paolo dot carlini at oracle dot com
2010-08-11 10:56 ` dv at vollmann dot ch

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