PR c/70883 - inconsistent error message for calls to __builtin_add_overflow
authorMartin Sebor <msebor@redhat.com>
Thu, 9 Jun 2016 16:32:25 +0000 (16:32 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 9 Jun 2016 16:32:25 +0000 (10:32 -0600)
commite01b4e16930ba0183bff94c88bce20501af8bbe4
treef7d07e4087dc65791d0dd86af7b3aa9fab866124
parent386a87e4f1597f4014b0bea959298e6e9511d7c6
PR c/70883 - inconsistent error message for calls to __builtin_add_overflow

PR c/70883 - inconsistent error message for calls to __builtin_add_overflow
  with too few arguments

gcc/c-family/ChangeLog:
2016-06-09  Martin Sebor  <msebor@redhat.com>

PR c/70883
* c-common.c (builtin_function_validate_nargs): Make text of error
message consistent with others like it.

gcc/testsuite/ChangeLog:
2016-06-09  Martin Sebor  <msebor@redhat.com>

PR c/70883
* c-c++-common/builtin-arith-overflow-1.c: Adjust diagnostic text.
* gcc.dg/builtin-constant_p-1.c: Same.
* gcc.dg/builtins-error.c: Same.
* gcc.dg/pr70859.c: Same.

From-SVN: r237268
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c
gcc/testsuite/gcc.dg/builtin-constant_p-1.c
gcc/testsuite/gcc.dg/builtins-error.c
gcc/testsuite/gcc.dg/pr70859.c