https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
Richard Biener changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #8 from PeteVine ---
Nah, the whole issue's just some sort of build-system artifact, namely,
switching to cmake:
$ du ufo*cmake*
2076ufo-gcc4.9-lto-cmake
2140ufo-gcc4.9-nonlto-cmake
2064ufo-gcc7-lto-cmake
2124
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #7 from PeteVine ---
The bug doesn't occur on an aarch64 system (built with gcc5):
$ du ufo-arm64-gcc*
3312ufo-arm64-gcc5
3072ufo-arm64-gcc5-lto
3256ufo-arm64-gcc6
3056ufo-arm64-gcc6-lto
3288ufo-arm64-gcc7
3040
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #6 from PeteVine ---
Aha! 4.9.4 and additional LDFLAGS=$CFLAGS reproduces the larger size.
(-fno-fat-lto-objects on its own still works as expected)
Probably thee clue to solving this mystery :)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #5 from PeteVine ---
Missed the configure step, just before make:
$ ./configure --enable-release --disable-sdl2 --enable-only-ufo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #4 from PeteVine ---
Just tried your suggestion and during the final link, /tmp is full of ltrans
objects so LTO seems to be working fine (GCC5 + -fno-fat-lto-objects) but the
stripped size ended up even larger (2.5M).
Anyway,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #3 from Richard Biener ---
If you force (not sure what's the default on your target) -fno-fat-lto-objects
then you'll notice if LTO is used at link time.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
--- Comment #2 from PeteVine ---
Is there a quick way to verify the installation is not broken re: LTO? I'd like
to avoid posting lots of useless info through a stupid user error :)
For example, GCC7 was configured/installed this way:
Using
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|