GCC LTO: Uncertain handling of -fcommon vs -fno-common during linking
Symptom When compiling with -flto and -fcommon , GCC often succeeds linking multiple source files that each declare a tentative global variable. Switching to -fno-common triggers duplicate symbol errors during the LTO phase, even though standard linking without LTO honours the flags consistently. Uncertainty The GCC manual does not explicitly state whether -