diff options
author | Marek Polacek <polacek@redhat.com> | 2016-05-03 18:03:42 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-05-03 18:03:42 +0000 |
commit | 79ce98bcefbcd42548dc596316c27b162cabb610 (patch) | |
tree | 1356923e14f6cfb6e6e6d80ac03712659ba41aa3 /gcc/input.h | |
parent | 402e89f5986220a96898381cc32f7efe76bd092c (diff) | |
download | gcc-79ce98bcefbcd42548dc596316c27b162cabb610.zip gcc-79ce98bcefbcd42548dc596316c27b162cabb610.tar.gz gcc-79ce98bcefbcd42548dc596316c27b162cabb610.tar.bz2 |
re PR c/70859 (Bad column number in type-generic function errors)
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.
From-SVN: r235832
Diffstat (limited to 'gcc/input.h')
-rw-r--r-- | gcc/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h index 97c4333..ae4fecf 100644 --- a/gcc/input.h +++ b/gcc/input.h @@ -42,6 +42,7 @@ extern const char *location_get_source_line (const char *file_path, int line, int *line_size); extern expanded_location expand_location_to_spelling_point (source_location); extern source_location expansion_point_location_if_in_system_header (source_location); +extern source_location expansion_point_location (source_location); /* Historically GCC used location_t, while cpp used source_location. This could be removed but it hardly seems worth the effort. */ |