diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-11-02 15:23:48 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-11-02 15:23:48 +0000 |
commit | f9989b51a9bc3b0ad31bb5ad2c805ca03427801e (patch) | |
tree | a6dbc75c1a7630ada3b2b9cf8cb8ab6681e223c0 /gcc/config/rs6000 | |
parent | 45b86625d7edd2278c0cdcf335e007a47671813f (diff) | |
download | gcc-f9989b51a9bc3b0ad31bb5ad2c805ca03427801e.zip gcc-f9989b51a9bc3b0ad31bb5ad2c805ca03427801e.tar.gz gcc-f9989b51a9bc3b0ad31bb5ad2c805ca03427801e.tar.bz2 |
Move libgcc2 to toplevel libgcc
toplevel:
* Makefile.tpl (EXTRA_GCC_FLAGS): Remove LIBGCC2_CFLAGS,
LIBGCC2_DEBUG_CFLAGS, LIBGCC2_INCLUDES.
* Makefile.in: Regenerate.
config:
* mh-interix (LIBGCC2_DEBUG_CFLAGS): Remove.
gcc:
* Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
(LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
(LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
(INCLUDES_FOR_TARGET): Remove.
(LIBGCC2_CFLAGS): Don't export.
(LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
Remove.
(libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
(libgcc.mvars): Likewise.
Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
TARGET_LIBGCC2_CFLAGS.
Emit GTHREAD_FLAGS.
* libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
* config/darwin-64.c: Move to ../libgcc/config.
* config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
config/udivmodsi4.c: Move to ../libgcc/config.
* config/gthr-posix.c: Move to ../libgcc/config/alpha.
* config/memcmp.c, config/memcpy.c, config/memmove.c,
config/memset.c: Move to ../libgcc/config.
* config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
* config/t-freebsd: Remove.
* config/t-freebsd-thread: Move to ../libgcc/config.
* config/t-libgcc-pic: Move to ../libgcc/config.
* config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
* config/t-linux: Remove.
* config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
Remove
* config/t-openbsd-thread: Move to ../libgcc/config.
* config/t-rtems (LIBGCC2_INCLUDES): Remove.
* config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
* config/t-svr4: Remove.
* config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
(LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
* config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
* config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
* config/alpha/t-alpha, config/alpha/t-ieee: Remove.
* config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC):
Remove.
* config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
* config/arm/bpabi.c, config/arm/unaligned-funcs.c,
config/arm/fp16.c, config/arm/linux-atomic.c,
config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
* config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
(TARGET_LIBGCC2_CFLAGS): Remove.
* config/arm/t-bpabi, config/arm/t-linux: Remove.
* config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
(LIB2FUNCS_STATIC_EXTRA): Remove.
* config/arm/t-netbsd: Remove.
* config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
(TARGET_LIBGCC2_CFLAGS): Remove.
* config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
* config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
(TARGET_LIBGCC2_CFLAGS): Remove.
* config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
(LIBGCC, INSTALL_LIBGCC): Remove.
* config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
* config/bfin/t-bfin-linux: Likewise.
* config/bfin/t-bfin-uclinux: Likewise.
* config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
config/c6x/ltf.c: Move to ../libgcc/config/c6x.
* config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA):
Remove.
* config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
* config/cris/arit.c: Move to ../libgcc/config/cris.
* config/cris/cris_abi_symbol.c: Remove.
* config/cris/cris.h: Remove obsolete comment.
* config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
* config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
($(LIB2FUNCS_EXTRA)): Remove.
* config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
(LIBGCC): Remove.
* config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
* config/fr30/t-fr30: Remove.
* config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
to ../libgcc/config/frv.
* config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
(cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
(ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
* config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
* config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
* config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
(LIBGCC, INSTALL_LIBGCC): Remove.
* config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
* config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
* config/i386/t-cygwin: Remove.
* config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
(LIB2FUNCS_EXCLUDE): Remove.
* config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
(LIBGCC, INSTALL_LIBGCC): Remove.
* config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
* config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
* config/i386/t-mingw-w32: Likewise.
* config/i386/t-mingw-w64: Likewise.
* config/i386/t-openbsd: Likewise.
* config/i386/t-nto: Remove.
* config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
* config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
(quadlib.c): Remove.
* config/ia64/t-ia64: Remove comment.
* config/iq2000/lib2extra-funcs.c: Move to
../libgcc/config/iq2000/lib2funcs.c.
* config/iq2000/t-iq2000: Remove.
* config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
* config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
* config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
* config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
* config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
* config/m68k/t-floatlib: Remove.
* config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
* config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
Fix typo.
(LIBGCC, INSTALL_LIBGCC): Remove.
* config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
* config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
* config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
* config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/mips/t-isa3264: Likewise.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
* config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
* config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
(LIB2FUNCS_STATIC_EXTRA): Remove.
* config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
* config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
* config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
* config/pa/fptr.c, config/pa/linux-atomic.c: Move to
../libgcc/config/pa.
* config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
* config/pa/quadlib.c: Move to ../libgcc/config/pa.
* config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
* config/pa/t-linux, config/pa/t-linux64: Remove.
* config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
* config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
Remove.
* config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
* config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
(TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
* config/rs6000/crtresfpr.asm: Move to
../libgcc/config/rs6000/crtresfpr.S.
* config/rs6000/crtresgpr.asm: Move to
../libgcc/config/rs6000/crtresgpr.S.
* config/rs6000/crtresxfpr.asm: Move to
../libgcc/config/rs6000/crtresxfpr.S.
* config/rs6000/crtresxgpr.asm: Move to
../libgcc/config/rs6000/crtresxgpr.S.
* config/rs6000/crtsavfpr.asm: Move to
../libgcc/config/rs6000/crtsavfpr.S.
* config/rs6000/crtsavgpr.asm: Move to
../libgcc/config/rs6000/crtsavgpr.S.
* config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
* config/rs6000/darwin-fpsave.asm: Move to
../libgcc/config/rs6000/darwin-fpsave.S.
* config/rs6000/darwin-gpsave.asm: Move to
../libgcc/config/rs6000/darwin-gpsave.S.
* config/rs6000/darwin-tramp.asm: Move to
../libgcc/config/rs6000/darwin-tramp.S.
* config/rs6000/darwin-vecsave.asm: Move to
../libgcc/config/rs6000/darwin-vecsave.S.
* config/rs6000/darwin-world.asm: Move to
../libgcc/config/rs6000/darwin-world.S.
* config/rs6000/e500crtres32gpr.asm: Move to
../libgcc/config/rs6000/e500crtres32gpr.S.
* config/rs6000/e500crtres64gpr.asm: Move to
../libgcc/config/rs6000/e500crtres64gpr.S.
* config/rs6000/e500crtres64gprctr.asm: Move to
../libgcc/config/rs6000/e500crtres64gprctr.S.
* config/rs6000/e500crtrest32gpr.asm: Move to
../libgcc/config/rs6000/e500crtrest32gpr.S.
* config/rs6000/e500crtrest64gpr.asm: Move to
../libgcc/config/rs6000/e500crtrest64gpr.S.
* config/rs6000/e500crtresx32gpr.asm: Move to
../libgcc/config/rs6000/e500crtresx32gpr.S.
* config/rs6000/e500crtresx64gpr.asm: Move to
../libgcc/config/rs6000/e500crtresx64gpr.S.
* config/rs6000/e500crtsav32gpr.asm: Move to
../libgcc/config/rs6000/e500crtsav32gpr.S.
* config/rs6000/e500crtsav64gpr.asm: Move to
../libgcc/config/rs6000/e500crtsav64gpr.S.
* config/rs6000/e500crtsav64gprctr.asm: Move to
../libgcc/config/rs6000/e500crtsav64gprctr.S.
* config/rs6000/e500crtsavg32gpr.asm: Move to
../libgcc/config/rs6000/e500crtsavg32gpr.S.
* config/rs6000/e500crtsavg64gpr.asm: Move to
../libgcc/config/rs6000/e500crtsavg64gpr.S.
* config/rs6000/e500crtsavg64gprctr.asm: Move to
../libgcc/config/rs6000/e500crtsavg64gprctr.S.
* config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
* config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
(TARGET_LIBGCC2_CFLAGS): Remove.
* config/rs6000/t-aix52: Likewise.
* config/rs6000/t-darwin: Remove.
* config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
(LIB2FUNCS_EXTRA): Remove.
* config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
* config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
* config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
(LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
(crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
(INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
(($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext),
$(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
* config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
(LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
* config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
* config/rs6000/t-vxworks: Remove comment.
* config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
* config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
* config/sh/linux-atomic.asm: Move to
../libgcc/config/sh/linux-atomic.S.
* config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
* config/sh/t-netbsd: Remove.
* config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
Remove.
* config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
* config/sparc/t-leon: Likewise.
* config/sparc/t-leon3: Likewise.
* config/sparc/t-linux64: Likewise.
* config/sparc/t-netbsd64: Fix typo.
Remove comment.
* config/spu/divmodti4.c, config/spu/divv2df3.c,
config/spu/float_disf.c, config/spu/float_unsdidf.c,
config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
config/spu/mfc_multi_tag_release.c,
config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
config/spu/multi3.c: Move to ../libgcc/config/spu.
* config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
(LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
(INSTALL_LIBGCC): Remove.
* config/stormy16/stormy16-lib2.c: Move to
../libgcc/config/stormy16/lib2.c.
* config/stormy16/stormy16-lib2-ashlsi3.c: Move to
../libgcc/config/stormy16/ashlsi3.c.
* config/stormy16/stormy16-lib2-ashrsi3.c: Move to
../libgcc/config/stormy16/ashrsi3.c.
* config/stormy16/stormy16-lib2-clzhi2.c: Move to
../libgcc/config/stormy16/clzhi2.c.
* config/stormy16/stormy16-lib2-cmpsi2.c: Move to
../libgcc/config/stormy16/cmpsi2.c.
* config/stormy16/stormy16-lib2-ctzhi2.c: Move to
../libgcc/config/stormy16/ctzhi2.c.
* config/stormy16/stormy16-lib2-divsi3.c: Move to
../libgcc/config/stormy16/divsi3.c.
* config/stormy16/stormy16-lib2-ffshi2.c: Move to
../libgcc/config/stormy16/ffshi2.c.
* config/stormy16/stormy16-lib2-lshrsi3.c: Move to
../libgcc/config/stormy16/lshrsi3.c.
* config/stormy16/stormy16-lib2-modsi3.c: Move to
../libgcc/config/stormy16/modsi3.c.
* config/stormy16/stormy16-lib2-parityhi2.c: Move to
../libgcc/config/stormy16/parityhi2.c.
* config/stormy16/stormy16-lib2-popcounthi2.c: Move to
../libgcc/config/stormy16/popcounthi2.c.
* config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
../libgcc/config/stormy16/ucmpsi2.c.
* config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
../libgcc/config/stormy16/udivmodsi4.c.
* config/stormy16/stormy16-lib2-udivsi3.c: Move to
../libgcc/config/stormy16/udivsi3.c.
* config/stormy16/stormy16-lib2-umodsi3.c: Move to
../libgcc/config/stormy16/umodsi3.c.
* config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
* config/v850/t-v850 (INSTALL_LIBGCC): Remove.
* config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
* config/xtensa/t-elf: Remove.
* config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
* config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
from tmake_file.
(*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
*-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
(*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
(*-*-openbsd*): Likewise.
Remove t-openbsd-thread for posix threads.
(alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee
from tmake_file.
(alpha*-*-freebsd*): Likewise.
(alpha*-*-netbsd*): Likewise.
(alpha*-*-openbsd*): Likewise.
(alpha64-dec-*vms*): Likewise.
(alpha*-dec-*vms*): Likewise.
(arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
(arm*-*-linux*): Remove t-linux from tmake_file.
Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
(arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
arm*-*-uclinux*eabi.
(arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
tmake_file for arm*-*-eabi*.
(fr30-*-elf): Remove tmake_file.
(hppa*64*-*-linux*): Remove tmake_file.
(hppa*-*-linux*): Likewise.
(hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
tmake_file.
(hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
(hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
tmake_file.
(i[34567]86-*-elf*): Remove tmake_file.
(x86_64-*-elf*): Likewise.
(i[34567]86-*-nto-qnx*): Likewise.
(i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
(i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
from tmake_file if using win32 threads.
(iq2000*-*-elf*): Remove tmake-file.
(microblaze*-linux*): Likewise.
(sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
(sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
(sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
(sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
(xtensa*-*-elf*): Remove tmake_file.
gcc/po:
* EXCLUDES (config/vxlib.c, gbl-ctors.h, libgcc2.c, libgcc2.h)
(longlong.h): Remove.
libgcc:
* configure.ac: Include ../config/picflag.m4.
(GCC_PICFLAG): Call it.
Substitute.
* configure: Regenerate.
* Makefile.in (gcc_srcdir): Remove.
(LIBGCC2_DEBUG_CFLAGS, LIBGCC2_CFLAGS, LIBGCC2_INCLUDES)
(HOST_LIBGCC2_CFLAGS, PICFLAG, LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE)
(LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST): Set.
($(lib2funcs-o), $(lib2funcs-s-o), $(lib2-divmod-o))
($(lib2-divmod-s-o)): Use $(srcdir) to refer to libgcc2.c.
Use $<.
Remove comment.
* libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: New files.
* siditi-object.mk ($o$(objext), $(o)_s$(objext)): Use $(srcdir)
to refer to libgcc2.c.
Use $<.
* config/darwin-64.c: New file.
* config/darwin-crt3.c: Remove comment.
* config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
config/udivmodsi4.c: New files.
* config/memcmp.c, config/memcpy.c, config/memmove.c,
config/memset.c: New files.
* config/t-crtstuff-pic (CRTSTUFF_T_CFLAGS_S): Use $(PICFLAG).
* config/t-darwin (HOST_LIBGCC2_CFLAGS): Set.
* config/t-freebsd-thread, config/t-libgcc-pic: New files.
* config/t-libunwind (HOST_LIBGCC2_CFLAGS): Set.
* config/t-openbsd-thread: New file.
* config/t-sol2 (HOST_LIBGCC2_CFLAGS): Remove.
* config/t-vxworks, config/vxlib-tls.c, config/vxlib.c: New files.
* config/alpha/gthr-posix.c, config/alpha/qrnnd.S: New files.
* config/alpha/t-alpha (LIB2ADD): Use $(srcdir) to refer to
qrnnd.S.
Adapt filename.
* config/alpha/t-osf-pthread (LIB2ADD): Use $(srcdir)/config/alpha
to refer to gthr-posix.c.
* config/alpha/t-vms (LIB2ADD): Set.
* config/alpha/vms-gcc_shell_handler.c: New file.
* config/arm/bpabi.c, config/arm/fp16.c,
config/arm/linux-atomic.c, config/arm/linux-atomic-64bit.c,
config/arm/unaligned-funcs.c: New files.
* config/arm/t-bpabi (LIB2ADD, LIB2ADD_ST): Set.
* config/arm/t-elf (HOST_LIBGCC2_CFLAGS): Set.
* config/arm/t-linux: Likewise.
* config/arm/t-linux-eabi (LIB2ADD_ST): Add.
* config/arm/t-netbsd: New file.
* config/arm/t-strongarm-elf (HOST_LIBGCC2_CFLAGS): Set.
* config/arm/t-symbian (LIB2ADD_ST): Set.
* config/avr/t-avr (LIB2FUNCS_EXCLUDE, HOST_LIBGCC2_CFLAGS): Set.
* config/bfin/t-crtstuff (CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/bfin/t-elf: New file.
* config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
config/c6x/ltf.c: New files.
* config/c6x/t-elf (LIB2FUNCS_EXCLUDE, LIB2ADD)
(HOST_LIBGCC2_CFLAGS): Set.
* config/c6x/t-uclinux (HOST_LIBGCC2_CFLAGS): Set.
(CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/cris/arit.c, config/cris/mulsi3.S, config/cris/t-cris:
New files.
* config/cris/t-elfmulti (LIB2ADD_ST): Set.
* config/cris/t-linux (HOST_LIBGCC2_CFLAGS): Remove.
* config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: New
files.
* config/frv/t-frv (LIB2ADD): Set.
* config/frv/t-linux (CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
config/h8300/popcounthi2.c: New files.
* config/h8300/t-h8300 (LIB2ADD, HOST_LIBGCC2_CFLAGS): Set.
* config/i386/gthr-win32.c: New file.
* config/i386/t-cygming (LIBGCC2_INCLUDES): Set.
* config/i386/t-cygwin: Likewise.
* config/i386/t-darwin, config/i386/t-darwin64,
config/i386/t-gthr-win32, config/i386/t-interix: New files.
* config/i386/t-nto (HOST_LIBGCC2_CFLAGS): Set.
(CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/i386/t-sol2 (CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/ia64/quadlib.c: New file.
* config/ia64/t-hpux (LIB2ADD): Set.
* config/ia64/t-ia64: Add comment.
* config/iq2000/lib2funcs.c, config/iq2000/t-iq2000: New files.
* config/lm32/t-uclinux (CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
(HOST_LIBGCC2_CFLAGS): Append, remove -fPIC.
* config/m32c/lib2funcs.c, config/m32c/trapv.c: New files.
* config/m32c/t-m32c (LIB2ADD): Set.
* config/m32r/t-linux (HOST_LIBGCC2_CFLAGS): Set.
* config/m32r/t-m32r: Likewise.
* config/m68k/fpgnulib.c: New file.
* config/m68k/t-floatlib (LIB2ADD): Set.
(xfgnulib.c): New target.
* config/mcore/t-mcore (HOST_LIBGCC2_CFLAGS): Set.
* config/mep/lib2funcs.c, config/mep/tramp.c: New files.
* config/mep/t-mep (LIB2ADD): Set.
* config/microblaze/divsi3.asm: Rename to divsi3.S.
* config/microblaze/moddi3.asm: Rename to moddi3.S.
* config/microblaze/modsi3.asm: Rename to modsi3.S.
* config/microblaze/muldi3_hard.asm: Rename to hard.S.
* config/microblaze/mulsi3.asm: Rename to mulsi3.S.
* config/microblaze/stack_overflow_exit.asm: Rename to exit.S.
* config/microblaze/udivsi3.asm: Rename to udivsi3.S.
* config/microblaze/umodsi3.asm: Rename to umodsi3.S.
* config/microblaze/t-microblaze (LIB2ADD): Reflect this.
* config/mips/t-elf, config/mips/t-vr, config/mips/vr4120-div.S:
New files.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Set.
* config/mmix/t-mmix (HOST_LIBGCC2_CFLAGS): Set.
* config/pa/fptr.c, config/pa/lib2funcs.S,
config/pa/linux-atomic.c, config/pa/quadlib.c: New files.
* config/pa/t-linux (HOST_LIBGCC2_CFLAGS): Set.
(LIB2ADD, LIB2ADD_ST): Set.
* config/pa/t-hpux, config/pa/t-hpux10, config/pa/t-pa64: New files.
* config/pa/t-linux (HOST_LIBGCC2_CFLAGS, LIB2ADD, LIB2ADD_ST):
Set.
* config/pa/t-linux64 (LIB2ADD_ST, HOST_LIBGCC2_CFLAGS): Set.
* config/pdp11/t-pdp11: New file.
* config/picochip/libgccExtras/adddi3.S,
config/picochip/libgccExtras/ashlsi3.S,
config/picochip/libgccExtras/ashrsi3.S,
config/picochip/libgccExtras/clzsi2.S,
config/picochip/libgccExtras/cmpsi2.S,
config/picochip/libgccExtras/divmod15.S,
config/picochip/libgccExtras/divmodhi4.S,
config/picochip/libgccExtras/divmodsi4.S,
config/picochip/libgccExtras/lshrsi3.S,
config/picochip/libgccExtras/parityhi2.S,
config/picochip/libgccExtras/popcounthi2.S,
config/picochip/libgccExtras/subdi3.S,
config/picochip/libgccExtras/ucmpsi2.S,
config/picochip/libgccExtras/udivmodhi4.S,
config/picochip/libgccExtras/udivmodsi4.S: New files.
* config/picochip/t-picochip (LIB2ADD, HOST_LIBGCC2_CFLAGS)
(LIBGCC2_DEBUG_CFLAGS, RANLIB_FOR_TARGET): Set.
* config/rs6000/crtresfpr.S, config/rs6000/crtresgpr.S,
config/rs6000/crtresxfpr.S, config/rs6000/crtresxgpr.S,
config/rs6000/crtsavfpr.S, config/rs6000/crtsavgpr.S)
config/rs6000/darwin-asm.h, config/rs6000/darwin-fpsave.S,
config/rs6000/darwin-gpsave.S, config/rs6000/darwin-tramp.S,
config/rs6000/darwin-vecsave.S, config/rs6000/darwin-world.S: New
files.
* config/rs6000/t-darwin (LIB2ADD, LIB2ADD_ST)
(HOST_LIBGCC2_CFLAGS): Set.
* config/rs6000/t-darwin64: New file.
* config/rs6000/t-linux64 (HOST_LIBGCC2_CFLAGS): Set.
* config/rs6000/t-lynx, config/rs6000/t-netbsd: New files.
* config/rs6000/t-ppccomm (LIB2ADD): Add
$(srcdir)/config/rs6000/tramp.S.
(LIB2ADD_ST): Use $(srcdir)/config/rs6000 to refer to sources.
Add $(srcdir)/config/rs6000/eabi.S.
(crtsavfpr.S, crtresfpr.S, crtsavgpr.S, crtresgpr.S, crtresxfpr.S)
(crtresxgpr.S, e500crtres32gpr.S, e500crtres64gpr.S)
(e500crtres64gprctr.S, e500crtrest32gpr.S, e500crtrest64gpr.S)
(e500crtresx32gpr.S, e500crtresx64gpr.S, e500crtsav32gpr.S)
(e500crtsav64gpr.S, e500crtsav64gprctr.S, e500crtsavg32gpr.S)
(e500crtsavg64gpr.S, e500crtsavg64gprctr.S): Remove.
* config/rs6000/tramp.S: New file.
* config/s390/t-tpf: Remove.
* config/sh/linux-atomic.S: New file.
* config/sh/t-linux (LIB2ADD): Set.
(HOST_LIBGCC2_CFLAGS): Append, remove -fpic.
* config/sh/t-netbsd (LIB2ADD, HOST_LIBGCC2_CFLAGS): Set.
* config/sh/t-sh (unwind-dw2-Os-4-200.o): Use $(srcdir) to refer
to unwind-dw2.c.
(HOST_LIBGCC2_CFLAGS): Set.
* config/sparc/t-sol2 (CRTSTUFF_T_CFLAGS): Use $(PICFLAG).
* config/spu/divmodti4.c, config/spu/divv2df3.c,
config/spu/float_disf.c, config/spu/float_unsdidf.c,
config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
config/spu/mfc_multi_tag_release.c,
config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
config/spu/multi3.c: New files.
* config/spu/t-elf (LIB2ADD, LIB2ADD_ST, LIB2_SIDITI_CONV_FUNCS)
(HOST_LIBGCC2_CFLAGS): Set.
* config/stormy16/ashlsi3.c, config/stormy16/ashrsi3.c,
config/stormy16/clzhi2.c, config/stormy16/cmpsi2.c,
config/stormy16/ctzhi2.c, config/stormy16/divsi3.c,
config/stormy16/ffshi2.c, config/stormy16/lib2.c,
config/stormy16/lshrsi3.c, config/stormy16/modsi3.c,
config/stormy16/parityhi2.c, config/stormy16/popcounthi2.c,
config/stormy16/t-stormy16, config/stormy16/ucmpsi2.c,
config/stormy16/udivmodsi4.c, config/stormy16/udivsi3.c,
config/stormy16/umodsi3.c: New files.
* config/xtensa/lib2funcs.S: New file.
* config/xtensa/t-elf (HOST_LIBGCC2_CFLAGS): Set.
* config/xtensa/t-xtensa (LIB2ADD): Set.
* config.host (*-*-darwin*): Add t-libgcc-pic to tmake_file.
(*-*-freebsd*): Add t-freebsd, t-libgcc-pic to tmake_file.
Add t-freebsd-thread to tmake_file for posix threads.
(*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu)
(*-*-gnu*, *-*-kopensolaris*-gnu): Add t-libgcc-pic to tmake_file.
(*-*-lynxos*): Likewise.
(*-*-netbsd*): Likewise.
(*-*-openbsd*): Likewise.
Add t-openbsd-thread to tmake_file for posix threads.
(*-*-solaris2*): Add t-libgcc-pic to tmake_file.
(*-*-vxworks*): Set tmake_file.
(alpha*-*-linux*): Add alpha/t-alpha, alpha/t-ieee to tmake_file.
(alpha*-*-freebsd*): Likewise.
(alpha*-*-netbsd*): Likewise.
(alpha*-*-openbsd*): Likewise.
(alpha*-dec-osf5.1*): Remove qrnnd.o, gthr-posix.o from extra_parts.
(alpha64-dec-*vms*): Add alpha/t-alpha, alpha/t-ieee to tmake_file.
(alpha*-dec-*vms*): Likewise.
(arm*-*-netbsdelf*): Add arm/t-netbsd to tmake_file.
(bfin*-elf*): Add bfin/t-elf to tmake_file.
(bfin*-uclinux*): Likewise.
(bfin*-linux-uclibc*): Likewise.
(crisv32-*-elf): Add cris/t-cris to tmake_file.
(crisv32-*-none): Likewise.
(cris-*-elf): Likewise.
(cris-*-none): Likewise.
(cris-*-linux*, crisv32-*-linux*): Likewise.
(hppa[12]*-*-hpux10*): Add pa/t-hpux pa/t-hpux10, t-libgcc-pic to
tmake_file.
(hppa*64*-*-hpux11*): Add pa/t-hpux, pa/t-pa64, t-libgcc-pic to
tmake_file.
(hppa[12]*-*-hpux11*): Add pa/t-hpux, t-libgcc-pic to tmake_file.
(i[34567]86-*-elf*): Add t-libgcc-pic to tmake_file.
(x86_64-*-elf*): Likewise.
(i[34567]86-*-nto-qnx*): Likewise.
(i[34567]86-*-mingw*): Add i386/t-gthr-win32 to tmake_file for
win32 threads.
(x86_64-*-mingw*): Likewise.
(i[34567]86-*-interix3*): Add i386/t-interix to tmake_file.
(lm32-*-uclinux*): Add t-libgcc-pic to tmake_file.
(mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
(mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
(mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add mips/t-elf to
tmake_file.
(mipsisa64sr71k-*-elf*): Likewise.
(mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
(mips-*-elf*, mipsel-*-elf*): Likewise.
(mips64-*-elf*, mips64el-*-elf*): Likewise.
(mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
(mips*-*-rtems*): Likewise.
(mips64vr-*-elf*, mips64vrel-*-elf*): Add mips/t-elf, mips/t-vr
to tmake_file.
(pdp11-*-*): Add pdp11/t-pdp11 to tmake_file.
(powerpc64-*-darwin*): Add rs6000/t-darwin64 to tmake_file.
(s390x-ibm-tpf*): Add t-libgcc-pic to tmake_file.
(spu-*-elf*): Likewise.
(tic6x-*-uclinux): Add t-libgcc-pic to tmake_file.
libquadmath:
* printf/gmp-impl.h: Adapt path to longlong.h.
From-SVN: r180774
Diffstat (limited to 'gcc/config/rs6000')
38 files changed, 2 insertions, 2913 deletions
diff --git a/gcc/config/rs6000/crtresfpr.asm b/gcc/config/rs6000/crtresfpr.asm deleted file mode 100644 index 9fb228c..0000000 --- a/gcc/config/rs6000/crtresfpr.asm +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for restoring floating point registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the floating point save area. */ - -CFI_STARTPROC -HIDDEN_FUNC(_restfpr_14) lfd 14,-144(11) /* restore fp registers */ -HIDDEN_FUNC(_restfpr_15) lfd 15,-136(11) -HIDDEN_FUNC(_restfpr_16) lfd 16,-128(11) -HIDDEN_FUNC(_restfpr_17) lfd 17,-120(11) -HIDDEN_FUNC(_restfpr_18) lfd 18,-112(11) -HIDDEN_FUNC(_restfpr_19) lfd 19,-104(11) -HIDDEN_FUNC(_restfpr_20) lfd 20,-96(11) -HIDDEN_FUNC(_restfpr_21) lfd 21,-88(11) -HIDDEN_FUNC(_restfpr_22) lfd 22,-80(11) -HIDDEN_FUNC(_restfpr_23) lfd 23,-72(11) -HIDDEN_FUNC(_restfpr_24) lfd 24,-64(11) -HIDDEN_FUNC(_restfpr_25) lfd 25,-56(11) -HIDDEN_FUNC(_restfpr_26) lfd 26,-48(11) -HIDDEN_FUNC(_restfpr_27) lfd 27,-40(11) -HIDDEN_FUNC(_restfpr_28) lfd 28,-32(11) -HIDDEN_FUNC(_restfpr_29) lfd 29,-24(11) -HIDDEN_FUNC(_restfpr_30) lfd 30,-16(11) -HIDDEN_FUNC(_restfpr_31) lfd 31,-8(11) - blr -FUNC_END(_restfpr_31) -FUNC_END(_restfpr_30) -FUNC_END(_restfpr_29) -FUNC_END(_restfpr_28) -FUNC_END(_restfpr_27) -FUNC_END(_restfpr_26) -FUNC_END(_restfpr_25) -FUNC_END(_restfpr_24) -FUNC_END(_restfpr_23) -FUNC_END(_restfpr_22) -FUNC_END(_restfpr_21) -FUNC_END(_restfpr_20) -FUNC_END(_restfpr_19) -FUNC_END(_restfpr_18) -FUNC_END(_restfpr_17) -FUNC_END(_restfpr_16) -FUNC_END(_restfpr_15) -FUNC_END(_restfpr_14) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/crtresgpr.asm b/gcc/config/rs6000/crtresgpr.asm deleted file mode 100644 index 9f9cec9..0000000 --- a/gcc/config/rs6000/crtresgpr.asm +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for restoring integer registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the integer restore area. */ - -CFI_STARTPROC -HIDDEN_FUNC(_restgpr_14) lwz 14,-72(11) /* restore gp registers */ -HIDDEN_FUNC(_restgpr_15) lwz 15,-68(11) -HIDDEN_FUNC(_restgpr_16) lwz 16,-64(11) -HIDDEN_FUNC(_restgpr_17) lwz 17,-60(11) -HIDDEN_FUNC(_restgpr_18) lwz 18,-56(11) -HIDDEN_FUNC(_restgpr_19) lwz 19,-52(11) -HIDDEN_FUNC(_restgpr_20) lwz 20,-48(11) -HIDDEN_FUNC(_restgpr_21) lwz 21,-44(11) -HIDDEN_FUNC(_restgpr_22) lwz 22,-40(11) -HIDDEN_FUNC(_restgpr_23) lwz 23,-36(11) -HIDDEN_FUNC(_restgpr_24) lwz 24,-32(11) -HIDDEN_FUNC(_restgpr_25) lwz 25,-28(11) -HIDDEN_FUNC(_restgpr_26) lwz 26,-24(11) -HIDDEN_FUNC(_restgpr_27) lwz 27,-20(11) -HIDDEN_FUNC(_restgpr_28) lwz 28,-16(11) -HIDDEN_FUNC(_restgpr_29) lwz 29,-12(11) -HIDDEN_FUNC(_restgpr_30) lwz 30,-8(11) -HIDDEN_FUNC(_restgpr_31) lwz 31,-4(11) - blr -FUNC_END(_restgpr_31) -FUNC_END(_restgpr_30) -FUNC_END(_restgpr_29) -FUNC_END(_restgpr_28) -FUNC_END(_restgpr_27) -FUNC_END(_restgpr_26) -FUNC_END(_restgpr_25) -FUNC_END(_restgpr_24) -FUNC_END(_restgpr_23) -FUNC_END(_restgpr_22) -FUNC_END(_restgpr_21) -FUNC_END(_restgpr_20) -FUNC_END(_restgpr_19) -FUNC_END(_restgpr_18) -FUNC_END(_restgpr_17) -FUNC_END(_restgpr_16) -FUNC_END(_restgpr_15) -FUNC_END(_restgpr_14) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/crtresxfpr.asm b/gcc/config/rs6000/crtresxfpr.asm deleted file mode 100644 index 633f2db..0000000 --- a/gcc/config/rs6000/crtresxfpr.asm +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for restoring floating point registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the floating point save area. */ -/* In addition to restoring the fp registers, it will return to the caller's */ -/* caller */ - -CFI_STARTPROC -CFI_DEF_CFA_REGISTER (11) -CFI_OFFSET (65, 4) -CFI_OFFSET (46, -144) -CFI_OFFSET (47, -136) -CFI_OFFSET (48, -128) -CFI_OFFSET (49, -120) -CFI_OFFSET (50, -112) -CFI_OFFSET (51, -104) -CFI_OFFSET (52, -96) -CFI_OFFSET (53, -88) -CFI_OFFSET (54, -80) -CFI_OFFSET (55, -72) -CFI_OFFSET (56, -64) -CFI_OFFSET (57, -56) -CFI_OFFSET (58, -48) -CFI_OFFSET (59, -40) -CFI_OFFSET (60, -32) -CFI_OFFSET (61, -24) -CFI_OFFSET (62, -16) -CFI_OFFSET (63, -8) -HIDDEN_FUNC(_restfpr_14_x) lfd 14,-144(11) /* restore fp registers */ -CFI_RESTORE (46) -HIDDEN_FUNC(_restfpr_15_x) lfd 15,-136(11) -CFI_RESTORE (47) -HIDDEN_FUNC(_restfpr_16_x) lfd 16,-128(11) -CFI_RESTORE (48) -HIDDEN_FUNC(_restfpr_17_x) lfd 17,-120(11) -CFI_RESTORE (49) -HIDDEN_FUNC(_restfpr_18_x) lfd 18,-112(11) -CFI_RESTORE (50) -HIDDEN_FUNC(_restfpr_19_x) lfd 19,-104(11) -CFI_RESTORE (51) -HIDDEN_FUNC(_restfpr_20_x) lfd 20,-96(11) -CFI_RESTORE (52) -HIDDEN_FUNC(_restfpr_21_x) lfd 21,-88(11) -CFI_RESTORE (53) -HIDDEN_FUNC(_restfpr_22_x) lfd 22,-80(11) -CFI_RESTORE (54) -HIDDEN_FUNC(_restfpr_23_x) lfd 23,-72(11) -CFI_RESTORE (55) -HIDDEN_FUNC(_restfpr_24_x) lfd 24,-64(11) -CFI_RESTORE (56) -HIDDEN_FUNC(_restfpr_25_x) lfd 25,-56(11) -CFI_RESTORE (57) -HIDDEN_FUNC(_restfpr_26_x) lfd 26,-48(11) -CFI_RESTORE (58) -HIDDEN_FUNC(_restfpr_27_x) lfd 27,-40(11) -CFI_RESTORE (59) -HIDDEN_FUNC(_restfpr_28_x) lfd 28,-32(11) -CFI_RESTORE (60) -HIDDEN_FUNC(_restfpr_29_x) lfd 29,-24(11) -CFI_RESTORE (61) -HIDDEN_FUNC(_restfpr_30_x) lfd 30,-16(11) -CFI_RESTORE (62) -HIDDEN_FUNC(_restfpr_31_x) lwz 0,4(11) - lfd 31,-8(11) -CFI_RESTORE (63) - mtlr 0 -CFI_RESTORE (65) - mr 1,11 -CFI_DEF_CFA_REGISTER (1) - blr -FUNC_END(_restfpr_31_x) -FUNC_END(_restfpr_30_x) -FUNC_END(_restfpr_29_x) -FUNC_END(_restfpr_28_x) -FUNC_END(_restfpr_27_x) -FUNC_END(_restfpr_26_x) -FUNC_END(_restfpr_25_x) -FUNC_END(_restfpr_24_x) -FUNC_END(_restfpr_23_x) -FUNC_END(_restfpr_22_x) -FUNC_END(_restfpr_21_x) -FUNC_END(_restfpr_20_x) -FUNC_END(_restfpr_19_x) -FUNC_END(_restfpr_18_x) -FUNC_END(_restfpr_17_x) -FUNC_END(_restfpr_16_x) -FUNC_END(_restfpr_15_x) -FUNC_END(_restfpr_14_x) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/crtresxgpr.asm b/gcc/config/rs6000/crtresxgpr.asm deleted file mode 100644 index 451b2b6..0000000 --- a/gcc/config/rs6000/crtresxgpr.asm +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for restoring integer registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the integer restore area. */ - -CFI_STARTPROC -CFI_DEF_CFA_REGISTER (11) -CFI_OFFSET (65, 4) -CFI_OFFSET (14, -72) -CFI_OFFSET (15, -68) -CFI_OFFSET (16, -64) -CFI_OFFSET (17, -60) -CFI_OFFSET (18, -56) -CFI_OFFSET (19, -52) -CFI_OFFSET (20, -48) -CFI_OFFSET (21, -44) -CFI_OFFSET (22, -40) -CFI_OFFSET (23, -36) -CFI_OFFSET (24, -32) -CFI_OFFSET (25, -28) -CFI_OFFSET (26, -24) -CFI_OFFSET (27, -20) -CFI_OFFSET (28, -16) -CFI_OFFSET (29, -12) -CFI_OFFSET (30, -8) -CFI_OFFSET (31, -4) -HIDDEN_FUNC(_restgpr_14_x) lwz 14,-72(11) /* restore gp registers */ -CFI_RESTORE (14) -HIDDEN_FUNC(_restgpr_15_x) lwz 15,-68(11) -CFI_RESTORE (15) -HIDDEN_FUNC(_restgpr_16_x) lwz 16,-64(11) -CFI_RESTORE (16) -HIDDEN_FUNC(_restgpr_17_x) lwz 17,-60(11) -CFI_RESTORE (17) -HIDDEN_FUNC(_restgpr_18_x) lwz 18,-56(11) -CFI_RESTORE (18) -HIDDEN_FUNC(_restgpr_19_x) lwz 19,-52(11) -CFI_RESTORE (19) -HIDDEN_FUNC(_restgpr_20_x) lwz 20,-48(11) -CFI_RESTORE (20) -HIDDEN_FUNC(_restgpr_21_x) lwz 21,-44(11) -CFI_RESTORE (21) -HIDDEN_FUNC(_restgpr_22_x) lwz 22,-40(11) -CFI_RESTORE (22) -HIDDEN_FUNC(_restgpr_23_x) lwz 23,-36(11) -CFI_RESTORE (23) -HIDDEN_FUNC(_restgpr_24_x) lwz 24,-32(11) -CFI_RESTORE (24) -HIDDEN_FUNC(_restgpr_25_x) lwz 25,-28(11) -CFI_RESTORE (25) -HIDDEN_FUNC(_restgpr_26_x) lwz 26,-24(11) -CFI_RESTORE (26) -HIDDEN_FUNC(_restgpr_27_x) lwz 27,-20(11) -CFI_RESTORE (27) -HIDDEN_FUNC(_restgpr_28_x) lwz 28,-16(11) -CFI_RESTORE (28) -HIDDEN_FUNC(_restgpr_29_x) lwz 29,-12(11) -CFI_RESTORE (29) -HIDDEN_FUNC(_restgpr_30_x) lwz 30,-8(11) -CFI_RESTORE (30) -HIDDEN_FUNC(_restgpr_31_x) lwz 0,4(11) - lwz 31,-4(11) -CFI_RESTORE (31) - mtlr 0 -CFI_RESTORE (65) - mr 1,11 -CFI_DEF_CFA_REGISTER (1) - blr -FUNC_END(_restgpr_31_x) -FUNC_END(_restgpr_30_x) -FUNC_END(_restgpr_29_x) -FUNC_END(_restgpr_28_x) -FUNC_END(_restgpr_27_x) -FUNC_END(_restgpr_26_x) -FUNC_END(_restgpr_25_x) -FUNC_END(_restgpr_24_x) -FUNC_END(_restgpr_23_x) -FUNC_END(_restgpr_22_x) -FUNC_END(_restgpr_21_x) -FUNC_END(_restgpr_20_x) -FUNC_END(_restgpr_19_x) -FUNC_END(_restgpr_18_x) -FUNC_END(_restgpr_17_x) -FUNC_END(_restgpr_16_x) -FUNC_END(_restgpr_15_x) -FUNC_END(_restgpr_14_x) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/crtsavfpr.asm b/gcc/config/rs6000/crtsavfpr.asm deleted file mode 100644 index 3cdb250..0000000 --- a/gcc/config/rs6000/crtsavfpr.asm +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for saving floating point registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the floating point save area. */ - -CFI_STARTPROC -HIDDEN_FUNC(_savefpr_14) stfd 14,-144(11) /* save fp registers */ -HIDDEN_FUNC(_savefpr_15) stfd 15,-136(11) -HIDDEN_FUNC(_savefpr_16) stfd 16,-128(11) -HIDDEN_FUNC(_savefpr_17) stfd 17,-120(11) -HIDDEN_FUNC(_savefpr_18) stfd 18,-112(11) -HIDDEN_FUNC(_savefpr_19) stfd 19,-104(11) -HIDDEN_FUNC(_savefpr_20) stfd 20,-96(11) -HIDDEN_FUNC(_savefpr_21) stfd 21,-88(11) -HIDDEN_FUNC(_savefpr_22) stfd 22,-80(11) -HIDDEN_FUNC(_savefpr_23) stfd 23,-72(11) -HIDDEN_FUNC(_savefpr_24) stfd 24,-64(11) -HIDDEN_FUNC(_savefpr_25) stfd 25,-56(11) -HIDDEN_FUNC(_savefpr_26) stfd 26,-48(11) -HIDDEN_FUNC(_savefpr_27) stfd 27,-40(11) -HIDDEN_FUNC(_savefpr_28) stfd 28,-32(11) -HIDDEN_FUNC(_savefpr_29) stfd 29,-24(11) -HIDDEN_FUNC(_savefpr_30) stfd 30,-16(11) -HIDDEN_FUNC(_savefpr_31) stfd 31,-8(11) - blr -FUNC_END(_savefpr_31) -FUNC_END(_savefpr_30) -FUNC_END(_savefpr_29) -FUNC_END(_savefpr_28) -FUNC_END(_savefpr_27) -FUNC_END(_savefpr_26) -FUNC_END(_savefpr_25) -FUNC_END(_savefpr_24) -FUNC_END(_savefpr_23) -FUNC_END(_savefpr_22) -FUNC_END(_savefpr_21) -FUNC_END(_savefpr_20) -FUNC_END(_savefpr_19) -FUNC_END(_savefpr_18) -FUNC_END(_savefpr_17) -FUNC_END(_savefpr_16) -FUNC_END(_savefpr_15) -FUNC_END(_savefpr_14) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/crtsavgpr.asm b/gcc/config/rs6000/crtsavgpr.asm deleted file mode 100644 index 6d473963..0000000 --- a/gcc/config/rs6000/crtsavgpr.asm +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * 64-bit support written by David Edelsohn - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -/* On PowerPC64 Linux, these functions are provided by the linker. */ -#ifndef __powerpc64__ - -/* Routines for saving integer registers, called by the compiler. */ -/* Called with r11 pointing to the stack header word of the caller of the */ -/* function, just beyond the end of the integer save area. */ - -CFI_STARTPROC -HIDDEN_FUNC(_savegpr_14) stw 14,-72(11) /* save gp registers */ -HIDDEN_FUNC(_savegpr_15) stw 15,-68(11) -HIDDEN_FUNC(_savegpr_16) stw 16,-64(11) -HIDDEN_FUNC(_savegpr_17) stw 17,-60(11) -HIDDEN_FUNC(_savegpr_18) stw 18,-56(11) -HIDDEN_FUNC(_savegpr_19) stw 19,-52(11) -HIDDEN_FUNC(_savegpr_20) stw 20,-48(11) -HIDDEN_FUNC(_savegpr_21) stw 21,-44(11) -HIDDEN_FUNC(_savegpr_22) stw 22,-40(11) -HIDDEN_FUNC(_savegpr_23) stw 23,-36(11) -HIDDEN_FUNC(_savegpr_24) stw 24,-32(11) -HIDDEN_FUNC(_savegpr_25) stw 25,-28(11) -HIDDEN_FUNC(_savegpr_26) stw 26,-24(11) -HIDDEN_FUNC(_savegpr_27) stw 27,-20(11) -HIDDEN_FUNC(_savegpr_28) stw 28,-16(11) -HIDDEN_FUNC(_savegpr_29) stw 29,-12(11) -HIDDEN_FUNC(_savegpr_30) stw 30,-8(11) -HIDDEN_FUNC(_savegpr_31) stw 31,-4(11) - blr -FUNC_END(_savegpr_31) -FUNC_END(_savegpr_30) -FUNC_END(_savegpr_29) -FUNC_END(_savegpr_28) -FUNC_END(_savegpr_27) -FUNC_END(_savegpr_26) -FUNC_END(_savegpr_25) -FUNC_END(_savegpr_24) -FUNC_END(_savegpr_23) -FUNC_END(_savegpr_22) -FUNC_END(_savegpr_21) -FUNC_END(_savegpr_20) -FUNC_END(_savegpr_19) -FUNC_END(_savegpr_18) -FUNC_END(_savegpr_17) -FUNC_END(_savegpr_16) -FUNC_END(_savegpr_15) -FUNC_END(_savegpr_14) -CFI_ENDPROC - -#endif diff --git a/gcc/config/rs6000/darwin-asm.h b/gcc/config/rs6000/darwin-asm.h deleted file mode 100644 index 837b7a3..0000000 --- a/gcc/config/rs6000/darwin-asm.h +++ /dev/null @@ -1,51 +0,0 @@ -/* Macro definitions to used to support 32/64-bit code in Darwin's - * assembly files. - * - * Copyright (C) 2004, 2009 Free Software Foundation, Inc. - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* These are donated from /usr/include/architecture/ppc . */ - -#if defined(__ppc64__) -#define MODE_CHOICE(x, y) y -#else -#define MODE_CHOICE(x, y) x -#endif - -#define cmpg MODE_CHOICE(cmpw, cmpd) -#define lg MODE_CHOICE(lwz, ld) -#define stg MODE_CHOICE(stw, std) -#define lgx MODE_CHOICE(lwzx, ldx) -#define stgx MODE_CHOICE(stwx, stdx) -#define lgu MODE_CHOICE(lwzu, ldu) -#define stgu MODE_CHOICE(stwu, stdu) -#define lgux MODE_CHOICE(lwzux, ldux) -#define stgux MODE_CHOICE(stwux, stdux) -#define lgwa MODE_CHOICE(lwz, lwa) - -#define g_long MODE_CHOICE(long, quad) /* usage is ".g_long" */ - -#define GPR_BYTES MODE_CHOICE(4,8) /* size of a GPR in bytes */ -#define LOG2_GPR_BYTES MODE_CHOICE(2,3) /* log2(GPR_BYTES) */ - -#define SAVED_LR_OFFSET MODE_CHOICE(8,16) /* position of saved - LR in frame */ diff --git a/gcc/config/rs6000/darwin-fpsave.asm b/gcc/config/rs6000/darwin-fpsave.asm deleted file mode 100644 index 47fdc92..0000000 --- a/gcc/config/rs6000/darwin-fpsave.asm +++ /dev/null @@ -1,92 +0,0 @@ -/* This file contains the floating-point save and restore routines. - * - * Copyright (C) 2004, 2009 Free Software Foundation, Inc. - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* THE SAVE AND RESTORE ROUTINES CAN HAVE ONLY ONE GLOBALLY VISIBLE - ENTRY POINT - callers have to jump to "saveFP+60" to save f29..f31, - for example. For FP reg saves/restores, it takes one instruction - (4 bytes) to do the operation; for Vector regs, 2 instructions are - required (8 bytes.) - - MORAL: DO NOT MESS AROUND WITH THESE FUNCTIONS! */ - -#include "darwin-asm.h" - -.text - .align 2 - -/* saveFP saves R0 -- assumed to be the callers LR -- to 8/16(R1). */ - -.private_extern saveFP -saveFP: - stfd f14,-144(r1) - stfd f15,-136(r1) - stfd f16,-128(r1) - stfd f17,-120(r1) - stfd f18,-112(r1) - stfd f19,-104(r1) - stfd f20,-96(r1) - stfd f21,-88(r1) - stfd f22,-80(r1) - stfd f23,-72(r1) - stfd f24,-64(r1) - stfd f25,-56(r1) - stfd f26,-48(r1) - stfd f27,-40(r1) - stfd f28,-32(r1) - stfd f29,-24(r1) - stfd f30,-16(r1) - stfd f31,-8(r1) - stg r0,SAVED_LR_OFFSET(r1) - blr - -/* restFP restores the caller`s LR from 8/16(R1). Note that the code for - this starts at the offset of F30 restoration, so calling this - routine in an attempt to restore only F31 WILL NOT WORK (it would - be a stupid thing to do, anyway.) */ - -.private_extern restFP -restFP: - lfd f14,-144(r1) - lfd f15,-136(r1) - lfd f16,-128(r1) - lfd f17,-120(r1) - lfd f18,-112(r1) - lfd f19,-104(r1) - lfd f20,-96(r1) - lfd f21,-88(r1) - lfd f22,-80(r1) - lfd f23,-72(r1) - lfd f24,-64(r1) - lfd f25,-56(r1) - lfd f26,-48(r1) - lfd f27,-40(r1) - lfd f28,-32(r1) - lfd f29,-24(r1) - /* <OFFSET OF F30 RESTORE> restore callers LR */ - lg r0,SAVED_LR_OFFSET(r1) - lfd f30,-16(r1) - /* and prepare for return to caller */ - mtlr r0 - lfd f31,-8(r1) - blr diff --git a/gcc/config/rs6000/darwin-gpsave.asm b/gcc/config/rs6000/darwin-gpsave.asm deleted file mode 100644 index d3c3b91..0000000 --- a/gcc/config/rs6000/darwin-gpsave.asm +++ /dev/null @@ -1,118 +0,0 @@ -/* This file contains the GPR save and restore routines for Darwin. - * - * Copyright (C) 2011 Free Software Foundation, Inc. - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Contributed by Iain Sandoe <iains@gcc.gnu.org> */ - -/* Like their FP and VEC counterparts, these routines have only one externally - visible entry point. Calls have to be constructed as offsets from this. - (I.E. callers have to jump to "saveGPR+((x-13)*4" to save registers x..31). - - Each save/load instruction is 4 bytes long (for both m32 and m64 builds). - - The save/restores here are done w.r.t r11. - - restGPRx restores the link reg from the stack and returns to the saved - address. - - */ - -#include "darwin-asm.h" - - .text - .align 2 - - .private_extern saveGPR -saveGPR: - stg r13,(-19 * GPR_BYTES)(r11) - stg r14,(-18 * GPR_BYTES)(r11) - stg r15,(-17 * GPR_BYTES)(r11) - stg r16,(-16 * GPR_BYTES)(r11) - stg r17,(-15 * GPR_BYTES)(r11) - stg r18,(-14 * GPR_BYTES)(r11) - stg r19,(-13 * GPR_BYTES)(r11) - stg r20,(-12 * GPR_BYTES)(r11) - stg r21,(-11 * GPR_BYTES)(r11) - stg r22,(-10 * GPR_BYTES)(r11) - stg r23,( -9 * GPR_BYTES)(r11) - stg r24,( -8 * GPR_BYTES)(r11) - stg r25,( -7 * GPR_BYTES)(r11) - stg r26,( -6 * GPR_BYTES)(r11) - stg r27,( -5 * GPR_BYTES)(r11) - stg r28,( -4 * GPR_BYTES)(r11) - stg r29,( -3 * GPR_BYTES)(r11) - stg r30,( -2 * GPR_BYTES)(r11) - stg r31,( -1 * GPR_BYTES)(r11) - blr - -/* */ - - .private_extern restGPR -restGPR: - lg r13,(-19 * GPR_BYTES)(r11) - lg r14,(-18 * GPR_BYTES)(r11) - lg r15,(-17 * GPR_BYTES)(r11) - lg r16,(-16 * GPR_BYTES)(r11) - lg r17,(-15 * GPR_BYTES)(r11) - lg r18,(-14 * GPR_BYTES)(r11) - lg r19,(-13 * GPR_BYTES)(r11) - lg r20,(-12 * GPR_BYTES)(r11) - lg r21,(-11 * GPR_BYTES)(r11) - lg r22,(-10 * GPR_BYTES)(r11) - lg r23,( -9 * GPR_BYTES)(r11) - lg r24,( -8 * GPR_BYTES)(r11) - lg r25,( -7 * GPR_BYTES)(r11) - lg r26,( -6 * GPR_BYTES)(r11) - lg r27,( -5 * GPR_BYTES)(r11) - lg r28,( -4 * GPR_BYTES)(r11) - lg r29,( -3 * GPR_BYTES)(r11) - lg r30,( -2 * GPR_BYTES)(r11) - lg r31,( -1 * GPR_BYTES)(r11) - blr - - .private_extern restGPRx -restGPRx: - lg r13,(-19 * GPR_BYTES)(r11) - lg r14,(-18 * GPR_BYTES)(r11) - lg r15,(-17 * GPR_BYTES)(r11) - lg r16,(-16 * GPR_BYTES)(r11) - lg r17,(-15 * GPR_BYTES)(r11) - lg r18,(-14 * GPR_BYTES)(r11) - lg r19,(-13 * GPR_BYTES)(r11) - lg r20,(-12 * GPR_BYTES)(r11) - lg r21,(-11 * GPR_BYTES)(r11) - lg r22,(-10 * GPR_BYTES)(r11) - lg r23,( -9 * GPR_BYTES)(r11) - lg r24,( -8 * GPR_BYTES)(r11) - lg r25,( -7 * GPR_BYTES)(r11) - lg r26,( -6 * GPR_BYTES)(r11) - lg r27,( -5 * GPR_BYTES)(r11) - lg r28,( -4 * GPR_BYTES)(r11) - lg r29,( -3 * GPR_BYTES)(r11) - /* Like the FP restore, we start from the offset for r30 - thus a restore of only r31 is not going to work. */ - lg r0,SAVED_LR_OFFSET(r1) - lg r30,( -2 * GPR_BYTES)(r11) - mtlr r0 - lg r31,( -1 * GPR_BYTES)(r11) - blr diff --git a/gcc/config/rs6000/darwin-tramp.asm b/gcc/config/rs6000/darwin-tramp.asm deleted file mode 100644 index 5188c98..0000000 --- a/gcc/config/rs6000/darwin-tramp.asm +++ /dev/null @@ -1,125 +0,0 @@ -/* Special support for trampolines - * - * Copyright (C) 1996, 1997, 2000, 2004, 2005, 2009 Free Software Foundation, Inc. - * Written By Michael Meissner - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -#include "darwin-asm.h" - -/* Set up trampolines. */ - -.text - .align LOG2_GPR_BYTES -Ltrampoline_initial: - mflr r0 - bl 1f -Lfunc = .-Ltrampoline_initial - .g_long 0 /* will be replaced with function address */ -Lchain = .-Ltrampoline_initial - .g_long 0 /* will be replaced with static chain */ -1: mflr r11 - lg r12,0(r11) /* function address */ - mtlr r0 - mtctr r12 - lg r11,GPR_BYTES(r11) /* static chain */ - bctr - -trampoline_size = .-Ltrampoline_initial - -/* R3 = stack address to store trampoline */ -/* R4 = length of trampoline area */ -/* R5 = function address */ -/* R6 = static chain */ - - .globl ___trampoline_setup -___trampoline_setup: - mflr r0 /* save return address */ - bcl 20,31,LCF0 /* load up __trampoline_initial into r7 */ -LCF0: - mflr r11 - addis r7,r11,ha16(LTRAMP-LCF0) - lg r7,lo16(LTRAMP-LCF0)(r7) - subi r7,r7,4 - li r8,trampoline_size /* verify trampoline big enough */ - cmpg cr1,r8,r4 - srwi r4,r4,2 /* # words to move (insns always 4-byte) */ - addi r9,r3,-4 /* adjust pointer for lgu */ - mtctr r4 - blt cr1,Labort - - mtlr r0 - - /* Copy the instructions to the stack */ -Lmove: - lwzu r10,4(r7) - stwu r10,4(r9) - bdnz Lmove - - /* Store correct function and static chain */ - stg r5,Lfunc(r3) - stg r6,Lchain(r3) - - /* Now flush both caches */ - mtctr r4 -Lcache: - icbi 0,r3 - dcbf 0,r3 - addi r3,r3,4 - bdnz Lcache - - /* Ensure cache-flushing has finished. */ - sync - isync - - /* Make stack writeable. */ - b ___enable_execute_stack - -Labort: -#ifdef __DYNAMIC__ - bl L_abort$stub -.data -.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 - .align 2 -L_abort$stub: - .indirect_symbol _abort - mflr r0 - bcl 20,31,L0$_abort -L0$_abort: - mflr r11 - addis r11,r11,ha16(L_abort$lazy_ptr-L0$_abort) - mtlr r0 - lgu r12,lo16(L_abort$lazy_ptr-L0$_abort)(r11) - mtctr r12 - bctr -.data -.lazy_symbol_pointer -L_abort$lazy_ptr: - .indirect_symbol _abort - .g_long dyld_stub_binding_helper -#else - bl _abort -#endif -.data - .align LOG2_GPR_BYTES -LTRAMP: - .g_long Ltrampoline_initial - diff --git a/gcc/config/rs6000/darwin-vecsave.asm b/gcc/config/rs6000/darwin-vecsave.asm deleted file mode 100644 index 0a46be2..0000000 --- a/gcc/config/rs6000/darwin-vecsave.asm +++ /dev/null @@ -1,155 +0,0 @@ -/* This file contains the vector save and restore routines. - * - * Copyright (C) 2004, 2009 Free Software Foundation, Inc. - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Vector save/restore routines for Darwin. Note that each vector - save/restore requires 2 instructions (8 bytes.) - - THE SAVE AND RESTORE ROUTINES CAN HAVE ONLY ONE GLOBALLY VISIBLE - ENTRY POINT - callers have to jump to "saveFP+60" to save f29..f31, - for example. For FP reg saves/restores, it takes one instruction - (4 bytes) to do the operation; for Vector regs, 2 instructions are - required (8 bytes.). */ - - .machine ppc7400 -.text - .align 2 - -.private_extern saveVEC -saveVEC: - li r11,-192 - stvx v20,r11,r0 - li r11,-176 - stvx v21,r11,r0 - li r11,-160 - stvx v22,r11,r0 - li r11,-144 - stvx v23,r11,r0 - li r11,-128 - stvx v24,r11,r0 - li r11,-112 - stvx v25,r11,r0 - li r11,-96 - stvx v26,r11,r0 - li r11,-80 - stvx v27,r11,r0 - li r11,-64 - stvx v28,r11,r0 - li r11,-48 - stvx v29,r11,r0 - li r11,-32 - stvx v30,r11,r0 - li r11,-16 - stvx v31,r11,r0 - blr - -.private_extern restVEC -restVEC: - li r11,-192 - lvx v20,r11,r0 - li r11,-176 - lvx v21,r11,r0 - li r11,-160 - lvx v22,r11,r0 - li r11,-144 - lvx v23,r11,r0 - li r11,-128 - lvx v24,r11,r0 - li r11,-112 - lvx v25,r11,r0 - li r11,-96 - lvx v26,r11,r0 - li r11,-80 - lvx v27,r11,r0 - li r11,-64 - lvx v28,r11,r0 - li r11,-48 - lvx v29,r11,r0 - li r11,-32 - lvx v30,r11,r0 - li r11,-16 - lvx v31,r11,r0 - blr - -/* saveVEC_vr11 -- as saveVEC but VRsave is returned in R11. */ - -.private_extern saveVEC_vr11 -saveVEC_vr11: - li r11,-192 - stvx v20,r11,r0 - li r11,-176 - stvx v21,r11,r0 - li r11,-160 - stvx v22,r11,r0 - li r11,-144 - stvx v23,r11,r0 - li r11,-128 - stvx v24,r11,r0 - li r11,-112 - stvx v25,r11,r0 - li r11,-96 - stvx v26,r11,r0 - li r11,-80 - stvx v27,r11,r0 - li r11,-64 - stvx v28,r11,r0 - li r11,-48 - stvx v29,r11,r0 - li r11,-32 - stvx v30,r11,r0 - li r11,-16 - stvx v31,r11,r0 - mfspr r11,VRsave - blr - -/* As restVec, but the original VRsave value passed in R10. */ - -.private_extern restVEC_vr10 -restVEC_vr10: - li r11,-192 - lvx v20,r11,r0 - li r11,-176 - lvx v21,r11,r0 - li r11,-160 - lvx v22,r11,r0 - li r11,-144 - lvx v23,r11,r0 - li r11,-128 - lvx v24,r11,r0 - li r11,-112 - lvx v25,r11,r0 - li r11,-96 - lvx v26,r11,r0 - li r11,-80 - lvx v27,r11,r0 - li r11,-64 - lvx v28,r11,r0 - li r11,-48 - lvx v29,r11,r0 - li r11,-32 - lvx v30,r11,r0 - li r11,-16 - lvx v31,r11,r0 - /* restore VRsave from R10. */ - mtspr VRsave,r10 - blr diff --git a/gcc/config/rs6000/darwin-world.asm b/gcc/config/rs6000/darwin-world.asm deleted file mode 100644 index c0b1bf1..0000000 --- a/gcc/config/rs6000/darwin-world.asm +++ /dev/null @@ -1,259 +0,0 @@ -/* This file contains the exception-handling save_world and - * restore_world routines, which need to do a run-time check to see if - * they should save and restore the vector registers. - * - * Copyright (C) 2004, 2009 Free Software Foundation, Inc. - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .machine ppc7400 -.data - .align 2 - -#ifdef __DYNAMIC__ - -.non_lazy_symbol_pointer -L_has_vec$non_lazy_ptr: - .indirect_symbol __cpu_has_altivec -#ifdef __ppc64__ - .quad 0 -#else - .long 0 -#endif - -#else - -/* For static, "pretend" we have a non-lazy-pointer. */ - -L_has_vec$non_lazy_ptr: - .long __cpu_has_altivec - -#endif - - -.text - .align 2 - -/* save_world and rest_world save/restore F14-F31 and possibly V20-V31 - (assuming you have a CPU with vector registers; we use a global var - provided by the System Framework to determine this.) - - SAVE_WORLD takes R0 (the caller`s caller`s return address) and R11 - (the stack frame size) as parameters. It returns VRsave in R0 if - we`re on a CPU with vector regs. - - With gcc3, we now need to save and restore CR as well, since gcc3's - scheduled prologs can cause comparisons to be moved before calls to - save_world! - - USES: R0 R11 R12 */ - -.private_extern save_world -save_world: - stw r0,8(r1) - mflr r0 - bcl 20,31,Ls$pb -Ls$pb: mflr r12 - addis r12,r12,ha16(L_has_vec$non_lazy_ptr-Ls$pb) - lwz r12,lo16(L_has_vec$non_lazy_ptr-Ls$pb)(r12) - mtlr r0 - lwz r12,0(r12) - /* grab CR */ - mfcr r0 - /* test HAS_VEC */ - cmpwi r12,0 - stfd f14,-144(r1) - stfd f15,-136(r1) - stfd f16,-128(r1) - stfd f17,-120(r1) - stfd f18,-112(r1) - stfd f19,-104(r1) - stfd f20,-96(r1) - stfd f21,-88(r1) - stfd f22,-80(r1) - stfd f23,-72(r1) - stfd f24,-64(r1) - stfd f25,-56(r1) - stfd f26,-48(r1) - stfd f27,-40(r1) - stfd f28,-32(r1) - stfd f29,-24(r1) - stfd f30,-16(r1) - stfd f31,-8(r1) - stmw r13,-220(r1) - /* stash CR */ - stw r0,4(r1) - /* set R12 pointing at Vector Reg save area */ - addi r12,r1,-224 - /* allocate stack frame */ - stwux r1,r1,r11 - /* ...but return if HAS_VEC is zero */ - bne+ L$saveVMX - /* Not forgetting to restore CR. */ - mtcr r0 - blr - -L$saveVMX: - /* We're saving Vector regs too. */ - /* Restore CR from R0. No More Branches! */ - mtcr r0 - - /* We should really use VRSAVE to figure out which vector regs - we actually need to save and restore. Some other time :-/ */ - - li r11,-192 - stvx v20,r11,r12 - li r11,-176 - stvx v21,r11,r12 - li r11,-160 - stvx v22,r11,r12 - li r11,-144 - stvx v23,r11,r12 - li r11,-128 - stvx v24,r11,r12 - li r11,-112 - stvx v25,r11,r12 - li r11,-96 - stvx v26,r11,r12 - li r11,-80 - stvx v27,r11,r12 - li r11,-64 - stvx v28,r11,r12 - li r11,-48 - stvx v29,r11,r12 - li r11,-32 - stvx v30,r11,r12 - mfspr r0,VRsave - li r11,-16 - stvx v31,r11,r12 - /* VRsave lives at -224(R1) */ - stw r0,0(r12) - blr - - -/* eh_rest_world_r10 is jumped to, not called, so no need to worry about LR. - R10 is the C++ EH stack adjust parameter, we return to the caller`s caller. - - USES: R0 R10 R11 R12 and R7 R8 - RETURNS: C++ EH Data registers (R3 - R6.) - - We now set up R7/R8 and jump to rest_world_eh_r7r8. - - rest_world doesn't use the R10 stack adjust parameter, nor does it - pick up the R3-R6 exception handling stuff. */ - -.private_extern rest_world -rest_world: - /* Pickup previous SP */ - lwz r11, 0(r1) - li r7, 0 - lwz r8, 8(r11) - li r10, 0 - b rest_world_eh_r7r8 - -.private_extern eh_rest_world_r10 -eh_rest_world_r10: - /* Pickup previous SP */ - lwz r11, 0(r1) - mr r7,r10 - lwz r8, 8(r11) - /* pickup the C++ EH data regs (R3 - R6.) */ - lwz r6,-420(r11) - lwz r5,-424(r11) - lwz r4,-428(r11) - lwz r3,-432(r11) - - b rest_world_eh_r7r8 - -/* rest_world_eh_r7r8 is jumped to -- not called! -- when we're doing - the exception-handling epilog. R7 contains the offset to add to - the SP, and R8 contains the 'real' return address. - - USES: R0 R11 R12 [R7/R8] - RETURNS: C++ EH Data registers (R3 - R6.) */ - -rest_world_eh_r7r8: - bcl 20,31,Lr7r8$pb -Lr7r8$pb: mflr r12 - lwz r11,0(r1) - /* R11 := previous SP */ - addis r12,r12,ha16(L_has_vec$non_lazy_ptr-Lr7r8$pb) - lwz r12,lo16(L_has_vec$non_lazy_ptr-Lr7r8$pb)(r12) - lwz r0,4(r11) - /* R0 := old CR */ - lwz r12,0(r12) - /* R12 := HAS_VEC */ - mtcr r0 - cmpwi r12,0 - lmw r13,-220(r11) - beq L.rest_world_fp_eh - /* restore VRsave and V20..V31 */ - lwz r0,-224(r11) - li r12,-416 - mtspr VRsave,r0 - lvx v20,r11,r12 - li r12,-400 - lvx v21,r11,r12 - li r12,-384 - lvx v22,r11,r12 - li r12,-368 - lvx v23,r11,r12 - li r12,-352 - lvx v24,r11,r12 - li r12,-336 - lvx v25,r11,r12 - li r12,-320 - lvx v26,r11,r12 - li r12,-304 - lvx v27,r11,r12 - li r12,-288 - lvx v28,r11,r12 - li r12,-272 - lvx v29,r11,r12 - li r12,-256 - lvx v30,r11,r12 - li r12,-240 - lvx v31,r11,r12 - -L.rest_world_fp_eh: - lfd f14,-144(r11) - lfd f15,-136(r11) - lfd f16,-128(r11) - lfd f17,-120(r11) - lfd f18,-112(r11) - lfd f19,-104(r11) - lfd f20,-96(r11) - lfd f21,-88(r11) - lfd f22,-80(r11) - lfd f23,-72(r11) - lfd f24,-64(r11) - lfd f25,-56(r11) - lfd f26,-48(r11) - lfd f27,-40(r11) - lfd f28,-32(r11) - lfd f29,-24(r11) - lfd f30,-16(r11) - /* R8 is the exception-handler's address */ - mtctr r8 - lfd f31,-8(r11) - /* set SP to original value + R7 offset */ - add r1,r11,r7 - bctr diff --git a/gcc/config/rs6000/e500crtres32gpr.asm b/gcc/config/rs6000/e500crtres32gpr.asm deleted file mode 100644 index 6fbff82..0000000 --- a/gcc/config/rs6000/e500crtres32gpr.asm +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for restoring 32-bit integer registers, called by the compiler. */ -/* "Bare" versions that simply return to their caller. */ - -HIDDEN_FUNC(_rest32gpr_14) lwz 14,-72(11) -HIDDEN_FUNC(_rest32gpr_15) lwz 15,-68(11) -HIDDEN_FUNC(_rest32gpr_16) lwz 16,-64(11) -HIDDEN_FUNC(_rest32gpr_17) lwz 17,-60(11) -HIDDEN_FUNC(_rest32gpr_18) lwz 18,-56(11) -HIDDEN_FUNC(_rest32gpr_19) lwz 19,-52(11) -HIDDEN_FUNC(_rest32gpr_20) lwz 20,-48(11) -HIDDEN_FUNC(_rest32gpr_21) lwz 21,-44(11) -HIDDEN_FUNC(_rest32gpr_22) lwz 22,-40(11) -HIDDEN_FUNC(_rest32gpr_23) lwz 23,-36(11) -HIDDEN_FUNC(_rest32gpr_24) lwz 24,-32(11) -HIDDEN_FUNC(_rest32gpr_25) lwz 25,-28(11) -HIDDEN_FUNC(_rest32gpr_26) lwz 26,-24(11) -HIDDEN_FUNC(_rest32gpr_27) lwz 27,-20(11) -HIDDEN_FUNC(_rest32gpr_28) lwz 28,-16(11) -HIDDEN_FUNC(_rest32gpr_29) lwz 29,-12(11) -HIDDEN_FUNC(_rest32gpr_30) lwz 30,-8(11) -HIDDEN_FUNC(_rest32gpr_31) lwz 31,-4(11) - blr -FUNC_END(_rest32gpr_31) -FUNC_END(_rest32gpr_30) -FUNC_END(_rest32gpr_29) -FUNC_END(_rest32gpr_28) -FUNC_END(_rest32gpr_27) -FUNC_END(_rest32gpr_26) -FUNC_END(_rest32gpr_25) -FUNC_END(_rest32gpr_24) -FUNC_END(_rest32gpr_23) -FUNC_END(_rest32gpr_22) -FUNC_END(_rest32gpr_21) -FUNC_END(_rest32gpr_20) -FUNC_END(_rest32gpr_19) -FUNC_END(_rest32gpr_18) -FUNC_END(_rest32gpr_17) -FUNC_END(_rest32gpr_16) -FUNC_END(_rest32gpr_15) -FUNC_END(_rest32gpr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtres64gpr.asm b/gcc/config/rs6000/e500crtres64gpr.asm deleted file mode 100644 index 5182e55..0000000 --- a/gcc/config/rs6000/e500crtres64gpr.asm +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for restoring 64-bit integer registers, called by the compiler. */ -/* "Bare" versions that return to their caller. */ - -HIDDEN_FUNC(_rest64gpr_14) evldd 14,0(11) -HIDDEN_FUNC(_rest64gpr_15) evldd 15,8(11) -HIDDEN_FUNC(_rest64gpr_16) evldd 16,16(11) -HIDDEN_FUNC(_rest64gpr_17) evldd 17,24(11) -HIDDEN_FUNC(_rest64gpr_18) evldd 18,32(11) -HIDDEN_FUNC(_rest64gpr_19) evldd 19,40(11) -HIDDEN_FUNC(_rest64gpr_20) evldd 20,48(11) -HIDDEN_FUNC(_rest64gpr_21) evldd 21,56(11) -HIDDEN_FUNC(_rest64gpr_22) evldd 22,64(11) -HIDDEN_FUNC(_rest64gpr_23) evldd 23,72(11) -HIDDEN_FUNC(_rest64gpr_24) evldd 24,80(11) -HIDDEN_FUNC(_rest64gpr_25) evldd 25,88(11) -HIDDEN_FUNC(_rest64gpr_26) evldd 26,96(11) -HIDDEN_FUNC(_rest64gpr_27) evldd 27,104(11) -HIDDEN_FUNC(_rest64gpr_28) evldd 28,112(11) -HIDDEN_FUNC(_rest64gpr_29) evldd 29,120(11) -HIDDEN_FUNC(_rest64gpr_30) evldd 30,128(11) -HIDDEN_FUNC(_rest64gpr_31) evldd 31,136(11) - blr -FUNC_END(_rest64gpr_31) -FUNC_END(_rest64gpr_30) -FUNC_END(_rest64gpr_29) -FUNC_END(_rest64gpr_28) -FUNC_END(_rest64gpr_27) -FUNC_END(_rest64gpr_26) -FUNC_END(_rest64gpr_25) -FUNC_END(_rest64gpr_24) -FUNC_END(_rest64gpr_23) -FUNC_END(_rest64gpr_22) -FUNC_END(_rest64gpr_21) -FUNC_END(_rest64gpr_20) -FUNC_END(_rest64gpr_19) -FUNC_END(_rest64gpr_18) -FUNC_END(_rest64gpr_17) -FUNC_END(_rest64gpr_16) -FUNC_END(_rest64gpr_15) -FUNC_END(_rest64gpr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtres64gprctr.asm b/gcc/config/rs6000/e500crtres64gprctr.asm deleted file mode 100644 index 74309d6..0000000 --- a/gcc/config/rs6000/e500crtres64gprctr.asm +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for restoring 64-bit integer registers where the number of - registers to be restored is passed in CTR, called by the compiler. */ - -HIDDEN_FUNC(_rest64gpr_ctr_14) evldd 14,0(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_15) evldd 15,8(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_16) evldd 16,16(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_17) evldd 17,24(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_18) evldd 18,32(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_19) evldd 19,40(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_20) evldd 20,48(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_21) evldd 21,56(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_22) evldd 22,64(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_23) evldd 23,72(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_24) evldd 24,80(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_25) evldd 25,88(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_26) evldd 26,96(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_27) evldd 27,104(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_28) evldd 28,112(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_29) evldd 29,120(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_30) evldd 30,128(11) - bdz _rest64gpr_ctr_done -HIDDEN_FUNC(_rest64gpr_ctr_31) evldd 31,136(11) -_rest64gpr_ctr_done: blr -FUNC_END(_rest64gpr_ctr_31) -FUNC_END(_rest64gpr_ctr_30) -FUNC_END(_rest64gpr_ctr_29) -FUNC_END(_rest64gpr_ctr_28) -FUNC_END(_rest64gpr_ctr_27) -FUNC_END(_rest64gpr_ctr_26) -FUNC_END(_rest64gpr_ctr_25) -FUNC_END(_rest64gpr_ctr_24) -FUNC_END(_rest64gpr_ctr_23) -FUNC_END(_rest64gpr_ctr_22) -FUNC_END(_rest64gpr_ctr_21) -FUNC_END(_rest64gpr_ctr_20) -FUNC_END(_rest64gpr_ctr_19) -FUNC_END(_rest64gpr_ctr_18) -FUNC_END(_rest64gpr_ctr_17) -FUNC_END(_rest64gpr_ctr_16) -FUNC_END(_rest64gpr_ctr_15) -FUNC_END(_rest64gpr_ctr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtrest32gpr.asm b/gcc/config/rs6000/e500crtrest32gpr.asm deleted file mode 100644 index 4e61010..0000000 --- a/gcc/config/rs6000/e500crtrest32gpr.asm +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for restoring 32-bit integer registers, called by the compiler. */ -/* "Tail" versions that perform a tail call. */ - -HIDDEN_FUNC(_rest32gpr_14_t) lwz 14,-72(11) -HIDDEN_FUNC(_rest32gpr_15_t) lwz 15,-68(11) -HIDDEN_FUNC(_rest32gpr_16_t) lwz 16,-64(11) -HIDDEN_FUNC(_rest32gpr_17_t) lwz 17,-60(11) -HIDDEN_FUNC(_rest32gpr_18_t) lwz 18,-56(11) -HIDDEN_FUNC(_rest32gpr_19_t) lwz 19,-52(11) -HIDDEN_FUNC(_rest32gpr_20_t) lwz 20,-48(11) -HIDDEN_FUNC(_rest32gpr_21_t) lwz 21,-44(11) -HIDDEN_FUNC(_rest32gpr_22_t) lwz 22,-40(11) -HIDDEN_FUNC(_rest32gpr_23_t) lwz 23,-36(11) -HIDDEN_FUNC(_rest32gpr_24_t) lwz 24,-32(11) -HIDDEN_FUNC(_rest32gpr_25_t) lwz 25,-28(11) -HIDDEN_FUNC(_rest32gpr_26_t) lwz 26,-24(11) -HIDDEN_FUNC(_rest32gpr_27_t) lwz 27,-20(11) -HIDDEN_FUNC(_rest32gpr_28_t) lwz 28,-16(11) -HIDDEN_FUNC(_rest32gpr_29_t) lwz 29,-12(11) -HIDDEN_FUNC(_rest32gpr_30_t) lwz 30,-8(11) -HIDDEN_FUNC(_rest32gpr_31_t) lwz 31,-4(11) - lwz 0,4(11) - mr 1,11 - blr -FUNC_END(_rest32gpr_31_t) -FUNC_END(_rest32gpr_30_t) -FUNC_END(_rest32gpr_29_t) -FUNC_END(_rest32gpr_28_t) -FUNC_END(_rest32gpr_27_t) -FUNC_END(_rest32gpr_26_t) -FUNC_END(_rest32gpr_25_t) -FUNC_END(_rest32gpr_24_t) -FUNC_END(_rest32gpr_23_t) -FUNC_END(_rest32gpr_22_t) -FUNC_END(_rest32gpr_21_t) -FUNC_END(_rest32gpr_20_t) -FUNC_END(_rest32gpr_19_t) -FUNC_END(_rest32gpr_18_t) -FUNC_END(_rest32gpr_17_t) -FUNC_END(_rest32gpr_16_t) -FUNC_END(_rest32gpr_15_t) -FUNC_END(_rest32gpr_14_t) - -#endif diff --git a/gcc/config/rs6000/e500crtrest64gpr.asm b/gcc/config/rs6000/e500crtrest64gpr.asm deleted file mode 100644 index 090786f..0000000 --- a/gcc/config/rs6000/e500crtrest64gpr.asm +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* "Tail" versions that perform a tail call. */ - -HIDDEN_FUNC(_rest64gpr_14_t) evldd 14,0(11) -HIDDEN_FUNC(_rest64gpr_15_t) evldd 15,8(11) -HIDDEN_FUNC(_rest64gpr_16_t) evldd 16,16(11) -HIDDEN_FUNC(_rest64gpr_17_t) evldd 17,24(11) -HIDDEN_FUNC(_rest64gpr_18_t) evldd 18,32(11) -HIDDEN_FUNC(_rest64gpr_19_t) evldd 19,40(11) -HIDDEN_FUNC(_rest64gpr_20_t) evldd 20,48(11) -HIDDEN_FUNC(_rest64gpr_21_t) evldd 21,56(11) -HIDDEN_FUNC(_rest64gpr_22_t) evldd 22,64(11) -HIDDEN_FUNC(_rest64gpr_23_t) evldd 23,72(11) -HIDDEN_FUNC(_rest64gpr_24_t) evldd 24,80(11) -HIDDEN_FUNC(_rest64gpr_25_t) evldd 25,88(11) -HIDDEN_FUNC(_rest64gpr_26_t) evldd 26,96(11) -HIDDEN_FUNC(_rest64gpr_27_t) evldd 27,104(11) -HIDDEN_FUNC(_rest64gpr_28_t) evldd 28,112(11) -HIDDEN_FUNC(_rest64gpr_29_t) evldd 29,120(11) -HIDDEN_FUNC(_rest64gpr_30_t) evldd 30,128(11) -HIDDEN_FUNC(_rest64gpr_31_t) lwz 0,148(11) - evldd 31,136(11) - addi 1,11,144 - blr -FUNC_END(_rest64gpr_31_t) -FUNC_END(_rest64gpr_30_t) -FUNC_END(_rest64gpr_29_t) -FUNC_END(_rest64gpr_28_t) -FUNC_END(_rest64gpr_27_t) -FUNC_END(_rest64gpr_26_t) -FUNC_END(_rest64gpr_25_t) -FUNC_END(_rest64gpr_24_t) -FUNC_END(_rest64gpr_23_t) -FUNC_END(_rest64gpr_22_t) -FUNC_END(_rest64gpr_21_t) -FUNC_END(_rest64gpr_20_t) -FUNC_END(_rest64gpr_19_t) -FUNC_END(_rest64gpr_18_t) -FUNC_END(_rest64gpr_17_t) -FUNC_END(_rest64gpr_16_t) -FUNC_END(_rest64gpr_15_t) -FUNC_END(_rest64gpr_14_t) - -#endif diff --git a/gcc/config/rs6000/e500crtresx32gpr.asm b/gcc/config/rs6000/e500crtresx32gpr.asm deleted file mode 100644 index 0b35245..0000000 --- a/gcc/config/rs6000/e500crtresx32gpr.asm +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for restoring 32-bit integer registers, called by the compiler. */ -/* "Exit" versions that return to the caller's caller. */ - -HIDDEN_FUNC(_rest32gpr_14_x) lwz 14,-72(11) -HIDDEN_FUNC(_rest32gpr_15_x) lwz 15,-68(11) -HIDDEN_FUNC(_rest32gpr_16_x) lwz 16,-64(11) -HIDDEN_FUNC(_rest32gpr_17_x) lwz 17,-60(11) -HIDDEN_FUNC(_rest32gpr_18_x) lwz 18,-56(11) -HIDDEN_FUNC(_rest32gpr_19_x) lwz 19,-52(11) -HIDDEN_FUNC(_rest32gpr_20_x) lwz 20,-48(11) -HIDDEN_FUNC(_rest32gpr_21_x) lwz 21,-44(11) -HIDDEN_FUNC(_rest32gpr_22_x) lwz 22,-40(11) -HIDDEN_FUNC(_rest32gpr_23_x) lwz 23,-36(11) -HIDDEN_FUNC(_rest32gpr_24_x) lwz 24,-32(11) -HIDDEN_FUNC(_rest32gpr_25_x) lwz 25,-28(11) -HIDDEN_FUNC(_rest32gpr_26_x) lwz 26,-24(11) -HIDDEN_FUNC(_rest32gpr_27_x) lwz 27,-20(11) -HIDDEN_FUNC(_rest32gpr_28_x) lwz 28,-16(11) -HIDDEN_FUNC(_rest32gpr_29_x) lwz 29,-12(11) -HIDDEN_FUNC(_rest32gpr_30_x) lwz 30,-8(11) -HIDDEN_FUNC(_rest32gpr_31_x) lwz 0,4(11) - lwz 31,-4(11) - mr 1,11 - mtlr 0 - blr -FUNC_END(_rest32gpr_31_x) -FUNC_END(_rest32gpr_30_x) -FUNC_END(_rest32gpr_29_x) -FUNC_END(_rest32gpr_28_x) -FUNC_END(_rest32gpr_27_x) -FUNC_END(_rest32gpr_26_x) -FUNC_END(_rest32gpr_25_x) -FUNC_END(_rest32gpr_24_x) -FUNC_END(_rest32gpr_23_x) -FUNC_END(_rest32gpr_22_x) -FUNC_END(_rest32gpr_21_x) -FUNC_END(_rest32gpr_20_x) -FUNC_END(_rest32gpr_19_x) -FUNC_END(_rest32gpr_18_x) -FUNC_END(_rest32gpr_17_x) -FUNC_END(_rest32gpr_16_x) -FUNC_END(_rest32gpr_15_x) -FUNC_END(_rest32gpr_14_x) - -#endif diff --git a/gcc/config/rs6000/e500crtresx64gpr.asm b/gcc/config/rs6000/e500crtresx64gpr.asm deleted file mode 100644 index ce2a6cf..0000000 --- a/gcc/config/rs6000/e500crtresx64gpr.asm +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* "Exit" versions that return to their caller's caller. */ - -HIDDEN_FUNC(_rest64gpr_14_x) evldd 14,0(11) -HIDDEN_FUNC(_rest64gpr_15_x) evldd 15,8(11) -HIDDEN_FUNC(_rest64gpr_16_x) evldd 16,16(11) -HIDDEN_FUNC(_rest64gpr_17_x) evldd 17,24(11) -HIDDEN_FUNC(_rest64gpr_18_x) evldd 18,32(11) -HIDDEN_FUNC(_rest64gpr_19_x) evldd 19,40(11) -HIDDEN_FUNC(_rest64gpr_20_x) evldd 20,48(11) -HIDDEN_FUNC(_rest64gpr_21_x) evldd 21,56(11) -HIDDEN_FUNC(_rest64gpr_22_x) evldd 22,64(11) -HIDDEN_FUNC(_rest64gpr_23_x) evldd 23,72(11) -HIDDEN_FUNC(_rest64gpr_24_x) evldd 24,80(11) -HIDDEN_FUNC(_rest64gpr_25_x) evldd 25,88(11) -HIDDEN_FUNC(_rest64gpr_26_x) evldd 26,96(11) -HIDDEN_FUNC(_rest64gpr_27_x) evldd 27,104(11) -HIDDEN_FUNC(_rest64gpr_28_x) evldd 28,112(11) -HIDDEN_FUNC(_rest64gpr_29_x) evldd 29,120(11) -HIDDEN_FUNC(_rest64gpr_30_x) evldd 30,128(11) -HIDDEN_FUNC(_rest64gpr_31_x) lwz 0,148(11) - evldd 31,136(11) - addi 1,11,144 - mtlr 0 - blr -FUNC_END(_rest64gpr_31_x) -FUNC_END(_rest64gpr_30_x) -FUNC_END(_rest64gpr_29_x) -FUNC_END(_rest64gpr_28_x) -FUNC_END(_rest64gpr_27_x) -FUNC_END(_rest64gpr_26_x) -FUNC_END(_rest64gpr_25_x) -FUNC_END(_rest64gpr_24_x) -FUNC_END(_rest64gpr_23_x) -FUNC_END(_rest64gpr_22_x) -FUNC_END(_rest64gpr_21_x) -FUNC_END(_rest64gpr_20_x) -FUNC_END(_rest64gpr_19_x) -FUNC_END(_rest64gpr_18_x) -FUNC_END(_rest64gpr_17_x) -FUNC_END(_rest64gpr_16_x) -FUNC_END(_rest64gpr_15_x) -FUNC_END(_rest64gpr_14_x) - -#endif diff --git a/gcc/config/rs6000/e500crtsav32gpr.asm b/gcc/config/rs6000/e500crtsav32gpr.asm deleted file mode 100644 index c891030..0000000 --- a/gcc/config/rs6000/e500crtsav32gpr.asm +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 32-bit integer registers, called by the compiler. */ -/* "Bare" versions that simply return to their caller. */ - -HIDDEN_FUNC(_save32gpr_14) stw 14,-72(11) -HIDDEN_FUNC(_save32gpr_15) stw 15,-68(11) -HIDDEN_FUNC(_save32gpr_16) stw 16,-64(11) -HIDDEN_FUNC(_save32gpr_17) stw 17,-60(11) -HIDDEN_FUNC(_save32gpr_18) stw 18,-56(11) -HIDDEN_FUNC(_save32gpr_19) stw 19,-52(11) -HIDDEN_FUNC(_save32gpr_20) stw 20,-48(11) -HIDDEN_FUNC(_save32gpr_21) stw 21,-44(11) -HIDDEN_FUNC(_save32gpr_22) stw 22,-40(11) -HIDDEN_FUNC(_save32gpr_23) stw 23,-36(11) -HIDDEN_FUNC(_save32gpr_24) stw 24,-32(11) -HIDDEN_FUNC(_save32gpr_25) stw 25,-28(11) -HIDDEN_FUNC(_save32gpr_26) stw 26,-24(11) -HIDDEN_FUNC(_save32gpr_27) stw 27,-20(11) -HIDDEN_FUNC(_save32gpr_28) stw 28,-16(11) -HIDDEN_FUNC(_save32gpr_29) stw 29,-12(11) -HIDDEN_FUNC(_save32gpr_30) stw 30,-8(11) -HIDDEN_FUNC(_save32gpr_31) stw 31,-4(11) - blr -FUNC_END(_save32gpr_31) -FUNC_END(_save32gpr_30) -FUNC_END(_save32gpr_29) -FUNC_END(_save32gpr_28) -FUNC_END(_save32gpr_27) -FUNC_END(_save32gpr_26) -FUNC_END(_save32gpr_25) -FUNC_END(_save32gpr_24) -FUNC_END(_save32gpr_23) -FUNC_END(_save32gpr_22) -FUNC_END(_save32gpr_21) -FUNC_END(_save32gpr_20) -FUNC_END(_save32gpr_19) -FUNC_END(_save32gpr_18) -FUNC_END(_save32gpr_17) -FUNC_END(_save32gpr_16) -FUNC_END(_save32gpr_15) -FUNC_END(_save32gpr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtsav64gpr.asm b/gcc/config/rs6000/e500crtsav64gpr.asm deleted file mode 100644 index 2a5d3e4..0000000 --- a/gcc/config/rs6000/e500crtsav64gpr.asm +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 64-bit integer registers, called by the compiler. */ - -HIDDEN_FUNC(_save64gpr_14) evstdd 14,0(11) -HIDDEN_FUNC(_save64gpr_15) evstdd 15,8(11) -HIDDEN_FUNC(_save64gpr_16) evstdd 16,16(11) -HIDDEN_FUNC(_save64gpr_17) evstdd 17,24(11) -HIDDEN_FUNC(_save64gpr_18) evstdd 18,32(11) -HIDDEN_FUNC(_save64gpr_19) evstdd 19,40(11) -HIDDEN_FUNC(_save64gpr_20) evstdd 20,48(11) -HIDDEN_FUNC(_save64gpr_21) evstdd 21,56(11) -HIDDEN_FUNC(_save64gpr_22) evstdd 22,64(11) -HIDDEN_FUNC(_save64gpr_23) evstdd 23,72(11) -HIDDEN_FUNC(_save64gpr_24) evstdd 24,80(11) -HIDDEN_FUNC(_save64gpr_25) evstdd 25,88(11) -HIDDEN_FUNC(_save64gpr_26) evstdd 26,96(11) -HIDDEN_FUNC(_save64gpr_27) evstdd 27,104(11) -HIDDEN_FUNC(_save64gpr_28) evstdd 28,112(11) -HIDDEN_FUNC(_save64gpr_29) evstdd 29,120(11) -HIDDEN_FUNC(_save64gpr_30) evstdd 30,128(11) -HIDDEN_FUNC(_save64gpr_31) evstdd 31,136(11) - blr -FUNC_END(_save64gpr_31) -FUNC_END(_save64gpr_30) -FUNC_END(_save64gpr_29) -FUNC_END(_save64gpr_28) -FUNC_END(_save64gpr_27) -FUNC_END(_save64gpr_26) -FUNC_END(_save64gpr_25) -FUNC_END(_save64gpr_24) -FUNC_END(_save64gpr_23) -FUNC_END(_save64gpr_22) -FUNC_END(_save64gpr_21) -FUNC_END(_save64gpr_20) -FUNC_END(_save64gpr_19) -FUNC_END(_save64gpr_18) -FUNC_END(_save64gpr_17) -FUNC_END(_save64gpr_16) -FUNC_END(_save64gpr_15) -FUNC_END(_save64gpr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtsav64gprctr.asm b/gcc/config/rs6000/e500crtsav64gprctr.asm deleted file mode 100644 index dd0bdf3..0000000 --- a/gcc/config/rs6000/e500crtsav64gprctr.asm +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 64-bit integer registers where the number of - registers to be saved is passed in CTR, called by the compiler. */ -/* "Bare" versions that return to their caller. */ - -HIDDEN_FUNC(_save64gpr_ctr_14) evstdd 14,0(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_15) evstdd 15,8(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_16) evstdd 16,16(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_17) evstdd 17,24(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_18) evstdd 18,32(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_19) evstdd 19,40(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_20) evstdd 20,48(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_21) evstdd 21,56(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_22) evstdd 22,64(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_23) evstdd 23,72(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_24) evstdd 24,80(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_25) evstdd 25,88(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_26) evstdd 26,96(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_27) evstdd 27,104(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_28) evstdd 28,112(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_29) evstdd 29,120(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_30) evstdd 30,128(11) - bdz _save64gpr_ctr_done -HIDDEN_FUNC(_save64gpr_ctr_31) evstdd 31,136(11) -_save64gpr_ctr_done: blr -FUNC_END(_save64gpr_ctr_31) -FUNC_END(_save64gpr_ctr_30) -FUNC_END(_save64gpr_ctr_29) -FUNC_END(_save64gpr_ctr_28) -FUNC_END(_save64gpr_ctr_27) -FUNC_END(_save64gpr_ctr_26) -FUNC_END(_save64gpr_ctr_25) -FUNC_END(_save64gpr_ctr_24) -FUNC_END(_save64gpr_ctr_23) -FUNC_END(_save64gpr_ctr_22) -FUNC_END(_save64gpr_ctr_21) -FUNC_END(_save64gpr_ctr_20) -FUNC_END(_save64gpr_ctr_19) -FUNC_END(_save64gpr_ctr_18) -FUNC_END(_save64gpr_ctr_17) -FUNC_END(_save64gpr_ctr_16) -FUNC_END(_save64gpr_ctr_15) -FUNC_END(_save64gpr_ctr_14) - -#endif diff --git a/gcc/config/rs6000/e500crtsavg32gpr.asm b/gcc/config/rs6000/e500crtsavg32gpr.asm deleted file mode 100644 index d14088e..0000000 --- a/gcc/config/rs6000/e500crtsavg32gpr.asm +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 32-bit integer registers, called by the compiler. */ -/* "GOT" versions that load the address of the GOT into lr before returning. */ - -HIDDEN_FUNC(_save32gpr_14_g) stw 14,-72(11) -HIDDEN_FUNC(_save32gpr_15_g) stw 15,-68(11) -HIDDEN_FUNC(_save32gpr_16_g) stw 16,-64(11) -HIDDEN_FUNC(_save32gpr_17_g) stw 17,-60(11) -HIDDEN_FUNC(_save32gpr_18_g) stw 18,-56(11) -HIDDEN_FUNC(_save32gpr_19_g) stw 19,-52(11) -HIDDEN_FUNC(_save32gpr_20_g) stw 20,-48(11) -HIDDEN_FUNC(_save32gpr_21_g) stw 21,-44(11) -HIDDEN_FUNC(_save32gpr_22_g) stw 22,-40(11) -HIDDEN_FUNC(_save32gpr_23_g) stw 23,-36(11) -HIDDEN_FUNC(_save32gpr_24_g) stw 24,-32(11) -HIDDEN_FUNC(_save32gpr_25_g) stw 25,-28(11) -HIDDEN_FUNC(_save32gpr_26_g) stw 26,-24(11) -HIDDEN_FUNC(_save32gpr_27_g) stw 27,-20(11) -HIDDEN_FUNC(_save32gpr_28_g) stw 28,-16(11) -HIDDEN_FUNC(_save32gpr_29_g) stw 29,-12(11) -HIDDEN_FUNC(_save32gpr_30_g) stw 30,-8(11) -HIDDEN_FUNC(_save32gpr_31_g) stw 31,-4(11) - b _GLOBAL_OFFSET_TABLE_-4 -FUNC_END(_save32gpr_31_g) -FUNC_END(_save32gpr_30_g) -FUNC_END(_save32gpr_29_g) -FUNC_END(_save32gpr_28_g) -FUNC_END(_save32gpr_27_g) -FUNC_END(_save32gpr_26_g) -FUNC_END(_save32gpr_25_g) -FUNC_END(_save32gpr_24_g) -FUNC_END(_save32gpr_23_g) -FUNC_END(_save32gpr_22_g) -FUNC_END(_save32gpr_21_g) -FUNC_END(_save32gpr_20_g) -FUNC_END(_save32gpr_19_g) -FUNC_END(_save32gpr_18_g) -FUNC_END(_save32gpr_17_g) -FUNC_END(_save32gpr_16_g) -FUNC_END(_save32gpr_15_g) -FUNC_END(_save32gpr_14_g) - -#endif diff --git a/gcc/config/rs6000/e500crtsavg64gpr.asm b/gcc/config/rs6000/e500crtsavg64gpr.asm deleted file mode 100644 index cbad75b..0000000 --- a/gcc/config/rs6000/e500crtsavg64gpr.asm +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 64-bit integer registers, called by the compiler. */ -/* "GOT" versions that load the address of the GOT into lr before returning. */ - -HIDDEN_FUNC(_save64gpr_14_g) evstdd 14,0(11) -HIDDEN_FUNC(_save64gpr_15_g) evstdd 15,8(11) -HIDDEN_FUNC(_save64gpr_16_g) evstdd 16,16(11) -HIDDEN_FUNC(_save64gpr_17_g) evstdd 17,24(11) -HIDDEN_FUNC(_save64gpr_18_g) evstdd 18,32(11) -HIDDEN_FUNC(_save64gpr_19_g) evstdd 19,40(11) -HIDDEN_FUNC(_save64gpr_20_g) evstdd 20,48(11) -HIDDEN_FUNC(_save64gpr_21_g) evstdd 21,56(11) -HIDDEN_FUNC(_save64gpr_22_g) evstdd 22,64(11) -HIDDEN_FUNC(_save64gpr_23_g) evstdd 23,72(11) -HIDDEN_FUNC(_save64gpr_24_g) evstdd 24,80(11) -HIDDEN_FUNC(_save64gpr_25_g) evstdd 25,88(11) -HIDDEN_FUNC(_save64gpr_26_g) evstdd 26,96(11) -HIDDEN_FUNC(_save64gpr_27_g) evstdd 27,104(11) -HIDDEN_FUNC(_save64gpr_28_g) evstdd 28,112(11) -HIDDEN_FUNC(_save64gpr_29_g) evstdd 29,120(11) -HIDDEN_FUNC(_save64gpr_30_g) evstdd 30,128(11) -HIDDEN_FUNC(_save64gpr_31_g) evstdd 31,136(11) - b _GLOBAL_OFFSET_TABLE_-4 -FUNC_END(_save64gpr_31_g) -FUNC_END(_save64gpr_30_g) -FUNC_END(_save64gpr_29_g) -FUNC_END(_save64gpr_28_g) -FUNC_END(_save64gpr_27_g) -FUNC_END(_save64gpr_26_g) -FUNC_END(_save64gpr_25_g) -FUNC_END(_save64gpr_24_g) -FUNC_END(_save64gpr_23_g) -FUNC_END(_save64gpr_22_g) -FUNC_END(_save64gpr_21_g) -FUNC_END(_save64gpr_20_g) -FUNC_END(_save64gpr_19_g) -FUNC_END(_save64gpr_18_g) -FUNC_END(_save64gpr_17_g) -FUNC_END(_save64gpr_16_g) -FUNC_END(_save64gpr_15_g) -FUNC_END(_save64gpr_14_g) - -#endif diff --git a/gcc/config/rs6000/e500crtsavg64gprctr.asm b/gcc/config/rs6000/e500crtsavg64gprctr.asm deleted file mode 100644 index 238df4e..0000000 --- a/gcc/config/rs6000/e500crtsavg64gprctr.asm +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Special support for e500 eabi and SVR4 - * - * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. - * Written by Nathan Froyd - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - - .section ".text" - #include "ppc-asm.h" - -#ifdef __SPE__ - -/* Routines for saving 64-bit integer registers, called by the compiler. */ -/* "GOT" versions that load the address of the GOT into lr before returning. */ - -HIDDEN_FUNC(_save64gpr_ctr_14_g) evstdd 14,0(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_15_g) evstdd 15,8(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_16_g) evstdd 16,16(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_17_g) evstdd 17,24(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_18_g) evstdd 18,32(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_19_g) evstdd 19,40(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_20_g) evstdd 20,48(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_21_g) evstdd 21,56(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_22_g) evstdd 22,64(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_23_g) evstdd 23,72(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_24_g) evstdd 24,80(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_25_g) evstdd 25,88(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_26_g) evstdd 26,96(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_27_g) evstdd 27,104(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_28_g) evstdd 28,112(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_29_g) evstdd 29,120(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_30_g) evstdd 30,128(11) - bdz _save64gpr_ctr_g_done -HIDDEN_FUNC(_save64gpr_ctr_31_g) evstdd 31,136(11) -_save64gpr_ctr_g_done: b _GLOBAL_OFFSET_TABLE_-4 -FUNC_END(_save64gpr_ctr_31_g) -FUNC_END(_save64gpr_ctr_30_g) -FUNC_END(_save64gpr_ctr_29_g) -FUNC_END(_save64gpr_ctr_28_g) -FUNC_END(_save64gpr_ctr_27_g) -FUNC_END(_save64gpr_ctr_26_g) -FUNC_END(_save64gpr_ctr_25_g) -FUNC_END(_save64gpr_ctr_24_g) -FUNC_END(_save64gpr_ctr_23_g) -FUNC_END(_save64gpr_ctr_22_g) -FUNC_END(_save64gpr_ctr_21_g) -FUNC_END(_save64gpr_ctr_20_g) -FUNC_END(_save64gpr_ctr_19_g) -FUNC_END(_save64gpr_ctr_18_g) -FUNC_END(_save64gpr_ctr_17_g) -FUNC_END(_save64gpr_ctr_16_g) -FUNC_END(_save64gpr_ctr_15_g) -FUNC_END(_save64gpr_ctr_14_g) - -#endif diff --git a/gcc/config/rs6000/eabi.asm b/gcc/config/rs6000/eabi.asm deleted file mode 100644 index 292d88e..0000000 --- a/gcc/config/rs6000/eabi.asm +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Special support for eabi and SVR4 - * - * Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008, 2009 - * Free Software Foundation, Inc. - * Written By Michael Meissner - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Do any initializations needed for the eabi environment */ - - .section ".text" - #include "ppc-asm.h" - -#ifndef __powerpc64__ - - .section ".got2","aw" - .align 2 -.LCTOC1 = . /* +32768 */ - -/* Table of addresses */ -.Ltable = .-.LCTOC1 - .long .LCTOC1 /* address we are really at */ - -.Lsda = .-.LCTOC1 - .long _SDA_BASE_ /* address of the first small data area */ - -.Lsdas = .-.LCTOC1 - .long __SDATA_START__ /* start of .sdata/.sbss section */ - -.Lsdae = .-.LCTOC1 - .long __SBSS_END__ /* end of .sdata/.sbss section */ - -.Lsda2 = .-.LCTOC1 - .long _SDA2_BASE_ /* address of the second small data area */ - -.Lsda2s = .-.LCTOC1 - .long __SDATA2_START__ /* start of .sdata2/.sbss2 section */ - -.Lsda2e = .-.LCTOC1 - .long __SBSS2_END__ /* end of .sdata2/.sbss2 section */ - -#ifdef _RELOCATABLE -.Lgots = .-.LCTOC1 - .long __GOT_START__ /* Global offset table start */ - -.Lgotm1 = .-.LCTOC1 - .long _GLOBAL_OFFSET_TABLE_-4 /* end of GOT ptrs before BLCL + 3 reserved words */ - -.Lgotm2 = .-.LCTOC1 - .long _GLOBAL_OFFSET_TABLE_+12 /* start of GOT ptrs after BLCL + 3 reserved words */ - -.Lgote = .-.LCTOC1 - .long __GOT_END__ /* Global offset table end */ - -.Lgot2s = .-.LCTOC1 - .long __GOT2_START__ /* -mrelocatable GOT pointers start */ - -.Lgot2e = .-.LCTOC1 - .long __GOT2_END__ /* -mrelocatable GOT pointers end */ - -.Lfixups = .-.LCTOC1 - .long __FIXUP_START__ /* start of .fixup section */ - -.Lfixupe = .-.LCTOC1 - .long __FIXUP_END__ /* end of .fixup section */ - -.Lctors = .-.LCTOC1 - .long __CTOR_LIST__ /* start of .ctor section */ - -.Lctore = .-.LCTOC1 - .long __CTOR_END__ /* end of .ctor section */ - -.Ldtors = .-.LCTOC1 - .long __DTOR_LIST__ /* start of .dtor section */ - -.Ldtore = .-.LCTOC1 - .long __DTOR_END__ /* end of .dtor section */ - -.Lexcepts = .-.LCTOC1 - .long __EXCEPT_START__ /* start of .gcc_except_table section */ - -.Lexcepte = .-.LCTOC1 - .long __EXCEPT_END__ /* end of .gcc_except_table section */ - -.Linit = .-.LCTOC1 - .long .Linit_p /* address of variable to say we've been called */ - - .text - .align 2 -.Lptr: - .long .LCTOC1-.Laddr /* PC relative pointer to .got2 */ -#endif - - .data - .align 2 -.Linit_p: - .long 0 - - .text - -FUNC_START(__eabi) - -/* Eliminate -mrelocatable code if not -mrelocatable, so that this file can - be assembled with other assemblers than GAS. */ - -#ifndef _RELOCATABLE - addis 10,0,.Linit_p@ha /* init flag */ - addis 11,0,.LCTOC1@ha /* load address of .LCTOC1 */ - lwz 9,.Linit_p@l(10) /* init flag */ - addi 11,11,.LCTOC1@l - cmplwi 2,9,0 /* init flag != 0? */ - bnelr 2 /* return now, if we've been called already */ - stw 1,.Linit_p@l(10) /* store a nonzero value in the done flag */ - -#else /* -mrelocatable */ - mflr 0 - bl .Laddr /* get current address */ -.Laddr: - mflr 12 /* real address of .Laddr */ - lwz 11,(.Lptr-.Laddr)(12) /* linker generated address of .LCTOC1 */ - add 11,11,12 /* correct to real pointer */ - lwz 12,.Ltable(11) /* get linker's idea of where .Laddr is */ - lwz 10,.Linit(11) /* address of init flag */ - subf. 12,12,11 /* calculate difference */ - lwzx 9,10,12 /* done flag */ - cmplwi 2,9,0 /* init flag != 0? */ - mtlr 0 /* restore in case branch was taken */ - bnelr 2 /* return now, if we've been called already */ - stwx 1,10,12 /* store a nonzero value in the done flag */ - beq+ 0,.Lsdata /* skip if we don't need to relocate */ - -/* We need to relocate the .got2 pointers. */ - - lwz 3,.Lgot2s(11) /* GOT2 pointers start */ - lwz 4,.Lgot2e(11) /* GOT2 pointers end */ - add 3,12,3 /* adjust pointers */ - add 4,12,4 - bl FUNC_NAME(__eabi_convert) /* convert pointers in .got2 section */ - -/* Fixup the .ctor section for static constructors */ - - lwz 3,.Lctors(11) /* constructors pointers start */ - lwz 4,.Lctore(11) /* constructors pointers end */ - bl FUNC_NAME(__eabi_convert) /* convert constructors */ - -/* Fixup the .dtor section for static destructors */ - - lwz 3,.Ldtors(11) /* destructors pointers start */ - lwz 4,.Ldtore(11) /* destructors pointers end */ - bl FUNC_NAME(__eabi_convert) /* convert destructors */ - -/* Fixup the .gcc_except_table section for G++ exceptions */ - - lwz 3,.Lexcepts(11) /* exception table pointers start */ - lwz 4,.Lexcepte(11) /* exception table pointers end */ - bl FUNC_NAME(__eabi_convert) /* convert exceptions */ - -/* Fixup the addresses in the GOT below _GLOBAL_OFFSET_TABLE_-4 */ - - lwz 3,.Lgots(11) /* GOT table pointers start */ - lwz 4,.Lgotm1(11) /* GOT table pointers below _GLOBAL_OFFSET_TABLE-4 */ - bl FUNC_NAME(__eabi_convert) /* convert lower GOT */ - -/* Fixup the addresses in the GOT above _GLOBAL_OFFSET_TABLE_+12 */ - - lwz 3,.Lgotm2(11) /* GOT table pointers above _GLOBAL_OFFSET_TABLE+12 */ - lwz 4,.Lgote(11) /* GOT table pointers end */ - bl FUNC_NAME(__eabi_convert) /* convert lower GOT */ - -/* Fixup any user initialized pointers now (the compiler drops pointers to */ -/* each of the relocs that it does in the .fixup section). */ - -.Lfix: - lwz 3,.Lfixups(11) /* fixup pointers start */ - lwz 4,.Lfixupe(11) /* fixup pointers end */ - bl FUNC_NAME(__eabi_uconvert) /* convert user initialized pointers */ - -.Lsdata: - mtlr 0 /* restore link register */ -#endif /* _RELOCATABLE */ - -/* Only load up register 13 if there is a .sdata and/or .sbss section */ - lwz 3,.Lsdas(11) /* start of .sdata/.sbss section */ - lwz 4,.Lsdae(11) /* end of .sdata/.sbss section */ - cmpw 1,3,4 /* .sdata/.sbss section non-empty? */ - beq- 1,.Lsda2l /* skip loading r13 */ - - lwz 13,.Lsda(11) /* load r13 with _SDA_BASE_ address */ - -/* Only load up register 2 if there is a .sdata2 and/or .sbss2 section */ - -.Lsda2l: - lwz 3,.Lsda2s(11) /* start of .sdata/.sbss section */ - lwz 4,.Lsda2e(11) /* end of .sdata/.sbss section */ - cmpw 1,3,4 /* .sdata/.sbss section non-empty? */ - beq+ 1,.Ldone /* skip loading r2 */ - - lwz 2,.Lsda2(11) /* load r2 with _SDA2_BASE_ address */ - -/* Done adjusting pointers, return by way of doing the C++ global constructors. */ - -.Ldone: - b FUNC_NAME(__init) /* do any C++ global constructors (which returns to caller) */ -FUNC_END(__eabi) - -/* Special subroutine to convert a bunch of pointers directly. - r0 has original link register - r3 has low pointer to convert - r4 has high pointer to convert - r5 .. r10 are scratch registers - r11 has the address of .LCTOC1 in it. - r12 has the value to add to each pointer - r13 .. r31 are unchanged */ -#ifdef _RELOCATABLE -FUNC_START(__eabi_convert) - cmplw 1,3,4 /* any pointers to convert? */ - subf 5,3,4 /* calculate number of words to convert */ - bclr 4,4 /* return if no pointers */ - - srawi 5,5,2 - addi 3,3,-4 /* start-4 for use with lwzu */ - mtctr 5 - -.Lcvt: - lwzu 6,4(3) /* pointer to convert */ - cmpwi 0,6,0 - beq- .Lcvt2 /* if pointer is null, don't convert */ - - add 6,6,12 /* convert pointer */ - stw 6,0(3) -.Lcvt2: - bdnz+ .Lcvt - blr - -FUNC_END(__eabi_convert) - -/* Special subroutine to convert the pointers the user has initialized. The - compiler has placed the address of the initialized pointer into the .fixup - section. - - r0 has original link register - r3 has low pointer to convert - r4 has high pointer to convert - r5 .. r10 are scratch registers - r11 has the address of .LCTOC1 in it. - r12 has the value to add to each pointer - r13 .. r31 are unchanged */ - -FUNC_START(__eabi_uconvert) - cmplw 1,3,4 /* any pointers to convert? */ - subf 5,3,4 /* calculate number of words to convert */ - bclr 4,4 /* return if no pointers */ - - srawi 5,5,2 - addi 3,3,-4 /* start-4 for use with lwzu */ - mtctr 5 - -.Lucvt: - lwzu 6,4(3) /* next pointer to pointer to convert */ - add 6,6,12 /* adjust pointer */ - lwz 7,0(6) /* get the pointer it points to */ - stw 6,0(3) /* store adjusted pointer */ - add 7,7,12 /* adjust */ - stw 7,0(6) - bdnz+ .Lucvt - blr - -FUNC_END(__eabi_uconvert) -#endif -#endif diff --git a/gcc/config/rs6000/t-aix43 b/gcc/config/rs6000/t-aix43 index ebd898d..97ce70e 100644 --- a/gcc/config/rs6000/t-aix43 +++ b/gcc/config/rs6000/t-aix43 @@ -44,6 +44,3 @@ MULTILIB_MATCHES = mcpu?power=mcpu?power \ mcpu?powerpc=mcpu?604e \ mcpu?powerpc=mcpu?620 \ mcpu?powerpc=mcpu?630 - -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib diff --git a/gcc/config/rs6000/t-aix52 b/gcc/config/rs6000/t-aix52 index 3822b8a..f3bf78d 100644 --- a/gcc/config/rs6000/t-aix52 +++ b/gcc/config/rs6000/t-aix52 @@ -25,6 +25,3 @@ MULTILIB_OPTIONS = pthread maix64 MULTILIB_DIRNAMES = pthread ppc64 MULTILIB_MATCHES = - -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib diff --git a/gcc/config/rs6000/t-darwin b/gcc/config/rs6000/t-darwin deleted file mode 100644 index bedd9e6..0000000 --- a/gcc/config/rs6000/t-darwin +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, -# 2007, 2011 Free Software Foundation, Inc. -# -# This file is part of GCC. -# -# GCC is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GCC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GCC; see the file COPYING3. If not see -# <http://www.gnu.org/licenses/>. - -LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-tramp.asm \ - $(srcdir)/config/darwin-64.c \ - $(srcdir)/config/rs6000/darwin-fpsave.asm \ - $(srcdir)/config/rs6000/darwin-gpsave.asm \ - $(srcdir)/config/rs6000/darwin-world.asm - -LIB2FUNCS_STATIC_EXTRA = \ - $(srcdir)/config/rs6000/darwin-vecsave.asm - -# The .asm files above are designed to run on all processors, even though -# they use AltiVec instructions. -# -Wa is used because -force_cpusubtype_ALL doesn't work with -dynamiclib. -# -mmacosx-version-min=10.4 is used to provide compatibility for code from -# earlier OSX versions. - -TARGET_LIBGCC2_CFLAGS += -Wa,-force_cpusubtype_ALL -mmacosx-version-min=10.4 - -darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-asm.h -darwin-gpsave.o: $(srcdir)/config/rs6000/darwin-asm.h -darwin-tramp.o: $(srcdir)/config/rs6000/darwin-asm.h diff --git a/gcc/config/rs6000/t-darwin64 b/gcc/config/rs6000/t-darwin64 index 4c50b24..b0a04c7 100644 --- a/gcc/config/rs6000/t-darwin64 +++ b/gcc/config/rs6000/t-darwin64 @@ -1,11 +1,2 @@ -LIB2_SIDITI_CONV_FUNCS=yes - -LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-tramp.asm \ - $(srcdir)/config/darwin-64.c \ - $(srcdir)/config/rs6000/darwin-world.asm - MULTILIB_OPTIONS = m32 MULTILIB_DIRNAMES = ppc - -#LIBGCC = stmp-multilib -#INSTALL_LIBGCC = install-multilib diff --git a/gcc/config/rs6000/t-fprules b/gcc/config/rs6000/t-fprules index 42d8fd7..913bbbd 100644 --- a/gcc/config/rs6000/t-fprules +++ b/gcc/config/rs6000/t-fprules @@ -1,4 +1,4 @@ -# Copyright (C) 2002, 2005, 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2002, 2005, 2006, 2008, 2011 Free Software Foundation, Inc. # # This file is part of GCC. # @@ -33,6 +33,3 @@ MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \ MULTILIB_OPTIONS = msoft-float MULTILIB_DIRNAMES = soft-float MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT} - -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 index bd01d31..6420431 100644 --- a/gcc/config/rs6000/t-linux64 +++ b/gcc/config/rs6000/t-linux64 @@ -19,8 +19,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -TARGET_LIBGCC2_CFLAGS += -mno-minimal-toc - # On Debian, Ubuntu and other derivative distributions, the 32bit libraries # are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to # /lib and /usr/lib, while other distributions install libraries into /lib64 diff --git a/gcc/config/rs6000/t-lynx b/gcc/config/rs6000/t-lynx index 8eef223..fdc5b56 100644 --- a/gcc/config/rs6000/t-lynx +++ b/gcc/config/rs6000/t-lynx @@ -16,14 +16,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIB2FUNCS_EXTRA = tramp.S - -tramp.S: $(srcdir)/config/rs6000/tramp.asm - cat $(srcdir)/config/rs6000/tramp.asm > tramp.S - -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib - MULTILIB_OPTIONS += msoft-float MULTILIB_DIRNAMES += soft-float diff --git a/gcc/config/rs6000/t-netbsd b/gcc/config/rs6000/t-netbsd index bde7419..462f0ce 100644 --- a/gcc/config/rs6000/t-netbsd +++ b/gcc/config/rs6000/t-netbsd @@ -18,33 +18,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIB2FUNCS_EXTRA = tramp.S - -LIB2FUNCS_STATIC_EXTRA = crtsavfpr.S crtresfpr.S \ - crtsavgpr.S crtresgpr.S \ - crtresxfpr.S crtresxgpr.S - -tramp.S: $(srcdir)/config/rs6000/tramp.asm - cat $(srcdir)/config/rs6000/tramp.asm > tramp.S - -crtsavfpr.S: $(srcdir)/config/rs6000/crtsavfpr.asm - cat $(srcdir)/config/rs6000/crtsavfpr.asm >crtsavfpr.S - -crtresfpr.S: $(srcdir)/config/rs6000/crtresfpr.asm - cat $(srcdir)/config/rs6000/crtresfpr.asm >crtresfpr.S - -crtsavgpr.S: $(srcdir)/config/rs6000/crtsavgpr.asm - cat $(srcdir)/config/rs6000/crtsavgpr.asm >crtsavgpr.S - -crtresgpr.S: $(srcdir)/config/rs6000/crtresgpr.asm - cat $(srcdir)/config/rs6000/crtresgpr.asm >crtresgpr.S - -crtresxfpr.S: $(srcdir)/config/rs6000/crtresxfpr.asm - cat $(srcdir)/config/rs6000/crtresxfpr.asm >crtresxfpr.S - -crtresxgpr.S: $(srcdir)/config/rs6000/crtresxgpr.asm - cat $(srcdir)/config/rs6000/crtresxgpr.asm >crtresxgpr.S - # Switch synonyms MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \ msoft-float=mcpu?403 \ @@ -61,24 +34,3 @@ MULTILIB_EXTRA_OPTS = fPIC mstrict-align MULTILIB_EXCEPTIONS = MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT} - -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib - -$(T)crtsavfpr$(objext): crtsavfpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavfpr.S -o $(T)crtsavfpr$(objext) - -$(T)crtresfpr$(objext): crtresfpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresfpr.S -o $(T)crtresfpr$(objext) - -$(T)crtsavgpr$(objext): crtsavgpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavgpr.S -o $(T)crtsavgpr$(objext) - -$(T)crtresgpr$(objext): crtresgpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresgpr.S -o $(T)crtresgpr$(objext) - -$(T)crtresxfpr$(objext): crtresxfpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresxfpr.S -o $(T)crtresxfpr$(objext) - -$(T)crtresxgpr$(objext): crtresxgpr.S - $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresxgpr.S -o $(T)crtresxgpr$(objext) diff --git a/gcc/config/rs6000/t-ppccomm b/gcc/config/rs6000/t-ppccomm index 89716bc..81ab7ef 100644 --- a/gcc/config/rs6000/t-ppccomm +++ b/gcc/config/rs6000/t-ppccomm @@ -19,17 +19,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIB2FUNCS_EXTRA += tramp.S - -# These can't end up in shared libgcc -LIB2FUNCS_STATIC_EXTRA = eabi.S - -eabi.S: $(srcdir)/config/rs6000/eabi.asm - cat $(srcdir)/config/rs6000/eabi.asm > eabi.S - -tramp.S: $(srcdir)/config/rs6000/tramp.asm - cat $(srcdir)/config/rs6000/tramp.asm > tramp.S - # Switch synonyms MULTILIB_MATCHES_ENDIAN = mlittle=mlittle-endian mbig=mbig-endian MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi mcall-sysv=mcall-linux mcall-sysv=mcall-netbsd diff --git a/gcc/config/rs6000/t-spe b/gcc/config/rs6000/t-spe index cbbac79..1bed1e3 100644 --- a/gcc/config/rs6000/t-spe +++ b/gcc/config/rs6000/t-spe @@ -18,9 +18,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIBGCC = stmp-multilib -INSTALL_LIBGCC = install-multilib - # What we really want are these variants: # -mcpu=7400 # -mcpu=7400 -maltivec -mabi=altivec diff --git a/gcc/config/rs6000/t-vxworks b/gcc/config/rs6000/t-vxworks index e6c67d7..c0128ed 100644 --- a/gcc/config/rs6000/t-vxworks +++ b/gcc/config/rs6000/t-vxworks @@ -1,6 +1,6 @@ # Multilibs for VxWorks. # -# Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2005, 2006, 2011 Free Software Foundation, Inc. # # This file is part of GCC. # @@ -23,8 +23,3 @@ MULTILIB_OPTIONS = mrtp fPIC msoft-float MULTILIB_DIRNAMES = MULTILIB_MATCHES = fPIC=fpic MULTILIB_EXCEPTIONS = fPIC* - -# Similarily, LIB2FUNCS_EXTRA is set from config/t-vxworks and -# t-ppccomm *adds* to it, but the common contents are useful to us. -# In particular the base trampoline_setup bits are expected to be -# provided there. diff --git a/gcc/config/rs6000/tramp.asm b/gcc/config/rs6000/tramp.asm deleted file mode 100644 index 133b988..0000000 --- a/gcc/config/rs6000/tramp.asm +++ /dev/null @@ -1,107 +0,0 @@ -/* Special support for trampolines - * - * Copyright (C) 1996, 1997, 2000, 2007, 2008, 2009 Free Software Foundation, Inc. - * Written By Michael Meissner - * - * This file is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 3, or (at your option) any - * later version. - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * Under Section 7 of GPL version 3, you are granted additional - * permissions described in the GCC Runtime Library Exception, version - * 3.1, as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License and - * a copy of the GCC Runtime Library Exception along with this program; - * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - * <http://www.gnu.org/licenses/>. - */ - -/* Set up trampolines. */ - - .section ".text" -#include "ppc-asm.h" -#include "config.h" - -#ifndef __powerpc64__ - .type trampoline_initial,@object - .align 2 -trampoline_initial: - mflr r0 - bcl 20,31,1f -.Lfunc = .-trampoline_initial - .long 0 /* will be replaced with function address */ -.Lchain = .-trampoline_initial - .long 0 /* will be replaced with static chain */ -1: mflr r11 - mtlr r0 - lwz r0,0(r11) /* function address */ - lwz r11,4(r11) /* static chain */ - mtctr r0 - bctr - -trampoline_size = .-trampoline_initial - .size trampoline_initial,trampoline_size - - -/* R3 = stack address to store trampoline */ -/* R4 = length of trampoline area */ -/* R5 = function address */ -/* R6 = static chain */ - -FUNC_START(__trampoline_setup) - mflr r0 /* save return address */ - bcl 20,31,.LCF0 /* load up __trampoline_initial into r7 */ -.LCF0: - mflr r11 - addi r7,r11,trampoline_initial-4-.LCF0 /* trampoline address -4 */ - - li r8,trampoline_size /* verify that the trampoline is big enough */ - cmpw cr1,r8,r4 - srwi r4,r4,2 /* # words to move */ - addi r9,r3,-4 /* adjust pointer for lwzu */ - mtctr r4 - blt cr1,.Labort - - mtlr r0 - - /* Copy the instructions to the stack */ -.Lmove: - lwzu r10,4(r7) - stwu r10,4(r9) - bdnz .Lmove - - /* Store correct function and static chain */ - stw r5,.Lfunc(r3) - stw r6,.Lchain(r3) - - /* Now flush both caches */ - mtctr r4 -.Lcache: - icbi 0,r3 - dcbf 0,r3 - addi r3,r3,4 - bdnz .Lcache - - /* Finally synchronize things & return */ - sync - isync - blr - -.Labort: -#if (defined __PIC__ || defined __pic__) && defined HAVE_AS_REL16 - bcl 20,31,1f -1: mflr r30 - addis r30,r30,_GLOBAL_OFFSET_TABLE_-1b@ha - addi r30,r30,_GLOBAL_OFFSET_TABLE_-1b@l -#endif - bl JUMP_TARGET(abort) -FUNC_END(__trampoline_setup) - -#endif |