aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-1.c
AgeCommit message (Collapse)AuthorFilesLines
2002-10-08c-opts.c (c_common_decode_option): Add warn_strict_aliasing to -Wall.Nathan Sidwell1-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-01re PR c/8083 (GCC does not warn for aliasing violations)Nathan Sidwell1-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