aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-07-23 14:01:49 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-07-23 14:01:49 +0000
commitc4fcd06a10ddacc81f535b165034dbaa93b6005c (patch)
tree6385e1fabde05644320c6c7f11ab4bd95f2dc27a /gcc/tree-ssa.c
parent6afb52d3e2c1ea3376e3037d1c6e6a69ff7ac6fd (diff)
downloadgcc-c4fcd06a10ddacc81f535b165034dbaa93b6005c.zip
gcc-c4fcd06a10ddacc81f535b165034dbaa93b6005c.tar.gz
gcc-c4fcd06a10ddacc81f535b165034dbaa93b6005c.tar.bz2
lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
2010-07-23 Richard Guenther <rguenther@suse.de> * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values. (lto_symtab_merge_decls_2): Likewise. * tree-ssa.c (useless_type_conversion_p): Likewise. * lto-streamer-in.c (input_gimple_stmt): Likewise. * gimple.c (gtc_visited2, gtc_ob2): Remove. (struct type_pair_d): Make same_p an array indexed by mode. Update comment. (lookup_type_pair): Update initialization. (struct sccs): Adjust same_p type. (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p): Adjust. (print_gimple_types_stats): Likewise. * gimple.h (enum gtc_mode): New. (gimple_types_compatible_p): Adjust prototype. From-SVN: r162461
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index c31b0d1..687c639 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1427,7 +1427,7 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
else if (AGGREGATE_TYPE_P (inner_type)
&& TREE_CODE (inner_type) == TREE_CODE (outer_type))
return (in_lto_p
- && gimple_types_compatible_p (outer_type, inner_type, false));
+ && gimple_types_compatible_p (outer_type, inner_type, GTC_DIAG));
return false;
}