[Bug ipa/117672] Remove unused virtual methods

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug ipa/117672] Remove unused virtual methods

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672 Andrew Pinski changed: What|Removed |Added Keywords||code-size Severity|normal

[Bug ipa/117672] Remove unused virtual methods

2024-11-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672 --- Comment #4 from Jan Hubicka --- There is constructor of the static variable (_GLOBAL__sub_I_main) which we do not optimize out since we think it makes useful memory writes since at that stage we do not know that static var is effectively wri

[Bug ipa/117672] Remove unused virtual methods

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672 --- Comment #3 from R. Diez --- This is an example: class test_class { public: // The mere existence of this empty constructor is enough // to make GCC generate an empty _GLOBAL__sub_I_main block // and to keep all unused virtual methods.

[Bug ipa/117672] Remove unused virtual methods

2024-11-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117672 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org Co