[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-29 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 --- Comment #6 from Roger Sayle --- I believe this should be "... && optimize != 0", i.e. we want to eliminate these calls (only) when optimizing. But this seems like a reasonable fix/feature request (to identify breakpoints at -O0).

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 Andrew Pinski changed: What|Removed |Added CC||roger at nextmovesoftware dot com ---

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > The code which introduced this was > g:8c6a82695b85f8ed74cdc67f2cf74c5a62d0d91d . https://gcc.gnu.org/pipermail/gcc-patches/2003-May/104797.html

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 Andrew Pinski changed: What|Removed |Added Known to work||3.3.3 Known to fail|

[Bug middle-end/53875] calls to const functions are eliminated at -O0

2021-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53875 Andrew Pinski changed: What|Removed |Added Component|c++ |middle-end --- Comment #2 from Andrew