From: Stephane Carrez Date: Mon, 22 Jul 2002 21:04:11 +0000 (+0200) Subject: re PR target/7361 (Internal compiler error in reload_cse_simplify_operands, at reload... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b791ff313e2df11cda7679ef7874749e1775ba9c;p=gcc.git re PR target/7361 (Internal compiler error in reload_cse_simplify_operands, at reload1.c:8387) PR target/7361 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept constant addresses only on 68HC12. From-SVN: r55658 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e16c796d28..176d51bb9a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-07-22 Stephane Carrez + + PR target/7361 + * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept + constant addresses only on 68HC12. + 2002-07-22 Neil Booth * cppfiles.c (stack_include_file): Correct test of whether diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index 6a722224010..af47a552460 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -660,7 +660,7 @@ go_if_legitimate_address_internal (operand, mode, strict) enum machine_mode mode; int strict; { - if (CONSTANT_ADDRESS_P (operand)) + if (CONSTANT_ADDRESS_P (operand) && TARGET_M6812) { /* Reject the global variables if they are too wide. This forces a load of their address in a register and generates smaller code. */