From 869464baf79c9a0952389fd63bb9e1b998c76ed6 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Sun, 15 Aug 2004 23:31:30 +0200 Subject: [PATCH] re PR target/14931 (ASM file in GCC for PPC darwin should use the new stub style) 2004-08-15 Andreas Tobler Andrew Pinski PR target/14931 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub style. Co-Authored-By: Andrew Pinski From-SVN: r86028 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/darwin-tramp.asm | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f86e71688d..f2234439226 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-08-15 Andreas Tobler + Andrew Pinski + + PR target/14931 + * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub + style. + 2004-08-15 Nathan Sidwell * tree.h (build_int_cst): New. diff --git a/gcc/config/rs6000/darwin-tramp.asm b/gcc/config/rs6000/darwin-tramp.asm index 22ce80a1080..d4d77747521 100644 --- a/gcc/config/rs6000/darwin-tramp.asm +++ b/gcc/config/rs6000/darwin-tramp.asm @@ -1,6 +1,6 @@ /* Special support for trampolines * - * Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc. + * Copyright (C) 1996, 1997, 2000, 2004 Free Software Foundation, Inc. * Written By Michael Meissner * * This file is free software; you can redistribute it and/or modify it @@ -103,7 +103,8 @@ Labort: #ifdef __DYNAMIC__ bl L_abort$stub .data -.picsymbol_stub +.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 + .align 2 L_abort$stub: .indirect_symbol _abort mflr r0 @@ -112,9 +113,8 @@ L0$_abort: mflr r11 addis r11,r11,ha16(L_abort$lazy_ptr-L0$_abort) mtlr r0 - lwz r12,lo16(L_abort$lazy_ptr-L0$_abort)(r11) + lwzu r12,lo16(L_abort$lazy_ptr-L0$_abort)(r11) mtctr r12 - addi r11,r11,lo16(L_abort$lazy_ptr-L0$_abort) bctr .data .lazy_symbol_pointer -- 2.30.2