From d509f2b546e6012aacee2fc565030f6dd951ae15 Mon Sep 17 00:00:00 2001 From: ramana Date: Fri, 25 May 2012 09:57:57 +0000 Subject: [PATCH] 2012-05-25 Ramana Radhakrishnan Backport from mainline 2012-03-12 Richard Guenther * config/arm/arm.c (neon_dereference_pointer): Do not call covert during RTL expansion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187876 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/config/arm/arm.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a31e05ea16..bfcc18da4e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-05-25 Ramana Radhakrishnan + + Backport from mainline + 2012-03-12 Richard Guenther + * config/arm/arm.c (neon_dereference_pointer): Do not call + covert during RTL expansion. + 2012-05-24 Bill Schmidt Backport from mainline diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 01dda9ad84b..66d44d59712 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -20604,9 +20604,8 @@ neon_dereference_pointer (tree exp, enum machine_mode mem_mode, array_type = build_array_type (elem_type, build_index_type (upper_bound)); /* Dereference EXP using that type. */ - exp = convert (build_pointer_type (array_type), exp); return fold_build2 (MEM_REF, array_type, exp, - build_int_cst (TREE_TYPE (exp), 0)); + build_int_cst (build_pointer_type (array_type), 0)); } /* Expand a Neon builtin. */ -- 2.11.0