From 052a8489fa98dd707b0b6be93e769133e4df95d5 Mon Sep 17 00:00:00 2001 From: meissner Date: Sat, 13 Jun 2009 16:13:22 +0000 Subject: [PATCH] Fix powerpc breakage git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148456 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000-c.c | 4 +++- gcc/config/rs6000/rs6000-protos.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35be35e..27398ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-13 Michael Meissner + + * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): + Add location argument. + 2009-06-13 Aldy Hernandez * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 38af0f4..cd5c470 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -3001,8 +3001,10 @@ altivec_build_resolved_builtin (tree *args, int n, support Altivec's overloaded builtins. */ tree -altivec_resolve_overloaded_builtin (tree fndecl, void *passed_arglist) +altivec_resolve_overloaded_builtin (unsigned int loc, tree fndecl, + void *passed_arglist) { + location_t input_location = (location_t) loc; VEC(tree,gc) *arglist = (VEC(tree,gc) *) passed_arglist; unsigned int nargs = VEC_length (tree, arglist); unsigned int fcode = DECL_FUNCTION_CODE (fndecl); diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h index c080e60..0c5dad6 100644 --- a/gcc/config/rs6000/rs6000-protos.h +++ b/gcc/config/rs6000/rs6000-protos.h @@ -132,7 +132,7 @@ extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree, int, int); extern int function_arg_boundary (enum machine_mode, tree); extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int); -extern tree altivec_resolve_overloaded_builtin (tree, void *); +extern tree altivec_resolve_overloaded_builtin (unsigned int, tree, void *); extern rtx rs6000_function_value (const_tree, const_tree); extern rtx rs6000_libcall_value (enum machine_mode); extern rtx rs6000_va_arg (tree, tree); -- 2.7.4