summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-05 13:27:23 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-05 13:27:23 +0000
commitdb5b2472c14114946acf355de056b70396bff658 (patch)
tree1681e2b619fe09244d98e6de2cc9728d6e8f20e5 /gcc
parente2028bfacda6880292925ddc3273b9d4e29e48f1 (diff)
downloadgcc-db5b2472c14114946acf355de056b70396bff658.tar.gz
PR bootstrap/44756
* expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before comparing it to a signed value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/expr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 732c42384e2..2bbcfd42ad4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -33,6 +33,10 @@
* config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
change. Set $@-warn.o to -Wno-error.
+ PR bootstrap/44756
+ * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
+ comparing it to a signed value.
+
2010-11-05 Jakub Jelinek <jakub@redhat.com>
* cfgexpand.c (expand_debug_expr): Handle MEM_REF
diff --git a/gcc/expr.c b/gcc/expr.c
index f29f6dc1244..e994f938b6f 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3775,7 +3775,7 @@ emit_push_insn (rtx x, enum machine_mode mode, tree type, rtx size,
|| align >= BIGGEST_ALIGNMENT
|| (PUSH_ROUNDING (align / BITS_PER_UNIT)
== (align / BITS_PER_UNIT)))
- && PUSH_ROUNDING (INTVAL (size)) == INTVAL (size))
+ && (HOST_WIDE_INT) PUSH_ROUNDING (INTVAL (size)) == INTVAL (size))
{
/* Push padding now if padding above and stack grows down,
or if padding below and stack grows up.