call.c (magic_varargs_p): Return 3 for __builtin_*_overflow_p.
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Jun 2016 11:04:29 +0000 (13:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Jun 2016 11:04:29 +0000 (13:04 +0200)
commit00085092c5e78d076c4259e1f955ce1b98090624
treea5be74dd1b38f05e395e46c9c539e60187f76173
parenta86451b9b20415805e6316638c349cce86252893
call.c (magic_varargs_p): Return 3 for __builtin_*_overflow_p.

* call.c (magic_varargs_p): Return 3 for __builtin_*_overflow_p.
(build_over_call): For magic == 3, do no conversion only on 3rd
argument.

* c-c++-common/torture/builtin-arith-overflow-p-19.c: Run for C++ too.
* g++.dg/ext/builtin-arith-overflow-2.C: New test.

From-SVN: r237755
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-p-19.c
gcc/testsuite/g++.dg/ext/builtin-arith-overflow-2.C [new file with mode: 0644]