[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 9 16:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Thu Jun 9 16:32:25 2016
New Revision: 237268
URL: https://gcc.gnu.org/viewcvs?rev=237268&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c
trunk/gcc/testsuite/gcc.dg/builtin-constant_p-1.c
trunk/gcc/testsuite/gcc.dg/builtins-error.c
trunk/gcc/testsuite/gcc.dg/pr70859.c
More information about the Gcc-bugs
mailing list