Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2002-10-08 | c-opts.c (c_common_decode_option): Add warn_strict_aliasing to -Wall. | Nathan Sidwell | 1 | -3/+3 | |
gcc: * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to -Wall. * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak message. * flags.h (warn_strict_aliasing): Declare. * toplev.c (warn_strict_aliasing): Define. (lang_independent_options): Add it. * doc/invoke.texi (-Wstrict-aliasing): Document it. testsuite: * gcc.dg/alias-1.c: Tweak expected warning. From-SVN: r57938 | |||||
2002-10-01 | re PR c/8083 (GCC does not warn for aliasing violations) | Nathan Sidwell | 1 | -0/+28 | |
PR c/8083 * c-typeck.c (build_c_cast): Warn about type punning which breaks type based aliasing. testsuite: * gcc.dg/alias-1.c: New test. From-SVN: r57698 |