This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix target/29779, vectorizer fortran testcases failing
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 02 Dec 2006 16:42:02 -0800
- Subject: Re: [PATCH] Fix target/29779, vectorizer fortran testcases failing
- References: <1165082703.30345.31.camel@celery.andrew.com> <4571ECA4.8060406@lu.unisi.ch>
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;
}