public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
       [not found] <bug-45053-4@http.gcc.gnu.org/bugzilla/>
@ 2011-03-25 10:46 ` rguenth at gcc dot gnu.org
  2012-04-12 14:44 ` [Bug target/45053] " rhabarber1848 at web dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-25 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-25 10:21:25 UTC ---
*** Bug 48278 has been marked as a duplicate of this bug. ***


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

* [Bug target/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
       [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 ` rhabarber1848 at web dot de
  2012-04-13 22:37 ` rhabarber1848 at web dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: rhabarber1848 at web dot de @ 2012-04-12 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

rhabarber1848 at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rhabarber1848 at web dot de

--- Comment #10 from rhabarber1848 at web dot de 2012-04-12 14:42:55 UTC ---
This bug is still present in 4.7.0.


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

* [Bug target/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
       [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
  4 siblings, 0 replies; 5+ messages in thread
From: rhabarber1848 at web dot de @ 2012-04-13 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from rhabarber1848 at web dot de 2012-04-13 22:35:58 UTC ---
Using this patch solves the problem here:
https://dev.openwrt.org/browser/trunk/toolchain/gcc/patches/4.7.0/870-ppc_no_crtsavres.patch

# ./powerpc-tuxbox-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=./powerpc-tuxbox-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk/libexec/gcc/powerpc-tuxbox-linux-gnu/4.7.0/lto-wrapper
Target: powerpc-tuxbox-linux-gnu
Configured with: ../gcc-4.7.0/configure --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=powerpc-tuxbox-linux-gnu
--prefix=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk
--with-sysroot=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdkroot
--with-native-system-header-dir=/include --enable-languages=c,c++
--with-cpu=823 --with-float=soft --enable-__cxa_atexit --disable-libmudflap
--disable-libgomp --disable-libssp
--with-gmp=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk
--with-mpfr=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk
--with-ppl=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk
--with-cloog=/root/tuxbox/work_eglibc_dbox2_26_470/image/cdk
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--enable-threads=posix --enable-target-optspace --disable-nls
--enable-clocale=generic --disable-multilib --enable-c99 --enable-long-long
--enable-symvers=gnu --enable-shared
Thread model: posix
gcc version 4.7.0 (GCC)


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

* [Bug target/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
       [not found] <bug-45053-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 5+ messages in thread
From: amodra at gmail dot com @ 2013-02-07  8:37 UTC (permalink / raw)
  To: gcc-bugs


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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |amodra at gmail dot com
         AssignedTo|unassigned at gcc dot       |amodra at gmail dot com
                   |gnu.org                     |

--- Comment #12 from Alan Modra <amodra at gmail dot com> 2013-02-07 08:36:45 UTC ---
Some of the claims made in various comments are wrong, at least for current
gcc-4.7 svn rev 195829.  Even the subject is wrong.  libgcc_s.so *is* linked
with the crtsav/res objects.  They are contained in libgcc.a, and libgcc.a is
used when linking libgcc_s.so.  I have verified that libgcc_s.so built with -Os
due to --enable-target-optspace does need various _savegpr* and _restgpr*
functions.

Comment #4 shows the real problem nicely.  Notice that the reference to
_savegpr_31 comes from crtend.o which the penultimate object on the linker
command line, *after* libgcc.a.  So if no other object linked needs the
out-of-line register save functions they won't be extracted from libgcc.a.

$ nm crtbegin.o | grep gpr
         U _restgpr_29_x
$ nm crtend.o | grep gpr
         U _restgpr_31_x
         U _savegpr_31


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

* [Bug target/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc
       [not found] <bug-45053-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-02-07  8:37 ` amodra at gmail dot com
@ 2013-02-07  8:41 ` amodra at gmail dot com
  4 siblings, 0 replies; 5+ messages in thread
From: amodra at gmail dot com @ 2013-02-07  8:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #13 from Alan Modra <amodra at gmail dot com> 2013-02-07 08:40:15 UTC ---
Created attachment 29382
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29382
Fix


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

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

Thread overview: 5+ 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

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