diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-20 23:47:35 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-20 23:47:35 +0000 |
commit | 6b40961666f073231ed8a76e6e33deeda063cde7 (patch) | |
tree | 8247eb4232e8be98b7f61bd68bab2fd1a9f06ca3 /gcc/emit-rtl.c | |
parent | e6b1b76450af5f98696ecedd4bd9a0ed18cdb2a6 (diff) | |
parent | fc1ce0cf396bf638746d546a557158d87f13849b (diff) | |
download | gcc-6b40961666f073231ed8a76e6e33deeda063cde7.tar.gz |
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@203881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 143f29882c3..0311fff192e 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -55,6 +55,7 @@ along with GCC; see the file COPYING3. If not see #include "df.h" #include "params.h" #include "target.h" +#include "tree-eh.h" struct target_rtl default_target_rtl; #if SWITCHABLE_TARGET @@ -1804,7 +1805,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, /* If this expression uses it's parent's alias set, mark it such that we won't change it. */ - if (component_uses_parent_alias_set (t)) + if (component_uses_parent_alias_set_from (t) != NULL_TREE) MEM_KEEP_ALIAS_SET_P (ref) = 1; /* If this is a decl, set the attributes of the MEM from it. */ @@ -3561,7 +3562,7 @@ try_split (rtx pat, rtx trial, int last) if (any_condjump_p (trial) && (note = find_reg_note (trial, REG_BR_PROB, 0))) - split_branch_probability = INTVAL (XEXP (note, 0)); + split_branch_probability = XINT (note, 0); probability = split_branch_probability; seq = split_insns (pat, trial); @@ -3612,7 +3613,7 @@ try_split (rtx pat, rtx trial, int last) is responsible for this step using split_branch_probability variable. */ gcc_assert (njumps == 1); - add_reg_note (insn, REG_BR_PROB, GEN_INT (probability)); + add_int_reg_note (insn, REG_BR_PROB, probability); } } } @@ -4190,7 +4191,7 @@ reorder_insns_nobb (rtx from, rtx to, rtx after) NEXT_INSN (to) = NEXT_INSN (after); PREV_INSN (from) = after; NEXT_INSN (after) = from; - if (after == get_last_insn()) + if (after == get_last_insn ()) set_last_insn (to); } @@ -4400,7 +4401,7 @@ emit_insn_after_1 (rtx first, rtx after, basic_block bb) if (after_after) PREV_INSN (after_after) = last; - if (after == get_last_insn()) + if (after == get_last_insn ()) set_last_insn (last); return last; @@ -4800,7 +4801,7 @@ emit_debug_insn_before (rtx pattern, rtx before) rtx emit_insn (rtx x) { - rtx last = get_last_insn(); + rtx last = get_last_insn (); rtx insn; if (x == NULL_RTX) @@ -4847,7 +4848,7 @@ emit_insn (rtx x) rtx emit_debug_insn (rtx x) { - rtx last = get_last_insn(); + rtx last = get_last_insn (); rtx insn; if (x == NULL_RTX) @@ -5908,9 +5909,9 @@ init_emit_once (void) mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) { - FCONST0(mode).data.high = 0; - FCONST0(mode).data.low = 0; - FCONST0(mode).mode = mode; + FCONST0 (mode).data.high = 0; + FCONST0 (mode).data.low = 0; + FCONST0 (mode).mode = mode; const_tiny_rtx[0][(int) mode] = CONST_FIXED_FROM_FIXED_VALUE ( FCONST0 (mode), mode); } @@ -5919,9 +5920,9 @@ init_emit_once (void) mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) { - FCONST0(mode).data.high = 0; - FCONST0(mode).data.low = 0; - FCONST0(mode).mode = mode; + FCONST0 (mode).data.high = 0; + FCONST0 (mode).data.low = 0; + FCONST0 (mode).mode = mode; const_tiny_rtx[0][(int) mode] = CONST_FIXED_FROM_FIXED_VALUE ( FCONST0 (mode), mode); } @@ -5930,17 +5931,17 @@ init_emit_once (void) mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) { - FCONST0(mode).data.high = 0; - FCONST0(mode).data.low = 0; - FCONST0(mode).mode = mode; + FCONST0 (mode).data.high = 0; + FCONST0 (mode).data.low = 0; + FCONST0 (mode).mode = mode; const_tiny_rtx[0][(int) mode] = CONST_FIXED_FROM_FIXED_VALUE ( FCONST0 (mode), mode); /* We store the value 1. */ - FCONST1(mode).data.high = 0; - FCONST1(mode).data.low = 0; - FCONST1(mode).mode = mode; - FCONST1(mode).data + FCONST1 (mode).data.high = 0; + FCONST1 (mode).data.low = 0; + FCONST1 (mode).mode = mode; + FCONST1 (mode).data = double_int_one.lshift (GET_MODE_FBIT (mode), HOST_BITS_PER_DOUBLE_INT, SIGNED_FIXED_POINT_MODE_P (mode)); @@ -5952,17 +5953,17 @@ init_emit_once (void) mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) { - FCONST0(mode).data.high = 0; - FCONST0(mode).data.low = 0; - FCONST0(mode).mode = mode; + FCONST0 (mode).data.high = 0; + FCONST0 (mode).data.low = 0; + FCONST0 (mode).mode = mode; const_tiny_rtx[0][(int) mode] = CONST_FIXED_FROM_FIXED_VALUE ( FCONST0 (mode), mode); /* We store the value 1. */ - FCONST1(mode).data.high = 0; - FCONST1(mode).data.low = 0; - FCONST1(mode).mode = mode; - FCONST1(mode).data + FCONST1 (mode).data.high = 0; + FCONST1 (mode).data.low = 0; + FCONST1 (mode).mode = mode; + FCONST1 (mode).data = double_int_one.lshift (GET_MODE_FBIT (mode), HOST_BITS_PER_DOUBLE_INT, SIGNED_FIXED_POINT_MODE_P (mode)); @@ -6072,7 +6073,7 @@ emit_copy_of_insn_after (rtx insn, rtx after) add_reg_note (new_rtx, REG_NOTE_KIND (link), copy_insn_1 (XEXP (link, 0))); else - add_reg_note (new_rtx, REG_NOTE_KIND (link), XEXP (link, 0)); + add_shallow_copy_of_reg_note (new_rtx, link); } INSN_CODE (new_rtx) = INSN_CODE (insn); |