OSDN Git Service

* regclass.c (record_operand_costs): Protect reg_changes_size
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 May 2000 20:39:51 +0000 (20:39 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 May 2000 20:39:51 +0000 (20:39 +0000)
        with CLASS_CANNOT_CHANGE_SIZE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34238 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regclass.c

index c4e1797..ba57538 100644 (file)
@@ -1,5 +1,8 @@
 2000-05-28  Richard Henderson  <rth@cygnus.com>
 
+       * regclass.c (record_operand_costs): Protect reg_changes_size
+       with CLASS_CANNOT_CHANGE_SIZE.
+
        * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
 
 2000-05-28  Richard Henderson  <rth@cygnus.com>
index 6a741a6..3db64a2 100644 (file)
@@ -859,9 +859,11 @@ record_operand_costs (insn, op_costs, reg_pref)
       if (GET_CODE (recog_data.operand[i]) == SUBREG)
        {
          rtx inner = SUBREG_REG (recog_data.operand[i]);
+#ifdef CLASS_CANNOT_CHANGE_SIZE
          if (GET_MODE_SIZE (modes[i]) != GET_MODE_SIZE (GET_MODE (inner))
              && GET_CODE (inner) == REG)
            SET_REGNO_REG_SET (reg_changes_size, REGNO (inner));
+#endif
          recog_data.operand[i] = inner;
        }