Ping 2: Patch: Implementation of -Wstrict-aliasing, take 3

Silvius Rus rus@google.com
Tue May 8 20:38:00 GMT 2007



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



More information about the Gcc-patches mailing list