This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/77821] C++ binary size increase or LTO not working?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821

--- Comment #2 from PeteVine <tulipawn at gmail dot com> ---
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 built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc7/lib/gcc/arm-linux-gnueabihf/7.0.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../configure -v --enable-languages=c,c++,fortran
--prefix=/usr/gcc7 --program-suffix=-7 --enable-shared --enable-linker-build-id
--libexecdir=/usr/gcc7/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/gcc7/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=gcc4-compatible
--enable-gnu-unique-object --disable-libitm --disable-libquadmath
--enable-plugin --with-system-zlib --disable-browser-plugin
--with-arch-directory=arm --enable-multiarch --enable-multilib
--disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3
--with-float=hard --with-mode=arm --disable-werror --enable-multilib
--enable-checking=release --build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20160916 (experimental) (GCC)

Every time I switch to a different gcc version I run a script that changes the
following symlinks: gcc, g++, gfortran, ar, nm, ranlib, gcov, gcov-tool to
their corresponding versioned instances. Never had any problems so far, apart
from having to set LD_LIBRARY_PATH for running C++ binaries compiled against
newer libstdc++.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]