From: Eric Botcazou Date: Sun, 28 Aug 2016 08:50:09 +0000 (+0000) Subject: re PR target/77324 (ICE in push_reload, at reload.c:1350) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=710a2e102899b92d4368ec357d9be32e78387de7;p=gcc.git re PR target/77324 (ICE in push_reload, at reload.c:1350) PR target/77324 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special HIGH+LO construct during reload. From-SVN: r239807 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ddb5bd188b..95fcf6a5656 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-08-28 Eric Botcazou + + PR target/77324 + * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special + HIGH+LO construct during reload. + 2016-08-28 Tom de Vries PR lto/70955 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index f5cc113dc0f..254b72298a3 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -4039,6 +4039,13 @@ sparc_legitimate_address_p (machine_mode mode, rtx addr, bool strict) than the alignment (8) may cause the LO_SUM to overflow. */ if (mode == TFmode && TARGET_ARCH32) return 0; + + /* During reload, accept the HIGH+LO_SUM construct generated by + sparc_legitimize_reload_address. */ + if (reload_in_progress + && GET_CODE (rs1) == HIGH + && XEXP (rs1, 0) == imm1) + return 1; } else if (GET_CODE (addr) == CONST_INT && SMALL_INT (addr)) return 1;