This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]