public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/40903]  New: LTO doesn't merge common sections properly
@ 2009-07-29 13:39 rguenth at gcc dot gnu dot org
  2009-07-29 13:39 ` [Bug lto/40903] " rguenth at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-29 13:39 UTC (permalink / raw)
  To: gcc-bugs

t1.c
double i;

t2.c
int i;
int main () { return i; }

should be accepted with -fcommon.

What needs to be done is that we have to keep a list of decls per symtab
entry that we might end up merging to and we need to return the proper
decl when looking up the canonical decl.

A warning is still appropriate here.

This happens in several SPEC 2000 and SPEC 2006 benchmarks.


-- 
           Summary: LTO doesn't merge common sections properly
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40903


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-03  8:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-29 13:39 [Bug lto/40903] New: LTO doesn't merge common sections properly rguenth at gcc dot gnu dot org
2009-07-29 13:39 ` [Bug lto/40903] " rguenth at gcc dot gnu dot org
2009-07-29 17:56 ` rth at gcc dot gnu dot org
2009-07-29 18:01 ` rguenther at suse dot de
2009-07-29 18:10 ` rth at gcc dot gnu dot org
2009-07-29 18:18 ` rguenther at suse dot de
2009-07-29 19:20 ` rguenth at gcc dot gnu dot org
2009-07-30 16:24 ` rguenth at gcc dot gnu dot org
2009-07-30 16:25 ` rguenth at gcc dot gnu dot org
2009-07-30 16:25 ` rguenth at gcc dot gnu dot org
2009-08-03  8:46 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).