I want to investigate a way for my other question (gcc: Strip unused functions) by building the latest gcc 6.3.0.
There are some options from https://gcc.gnu.org/install/configure.html and https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html that I would like to try, but don't understand what they meant.
Specifically, these are the flags I want to try:
--disable-libstdcxx-verbose: I rarely use exceptions so I am not very familiar with how it works. I have never seen the "verbose messages" it mentioned before.--enable-linker-build-idand--enable-gnu-unique-object: Simply don't understand what the explanations are trying to say. What are the benefits exactly?--enable-cxx-flags="-ffunction-sections -fstrict-aliasing -fno-exceptions": If I use-fno-exceptionsin libstdc++, doesn't that means I get no exceptions if I use libstdc++?-ffunction-sectionsis used, but where to put-Wl,-gc-sections?
Although I always use --enable-lto, but with ld.bfd, it seems to be quite useless compared to the famous gold linker.
If you have more flags you think I should try, please let me know!