public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts [not found] <bug-65252-4@http.gcc.gnu.org/bugzilla/> @ 2015-02-28 14:52 ` trippels at gcc dot gnu.org 2015-03-01 7:57 ` goswin-v-b at web dot de 2015-03-02 8:50 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: trippels at gcc dot gnu.org @ 2015-02-28 14:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65252 Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- You could use -fno-lto when compiling early.cc. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts [not found] <bug-65252-4@http.gcc.gnu.org/bugzilla/> 2015-02-28 14:52 ` [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts trippels at gcc dot gnu.org @ 2015-03-01 7:57 ` goswin-v-b at web dot de 2015-03-02 8:50 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: goswin-v-b at web dot de @ 2015-03-01 7:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65252 --- Comment #2 from Goswin von Brederlow <goswin-v-b at web dot de> --- As long as it's only one C/C++ file that works. But if one has multiple files then -fno-lto would optimize less. I was thinking of a more general case than mine. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts [not found] <bug-65252-4@http.gcc.gnu.org/bugzilla/> 2015-02-28 14:52 ` [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts trippels at gcc dot gnu.org 2015-03-01 7:57 ` goswin-v-b at web dot de @ 2015-03-02 8:50 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: rguenth at gcc dot gnu.org @ 2015-03-02 8:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65252 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |hubicka at gcc dot gnu.org Resolution|--- |WONTFIX --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- LTO doesn't know about linker scripts and their effects (see other related bugreports). For your case LTO partitioning might simply tear boot.o and early.o apart and put parts in differen LTRANS units. I don't see any way to fix this but to teach WPA to parse linker scripts and guide partitioning. That means basically a WONTFIX with the known workaround to compile boot.o and early.o without -flto. Another workaround that might work is to use -flto-partition=1to1 (but the filenames will still get wrong I think). ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-02 8:50 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-65252-4@http.gcc.gnu.org/bugzilla/> 2015-02-28 14:52 ` [Bug lto/65252] Link time optimization breaks use of filenames in linker scripts trippels at gcc dot gnu.org 2015-03-01 7:57 ` goswin-v-b at web dot de 2015-03-02 8:50 ` rguenth at gcc dot gnu.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).