re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 10 Dec 2015 23:57:15 +0000 (00:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 10 Dec 2015 23:57:15 +0000 (23:57 +0000)
commit958a627f8831aad2d1d87c1a95b622722f375e73
tree81333eac2542fe1d73ebec68b922ed18cd399b73
parent0c91a1fb3c6bf27bd513d6a160bdce14a7070a60
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)

PR ipa/61886
* lto-symtab.c (lto_symtab_merge_p): Avoid merging across different
values of error and warning attributes.
* gcc.dg/lto/pr61886_0.c: New testcase

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