This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] diagnostics: fix alpha, arm, mips, sh, s390, etc etc


Your power changes weren't complete, and c-pragma.o won't build because the
calling sequence changed for altivec_resolve_overloaded_builtin, but you didn't
change the function signature, just the calls to build_decl.  I installed the
following patch as obvious.

Welcome to the club of long time contributers who have broken the build in a
major way.  Unfortunately it is a rather large club. :-)

2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
	Add location argument.
	* config/rs6000/rs6000-proto.h
	(altivec_resolve_overloaded_builtin): Ditto.

Index: gcc/config/rs6000/rs6000-protos.h
===================================================================
--- gcc/config/rs6000/rs6000-protos.h	(revision 148455)
+++ gcc/config/rs6000/rs6000-protos.h	(working copy)
@@ -132,7 +132,7 @@ extern void function_arg_advance (CUMULA
 				  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);
Index: gcc/config/rs6000/rs6000-c.c
===================================================================
--- gcc/config/rs6000/rs6000-c.c	(revision 148455)
+++ gcc/config/rs6000/rs6000-c.c	(working copy)
@@ -3001,8 +3001,10 @@ altivec_build_resolved_builtin (tree *ar
    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);


-- 
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]