[Bug libstdc++/108630] New: build failure with LTO enabled

2023-02-01 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108630 Bug ID: 108630 Summary: build failure with LTO enabled Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[Bug libstdc++/108630] build failure with LTO enabled

2023-02-01 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108630 --- Comment #1 from Andre Heider --- Forgot to mention: CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET" Obviously :)

[Bug libstdc++/108630] build failure with LTO enabled

2023-02-01 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108630 --- Comment #2 from Andre Heider --- Additionally, LDFLAGS_FOR_TARGET isn't part of the configure help: ./configure --help|grep FOR_TARGET LD_FOR_TARGET is, attempting to shove LTO in there yields other problems (or I am be doing it wrong). I

[Bug bootstrap/60160] Building with -flto in CFLAGS_FOR_TARGET / CXXFLAGS_FOR_TARGET

2023-02-02 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60160 Andre Heider changed: What|Removed |Added CC||a.heider at gmail dot com --- Comment #8

[Bug libstdc++/108630] build failure with LTO enabled

2023-02-02 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108630 --- Comment #3 from Andre Heider --- While this is a libstdc++ related LTO issue, there's at least another libgcc one, see the linked bug #60160. With the workaround here and the patch there the LTOed target libraries look alot more sane, but I

[Bug bootstrap/60160] Building with -flto in CFLAGS_FOR_TARGET / CXXFLAGS_FOR_TARGET

2023-02-02 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60160 --- Comment #9 from Andre Heider --- See also https://github.com/rui314/mold/issues/977 mold v1.10.1 can't handle crt files which are built with LTO enabled. But it sounds more like LTO on crt as-is produces the wrong thing? __EH_FRAME_BEGIN__.l