https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84293

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Fri Feb  9 19:31:10 2018
New Revision: 257539

URL: https://gcc.gnu.org/viewcvs?rev=257539&root=gcc&view=rev
Log:
[PR c/84293] Unexpected strict-alias warning

https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00510.html
        PR c/84293
        gcc/c/
        * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location
        to strict_aliasing_warning.

        gcc/c-family/
        * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
        arg.
        * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
        arg.  Adjust.

        gcc/cp/
        * typeck.c (cp_build_indirect_ref_1, build_reinterpret_cast_1):
        Pass expr location to strict_aliasing_warning.

        gcc/testsuite/
        * c-c++-common/pr84293.h: New.
        * c-c++-common/pr84293.c: New.

Added:
    trunk/gcc/testsuite/c-c++-common/pr84293.c
    trunk/gcc/testsuite/c-c++-common/pr84293.h
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to