From: Richard Henderson Date: Wed, 22 Aug 2001 02:10:53 +0000 (-0700) Subject: crtbegin.asm (__do_global_dtors_aux): Use saved copy of gp while the real gp register... X-Git-Tag: prereleases/libstdc++-3.0.95~2501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=209218a6b5149fe5af32ace3a0a654f7710a4e68;p=thirdparty%2Fgcc.git crtbegin.asm (__do_global_dtors_aux): Use saved copy of gp while the real gp register contains garbage. * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved copy of gp while the real gp register contains garbage. From-SVN: r45091 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 773cc6f33c8d..e07c41308540 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,9 @@ * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if ia64_asm_output_label. + * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved + copy of gp while the real gp register contains garbage. + 2001-08-21 Zack Weinberg * expmed.c (mode_for_extraction): New function. diff --git a/gcc/config/ia64/crtbegin.asm b/gcc/config/ia64/crtbegin.asm index 5a3667c821ba..388b24e53b29 100644 --- a/gcc/config/ia64/crtbegin.asm +++ b/gcc/config/ia64/crtbegin.asm @@ -172,7 +172,7 @@ __do_global_dtors_aux: { .mmi ld8 r15 = [loc0] ;; - add r16 = r15, gp + add r16 = r15, loc2 adds r15 = 8, r15 ;; }