X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gcc%2Femit-rtl.c;h=162d3f301f30f000ebc959f9871b5d7a6f802664;hb=4c73896d18e03c31a811c941082a6ed94605a905;hp=b67d3b22c2065273e6bf33f78ca46593735f04e8;hpb=535a42b11612ee3e398190114253e83e0e185b5b;p=thirdparty%2Fgcc.git diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index b67d3b22c206..162d3f301f30 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1579,8 +1579,8 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, index, then convert to sizetype and multiply by the size of the array element. */ if (! integer_zerop (low_bound)) - index = fold (build2 (MINUS_EXPR, TREE_TYPE (index), - index, low_bound)); + index = fold_build2 (MINUS_EXPR, TREE_TYPE (index), + index, low_bound); off_tree = size_binop (PLUS_EXPR, size_binop (MULT_EXPR, convert (sizetype, @@ -2697,7 +2697,7 @@ get_first_nonnote_insn (void) continue; else { - if (GET_CODE (insn) == INSN + if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) insn = XVECEXP (PATTERN (insn), 0, 0); } @@ -2723,7 +2723,7 @@ get_last_nonnote_insn (void) continue; else { - if (GET_CODE (insn) == INSN + if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) insn = XVECEXP (PATTERN (insn), 0, XVECLEN (PATTERN (insn), 0) - 1); @@ -3266,7 +3266,7 @@ make_insn_raw (rtx pattern) || (GET_CODE (insn) == SET && SET_DEST (insn) == pc_rtx))) { - warning ("ICE: emit_insn used where emit_jump_insn needed:\n"); + warning (0, "ICE: emit_insn used where emit_jump_insn needed:\n"); debug_rtx (insn); } #endif