[Bug lto/40903] LTO doesn't merge common sections properly
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 30 16:24:00 GMT 2009
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-07-30 16:24 -------
Subject: Bug 40903
Author: rguenth
Date: Thu Jul 30 16:24:05 2009
New Revision: 150262
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150262
Log:
2009-07-30 Richard Guenther <rguenther@suse.de>
PR lto/40903
* lto-symtab.c (lto_symtab_compatible): Only warn for mismatched
types.
(lto_symtab_merge_decl): For decls we cannot merge chain them
appropriately in the symtab entry.
(lto_symtab_prevailing_decl): Return a matching entry from the
symtab chain.
* lto.c (read_cgraph_and_symbols): After fixing up decls choose
the largest decl for output and free TREE_CHAIN for further
use.
* gcc.dg/lto/20090729_0.c: New testcase.
* gcc.dg/lto/20090729_1.c: Likewise.
Added:
branches/lto/gcc/testsuite/gcc.dg/lto/20090729_0.c
branches/lto/gcc/testsuite/gcc.dg/lto/20090729_1.c
Modified:
branches/lto/gcc/ChangeLog.lto
branches/lto/gcc/lto-symtab.c
branches/lto/gcc/lto/ChangeLog
branches/lto/gcc/lto/lto.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40903
More information about the Gcc-bugs
mailing list