https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92442
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |memory-hog Status|UNCONFIRMED |NEW Last reconfirmed| |2019-11-11 CC| |rguenth at gcc dot gnu.org Component|c++ |debug Summary|Compiling Boost.Spirit.X3 |Compiling Boost.Spirit.X3 |code uses exuberant amount |code uses exuberant amount |of RAM |of RAM with -gsplit-dwarf Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I see 3GB of max-rss with 9.2.0 on x86_64-linux when omitting -gsplit-dwarf which is 2GB less than clang? > /usr/bin/time /space/rguenther/install/gcc-9.2/bin/g++ test.ii -S -g -fPIE > -std=c++17 -pedantic-errors -Wextra -Wconversion -Winit-self > -Wmissing-include-dirs -Wstrict-aliasing -Werror -ffunction-sections > -fdata-sections -MD -MT test.o 55.33user 2.40system 1:04.57elapsed 89%CPU (0avgtext+0avgdata 2984564maxresident)k > /usr/bin/time /space/rguenther/install/gcc-9.2/bin/g++ test.ii -S -g -fPIE > -std=c++17 -pedantic-errors -Wextra -Wconversion -Winit-self > -Wmissing-include-dirs -Wstrict-aliasing -Werror -ffunction-sections > -fdata-sections -MD -MT test.o -gsplit-dwarf 109.28user 5.43system 2:05.93elapsed 91%CPU (0avgtext+0avgdata 7422548maxresident)k 0inputs+4904512outputs (0major+1867256minor)pagefaults 0swaps so not sure why -gsplit-dwarf adds this amount of memory use... (looks like a memory leak maybe...), but -gsplit-dwarf is poorly maintained.