OSDN Git Service

* sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2005 19:19:18 +0000 (19:19 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2005 19:19:18 +0000 (19:19 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101662 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.c

index c6c968b..09f1c17 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
+
+       * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
+
 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
 
        Fix PR tree-optimization/22319
index 7e30e97..608ce64 100644 (file)
@@ -4951,12 +4951,10 @@ final_prescan_insn (rtx insn, rtx *opvec ATTRIBUTE_UNUSED,
          rtx pattern;
 
          pattern = PATTERN (insn);
+         if (GET_CODE (pattern) == PARALLEL)
+           pattern = XVECEXP (pattern, 0, 0);
          switch (GET_CODE (pattern))
            {
-           case PARALLEL:
-             pattern = XVECEXP (pattern, 0, 0);
-             break;
-
            case SET:
              if (GET_CODE (SET_SRC (pattern)) != CALL
                  && get_attr_type (insn) != TYPE_SFUNC)