re PR middle-end/77624 (ICE on x86_64-linux-gnu (internal compiler error: in fold_bui...
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Sep 2016 13:48:40 +0000 (15:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Sep 2016 13:48:40 +0000 (15:48 +0200)
commit7d9cf8015969054f044ee815f0308e7130c59b83
tree0317661a91abecaca87f11977e90131e5694f151
parent3aebb6ff7588a68535cbc3c865bb316d29932c7f
re PR middle-end/77624 (ICE on x86_64-linux-gnu (internal compiler error: in fold_builtin_atomic_always_lock_free, at builtins.c:5583))

PR middle-end/77624
* builtins.c (fold_builtin_atomic_always_lock_free): Only look through
cast to void * if the cast is from some other pointer type.

* c-c++-common/pr77624-1.c: New test.
* c-c++-common/pr77624-2.c: New test.

From-SVN: r240263
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr77624-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr77624-2.c [new file with mode: 0644]