re PR lto/56168 (GCC seems to disregard -fno-builtin when compiling with LTO)
authorRichard Guenther <rguenther@suse.de>
Mon, 4 Feb 2013 12:19:25 +0000 (12:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Feb 2013 12:19:25 +0000 (12:19 +0000)
commited73881ea9ff3c99389618defe96b814cb952135
tree621502d44633d587a4706564dbe2902f5db4f1e5
parent139a0707cb46308598ece7785130679ea6e737a8
re PR lto/56168 (GCC seems to disregard -fno-builtin when compiling with LTO)

2013-02-04  Richard Guenther  <rguenther@suse.de>

PR lto/56168
* lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
node prevail as last resort.
(lto_symtab_merge_decls): Remove guard on LTRANS here.
(lto_symtab_prevailing_decl): Builtins are their own prevailing
decl.

lto/
* lto.c (read_cgraph_and_symbols): Do not call lto_symtab_merge_decls
or lto_fixup_decls at LTRANS time.

* gcc.dg/lto/pr56168_0.c: New testcase.
* gcc.dg/lto/pr56168_1.c: Likewise.

From-SVN: r195709
gcc/ChangeLog
gcc/lto-symtab.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr56168_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr56168_1.c [new file with mode: 0644]