From 61210b72911913f201aa6476a13921bc43cc050c Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 19 Dec 2006 00:28:46 -0800 Subject: [PATCH] re PR fortran/29779 (vectorizer fortran testcases failing) 2006-12-18 Andrew Pinski 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 | 7 +++++++ gcc/config/rs6000/rs6000.c | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a76a75a470d8..d6c71fbbcf74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-12-18 Andrew Pinski + + 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 Eric Christopher diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3b175e373293..3d4b19c4756f 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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; } -- 2.47.2