Commit abe36b81 by Eric Botcazou Committed by Eric Botcazou

re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)

	PR lto/48148
	* gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
	the types if they have different enumeration identifiers.

From-SVN: r172712
parent e6416b30
2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
PR lto/48148
* gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
the types if they have different enumeration identifiers.
2011-04-19 Jan Hubicka <jh@suse.cz> 2011-04-19 Jan Hubicka <jh@suse.cz>
* cgraph.h (cgraph_optimize_for_size_p): Declare. * cgraph.h (cgraph_optimize_for_size_p): Declare.
......
...@@ -3731,6 +3731,9 @@ gimple_types_compatible_p_1 (tree t1, tree t2, enum gtc_mode mode, ...@@ -3731,6 +3731,9 @@ gimple_types_compatible_p_1 (tree t1, tree t2, enum gtc_mode mode,
if (tree_int_cst_equal (c1, c2) != 1) if (tree_int_cst_equal (c1, c2) != 1)
goto different_types; goto different_types;
if (mode == GTC_MERGE && TREE_PURPOSE (v1) != TREE_PURPOSE (v2))
goto different_types;
} }
/* If one enumeration has more values than the other, they /* If one enumeration has more values than the other, they
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment