Commit e892936e by Richard Biener Committed by Richard Biener

re PR lto/56147 (ICE on invalid code in lto_symtab_merge_decls_1)

2013-01-30  Richard Biener  <rguenther@suse.de>

	PR lto/56147
	* lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN
	check.

From-SVN: r195575
parent cc06c01d
2013-01-30 Richard Biener <rguenther@suse.de>
PR lto/56147
* lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN
check.
2013-01-30 Georg-Johann Lay <avr@gjlay.de>
PR tree-optimization/56064
......
......@@ -443,7 +443,8 @@ lto_symtab_merge_decls_1 (symtab_node first)
else if (TREE_CODE (prevailing->symbol.decl) == FUNCTION_DECL)
{
for (e = first; e; e = e->symbol.next_sharing_asm_name)
if (DECL_BUILT_IN (e->symbol.decl))
if (TREE_CODE (e->symbol.decl) == FUNCTION_DECL
&& DECL_BUILT_IN (e->symbol.decl))
{
prevailing = e;
break;
......
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