OSDN Git Service

2005-11-24 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Nov 2005 10:48:15 +0000 (10:48 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Nov 2005 10:48:15 +0000 (10:48 +0000)
commitbcf223713db30eae936f8aaea769646d47a41cfc
tree2423af056692fa5b5f531ef395833a9a44b629dd
parente2ac3a1833dd076e8f8f1bc172b16e44542ff12f
2005-11-24  Richard Guenther  <rguenther@suse.de>
Dirk Mueller <dmueller@suse.de>

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107459 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-6.C [new file with mode: 0644]