PR middle-end/77624
commit2f8a2ead09c1fca91c3d18d0ba378a98695ac452
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2016 13:48:40 +0000 (20 13:48 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Sep 2016 13:48:40 +0000 (20 13:48 +0000)
tree0317661a91abecaca87f11977e90131e5694f151
parenta1268ee16df5dc393f29b5291b4dff78f698e76d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240263 138bc75d-0d04-0410-961f-82ee72b054a4
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]