From: Oleg Endo Date: Fri, 12 Jan 2018 12:10:56 +0000 (+0000) Subject: re PR target/81819 ([RX] internal compiler error: in rx_is_restricted_memory_address... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec952125a593923386d180a02bf52c08abc1fbe7;p=gcc.git re PR target/81819 ([RX] internal compiler error: in rx_is_restricted_memory_address, at config/rx/rx.c:311) gcc/ PR target/81819 * config/rx/rx.c (rx_is_restricted_memory_address): Handle SUBREG case. From-SVN: r256578 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f455875848..da8cc071c1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-12 Oleg Endo + + PR target/81819 + * config/rx/rx.c (rx_is_restricted_memory_address): + Handle SUBREG case. + 2018-01-12 Richard Biener PR tree-optimization/80846 diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index e3e89ec34fc..be8229818ae 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -288,6 +288,9 @@ rx_is_restricted_memory_address (rtx mem, machine_mode mode) /* Simple memory addresses are OK. */ return true; + case SUBREG: + return RX_REG_P (SUBREG_REG (mem)); + case PRE_DEC: case POST_INC: return false;