re PR c++/80593 (GCC 7, aligned_storage and “dereferencing type-punned pointer will...
authorRichard Biener <rguenther@suse.de>
Fri, 19 May 2017 12:34:54 +0000 (12:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 19 May 2017 12:34:54 +0000 (12:34 +0000)
commit39aac208ab684854886fb72835c538ea1e11d8a1
treeb8bc6b10af07105735e75380f433a969f291869f
parentf00e3d4e655069121d9cca74d6b70219a9c6378f
re PR c++/80593 (GCC 7, aligned_storage and “dereferencing type-punned pointer will break strict-aliasing rules”)

2017-05-19  Richard Biener  <rguenther@suse.de>

PR c++/80593
* c-warn.c (strict_aliasing_warning): Do not warn for accesses
to alias-set zero memory.

* g++.dg/warn/Wstrict-aliasing-bogus-char-2.C: New testcase.
* g++.dg/warn/Wstrict-aliasing-6.C: Adjust expected outcome.

From-SVN: r248269
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-6.C
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-char-2.C [new file with mode: 0644]