This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/78772] -fstrict-aliasing should turn on Wstrict-aliasing automaticly
- From: "ma.jiang at zte dot com.cn" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Dec 2016 10:29:38 +0000
- Subject: [Bug driver/78772] -fstrict-aliasing should turn on Wstrict-aliasing automaticly
- Auto-submitted: auto-generated
- References: <bug-78772-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78772
--- Comment #4 from ma.jiang at zte dot com.cn ---
(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.
Hi, Markus
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.