From ec952125a593923386d180a02bf52c08abc1fbe7 Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Fri, 12 Jan 2018 12:10:56 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rx/rx.c | 3 +++ 2 files changed, 9 insertions(+) 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; -- 2.30.2