summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-29 08:23:27 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-29 08:23:27 +0000
commit37ae8504d388c2c3e8c5688f3c410e01b687f44d (patch)
tree3ca66a5e4a615b001e2ad770f92c5d79abf73082
parent65c2629f9fda9ccc7112b05da6b2c48ec0290bd8 (diff)
downloadgcc-37ae8504d388c2c3e8c5688f3c410e01b687f44d.tar.gz
Use force_operand to make sure that the buffer address is in a suitable form
to be passed to force_reg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28334 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/builtins.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 851c94e2cc1..e8b54ac8657 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 0b7d840cdfc..1c163524b1c 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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)