Commit 62991c35 by Jan Hubicka Committed by Martin Liska

re PR ipa/65059 (Chrome LTO: lto1: internal compiler error: in ipa_comdats, at ipa-comdats.c:360)

Fix PR ipa/65059.

	PR ipa/65059
	* ipa-comdats.c (ipa_comdats): Do not categorize thunks to
	external functions.

From-SVN: r220733
parent 3d5cb23d
2015-02-16 Jan Hubicka <hubicka@ucw.cz>
PR ipa/65059
* ipa-comdats.c (ipa_comdats): Do not categorize thunks to
external functions.
2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
* doc/bugreport.texi: Adjust section titles throughout the file
......
......@@ -328,9 +328,14 @@ ipa_comdats (void)
FOR_EACH_DEFINED_SYMBOL (symbol)
{
struct cgraph_node *fun;
symbol->aux = NULL;
if (!symbol->get_comdat_group ()
&& !symbol->alias
/* Thunks to external functions do not need to be categorized. */
&& (!(fun = dyn_cast <cgraph_node *> (symbol))
|| !fun->thunk.thunk_p
|| fun->function_symbol ()->definition)
&& symbol->real_symbol_p ())
{
tree *val = map.get (symbol);
......
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