https://sourceware.org/bugzilla/show_bug.cgi?id=25355
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-02-09
CC| |hjl.tools at gmail dot com
Summary|nm reports a variable as |nm reports data variable as
|"T" with -flto and |"T" with -flto
|-fno-common |
Ever confirmed|0 |1
--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
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]$
--
You are receiving this mail because:
You are on the CC list for the bug.