common.opt (Wcast-align=strict): New warning option.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 15 Sep 2017 17:21:50 +0000 (17:21 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Fri, 15 Sep 2017 17:21:50 +0000 (17:21 +0000)
commit1d9335766d86262f8335d63d99b328bb44543b01
tree5e9491b32fa26d79e07318fdf780451f77607b38
parent4a8ca690b0b73f4e0bae542fd69a1ee0d9e73126
common.opt (Wcast-align=strict): New warning option.

2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * common.opt (Wcast-align=strict): New warning option.
        * doc/invoke.texi: Document -Wcast-align=strict.

c:
2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.

cp:
2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * typeck.c (build_reinterpret_cast_1,
        build_const_cast_1): Implement -Wcast-align=strict.

testsuite:
2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/Wcast-align.c: New test.

From-SVN: r252832
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/common.opt
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wcast-align.c [new file with mode: 0644]