OSDN Git Service

libgcc/
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Apr 2008 16:10:21 +0000 (16:10 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Apr 2008 16:10:21 +0000 (16:10 +0000)
* config/rs6000/t-ppccomm: Add build rules for new files.
(LIB2ADD_ST): New variable.

gcc/
        * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
        config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
        config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
        from...
        * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
        * config/rs6000/e500crtres32gpr.asm,
config/rs6000/e500crtres64gpr.asm
        config/rs6000/e500crtres64gprctr.asm,
config/rs6000/e500crtrest32gpr.asm
        config/rs6000/e500crtrest64gpr.asm,
config/rs6000/e500crtresx32gpr.asm
        config/rs6000/e500crtresx64gpr.asm,
config/rs6000/e500crtsav32gpr.asm
        config/rs6000/e500crtsav64gpr.asm,
config/rs6000/e500crtsav64gprctr.asm
        config/rs6000/e500crtsavg32gpr.asm,
config/rs6000/e500crtsavg64gpr.asm
        config/rs6000/e500crtsavg64gprctr.asm: New files.
        * config/rs6000/t-ppccomm: Add build rules for new files.
        (LIB2FUNCS_STATIC_EXTRA): Add new files.
        * config/rs6000/t-netbsd: Add build rules for new files.
        (LIB2FUNCS_STATIC_EXTRA): New variable.
        * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
        (CRTSAVRES_DEFAULT_SPEC): Likewise.
        * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134828 138bc75d-0d04-0410-961f-82ee72b054a4

26 files changed:
gcc/ChangeLog
gcc/config/rs6000/crtresfpr.asm [new file with mode: 0644]
gcc/config/rs6000/crtresgpr.asm [new file with mode: 0644]
gcc/config/rs6000/crtresxfpr.asm [new file with mode: 0644]
gcc/config/rs6000/crtresxgpr.asm [new file with mode: 0644]
gcc/config/rs6000/crtsavfpr.asm [new file with mode: 0644]
gcc/config/rs6000/crtsavgpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtres32gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtres64gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtres64gprctr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtrest32gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtrest64gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtresx32gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtresx64gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsav32gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsav64gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsav64gprctr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsavg32gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsavg64gpr.asm [new file with mode: 0644]
gcc/config/rs6000/e500crtsavg64gprctr.asm [new file with mode: 0644]
gcc/config/rs6000/netbsd.h
gcc/config/rs6000/sysv4.h
gcc/config/rs6000/t-netbsd
gcc/config/rs6000/t-ppccomm
libgcc/ChangeLog
libgcc/config/rs6000/t-ppccomm

index c01db47..e02823b 100644 (file)
@@ -1,3 +1,31 @@
+2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
+
+        * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
+        config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
+        config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
+        from...
+        * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
+        * config/rs6000/e500crtres32gpr.asm,
+       config/rs6000/e500crtres64gpr.asm
+        config/rs6000/e500crtres64gprctr.asm,
+       config/rs6000/e500crtrest32gpr.asm
+        config/rs6000/e500crtrest64gpr.asm,
+       config/rs6000/e500crtresx32gpr.asm
+        config/rs6000/e500crtresx64gpr.asm,
+       config/rs6000/e500crtsav32gpr.asm
+        config/rs6000/e500crtsav64gpr.asm,
+       config/rs6000/e500crtsav64gprctr.asm
+        config/rs6000/e500crtsavg32gpr.asm,
+       config/rs6000/e500crtsavg64gpr.asm
+        config/rs6000/e500crtsavg64gprctr.asm: New files.
+        * config/rs6000/t-ppccomm: Add build rules for new files.
+        (LIB2FUNCS_STATIC_EXTRA): Add new files.
+        * config/rs6000/t-netbsd: Add build rules for new files.
+        (LIB2FUNCS_STATIC_EXTRA): New variable.
+        * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
+        (CRTSAVRES_DEFAULT_SPEC): Likewise.
+        * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
+
 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/i386.c (ix86_builtin_type): Add
diff --git a/gcc/config/rs6000/crtresfpr.asm b/gcc/config/rs6000/crtresfpr.asm
new file mode 100644 (file)
index 0000000..aaa4b96
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtresfpr.asm"
+       .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.  */
+
+FUNC_START(_restfpr_14)        lfd     14,-144(11)     /* restore fp registers */
+FUNC_START(_restfpr_15)        lfd     15,-136(11)
+FUNC_START(_restfpr_16)        lfd     16,-128(11)
+FUNC_START(_restfpr_17)        lfd     17,-120(11)
+FUNC_START(_restfpr_18)        lfd     18,-112(11)
+FUNC_START(_restfpr_19)        lfd     19,-104(11)
+FUNC_START(_restfpr_20)        lfd     20,-96(11)
+FUNC_START(_restfpr_21)        lfd     21,-88(11)
+FUNC_START(_restfpr_22)        lfd     22,-80(11)
+FUNC_START(_restfpr_23)        lfd     23,-72(11)
+FUNC_START(_restfpr_24)        lfd     24,-64(11)
+FUNC_START(_restfpr_25)        lfd     25,-56(11)
+FUNC_START(_restfpr_26)        lfd     26,-48(11)
+FUNC_START(_restfpr_27)        lfd     27,-40(11)
+FUNC_START(_restfpr_28)        lfd     28,-32(11)
+FUNC_START(_restfpr_29)        lfd     29,-24(11)
+FUNC_START(_restfpr_30)        lfd     30,-16(11)
+FUNC_START(_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)
+
+#endif
diff --git a/gcc/config/rs6000/crtresgpr.asm b/gcc/config/rs6000/crtresgpr.asm
new file mode 100644 (file)
index 0000000..928341d
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtresgpr.asm"
+       .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.  */
+
+FUNC_START(_restgpr_14)        lwz     14,-72(11)      /* restore gp registers */
+FUNC_START(_restgpr_15)        lwz     15,-68(11)
+FUNC_START(_restgpr_16)        lwz     16,-64(11)
+FUNC_START(_restgpr_17)        lwz     17,-60(11)
+FUNC_START(_restgpr_18)        lwz     18,-56(11)
+FUNC_START(_restgpr_19)        lwz     19,-52(11)
+FUNC_START(_restgpr_20)        lwz     20,-48(11)
+FUNC_START(_restgpr_21)        lwz     21,-44(11)
+FUNC_START(_restgpr_22)        lwz     22,-40(11)
+FUNC_START(_restgpr_23)        lwz     23,-36(11)
+FUNC_START(_restgpr_24)        lwz     24,-32(11)
+FUNC_START(_restgpr_25)        lwz     25,-28(11)
+FUNC_START(_restgpr_26)        lwz     26,-24(11)
+FUNC_START(_restgpr_27)        lwz     27,-20(11)
+FUNC_START(_restgpr_28)        lwz     28,-16(11)
+FUNC_START(_restgpr_29)        lwz     29,-12(11)
+FUNC_START(_restgpr_30)        lwz     30,-8(11)
+FUNC_START(_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)
+
+#endif
diff --git a/gcc/config/rs6000/crtresxfpr.asm b/gcc/config/rs6000/crtresxfpr.asm
new file mode 100644 (file)
index 0000000..2a73486
--- /dev/null
@@ -0,0 +1,95 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtresxfpr.asm"
+       .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 */
+
+FUNC_START(_restfpr_14_x)      lfd     14,-144(11)     /* restore fp registers */
+FUNC_START(_restfpr_15_x)      lfd     15,-136(11)
+FUNC_START(_restfpr_16_x)      lfd     16,-128(11)
+FUNC_START(_restfpr_17_x)      lfd     17,-120(11)
+FUNC_START(_restfpr_18_x)      lfd     18,-112(11)
+FUNC_START(_restfpr_19_x)      lfd     19,-104(11)
+FUNC_START(_restfpr_20_x)      lfd     20,-96(11)
+FUNC_START(_restfpr_21_x)      lfd     21,-88(11)
+FUNC_START(_restfpr_22_x)      lfd     22,-80(11)
+FUNC_START(_restfpr_23_x)      lfd     23,-72(11)
+FUNC_START(_restfpr_24_x)      lfd     24,-64(11)
+FUNC_START(_restfpr_25_x)      lfd     25,-56(11)
+FUNC_START(_restfpr_26_x)      lfd     26,-48(11)
+FUNC_START(_restfpr_27_x)      lfd     27,-40(11)
+FUNC_START(_restfpr_28_x)      lfd     28,-32(11)
+FUNC_START(_restfpr_29_x)      lfd     29,-24(11)
+FUNC_START(_restfpr_30_x)      lfd     30,-16(11)
+FUNC_START(_restfpr_31_x)      lwz     0,4(11)
+                               lfd     31,-8(11)
+                               mtlr    0
+                               mr      1,11
+                               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)
+
+#endif
diff --git a/gcc/config/rs6000/crtresxgpr.asm b/gcc/config/rs6000/crtresxgpr.asm
new file mode 100644 (file)
index 0000000..1bab865
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtresxgpr.asm"
+       .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.  */
+
+FUNC_START(_restgpr_14_x)      lwz     14,-72(11)      /* restore gp registers */
+FUNC_START(_restgpr_15_x)      lwz     15,-68(11)
+FUNC_START(_restgpr_16_x)      lwz     16,-64(11)
+FUNC_START(_restgpr_17_x)      lwz     17,-60(11)
+FUNC_START(_restgpr_18_x)      lwz     18,-56(11)
+FUNC_START(_restgpr_19_x)      lwz     19,-52(11)
+FUNC_START(_restgpr_20_x)      lwz     20,-48(11)
+FUNC_START(_restgpr_21_x)      lwz     21,-44(11)
+FUNC_START(_restgpr_22_x)      lwz     22,-40(11)
+FUNC_START(_restgpr_23_x)      lwz     23,-36(11)
+FUNC_START(_restgpr_24_x)      lwz     24,-32(11)
+FUNC_START(_restgpr_25_x)      lwz     25,-28(11)
+FUNC_START(_restgpr_26_x)      lwz     26,-24(11)
+FUNC_START(_restgpr_27_x)      lwz     27,-20(11)
+FUNC_START(_restgpr_28_x)      lwz     28,-16(11)
+FUNC_START(_restgpr_29_x)      lwz     29,-12(11)
+FUNC_START(_restgpr_30_x)      lwz     30,-8(11)
+FUNC_START(_restgpr_31_x)      lwz     0,4(11)
+                               lwz     31,-4(11)
+                               mtlr    0
+                               mr      1,11
+                               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)
+
+#endif
diff --git a/gcc/config/rs6000/crtsavfpr.asm b/gcc/config/rs6000/crtsavfpr.asm
new file mode 100644 (file)
index 0000000..f3d708f
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtsavfpr.asm"
+       .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.  */
+
+FUNC_START(_savefpr_14)        stfd    14,-144(11)     /* save fp registers */
+FUNC_START(_savefpr_15)        stfd    15,-136(11)
+FUNC_START(_savefpr_16)        stfd    16,-128(11)
+FUNC_START(_savefpr_17)        stfd    17,-120(11)
+FUNC_START(_savefpr_18)        stfd    18,-112(11)
+FUNC_START(_savefpr_19)        stfd    19,-104(11)
+FUNC_START(_savefpr_20)        stfd    20,-96(11)
+FUNC_START(_savefpr_21)        stfd    21,-88(11)
+FUNC_START(_savefpr_22)        stfd    22,-80(11)
+FUNC_START(_savefpr_23)        stfd    23,-72(11)
+FUNC_START(_savefpr_24)        stfd    24,-64(11)
+FUNC_START(_savefpr_25)        stfd    25,-56(11)
+FUNC_START(_savefpr_26)        stfd    26,-48(11)
+FUNC_START(_savefpr_27)        stfd    27,-40(11)
+FUNC_START(_savefpr_28)        stfd    28,-32(11)
+FUNC_START(_savefpr_29)        stfd    29,-24(11)
+FUNC_START(_savefpr_30)        stfd    30,-16(11)
+FUNC_START(_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)
+
+#endif
diff --git a/gcc/config/rs6000/crtsavgpr.asm b/gcc/config/rs6000/crtsavgpr.asm
new file mode 100644 (file)
index 0000000..0e24431
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Special support for eabi and SVR4
+ *
+ *   Copyright (C) 1995, 1996, 1998, 2000, 2001, 2008
+ *   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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+/* Do any initializations needed for the eabi environment */
+
+       .file   "crtsavgpr.asm"
+       .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.  */
+
+FUNC_START(_savegpr_14)        stw     14,-72(11)      /* save gp registers */
+FUNC_START(_savegpr_15)        stw     15,-68(11)
+FUNC_START(_savegpr_16)        stw     16,-64(11)
+FUNC_START(_savegpr_17)        stw     17,-60(11)
+FUNC_START(_savegpr_18)        stw     18,-56(11)
+FUNC_START(_savegpr_19)        stw     19,-52(11)
+FUNC_START(_savegpr_20)        stw     20,-48(11)
+FUNC_START(_savegpr_21)        stw     21,-44(11)
+FUNC_START(_savegpr_22)        stw     22,-40(11)
+FUNC_START(_savegpr_23)        stw     23,-36(11)
+FUNC_START(_savegpr_24)        stw     24,-32(11)
+FUNC_START(_savegpr_25)        stw     25,-28(11)
+FUNC_START(_savegpr_26)        stw     26,-24(11)
+FUNC_START(_savegpr_27)        stw     27,-20(11)
+FUNC_START(_savegpr_28)        stw     28,-16(11)
+FUNC_START(_savegpr_29)        stw     29,-12(11)
+FUNC_START(_savegpr_30)        stw     30,-8(11)
+FUNC_START(_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)
+
+#endif
diff --git a/gcc/config/rs6000/e500crtres32gpr.asm b/gcc/config/rs6000/e500crtres32gpr.asm
new file mode 100644 (file)
index 0000000..bd5f825
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtres32gpr.asm"
+       .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.  */
+
+FUNC_START(_rest32gpr_14)      lwz 14,-72(11)
+FUNC_START(_rest32gpr_15)      lwz 15,-68(11)
+FUNC_START(_rest32gpr_16)      lwz 16,-64(11)
+FUNC_START(_rest32gpr_17)      lwz 17,-60(11)
+FUNC_START(_rest32gpr_18)      lwz 18,-56(11)
+FUNC_START(_rest32gpr_19)      lwz 19,-52(11)
+FUNC_START(_rest32gpr_20)      lwz 20,-48(11)
+FUNC_START(_rest32gpr_21)      lwz 21,-44(11)
+FUNC_START(_rest32gpr_22)      lwz 22,-40(11)
+FUNC_START(_rest32gpr_23)      lwz 23,-36(11)
+FUNC_START(_rest32gpr_24)      lwz 24,-32(11)
+FUNC_START(_rest32gpr_25)      lwz 25,-28(11)
+FUNC_START(_rest32gpr_26)      lwz 26,-24(11)
+FUNC_START(_rest32gpr_27)      lwz 27,-20(11)
+FUNC_START(_rest32gpr_28)      lwz 28,-16(11)
+FUNC_START(_rest32gpr_29)      lwz 29,-12(11)
+FUNC_START(_rest32gpr_30)      lwz 30,-8(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..73ab506
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtres64gpr.asm"
+       .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.  */
+
+FUNC_START(_rest64gpr_14)      evldd 14,0(11)
+FUNC_START(_rest64gpr_15)      evldd 15,8(11)
+FUNC_START(_rest64gpr_16)      evldd 16,16(11)
+FUNC_START(_rest64gpr_17)      evldd 17,24(11)
+FUNC_START(_rest64gpr_18)      evldd 18,32(11)
+FUNC_START(_rest64gpr_19)      evldd 19,40(11)
+FUNC_START(_rest64gpr_20)      evldd 20,48(11)
+FUNC_START(_rest64gpr_21)      evldd 21,56(11)
+FUNC_START(_rest64gpr_22)      evldd 22,64(11)
+FUNC_START(_rest64gpr_23)      evldd 23,72(11)
+FUNC_START(_rest64gpr_24)      evldd 24,80(11)
+FUNC_START(_rest64gpr_25)      evldd 25,88(11)
+FUNC_START(_rest64gpr_26)      evldd 26,96(11)
+FUNC_START(_rest64gpr_27)      evldd 27,104(11)
+FUNC_START(_rest64gpr_28)      evldd 28,112(11)
+FUNC_START(_rest64gpr_29)      evldd 29,120(11)
+FUNC_START(_rest64gpr_30)      evldd 30,128(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..93b5963
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtres64gprctr.asm"
+       .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.  */
+
+FUNC_START(_rest64gpr_ctr_14)  evldd 14,0(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_15)  evldd 15,8(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_16)  evldd 16,16(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_17)  evldd 17,24(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_18)  evldd 18,32(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_19)  evldd 19,40(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_20)  evldd 20,48(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_21)  evldd 21,56(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_22)  evldd 22,64(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_23)  evldd 23,72(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_24)  evldd 24,80(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_25)  evldd 25,88(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_26)  evldd 26,96(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_27)  evldd 27,104(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_28)  evldd 28,112(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_29)  evldd 29,120(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_30)  evldd 30,128(11)
+                               bdz _rest64_gpr_ctr_done
+FUNC_START(_rest64gpr_ctr_31)  evldd 31,136(11)
+_rest64gpr_ctr_done:           blr
+
+#endif
diff --git a/gcc/config/rs6000/e500crtrest32gpr.asm b/gcc/config/rs6000/e500crtrest32gpr.asm
new file mode 100644 (file)
index 0000000..42f81d6
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtrest32gpr.asm"
+       .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.  */
+
+FUNC_START(_rest32gpr_14_t)    lwz 14,-72(11)
+FUNC_START(_rest32gpr_15_t)    lwz 15,-68(11)
+FUNC_START(_rest32gpr_16_t)    lwz 16,-64(11)
+FUNC_START(_rest32gpr_17_t)    lwz 17,-60(11)
+FUNC_START(_rest32gpr_18_t)    lwz 18,-56(11)
+FUNC_START(_rest32gpr_19_t)    lwz 19,-52(11)
+FUNC_START(_rest32gpr_20_t)    lwz 20,-48(11)
+FUNC_START(_rest32gpr_21_t)    lwz 21,-44(11)
+FUNC_START(_rest32gpr_22_t)    lwz 22,-40(11)
+FUNC_START(_rest32gpr_23_t)    lwz 23,-36(11)
+FUNC_START(_rest32gpr_24_t)    lwz 24,-32(11)
+FUNC_START(_rest32gpr_25_t)    lwz 25,-28(11)
+FUNC_START(_rest32gpr_26_t)    lwz 26,-24(11)
+FUNC_START(_rest32gpr_27_t)    lwz 27,-20(11)
+FUNC_START(_rest32gpr_28_t)    lwz 28,-16(11)
+FUNC_START(_rest32gpr_29_t)    lwz 29,-12(11)
+FUNC_START(_rest32gpr_30_t)    lwz 30,-8(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..cf7092c
--- /dev/null
@@ -0,0 +1,85 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtrest64gpr.asm"
+       .section ".text"
+       #include "ppc-asm.h"
+
+#ifdef __SPE__
+
+/* "Tail" versions that perform a tail call.  */
+
+FUNC_START(_rest64gpr_14_t)    evldd 14,0(11)
+FUNC_START(_rest64gpr_15_t)    evldd 15,8(11)
+FUNC_START(_rest64gpr_16_t)    evldd 16,16(11)
+FUNC_START(_rest64gpr_17_t)    evldd 17,24(11)
+FUNC_START(_rest64gpr_18_t)    evldd 18,32(11)
+FUNC_START(_rest64gpr_19_t)    evldd 19,40(11)
+FUNC_START(_rest64gpr_20_t)    evldd 20,48(11)
+FUNC_START(_rest64gpr_21_t)    evldd 21,56(11)
+FUNC_START(_rest64gpr_22_t)    evldd 22,64(11)
+FUNC_START(_rest64gpr_23_t)    evldd 23,72(11)
+FUNC_START(_rest64gpr_24_t)    evldd 24,80(11)
+FUNC_START(_rest64gpr_25_t)    evldd 25,88(11)
+FUNC_START(_rest64gpr_26_t)    evldd 26,96(11)
+FUNC_START(_rest64gpr_27_t)    evldd 27,104(11)
+FUNC_START(_rest64gpr_28_t)    evldd 28,112(11)
+FUNC_START(_rest64gpr_29_t)    evldd 29,120(11)
+FUNC_START(_rest64gpr_30_t)    evldd 30,128(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..9fba08b
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtresx32gpr.asm"
+       .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.  */
+
+FUNC_START(_rest32gpr_14_x)    lwz 14,-72(11)
+FUNC_START(_rest32gpr_15_x)    lwz 15,-68(11)
+FUNC_START(_rest32gpr_16_x)    lwz 16,-64(11)
+FUNC_START(_rest32gpr_17_x)    lwz 17,-60(11)
+FUNC_START(_rest32gpr_18_x)    lwz 18,-56(11)
+FUNC_START(_rest32gpr_19_x)    lwz 19,-52(11)
+FUNC_START(_rest32gpr_20_x)    lwz 20,-48(11)
+FUNC_START(_rest32gpr_21_x)    lwz 21,-44(11)
+FUNC_START(_rest32gpr_22_x)    lwz 22,-40(11)
+FUNC_START(_rest32gpr_23_x)    lwz 23,-36(11)
+FUNC_START(_rest32gpr_24_x)    lwz 24,-32(11)
+FUNC_START(_rest32gpr_25_x)    lwz 25,-28(11)
+FUNC_START(_rest32gpr_26_x)    lwz 26,-24(11)
+FUNC_START(_rest32gpr_27_x)    lwz 27,-20(11)
+FUNC_START(_rest32gpr_28_x)    lwz 28,-16(11)
+FUNC_START(_rest32gpr_29_x)    lwz 29,-12(11)
+FUNC_START(_rest32gpr_30_x)    lwz 30,-8(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..e6a24e9
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtresx64gpr.asm"
+       .section ".text"
+       #include "ppc-asm.h"
+
+#ifdef __SPE__
+
+/* "Exit" versions that return to their caller's caller.  */
+
+FUNC_START(_rest64gpr_14_x)    evldd 14,0(11)
+FUNC_START(_rest64gpr_15_x)    evldd 15,8(11)
+FUNC_START(_rest64gpr_16_x)    evldd 16,16(11)
+FUNC_START(_rest64gpr_17_x)    evldd 17,24(11)
+FUNC_START(_rest64gpr_18_x)    evldd 18,32(11)
+FUNC_START(_rest64gpr_19_x)    evldd 19,40(11)
+FUNC_START(_rest64gpr_20_x)    evldd 20,48(11)
+FUNC_START(_rest64gpr_21_x)    evldd 21,56(11)
+FUNC_START(_rest64gpr_22_x)    evldd 22,64(11)
+FUNC_START(_rest64gpr_23_x)    evldd 23,72(11)
+FUNC_START(_rest64gpr_24_x)    evldd 24,80(11)
+FUNC_START(_rest64gpr_25_x)    evldd 25,88(11)
+FUNC_START(_rest64gpr_26_x)    evldd 26,96(11)
+FUNC_START(_rest64gpr_27_x)    evldd 27,104(11)
+FUNC_START(_rest64gpr_28_x)    evldd 28,112(11)
+FUNC_START(_rest64gpr_29_x)    evldd 29,120(11)
+FUNC_START(_rest64gpr_30_x)    evldd 30,128(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..6cf9795
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsav32gpr.asm"
+       .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.  */
+
+FUNC_START(_save32gpr_14)      stw 14,-72(11)
+FUNC_START(_save32gpr_15)      stw 15,-68(11)
+FUNC_START(_save32gpr_16)      stw 16,-64(11)
+FUNC_START(_save32gpr_17)      stw 17,-60(11)
+FUNC_START(_save32gpr_18)      stw 18,-56(11)
+FUNC_START(_save32gpr_19)      stw 19,-52(11)
+FUNC_START(_save32gpr_20)      stw 20,-48(11)
+FUNC_START(_save32gpr_21)      stw 21,-44(11)
+FUNC_START(_save32gpr_22)      stw 22,-40(11)
+FUNC_START(_save32gpr_23)      stw 23,-36(11)
+FUNC_START(_save32gpr_24)      stw 24,-32(11)
+FUNC_START(_save32gpr_25)      stw 25,-28(11)
+FUNC_START(_save32gpr_26)      stw 26,-24(11)
+FUNC_START(_save32gpr_27)      stw 27,-20(11)
+FUNC_START(_save32gpr_28)      stw 28,-16(11)
+FUNC_START(_save32gpr_29)      stw 29,-12(11)
+FUNC_START(_save32gpr_30)      stw 30,-8(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..6a2b0fa
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsav64gpr.asm"
+       .section ".text"
+       #include "ppc-asm.h"
+
+#ifdef __SPE__
+
+/* Routines for saving 64-bit integer registers, called by the compiler.  */
+
+FUNC_START(_save64gpr_14)      evstdd 14,0(11)
+FUNC_START(_save64gpr_15)      evstdd 15,8(11)
+FUNC_START(_save64gpr_16)      evstdd 16,16(11)
+FUNC_START(_save64gpr_17)      evstdd 17,24(11)
+FUNC_START(_save64gpr_18)      evstdd 18,32(11)
+FUNC_START(_save64gpr_19)      evstdd 19,40(11)
+FUNC_START(_save64gpr_20)      evstdd 20,48(11)
+FUNC_START(_save64gpr_21)      evstdd 21,56(11)
+FUNC_START(_save64gpr_22)      evstdd 22,64(11)
+FUNC_START(_save64gpr_23)      evstdd 23,72(11)
+FUNC_START(_save64gpr_24)      evstdd 24,80(11)
+FUNC_START(_save64gpr_25)      evstdd 25,88(11)
+FUNC_START(_save64gpr_26)      evstdd 26,96(11)
+FUNC_START(_save64gpr_27)      evstdd 27,104(11)
+FUNC_START(_save64gpr_28)      evstdd 28,112(11)
+FUNC_START(_save64gpr_29)      evstdd 29,120(11)
+FUNC_START(_save64gpr_30)      evstdd 30,128(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..1261bb0
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsav64gprctr.asm"
+       .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.  */
+
+FUNC_START(_save64gpr_ctr_14)  evstdd 14,0(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_15)  evstdd 15,8(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_16)  evstdd 16,16(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_17)  evstdd 17,24(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_18)  evstdd 18,32(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_19)  evstdd 19,40(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_20)  evstdd 20,48(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_21)  evstdd 21,56(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_22)  evstdd 22,64(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_23)  evstdd 23,72(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_24)  evstdd 24,80(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_25)  evstdd 25,88(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_26)  evstdd 26,96(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_27)  evstdd 27,104(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_28)  evstdd 28,112(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_29)  evstdd 29,120(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_save64gpr_ctr_30)  evstdd 30,128(11)
+                               bdz _save64_gpr_ctr_done
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..d648817
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsavg32gpr.asm"
+       .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.  */
+
+FUNC_START(_save32gpr_14_g)    stw 14,-72(11)
+FUNC_START(_save32gpr_15_g)    stw 15,-68(11)
+FUNC_START(_save32gpr_16_g)    stw 16,-64(11)
+FUNC_START(_save32gpr_17_g)    stw 17,-60(11)
+FUNC_START(_save32gpr_18_g)    stw 18,-56(11)
+FUNC_START(_save32gpr_19_g)    stw 19,-52(11)
+FUNC_START(_save32gpr_20_g)    stw 20,-48(11)
+FUNC_START(_save32gpr_21_g)    stw 21,-44(11)
+FUNC_START(_save32gpr_22_g)    stw 22,-40(11)
+FUNC_START(_save32gpr_23_g)    stw 23,-36(11)
+FUNC_START(_save32gpr_24_g)    stw 24,-32(11)
+FUNC_START(_save32gpr_25_g)    stw 25,-28(11)
+FUNC_START(_save32gpr_26_g)    stw 26,-24(11)
+FUNC_START(_save32gpr_27_g)    stw 27,-20(11)
+FUNC_START(_save32gpr_28_g)    stw 28,-16(11)
+FUNC_START(_save32gpr_29_g)    stw 29,-12(11)
+FUNC_START(_save32gpr_30_g)    stw 30,-8(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..7a60a84
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsavg64gpr.asm"
+       .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.  */
+
+FUNC_START(_save64gpr_14_g)    evstdd 14,0(11)
+FUNC_START(_save64gpr_15_g)    evstdd 15,8(11)
+FUNC_START(_save64gpr_16_g)    evstdd 16,16(11)
+FUNC_START(_save64gpr_17_g)    evstdd 17,24(11)
+FUNC_START(_save64gpr_18_g)    evstdd 18,32(11)
+FUNC_START(_save64gpr_19_g)    evstdd 19,40(11)
+FUNC_START(_save64gpr_20_g)    evstdd 20,48(11)
+FUNC_START(_save64gpr_21_g)    evstdd 21,56(11)
+FUNC_START(_save64gpr_22_g)    evstdd 22,64(11)
+FUNC_START(_save64gpr_23_g)    evstdd 23,72(11)
+FUNC_START(_save64gpr_24_g)    evstdd 24,80(11)
+FUNC_START(_save64gpr_25_g)    evstdd 25,88(11)
+FUNC_START(_save64gpr_26_g)    evstdd 26,96(11)
+FUNC_START(_save64gpr_27_g)    evstdd 27,104(11)
+FUNC_START(_save64gpr_28_g)    evstdd 28,112(11)
+FUNC_START(_save64gpr_29_g)    evstdd 29,120(11)
+FUNC_START(_save64gpr_30_g)    evstdd 30,128(11)
+FUNC_START(_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
new file mode 100644 (file)
index 0000000..1d978ec
--- /dev/null
@@ -0,0 +1,101 @@
+/*
+ * Special support for e500 eabi and SVR4
+ *
+ *   Copyright (C) 2008 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 2, or (at your option) any
+ * later version.
+ * 
+ * In addition to the permissions in the GNU General Public License, the
+ * Free Software Foundation gives you unlimited permission to link the
+ * compiled version of this file with other programs, and to distribute
+ * those programs without any restriction coming from the use of this
+ * file.  (The General Public License restrictions do apply in other
+ * respects; for example, they cover modification of the file, and
+ * distribution when not linked into another program.)
+ * 
+ * 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.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING.  If not, write to
+ * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ * 
+ *    As a special exception, if you link this library with files
+ *    compiled with GCC to produce an executable, this does not cause
+ *    the resulting executable to be covered by the GNU General Public License.
+ *    This exception does not however invalidate any other reasons why
+ *    the executable file might be covered by the GNU General Public License.
+ */ 
+
+       .file   "e500crtsavg64gprctr.asm"
+       .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.  */
+
+FUNC_START(_save64gpr_ctr_14_g)        evstdd 14,0(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_15_g)        evstdd 15,8(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_16_g)        evstdd 16,16(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_17_g)        evstdd 17,24(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_18_g)        evstdd 18,32(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_19_g)        evstdd 19,40(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_20_g)        evstdd 20,48(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_21_g)        evstdd 21,56(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_22_g)        evstdd 22,64(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_23_g)        evstdd 23,72(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_24_g)        evstdd 24,80(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_25_g)        evstdd 25,88(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_26_g)        evstdd 26,96(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_27_g)        evstdd 27,104(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_28_g)        evstdd 28,112(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_29_g)        evstdd 29,120(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_save64gpr_ctr_30_g)        evstdd 30,128(11)
+                               bdz _save64_gpr_ctr_g_done
+FUNC_START(_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
index 088d09b..0fdb4b5 100644 (file)
@@ -75,8 +75,7 @@
 #define STARTFILE_SPEC NETBSD_STARTFILE_SPEC
 
 #undef  ENDFILE_SPEC
-#define ENDFILE_SPEC \
-  "crtsavres%O%s %(netbsd_endfile_spec)"
+#define ENDFILE_SPEC "%(netbsd_endfile_spec)"
 
 #undef  LIB_SPEC
 #define LIB_SPEC NETBSD_LIB_SPEC
index 6e04bee..12abf4d 100644 (file)
@@ -777,19 +777,19 @@ extern int fixuplabelno;
 /* Override svr4.h definition.  */
 #undef ENDFILE_SPEC
 #define        ENDFILE_SPEC "\
-%{mads         : crtsavres.o%s        %(endfile_ads)         ; \
-  myellowknife : crtsavres.o%s        %(endfile_yellowknife) ; \
-  mmvme        : crtsavres.o%s        %(endfile_mvme)        ; \
-  msim         : crtsavres.o%s        %(endfile_sim)         ; \
+%{mads         : %(endfile_ads)         ; \
+  myellowknife : %(endfile_yellowknife) ; \
+  mmvme        : %(endfile_mvme)        ; \
+  msim         : %(endfile_sim)         ; \
   mwindiss     :                      %(endfile_windiss)     ; \
-  mcall-freebsd: crtsavres.o%s        %(endfile_freebsd)     ; \
-  mcall-linux  : crtsavres.o%s        %(endfile_linux)       ; \
-  mcall-gnu    : crtsavres.o%s        %(endfile_gnu)         ; \
-  mcall-netbsd : crtsavres.o%s        %(endfile_netbsd)      ; \
-  mcall-openbsd: crtsavres.o%s        %(endfile_openbsd)     ; \
+  mcall-freebsd: %(endfile_freebsd)     ; \
+  mcall-linux  : %(endfile_linux)       ; \
+  mcall-gnu    : %(endfile_gnu)         ; \
+  mcall-netbsd : %(endfile_netbsd)      ; \
+  mcall-openbsd: %(endfile_openbsd)     ; \
                : %(crtsavres_default) %(endfile_default)     }"
 
-#define CRTSAVRES_DEFAULT_SPEC "crtsavres.o%s"
+#define CRTSAVRES_DEFAULT_SPEC ""
 
 #define        ENDFILE_DEFAULT_SPEC "crtend.o%s ecrtn.o%s"
 
index 0cb08e7..135748d 100644 (file)
@@ -2,13 +2,30 @@
 
 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
 
-crtsavres.S: $(srcdir)/config/rs6000/crtsavres.asm
-       cat $(srcdir)/config/rs6000/crtsavres.asm >crtsavres.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
 
-EXTRA_PARTS += crtsavres$(objext)
+crtresxgpr.S: $(srcdir)/config/rs6000/crtresxgpr.asm
+       cat $(srcdir)/config/rs6000/crtresxgpr.asm >crtresxgpr.S
 
 # It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
 CRTSTUFF_T_CFLAGS += -msdata=none
@@ -34,9 +51,22 @@ MULTILIB_MATCHES     = ${MULTILIB_MATCHES_FLOAT}
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib
 EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \
-  crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \
-  crtsavres$(objext)
+  crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext)
+
+$(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)crtsavres$(objext): crtsavres.S
-       $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
-         -c crtsavres.S -o $(T)crtsavres$(objext)
+$(T)crtresxgpr$(objext): crtresxgpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtresxgpr.S -o $(T)crtresxgpr$(objext)
index c7529d7..8fc3e71 100644 (file)
@@ -2,8 +2,24 @@
 
 LIB2FUNCS_EXTRA += tramp.S $(srcdir)/config/rs6000/darwin-ldouble.c
 
-# This one can't end up in shared libgcc
-LIB2FUNCS_STATIC_EXTRA = eabi.S
+# These can't end up in shared libgcc
+LIB2FUNCS_STATIC_EXTRA = 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
 
 eabi.S: $(srcdir)/config/rs6000/eabi.asm
        cat $(srcdir)/config/rs6000/eabi.asm > eabi.S
@@ -18,8 +34,7 @@ MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi
 EXTRA_MULTILIB_PARTS = crtbegin$(objext) crtend$(objext) \
   crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \
   ecrti$(objext) ecrtn$(objext) \
-  ncrti$(objext) ncrtn$(objext) \
-  crtsavres$(objext)
+  ncrti$(objext) ncrtn$(objext)
 
 # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and
 # end labels to all of the special sections used when we link using gcc.
@@ -37,8 +52,62 @@ ncrti.S: $(srcdir)/config/rs6000/sol-ci.asm
 ncrtn.S: $(srcdir)/config/rs6000/sol-cn.asm
        cat $(srcdir)/config/rs6000/sol-cn.asm >ncrtn.S
 
-crtsavres.S: $(srcdir)/config/rs6000/crtsavres.asm
-       cat $(srcdir)/config/rs6000/crtsavres.asm >crtsavres.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
+
+e500crtres32gpr.S: $(srcdir)/config/rs6000/e500crtres32gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtres32gpr.asm >e500crtres32gpr.S
+
+e500crtres64gpr.S: $(srcdir)/config/rs6000/e500crtres64gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtres64gpr.asm >e500crtres64gpr.S
+
+e500crtres64gprctr.S: $(srcdir)/config/rs6000/e500crtres64gprctr.asm
+       cat $(srcdir)/config/rs6000/e500crtres64gprctr.asm >e500crtres64gprctr.S
+
+e500crtrest32gpr.S: $(srcdir)/config/rs6000/e500crtrest32gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtrest32gpr.asm >e500crtrest32gpr.S
+
+e500crtrest64gpr.S: $(srcdir)/config/rs6000/e500crtrest64gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtrest64gpr.asm >e500crtrest64gpr.S
+
+e500crtresx32gpr.S: $(srcdir)/config/rs6000/e500crtresx32gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtresx32gpr.asm >e500crtresx32gpr.S
+
+e500crtresx64gpr.S: $(srcdir)/config/rs6000/e500crtresx64gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtresx64gpr.asm >e500crtresx64gpr.S
+
+e500crtsav32gpr.S: $(srcdir)/config/rs6000/e500crtsav32gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtsav32gpr.asm >e500crtsav32gpr.S
+
+e500crtsav64gpr.S: $(srcdir)/config/rs6000/e500crtsav64gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtsav64gpr.asm >e500crtsav64gpr.S
+
+e500crtsav64gprctr.S: $(srcdir)/config/rs6000/e500crtsav64gprctr.asm
+       cat $(srcdir)/config/rs6000/e500crtsav64gprctr.asm >e500crtsav64gprctr.S
+
+e500crtsavg32gpr.S: $(srcdir)/config/rs6000/e500crtsavg32gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtsavg32gpr.asm >e500crtsavg32gpr.S
+
+e500crtsavg64gpr.S: $(srcdir)/config/rs6000/e500crtsavg64gpr.asm
+       cat $(srcdir)/config/rs6000/e500crtsavg64gpr.asm >e500crtsavg64gpr.S
+
+e500crtsavg64gprctr.S: $(srcdir)/config/rs6000/e500crtsavg64gprctr.asm
+       cat $(srcdir)/config/rs6000/e500crtsavg64gprctr.asm >e500crtsavg64gprctr.S
 
 # Build multiple copies of ?crt{i,n}.o, one for each target switch.
 $(T)ecrti$(objext): ecrti.S
@@ -53,8 +122,62 @@ $(T)ncrti$(objext): ncrti.S
 $(T)ncrtn$(objext): ncrtn.S
        $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ncrtn.S -o $(T)ncrtn$(objext)
 
-$(T)crtsavres$(objext): crtsavres.S
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavres.S -o $(T)crtsavres$(objext)
+$(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)
+
+$(T)e500crtres32gpr$(objext): e500crtres32gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtres32gpr.S -o $(T)e500crtres32gpr$(objext)
+
+$(T)e500crtres64gpr$(objext): e500crtres64gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtres64gpr.S -o $(T)e500crtres64gpr$(objext)
+
+$(T)e500crtres64gprctr$(objext): e500crtres64gprctr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtres64gprctr.S -o $(T)e500crtres64gprctr$(objext)
+
+$(T)e500crtrest32gpr$(objext): e500crtrest32gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtrest32gpr.S -o $(T)e500crtrest32gpr$(objext)
+
+$(T)e500crtrest64gpr$(objext): e500crtrest64gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtrest64gpr.S -o $(T)e500crtrest64gpr$(objext)
+
+$(T)e500crtresx32gpr$(objext): e500crtresx32gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtresx32gpr.S -o $(T)e500crtresx32gpr$(objext)
+
+$(T)e500crtresx64gpr$(objext): e500crtresx64gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtresx64gpr.S -o $(T)e500crtresx64gpr$(objext)
+
+$(T)e500crtsav32gpr$(objext): e500crtsav32gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsav32gpr.S -o $(T)e500crtsav32gpr$(objext)
+
+$(T)e500crtsav64gpr$(objext): e500crtsav64gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsav64gpr.S -o $(T)e500crtsav64gpr$(objext)
+
+$(T)e500crtsav64gprctr$(objext): e500crtsav64gprctr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsav64gprctr.S -o $(T)e500crtsav64gprctr$(objext)
+
+$(T)e500crtsavg32gpr$(objext): e500crtsavg32gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsavg32gpr.S -o $(T)e500crtsavg32gpr$(objext)
+
+$(T)e500crtsavg64gpr$(objext): e500crtsavg64gpr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsavg64gpr.S -o $(T)e500crtsavg64gpr$(objext)
+
+$(T)e500crtsavg64gprctr$(objext): e500crtsavg64gprctr.S
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c e500crtsavg64gprctr.S -o $(T)e500crtsavg64gprctr$(objext)
 
 # It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
 CRTSTUFF_T_CFLAGS = -msdata=none
index ad0bf65..2dec005 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * config/rs6000/t-ppccomm: Add build rules for new files.
+       (LIB2ADD_ST): New variable.
+
 2008-04-07  Andy Hutchinson  <hutchinsonandy@aim.com>
 
        PR target/34210
index d883682..0558d15 100644 (file)
@@ -1,5 +1,21 @@
-EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) \
-  crtsavres$(objext)
+LIB2ADD_ST += 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
+
+EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext)
 
 # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and
 # end labels to all of the special sections used when we link using gcc.
@@ -17,8 +33,62 @@ ncrti.S: $(gcc_srcdir)/config/rs6000/sol-ci.asm
 ncrtn.S: $(gcc_srcdir)/config/rs6000/sol-cn.asm
        cat $(gcc_srcdir)/config/rs6000/sol-cn.asm >ncrtn.S
 
-crtsavres.S: $(gcc_srcdir)/config/rs6000/crtsavres.asm
-       cat $(gcc_srcdir)/config/rs6000/crtsavres.asm >crtsavres.S
+crtsavfpr.S: $(gcc_srcdir)/config/rs6000/crtsavfpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtsavfpr.asm >crtsavfpr.S
+
+crtresfpr.S: $(gcc_srcdir)/config/rs6000/crtresfpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtresfpr.asm >crtresfpr.S
+
+crtsavgpr.S: $(gcc_srcdir)/config/rs6000/crtsavgpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtsavgpr.asm >crtsavgpr.S
+
+crtresgpr.S: $(gcc_srcdir)/config/rs6000/crtresgpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtresgpr.asm >crtresgpr.S
+
+crtresxfpr.S: $(gcc_srcdir)/config/rs6000/crtresxfpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtresxfpr.asm >crtresxfpr.S
+
+crtresxgpr.S: $(gcc_srcdir)/config/rs6000/crtresxgpr.asm
+       cat $(gcc_srcdir)/config/rs6000/crtresxgpr.asm >crtresxgpr.S
+
+e500crtres32gpr.S: $(gcc_srcdir)/config/rs6000/e500crtres32gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtres32gpr.asm >e500crtres32gpr.S
+
+e500crtres64gpr.S: $(gcc_srcdir)/config/rs6000/e500crtres64gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtres64gpr.asm >e500crtres64gpr.S
+
+e500crtres64gprctr.S: $(gcc_srcdir)/config/rs6000/e500crtres64gprctr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtres64gprctr.asm >e500crtres64gprctr.S
+
+e500crtrest32gpr.S: $(gcc_srcdir)/config/rs6000/e500crtrest32gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtrest32gpr.asm >e500crtrest32gpr.S
+
+e500crtrest64gpr.S: $(gcc_srcdir)/config/rs6000/e500crtrest64gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtrest64gpr.asm >e500crtrest64gpr.S
+
+e500crtresx32gpr.S: $(gcc_srcdir)/config/rs6000/e500crtresx32gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtresx32gpr.asm >e500crtresx32gpr.S
+
+e500crtresx64gpr.S: $(gcc_srcdir)/config/rs6000/e500crtresx64gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtresx64gpr.asm >e500crtresx64gpr.S
+
+e500crtsav32gpr.S: $(gcc_srcdir)/config/rs6000/e500crtsav32gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsav32gpr.asm >e500crtsav32gpr.S
+
+e500crtsav64gpr.S: $(gcc_srcdir)/config/rs6000/e500crtsav64gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsav64gpr.asm >e500crtsav64gpr.S
+
+e500crtsav64gprctr.S: $(gcc_srcdir)/config/rs6000/e500crtsav64gprctr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsav64gprctr.asm >e500crtsav64gprctr.S
+
+e500crtsavg32gpr.S: $(gcc_srcdir)/config/rs6000/e500crtsavg32gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsavg32gpr.asm >e500crtsavg32gpr.S
+
+e500crtsavg64gpr.S: $(gcc_srcdir)/config/rs6000/e500crtsavg64gpr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsavg64gpr.asm >e500crtsavg64gpr.S
+
+e500crtsavg64gprctr.S: $(gcc_srcdir)/config/rs6000/e500crtsavg64gprctr.asm
+       cat $(gcc_srcdir)/config/rs6000/e500crtsavg64gprctr.asm >e500crtsavg64gprctr.S
 
 ecrti$(objext): ecrti.S
        $(crt_compile) -c ecrti.S
@@ -34,3 +104,60 @@ ncrtn$(objext): ncrtn.S
 
 crtsavres$(objext): crtsavres.S
        $(crt_compile) -c crtsavres.S
+
+crtsavfpr$(objext): crtsavfpr.S
+       $(crt_compile) -c crtsavfpr.S
+
+crtresfpr$(objext): crtresfpr.S
+       $(crt_compile) -c crtresfpr.S
+
+crtsavgpr$(objext): crtsavgpr.S
+       $(crt_compile) -c crtsavgpr.S
+
+crtresgpr$(objext): crtresgpr.S
+       $(crt_compile) -c crtresgpr.S
+
+crtresxfpr$(objext): crtresxfpr.S
+       $(crt_compile) -c crtresxfpr.S
+
+crtresxgpr$(objext): crtresxgpr.S
+       $(crt_compile) -c crtresxgpr.S
+
+e500crtres32gpr$(objext): e500crtres32gpr.S
+       $(crt_compile) -c e500crtres32gpr.S
+
+e500crtres64gpr$(objext): e500crtres64gpr.S
+       $(crt_compile) -c e500crtres64gpr.S
+
+e500crtres64gprctr$(objext): e500crtres64gprctr.S
+       $(crt_compile) -c e500crtres64gprctr.S
+
+e500crtrest32gpr$(objext): e500crtrest32gpr.S
+       $(crt_compile) -c e500crtrest32gpr.S
+
+e500crtrest64gpr$(objext): e500crtrest64gpr.S
+       $(crt_compile) -c e500crtrest64gpr.S
+
+e500crtresx32gpr$(objext): e500crtresx32gpr.S
+       $(crt_compile) -c e500crtresx32gpr.S
+
+e500crtresx64gpr$(objext): e500crtresx64gpr.S
+       $(crt_compile) -c e500crtresx64gpr.S
+
+e500crtsav32gpr$(objext): e500crtsav32gpr.S
+       $(crt_compile) -c e500crtsav32gpr.S
+
+e500crtsav64gpr$(objext): e500crtsav64gpr.S
+       $(crt_compile) -c e500crtsav64gpr.S
+
+e500crtsav64gprctr$(objext): e500crtsav64gprctr.S
+       $(crt_compile) -c e500crtsav64gprctr.S
+
+e500crtsavg32gpr$(objext): e500crtsavg32gpr.S
+       $(crt_compile) -c e500crtsavg32gpr.S
+
+e500crtsavg64gpr$(objext): e500crtsavg64gpr.S
+       $(crt_compile) -c e500crtsavg64gpr.S
+
+e500crtsavg64gprctr$(objext): e500crtsavg64gprctr.S
+       $(crt_compile) -c e500crtsavg64gprctr.S