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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120045
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
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;
}