https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104685
--- Comment #3 from Gejoe ---
Thank you Richard for your valuable inputs.
That helps !!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104685
--- Comment #2 from Richard Biener ---
Using link-time optimization is a more reliable way of detecting real errors
here btw:
rguenther@ryzen:/tmp> cat t1.c
int i;
rguenther@ryzen:/tmp> cat t2.c
float i;
int main()
{
return i;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104685
--- Comment #1 from Richard Biener ---
I suppose your setup will warn for
t.c
---
int i;
t2.c
---
int i;
as well. -Wl,--warn-common isn't something I'd recommend, esp. the
'multiple common of ' kind is prone to false positives. It does