This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29779] [4.3 Regression] vectorizer fortran testcases failing
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2006 19:58:57 -0000
- Subject: [Bug fortran/29779] [4.3 Regression] vectorizer fortran testcases failing
- References: <bug-29779-8585@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-11-12 19:58 -------
This patch should fix the problem:
Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c (revision 118728)
+++ config/rs6000/rs6000.c (working copy)
@@ -8711,9 +8711,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_READONLY (decl) = 1;
/* Record the decl. Will be used by rs6000_builtin_mask_for_load. */
altivec_builtin_mask_for_load = decl;
}
I don't think we should be using attributes here really.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29779