------- Comment #4 from rguenth at gcc dot gnu dot org  2005-11-24 10:48 -------
Subject: Bug 14024

Author: rguenth
Date: Thu Nov 24 10:48:15 2005
New Revision: 107459

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107459
Log:
2005-11-24  Richard Guenther  <[EMAIL PROTECTED]>
        Dirk Mueller <[EMAIL PROTECTED]>

        PR c++/14024
        * c-common.h (strict_aliasing_warning): Declare.
        * c-common.c (strict_aliasing_warning): New function,
        split out from ...
        * c-typeck.c (build_c_cast): ... here.

        * typeck.c (build_reinterpret_cast_1): Use it.

        * g++.dg/warn/Wstrict-aliasing-1.C: New testcase.
        * g++.dg/warn/Wstrict-aliasing-2.C: Likewise.
        * g++.dg/warn/Wstrict-aliasing-3.C: Likewise.
        * g++.dg/warn/Wstrict-aliasing-4.C: Likewise.
        * g++.dg/warn/Wstrict-aliasing-5.C: Likewise.
        * g++.dg/warn/Wstrict-aliasing-6.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-1.C
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-2.C
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-3.C
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-4.C
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-5.C
    trunk/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-6.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/c-common.h
    trunk/gcc/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14024

Reply via email to