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] Fix target/29779, vectorizer fortran testcases failing


On Sat, 2006-12-02 at 22:14 +0100, Paolo Bonzini wrote:
> > -				   BUILT_IN_MD, NULL,
> > -				   tree_cons (get_identifier ("const"),
> > -					      NULL_TREE, NULL_TREE));
> > +				   BUILT_IN_MD, NULL, NULL_TREE);
> > +      TREE_READONLY (decl)
> 
> Uhm, the patch looks... weird...

This is what I get for moving it over from another machine manually :).

Anyways here is the corrected patch.

Thanks,
Andrew Pinski
Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c	(revision 119245)
+++ config/rs6000/rs6000.c	(working copy)
@@ -8765,9 +8765,8 @@ altivec_init_builtins (void)
       decl = add_builtin_function ("__builtin_altivec_mask_for_load",
 				   v16qi_ftype_long_pcvoid,
 				   ALTIVEC_BUILTIN_MASK_FOR_LOAD,
-				   BUILT_IN_MD, NULL,
-				   tree_cons (get_identifier ("const"),
-					      NULL_TREE, NULL_TREE));
+				   BUILT_IN_MD, NULL, NULL_TREE);
+      TREE_READONLY (decl) = 1;
       /* Record the decl. Will be used by rs6000_builtin_mask_for_load.  */
       altivec_builtin_mask_for_load = decl;
     }

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