]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/29779 (vectorizer fortran testcases failing)
authorAndrew Pinski <pinskia@gmail.com>
Tue, 19 Dec 2006 08:28:46 +0000 (00:28 -0800)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 19 Dec 2006 08:28:46 +0000 (00:28 -0800)
2006-12-18  Andrew Pinski  <pinskia@gmail.com>

        PR target/29779
        * config/rs6000/rs6000.c (altivec_init_builtins): Change to set
        READONLY on __builtin_altivec_mask_for_load instead of adding
        the attribute.

From-SVN: r120045

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index a76a75a470d86e3590c5d414e390699c77658234..d6c71fbbcf741ac2cd44645e7eae93ba08fc7346 100644 (file)
@@ -1,3 +1,10 @@
+2006-12-18  Andrew Pinski  <pinskia@gmail.com>
+
+       PR target/29779
+       * config/rs6000/rs6000.c (altivec_init_builtins): Change to set
+       READONLY on __builtin_altivec_mask_for_load instead of adding
+       the attribute.
+
 2006-12-18  Roger Sayle  <roger@eyesopen.com>
            Eric Christopher  <echristo@apple.com>
 
index 3b175e373293133eff5549bbacebd34cbc0c9784..3d4b19c4756faafd9d558018c023196c2dba359b 100644 (file)
@@ -8802,9 +8802,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;
     }