From: James Bowman Date: Thu, 17 Sep 2015 02:29:25 +0000 (+0000) Subject: [FT32] Fix memory address space predicate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a481f93b12d748610b2ebe947f8532765e4890d0;p=gcc.git [FT32] Fix memory address space predicate. gcc/ * config/ft32/ft32.c Fix the memory address space predicate. From-SVN: r227841 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index babc86b28e4..e314006eb79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-09-16 James Bowman + + * config/ft32/ft32.c Fix the memory address space predicate. + 2015-09-16 Kaz Kojima PR target/67573 diff --git a/gcc/config/ft32/ft32.c b/gcc/config/ft32/ft32.c index f2e2677b2de..95df59676ab 100644 --- a/gcc/config/ft32/ft32.c +++ b/gcc/config/ft32/ft32.c @@ -745,12 +745,8 @@ ft32_arg_partial_bytes (cumulative_args_t cum_v, int ft32_is_mem_pm (rtx o) { - if (GET_CODE (o) != MEM) - return false; - if (MEM_EXPR (o)) - return TYPE_ADDR_SPACE (TREE_TYPE (MEM_EXPR (o))) == ADDR_SPACE_PM; - else - return MEM_ADDR_SPACE (o) == ADDR_SPACE_PM; + return (MEM_P (o) + && !ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (o))); } /* The Global `targetm' Variable. */