aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/ia64/crtbegin.asm2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 773cc6f..e07c413 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 <zackw@panix.com>
* expmed.c (mode_for_extraction): New function.
diff --git a/gcc/config/ia64/crtbegin.asm b/gcc/config/ia64/crtbegin.asm
index 5a3667c..388b24e 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
;;
}