This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
powerpc64 crtsavres
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 17 Oct 2003 17:29:32 +0930
- Subject: powerpc64 crtsavres
The code that's here is wrong due to the embedded string in the text section,
and in any case isn't needed with GNU ld more recent than 2002-02-18.
* config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code,
and #if 0 out.
OK?
diff -urp gcc-ppc64-34.orig/gcc/config/rs6000/crtsavres.asm gcc-ppc64-34/gcc/config/rs6000/crtsavres.asm
--- gcc-ppc64-34.orig/gcc/config/rs6000/crtsavres.asm 2002-04-08 11:22:53.000000000 +0930
+++ gcc-ppc64-34/gcc/config/rs6000/crtsavres.asm 2003-10-17 17:18:39.000000000 +0930
@@ -305,6 +305,8 @@ FUNC_END(_restgpr_14_x)
#else /* __powerpc64__ */
+/* Not needed. These functions are provided by the linker. */
+#if 0
.section ".text"
.align 2
@@ -337,6 +339,7 @@ FUNC_START(_savef31) stfd 31,-8(1)
.long .LTfsav-.fsav
.short 4
.ascii "fsav"
+ .align 2
FUNC_END(_savef31)
FUNC_END(_savef30)
FUNC_END(_savef29)
@@ -385,6 +388,7 @@ FUNC_START(_restf31) lfd 31,-8(1)
.long .LTfres-.fres
.short 4
.ascii "fres"
+ .align 2
FUNC_END(_restf31)
FUNC_END(_restf30)
FUNC_END(_restf29)
@@ -405,3 +409,4 @@ FUNC_END(_restf15)
FUNC_END(_restf14)
#endif
+#endif
--
Alan Modra
IBM OzLabs - Linux Technology Centre