[Bug lto/40903] LTO doesn't merge common sections properly

2009-08-03 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2009-08-03 08:46 --- Subject: Bug 40903 Author: rguenth Date: Mon Aug 3 08:45:37 2009 New Revision: 150365 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=150365 Log: 2009-07-30 Richard Guenther rguent...@suse.de PR

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-30 Thread rguenth 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=gccview=revrev=150262 Log: 2009-07-30 Richard Guenther rguent...@suse.de PR

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-30 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2009-07-30 16:24 --- Fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40903

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-30 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-07-30 16:25 --- , -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-07-29 13:39 --- I'm working on this. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rth at gcc dot gnu dot org
--- Comment #2 from rth at gcc dot gnu dot org 2009-07-29 17:55 --- I believe a proper way to handle this, preserving the semantics that the linker provides, is to transform this into union { double _1; int _2; } i; and replace occurrences with i._1, i._2, etc. Perhaps a more

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rguenther at suse dot de
--- Comment #3 from rguenther at suse dot de 2009-07-29 18:01 --- Subject: Re: LTO doesn't merge common sections properly On Wed, 29 Jul 2009, rth at gcc dot gnu dot org wrote: --- Comment #2 from rth at gcc dot gnu dot org 2009-07-29 17:55 --- I believe a proper way to

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rth at gcc dot gnu dot org
--- Comment #4 from rth at gcc dot gnu dot org 2009-07-29 18:10 --- So LTO still produces N output object files for N input files? Cause you can't just output .comm i,4,4 .comm i,8,8 in one object file, and I didn't see any changes to varasm.c... --

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rguenther at suse dot de
--- Comment #5 from rguenther at suse dot de 2009-07-29 18:18 --- Subject: Re: LTO doesn't merge common sections properly On Wed, 29 Jul 2009, rth at gcc dot gnu dot org wrote: --- Comment #4 from rth at gcc dot gnu dot org 2009-07-29 18:10 --- So LTO still produces N

[Bug lto/40903] LTO doesn't merge common sections properly

2009-07-29 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-07-29 19:20 --- Ah, it's because I don't push to lto_global_var_decls. We can at write-global-declarations time walk over all global vars and exchange the written decl for the largest in the chain. --