rs6000.c (rs6000_legitimate_address): Allow any stack offsets if not REG_OK_STRICT.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Wed, 2 May 2001 20:30:19 +0000 (20:30 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Wed, 2 May 2001 20:30:19 +0000 (20:30 +0000)
commit258bfae2f7ab7b1c369fe3343a1132f16396072b
treedc28da252f441098a54788a3e9014a940e14515a
parentd34c5b8062a04951df36f69493cb9084e7645ccc
rs6000.c (rs6000_legitimate_address): Allow any stack offsets if not REG_OK_STRICT.

        2000-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow any stack
        offsets if not REG_OK_STRICT.

        * config/rs6000/rs6000.h (REG_OK_STRICT_FLAG): New macro.
        (INT_REG_OK_FOR_INDEX_P): Likewise.
        (INT_REG_OK_FOR_BASE_P): Likewise.
        (REG_OK_FOR_INDEX_P): Use INT_REG_OK_FOR_INDEX_P.
        (REG_OK_FOR_BASE_P): Use INT_REG_OK_FOR_BASE_P.
        (LEGITIMATE_OFFSET_ADDRESS_P): Use INT_REG_OK_FOR_INDEX_P and
        INT_REG_OK_FOR_BASE_P instead of REG_OK_FOR_INDEX_P and
        REG_OK_FOR_BASE_P. Take an additional parameter.
        (LEGITIMATE_INDEXED_ADDRESS_P): Likeewise.
        (LEGITIMATE_INDIRECT_ADDRESS_P): Likewise.
        (LEGITIMATE_LO_SUM_ADDRESS_P): Likewise.
        (GO_IF_LEGITIMATE_ADDRESS): Move code into new function
        rs6000_legitimate_address() and use it.
        * config/rs6000/rs6000.c: Update all callers.
        (rs6000_legitimate_address): New function.

From-SVN: r41772
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h