This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]