This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Ping 2: Patch: Implementation of -Wstrict-aliasing, take 3
- From: Silvius Rus <rus at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: jsm at polyomino dot org dot uk, rth at redhat dot com, jason at redhat dot com, mark at codesourcery dot com, nathan at codesourcery dot com
- Date: Tue, 08 May 2007 13:37:54 -0700
- Subject: Ping 2: Patch: Implementation of -Wstrict-aliasing, take 3
Could a frontend maintainer please review this? Both the C and C++
frontends are touched.
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01747.html
The backend part was OK-ed by Diego Novillo.
The front-end part is relatively straightforward. There are three
changes from the previous implementation of -Wstrict-aliasing:
1. Added checks in build_indirect_ref so that we can distinguish the
dangerous conversions that do get dereferenced from those that do not
get dereferenced.
2. Added marking for trees that trigger a warning in the frontend so
that the backend does not issue duplicate warnings.
3. Modified the warning levels as discussed in
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00363.html.
Thank you!
Silvius