aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2012-09-27 17:06:22 +0000
committerDehao Chen <dehao@google.com>2012-09-27 17:06:22 +0000
commit03eec9b96c637bbda738021cf9ae55ad2276a5eb (patch)
treefa8cceb475f3f43ac9cb88a16f715c13ffc25604 /gcc/cfgcleanup.c
parent8ecae7911d66345ae2eb869905ac8669caf459b9 (diff)
2012-09-27 Dehao Chen <dehao@google.com>
* tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION. (extern void protected_set_expr_location): Likewise. (function_args_iter_next): Likewise. (inlined_function_outer_scope_p): Likewise. * input.h (IS_UNKNOWN_LOCATION): Likewise. * fold-const.c (expr_location_or): Likewise. * lto-cgraph.c (output_node_opt_summary): Likewise. * dwarf2out.c (add_src_coords_attributes): Likewise. * tree-eh.c (lower_try_finally_dup_block): Likewise. * profile.c (branch_prob): * cfgexpand.c (expand_gimple_cond): Likewise. (expand_gimple_basic_block): Likewise. (construct_exit_block): Likewise. (gimple_expand_cfg): Likewise. * cfgcleanup.c (try_forward_edges): Likewise. * tree-ssa-live.c (remove_unused_scope_block_p): Likewise. (dump_scope_block): Likewise. * ipa-prop.c (ipa_write_jump_function): Likewise. * rtl.h (extern void rtl_check_failed_flag): Likewise. * gimple.h (gimple_set_location): Likewise. (gimple_has_location): Likewise. * cfgrtl.c (unique_locus_on_edge_between_p): Likewise. (force_nonfallthru_and_redirect): Likewise. (fixup_reorder_chain): Likewise. (cfg_layout_merge_blocks): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index cb53c96b545..74ea3027389 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -481,15 +481,15 @@ try_forward_edges (int mode, basic_block b)
int new_locus = single_succ_edge (target)->goto_locus;
int locus = goto_locus;
- if (!IS_UNKNOWN_LOCATION (new_locus)
- && !IS_UNKNOWN_LOCATION (locus)
+ if (new_locus != UNKNOWN_LOCATION
+ && locus != UNKNOWN_LOCATION
&& new_locus != locus)
new_target = NULL;
else
{
rtx last;
- if (!IS_UNKNOWN_LOCATION (new_locus))
+ if (new_locus != UNKNOWN_LOCATION)
locus = new_locus;
last = BB_END (target);
@@ -499,13 +499,13 @@ try_forward_edges (int mode, basic_block b)
new_locus = last && INSN_P (last)
? INSN_LOCATION (last) : 0;
- if (!IS_UNKNOWN_LOCATION (new_locus)
- && !IS_UNKNOWN_LOCATION (locus)
+ if (new_locus != UNKNOWN_LOCATION
+ && locus != UNKNOWN_LOCATION
&& new_locus != locus)
new_target = NULL;
else
{
- if (!IS_UNKNOWN_LOCATION (new_locus))
+ if (new_locus != UNKNOWN_LOCATION)
locus = new_locus;
goto_locus = locus;