This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bug 10900: Darwin tramlines crash + [Patch]
- From: Dale Johannesen <dalej at apple dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Dale Johannesen <dalej at apple dot com>, Dara Hazeghi <dhazeghi at yahoo dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 Jul 2003 10:24:14 -0700
- Subject: Re: Bug 10900: Darwin tramlines crash + [Patch]
On Saturday, July 5, 2003, at 01:05 PM, Andrew Pinski wrote:
I should say this is need to even think about Ada bootstrapping.
It can cause problems in (GNU-extended) C too, although not often.
The patch in that PR is not best, as it will not work inside shared
libraries.
I'll commit the following instead. Approved privately by Geoff Keating.
Index: darwin-tramp.asm
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/darwin-tramp.asm,v
retrieving revision 1.2
diff -u -d -b -w -r1.2 darwin-tramp.asm
--- darwin-tramp.asm 29 Dec 2001 09:07:56 -0000 1.2
+++ darwin-tramp.asm 7 Jul 2003 17:22:05 -0000
@@ -64,7 +64,7 @@
bcl 20,31,LCF0 /* load up __trampoline_initial into r7
*/
LCF0:
mflr r11
- addi r7,r11,ha16(LTRAMP-LCF0)
+ addis r7,r11,ha16(LTRAMP-LCF0)
lwz r7,lo16(LTRAMP-LCF0)(r7)
subi r7,r7,4
li r8,trampoline_size /* verify trampoline big enough
*/