[Bug gcov-profile/104685] multiple common of `__gcov_var'

2022-02-26 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104685 --- Comment #3 from Gejoe --- Thank you Richard for your valuable inputs. That helps !!

[Bug gcov-profile/104685] multiple common of `__gcov_var'

2022-02-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
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; }

[Bug gcov-profile/104685] multiple common of `__gcov_var'

2022-02-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
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