re PR middle-end/70054 (GCC 6 gives a strict-aliasing warning on use of std::aligned_...
authorRichard Biener <rguenther@suse.de>
Fri, 4 Mar 2016 08:31:19 +0000 (08:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 4 Mar 2016 08:31:19 +0000 (08:31 +0000)
commite9a35493b0811bd6dd2584dbe79e7e1dca4e1722
tree16ceea36318b74b1bd15b4fc05467a8d8123a5eb
parent6a27431a5482e70110ff3487bd7c7a8e90fbad9c
re PR middle-end/70054 (GCC 6 gives a strict-aliasing warning on use of std::aligned_storage)

2016-03-04  Richard Biener  <rguenther@suse.de>

PR c++/70054
* c-common.c (strict_aliasing_warning): Use alias_set_subset_of
instead of alias_sets_conflict_p.

* g++.dg/warn/Wstrict-aliasing-bogus-union-2.C: New testcase.
* gcc.dg/Wstrict-aliasing-struct-member.c: New testcase.

From-SVN: r233961
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-union-2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wstrict-aliasing-struct-member.c [new file with mode: 0644]