re PR c/90628 (__builtin_mul_overflow writes to const qualified integer)
authorJakub Jelinek <jakub@redhat.com>
Wed, 29 May 2019 07:48:37 +0000 (09:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 29 May 2019 07:48:37 +0000 (09:48 +0200)
commit357a352fe3a3a96b1a8c321f36a010e3798abdeb
treeeabc83199bfbf52976e7d3378a8a94f7124cc347
parentb0df5ff8bec008165d90e57e64e3643196f527c2
re PR c/90628 (__builtin_mul_overflow writes to const qualified integer)

PR c/90628
* c-common.c (check_builtin_function_arguments)
<case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer
as last argument.

* c-c++-common/builtin-arith-overflow-3.c: New test.

From-SVN: r271732
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/builtin-arith-overflow-3.c [new file with mode: 0644]