Fix x86 __throw -O0 -fpic compiler abort.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Nov 1998 13:48:34 +0000 (13:48 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Nov 1998 13:48:34 +0000 (13:48 +0000)
* except.c (expand_eh_return): Readd force_operand call lost in
Sept 15 change.

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

gcc/ChangeLog
gcc/except.c

index a5ea252..e931c1a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 11 13:46:13 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * except.c (expand_eh_return): Readd force_operand call lost in
+       Sept 15 change.
+
 Tue Nov 10 17:04:11 1998  David Edelsohn  <edelsohn@mhpcc.edu>
 
        * rs6000.h (LEGITIMIZE_ADDRESS): Add missing goto on last case.
index 6fa37f0..ae6ede2 100644 (file)
@@ -2637,7 +2637,9 @@ expand_eh_return ()
 #ifdef RETURN_ADDR_OFFSET
   tmp = plus_constant (tmp, -RETURN_ADDR_OFFSET);
 #endif
-  emit_move_insn (ra, tmp);
+  tmp = force_operand (tmp, ra);
+  if (tmp != ra)
+    emit_move_insn (ra, tmp);
 
   /* Indicate that the registers are in fact used.  */
   emit_insn (gen_rtx_USE (VOIDmode, reg1));