[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments

2016-06-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883

Martin Sebor  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Known to fail|6.0 |6.1.0

--- Comment #5 from Martin Sebor  ---
Patch committed in r237268.  It's probably not worth backporting to 6.x branch.

[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments

2016-06-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883

--- Comment #4 from Martin Sebor  ---
Author: msebor
Date: Thu Jun  9 16:32:25 2016
New Revision: 237268

URL: https://gcc.gnu.org/viewcvs?rev=237268=gcc=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  

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  

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

[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments

2016-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883

--- Comment #3 from Martin Sebor  ---
Standalone patch requested and posted here:
https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00093.html

[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments

2016-05-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883

--- Comment #2 from Martin Sebor  ---
Patch posted for review:
https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00013.html

[Bug c/70883] inconsistent error message for calls to __builtin_add_overflow with too few arguments

2016-04-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70883

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-04-29
   Assignee|unassigned at gcc dot gnu.org  |msebor at gcc dot 
gnu.org
 Ever confirmed|0   |1
  Known to fail||5.3.0, 6.0

--- Comment #1 from Martin Sebor  ---
Since making the text of the diagnostic consistent is trivial I've included it
in my patch for bug 70507 that I'm about to submit for review.