This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/40903] LTO doesn't merge common sections properly
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2009 16:24:23 -0000
- Subject: [Bug lto/40903] LTO doesn't merge common sections properly
- References: <bug-40903-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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