re PR c/71514 (ICE on C11 code with atomic exchange at -O1 and above on x86_64-linux...
authorMarek Polacek <polacek@redhat.com>
Thu, 18 Aug 2016 16:38:49 +0000 (16:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 18 Aug 2016 16:38:49 +0000 (16:38 +0000)
commita76989dc7c9236214856db196da88a739f0e7baa
tree3ee35cf53621a4d475bebb671b56ce36af2f079e
parentf87e22c52128d9d9c9a72a81ae3922b46ce52e59
re PR c/71514 (ICE on C11 code with atomic exchange at -O1 and above on x86_64-linux-gnu: in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:879)

PR c/71514
* c-common.c (get_atomic_generic_size): Disallow pointer-to-function
and pointer-to-VLA.

* gcc.dg/pr71514.c: New test.

From-SVN: r239581
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71514.c [new file with mode: 0644]