aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-08-24 08:46:38 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-24 08:46:38 -0700
commit97dc04b39a0435315f95512f5214d22cabe67e16 (patch)
tree467c45352a962f5923c35a9726f78208789f2593 /gcc/config
parent6fd7cc54192ed659f81c0e5264f1004282011dca (diff)
downloadgcc-97dc04b39a0435315f95512f5214d22cabe67e16.zip
gcc-97dc04b39a0435315f95512f5214d22cabe67e16.tar.gz
gcc-97dc04b39a0435315f95512f5214d22cabe67e16.tar.bz2
gimplify.c (gimplify_array_ref_to_plus): Delete.
2004-08-24 Richard Henderson <rth@redhat.com> Andrew Pinski <apinski@apple.com> * gimplify.c (gimplify_array_ref_to_plus): Delete. (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus for ARRAY_REF. * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed ARRAY_REF also to get to the STRING_CST. Co-Authored-By: Andrew Pinski <apinski@apple.com> From-SVN: r86487
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 9da6d26..c6198cf 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -6784,7 +6784,8 @@ altivec_expand_builtin (tree exp, rtx target, bool *expandedp)
case ALTIVEC_BUILTIN_COMPILETIME_ERROR:
arg0 = TREE_VALUE (arglist);
- while (TREE_CODE (arg0) == NOP_EXPR || TREE_CODE (arg0) == ADDR_EXPR)
+ while (TREE_CODE (arg0) == NOP_EXPR || TREE_CODE (arg0) == ADDR_EXPR
+ || TREE_CODE (arg0) == ARRAY_REF)
arg0 = TREE_OPERAND (arg0, 0);
error ("invalid parameter combination for `%s' AltiVec intrinsic",
TREE_STRING_POINTER (arg0));