https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78772
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to ma.jiang from comment #4) > (In reply to Markus Trippelsdorf from comment #3) > > Please no. > > There are many other cases where optimizations could introduce issues that > > you will not notice when you compile without warnings. > > Just use -Wall. > Thanks for your quick reply. I know the existence of both "Wall" and > "Wextra", And I did use them when compiling my codes. But, there are many > guys do not know them. Moreover, As I see many open source projects does not > use them either. It is that OK to assume all gcc users know "Wall"? > On the other side, creating a new mechanism to open warnings for dangerous > optimizations is not a hard work as I think. We just need to create a table > which connect the optimization and corresponding warning. These optimizations are not dangerous if you use standard conforming code. We could have a discussion if it might be better to enable some -Wall warnings by default like Clang. But I'm not sure if this gives huge benefits to users.