diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-07-22 23:04:11 +0200 |
---|---|---|
committer | Stephane Carrez <ciceron@gcc.gnu.org> | 2002-07-22 23:04:11 +0200 |
commit | b791ff313e2df11cda7679ef7874749e1775ba9c (patch) | |
tree | d49e2ab2d2fb800bbace25d3dbd2348d04b07693 /gcc | |
parent | 4a94111573211a1cf8ab6e8fa35e23f0418ec25a (diff) | |
download | gcc-b791ff313e2df11cda7679ef7874749e1775ba9c.zip gcc-b791ff313e2df11cda7679ef7874749e1775ba9c.tar.gz gcc-b791ff313e2df11cda7679ef7874749e1775ba9c.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e16c79..176d51b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-07-22 Stephane Carrez <stcarrez@nerim.fr> + + PR target/7361 + * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept + constant addresses only on 68HC12. + 2002-07-22 Neil Booth <neil@daikokuya.co.uk> * cppfiles.c (stack_include_file): Correct test of whether diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index 6a72222..af47a55 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. */ |