]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues)
authorJoern Rennecke <amylaar@spamcop.net>
Fri, 5 Nov 2010 13:27:23 +0000 (13:27 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 5 Nov 2010 13:27:23 +0000 (13:27 +0000)
PR bootstrap/44756
* expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
comparing it to a signed value.

From-SVN: r166360

gcc/ChangeLog
gcc/expr.c

index 732c42384e28f6432046638fca51ac97c0c8b685..2bbcfd42ad43300157c1d0eefd18dc1cb6608add 100644 (file)
        * 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
index f29f6dc1244535a0cd0a000b00a59048852b1ebf..e994f938b6fe7f765a7880992d87ae2bc8b41b9e 100644 (file)
@@ -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.