Use force_operand to make sure that the buffer address is in a suitable form
authorNick Clifton <nickc@cygnus.com>
Thu, 29 Jul 1999 08:23:27 +0000 (08:23 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 29 Jul 1999 08:23:27 +0000 (08:23 +0000)
to be passed to force_reg.

From-SVN: r28334

gcc/ChangeLog
gcc/builtins.c

index 851c94e2cc128ad490d45478beb671d5d6bcffc5..e8b54ac865796bbaac27c35d7eb0d7b55922f375 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jul 29 09:21:42 1999  Nick Clifton  <nickc@cygnus.com>
+
+       * builtins.c (expand_builtin_setjmp): Use force_operand to
+       make sure that the buffer address is in a suitable form to be
+       passed to force_reg.
+
 Wed Jul 28 12:50:48 1999  Geoff Keating  <geoffk@cygnus.com>
 
         * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
index 0b7d840cdfc939e0d6d553f0f294ef00e718a420..1c163524b1cb3c245ed74d00652d8aa6d68a269e 100644 (file)
@@ -306,7 +306,7 @@ expand_builtin_setjmp (buf_addr, target, first_label, next_label)
   buf_addr = convert_memory_address (Pmode, buf_addr);
 #endif
 
-  buf_addr = force_reg (Pmode, buf_addr);
+  buf_addr = force_reg (Pmode, force_operand (buf_addr, NULL_RTX));
 
   if (target == 0 || GET_CODE (target) != REG
       || REGNO (target) < FIRST_PSEUDO_REGISTER)