From 15b8fe07975ed2a6a616e88bf541726bc5db4db9 Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 3 Nov 2006 22:12:37 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118465 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index 9b493095684..689af18a8e4 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1228,7 +1228,7 @@ end_branch_prob (void) void tree_register_profile_hooks (void) { - gcc_assert (ir_type ()); + gcc_assert (current_ir_type () == IR_GIMPLE); profile_hooks = &tree_profile_hooks; } -- cgit v1.2.1