After migrating to gcc 4.5.0 my build is reporting these kinds of errors at
link time:

undefined reference to `_savegpr_31'
undefined reference to `_restgpr_31_x'

gcc 4.4.3 didn't emit _savegpr_* _restgpr_* etc. symbols when configured this
way.

powerpc-eabispe-gcc -v
Using built-in specs.
COLLECT_GCC=powerpc-eabispe-gcc
COLLECT_LTO_WRAPPER=/home/patrick/src/e7/toolchain/stage2/libexec/gcc/powerpc-eabispe/4.5.0/lto-wrapper
Target: powerpc-eabispe
Configured with: /home/patrick/src/e7/toolchain/src/gcc-4.5.0/configure
--prefix=/home/patrick/src/e7/toolchain/stage2 --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc-eabispe
--enable-languages=c,c++ --with-sysroot=/home/patrick/src/e7/prex_sysroot
--disable-nls --disable-werror --with-newlib --disable-shared --disable-debug
--disable-libssp --with-cpu=8540
Thread model: single
gcc version 4.5.0 (GCC) 


Unfortunately I'm not familiar enough with the internals of gcc to take this
any further. Is there any more debugging I can provide?


-- 
           Summary: [4.5 Regression] linking results in undefined references
                    to _savegpr_* _restgpr_*_x
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: patrick at motec dot com dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: powerpc-eabispe


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

Reply via email to