re PR target/81819 ([RX] internal compiler error: in rx_is_restricted_memory_address...
authorOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Jan 2018 12:10:56 +0000 (12:10 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Jan 2018 12:10:56 +0000 (12:10 +0000)
gcc/
PR target/81819
* config/rx/rx.c (rx_is_restricted_memory_address):
Handle SUBREG case.

From-SVN: r256578

gcc/ChangeLog
gcc/config/rx/rx.c

index 1f455875848eafc61560cf2b6e7f0aeab3c2f130..da8cc071c1f6c0f8935404438293578392a1c665 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-12  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/81819
+       * config/rx/rx.c (rx_is_restricted_memory_address):
+       Handle SUBREG case.
+
 2018-01-12  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/80846
index e3e89ec34fc4a1c86541c534430be6f8c61b9c9e..be8229818ae0a9aa32ab813b1ae895efb920b4e7 100644 (file)
@@ -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;