https://sourceware.org/bugzilla/show_bug.cgi?id=25355
--- Comment #13 from Sergei Trofimovich <slyfox at inbox dot ru> --- (In reply to H.J. Lu from comment #12) > It is independent of -fno-common: > > > [hjl@gnu-cfl-2 pr25355]$ cat x.c > int nm_test_var = 30; > > extern int foo (void); > > int > main () > { > return foo (); > } > [hjl@gnu-cfl-2 pr25355]$ gcc -flto -c x.c > [hjl@gnu-cfl-2 pr25355]$ gcc-nm x.o > U foo > 00000000 T main > 00000000 T nm_test_var > [hjl@gnu-cfl-2 pr25355]$ Which gcc version you test? gcc-10 switched to -fno-common in https://gcc.gnu.org/PR85678. -- You are receiving this mail because: You are on the CC list for the bug.