PR c/70859
commit5d4db8efb03c2ec4fa6ef1a22a657a295fc9f491
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2016 18:03:42 +0000 (3 18:03 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2016 18:03:42 +0000 (3 18:03 +0000)
tree1356923e14f6cfb6e6e6d80ac03712659ba41aa3
parentca938765fab75f4a2918d2e419bd6cc7247df223
PR c/70859
* input.c (expansion_point_location): New function.
* input.h (expansion_point_location): Declare.

* c-common.c (builtin_function_validate_nargs): Add location
parameter.  Use it.
(check_builtin_function_arguments): Add location and arguments
parameters.  Use them.
* c-common.h (check_builtin_function_arguments): Update declaration.

* c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
check_builtin_function_arguments.

* call.c (build_cxx_call): Pass location and vNULL down to
check_builtin_function_arguments.

* gcc.dg/pr70859.c: New test.
* gcc.dg/pr70859-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235832 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/input.c
gcc/input.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr70859-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr70859.c [new file with mode: 0644]