aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2006-11-03 22:12:37 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2006-11-03 22:12:37 +0000
commit52bca9998a939bde3fcc19ac1442b049e766233b (patch)
treeb81f9de22e415ae2de2e244d323a481b46f0b6db /gcc/cfgloopmanip.c
parent6c6aa1afedfc25ef15dda6692a617bd5c5358c9c (diff)
downloadgcc-52bca9998a939bde3fcc19ac1442b049e766233b.zip
gcc-52bca9998a939bde3fcc19ac1442b049e766233b.tar.gz
gcc-52bca9998a939bde3fcc19ac1442b049e766233b.tar.bz2
tree-dump.c (dump_enable_all): Rename local variable ir_type to avoid name conflicts.
* tree-dump.c (dump_enable_all): Rename local variable ir_type to avoid name conflicts. * cfgloopmanip.c (lv_adjust_loop_entry_edge): Check for IR_GIMPLE instead of using ir_type(). * profile.c (tree_register_profile_hooks): Likewise. * value-prof.c (tree_register_value_prof_hooks): Likewise. * basic-block.h (struct edge_def): Likewise. * config/arm/arm.c (legitimize_pic_address): Likewise. * coretypes.h (ir_type): New enum of all intermediate languages used in GCC. * cfghooks.c (ir_type): Rename to... (current_ir_type): ...this. Distinguish between cfgrtl and cfglayout mode when the current IR is RTL. Return enum ir_type. * cfghooks.h (ir_type): Replace with current_ir_type prototype. From-SVN: r118465
Diffstat (limited to 'gcc/cfgloopmanip.c')
-rw-r--r--gcc/cfgloopmanip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index 638b299..1ef6514 100644
--- a/gcc/cfgloopmanip.c
+++ b/gcc/cfgloopmanip.c
@@ -1268,7 +1268,8 @@ lv_adjust_loop_entry_edge (basic_block first_head,
cond_expr);
/* Don't set EDGE_TRUE_VALUE in RTL mode, as it's invalid there. */
- e1 = make_edge (new_head, first_head, ir_type () ? EDGE_TRUE_VALUE : 0);
+ e1 = make_edge (new_head, first_head,
+ current_ir_type () == IR_GIMPLE ? EDGE_TRUE_VALUE : 0);
set_immediate_dominator (CDI_DOMINATORS, first_head, new_head);
set_immediate_dominator (CDI_DOMINATORS, second_head, new_head);