r235832 - in /trunk/gcc: ChangeLog c-family/Cha...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Tue May 3 18:03:00 GMT 2016


Author: mpolacek
Date: Tue May  3 18:03:42 2016
New Revision: 235832

URL: https://gcc.gnu.org/viewcvs?rev=235832&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/gcc.dg/pr70859-2.c
    trunk/gcc/testsuite/gcc.dg/pr70859.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/input.c
    trunk/gcc/input.h
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list