aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2007-09-24 20:57:06 +0000
committerRoman Zippel <zippel@gcc.gnu.org>2007-09-24 20:57:06 +0000
commitd5aa0eb1c46a81b4daa9d6107504e4464a05116e (patch)
treebd14d158e6fc26f457cedf27d54bbcd5da361880 /gcc/final.c
parent7a20d68989dac61d98b12b5d32404f04021d211f (diff)
downloadgcc-d5aa0eb1c46a81b4daa9d6107504e4464a05116e.zip
gcc-d5aa0eb1c46a81b4daa9d6107504e4464a05116e.tar.gz
gcc-d5aa0eb1c46a81b4daa9d6107504e4464a05116e.tar.bz2
* gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
From-SVN: r128726
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 8af31cc..b59a222 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -2387,41 +2387,6 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
INSN_CODE (insn) = -1;
}
- /* If this is a conditional trap, maybe modify it if the cc's
- are in a nonstandard state so that it accomplishes the same
- thing that it would do straightforwardly if the cc's were
- set up normally. */
- if (cc_status.flags != 0
- && NONJUMP_INSN_P (insn)
- && GET_CODE (body) == TRAP_IF
- && COMPARISON_P (TRAP_CONDITION (body))
- && XEXP (TRAP_CONDITION (body), 0) == cc0_rtx)
- {
- /* This function may alter the contents of its argument
- and clear some of the cc_status.flags bits.
- It may also return 1 meaning condition now always true
- or -1 meaning condition now always false
- or 2 meaning condition nontrivial but altered. */
- int result = alter_cond (TRAP_CONDITION (body));
-
- /* If TRAP_CONDITION has become always false, delete the
- instruction. */
- if (result == -1)
- {
- delete_insn (insn);
- break;
- }
-
- /* If TRAP_CONDITION has become always true, replace
- TRAP_CONDITION with const_true_rtx. */
- if (result == 1)
- TRAP_CONDITION (body) = const_true_rtx;
-
- /* Rerecognize the instruction if it has changed. */
- if (result != 0)
- INSN_CODE (insn) = -1;
- }
-
/* Make same adjustments to instructions that examine the
condition codes without jumping and instructions that
handle conditional moves (if this machine has either one). */