diff options
author | Stephane Carrez <Stephane.Carrez@nerim.fr> | 2002-06-28 21:52:17 +0200 |
---|---|---|
committer | Stephane Carrez <ciceron@gcc.gnu.org> | 2002-06-28 21:52:17 +0200 |
commit | 3cdd28216bc8b55707778b7dfbbbf1782ef5267b (patch) | |
tree | c8866aa0877135c0bc066049d6a68804fac2cc84 /gcc | |
parent | 7c3abc7301da1e894d7b05af5c08859a502a582d (diff) | |
download | gcc-3cdd28216bc8b55707778b7dfbbbf1782ef5267b.zip gcc-3cdd28216bc8b55707778b7dfbbbf1782ef5267b.tar.gz gcc-3cdd28216bc8b55707778b7dfbbbf1782ef5267b.tar.bz2 |
m68hc11.c (register_indirect_p): For 68HC12 a constant can be a valid address.
* config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
can be a valid address.
From-SVN: r55073
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a03162..e3f267d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr> + + * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant + can be a valid address. + 2002-06-28 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c: Remove unusued variables from last diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index b3dab48..50b831e 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -1,6 +1,6 @@ /* Subroutines for code generation on Motorola 68HC11 and 68HC12. Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. - Contributed by Stephane Carrez (stcarrez@worldnet.fr) + Contributed by Stephane Carrez (stcarrez@nerim.fr) This file is part of GNU CC. @@ -550,6 +550,12 @@ register_indirect_p (operand, mode, strict) case REG: return REGNO_OK_FOR_BASE_P2 (REGNO (operand), strict); + case CONST_INT: + if (TARGET_M6811) + return 0; + + return VALID_CONSTANT_OFFSET_P (operand, mode); + default: return 0; } |