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

Silvius Rus
Tue May 8 20:38:00 GMT 2007

Could a frontend maintainer please review this?  Both the C and C++ 
frontends are touched.

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

Thank you!

More information about the Gcc-patches mailing list