------- 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

Reply via email to