re PR c/86093 (volatile ignored on pointer in C)
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Jun 2018 20:53:54 +0000 (22:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Jun 2018 20:53:54 +0000 (22:53 +0200)
commit487f2f61bb1bad721f41a7f767efe04df4b0b058
tree931ee4adff13dafe3bfa8dd9c958ae91481cc4c2
parentda8ea71e3733ba9c5f70a84cea9cafea6b0126b0
re PR c/86093 (volatile ignored on pointer in C)

PR c/86093
* c-typeck.c (pointer_diff): Cast both pointers to unqualified types
before doing POINTER_DIFF_EXPR.

* c-c++-common/pr86093.c: New test.

From-SVN: r261663
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr86093.c [new file with mode: 0644]