Commit 209218a6 by Richard Henderson Committed by Richard Henderson

crtbegin.asm (__do_global_dtors_aux): Use saved copy of gp while the real gp…

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
parent 45d29407
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
* config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
ia64_asm_output_label. 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> 2001-08-21 Zack Weinberg <zackw@panix.com>
* expmed.c (mode_for_extraction): New function. * expmed.c (mode_for_extraction): New function.
......
...@@ -172,7 +172,7 @@ __do_global_dtors_aux: ...@@ -172,7 +172,7 @@ __do_global_dtors_aux:
{ .mmi { .mmi
ld8 r15 = [loc0] ld8 r15 = [loc0]
;; ;;
add r16 = r15, gp add r16 = r15, loc2
adds r15 = 8, r15 adds r15 = 8, r15
;; ;;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment