* config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2001 02:10:53 +0000 (02:10 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2001 02:10:53 +0000 (02:10 +0000)
        copy of gp while the real gp register contains garbage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45091 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/crtbegin.asm

index 773cc6f..e07c413 100644 (file)
@@ -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  <zackw@panix.com>
 
        * expmed.c (mode_for_extraction): New function.
index 5a3667c..388b24e 100644 (file)
@@ -172,7 +172,7 @@ __do_global_dtors_aux:
        { .mmi
          ld8 r15 = [loc0]
          ;;
-         add r16 = r15, gp
+         add r16 = r15, loc2
          adds r15 = 8, r15
          ;;
        }