summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-21 19:49:54 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-21 19:49:54 +0000
commit2419c7dacf6079f054cb3b9b02a11e8c1ecf7996 (patch)
treeccd01391f0aa31284960b2b2a2b8ddf3bf8191c7
parenta9ffa672d81e91b7e29baf8fb3fd60c9243142af (diff)
downloadgcc-2419c7dacf6079f054cb3b9b02a11e8c1ecf7996.tar.gz
* recog.c (push_operand): Fix error in last change that caused
undefined symbol on many targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40712 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/recog.c11
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 042911804ac..d0425f7a8a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
Wed Mar 21 14:27:11 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+ * recog.c (push_operand): Fix error in last change that caused
+ undefined symbol on many targets.
+
* sdbout.c: #include ggc.h.
(sdbout_init): Move to end of file.
Call ggc_add_tree_root for anonymous_types.
diff --git a/gcc/recog.c b/gcc/recog.c
index 195d3f4c2c9..55f6656a4a3 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -1350,6 +1350,12 @@ push_operand (op, mode)
rtx op;
enum machine_mode mode;
{
+ unsigned int rounded_size = GET_MODE_SIZE (mode);
+
+#ifdef PUSH_ROUNDING
+ rounded_size = PUSH_ROUNDING (rounded_size);
+#endif
+
if (GET_CODE (op) != MEM)
return 0;
@@ -1358,20 +1364,19 @@ push_operand (op, mode)
op = XEXP (op, 0);
- if (PUSH_ROUNDING (GET_MODE_SIZE (mode)) == GET_MODE_SIZE (mode))
+ if (rounded_size == GET_MODE_SIZE (mode))
{
if (GET_CODE (op) != STACK_PUSH_CODE)
return 0;
}
else
{
- int rounded_size = PUSH_ROUNDING (GET_MODE_SIZE (mode));
if (GET_CODE (op) != PRE_MODIFY
|| GET_CODE (XEXP (op, 1)) != PLUS
|| XEXP (XEXP (op, 1), 0) != XEXP (op, 0)
|| GET_CODE (XEXP (XEXP (op, 1), 1)) != CONST_INT
#ifdef STACK_GROWS_DOWNWARD
- || INTVAL (XEXP (XEXP (op, 1), 1)) != -rounded_size
+ || INTVAL (XEXP (XEXP (op, 1), 1)) != - (int) rounded_size
#else
|| INTVAL (XEXP (XEXP (op, 1), 1)) != rounded_size
#endif