https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86078
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-06-07 Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- There is -Wdisabled-optimization, unfortunately it is used in only 3 places where we give up due to some limits. Note not in all cases such warnings are warranted - it's often a concious decision to limit algorithms to linear growth and warning when you hit limits to enforce that would lead to the false impression that if you lift the limit you will get more optimization. I'm thinking of the alias stmt walkers for example.