aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2008-03-29 21:33:54 +0000
committerBen Elliston <bje@gcc.gnu.org>2008-03-30 08:33:54 +1100
commit744c6d6e71f00edc77993b2b935cf8bc326b7fd8 (patch)
treedc2304b238d519549242859b47381887828ef9b0 /gcc/final.c
parente3a692a4cb349b4cd9bd26d1fc142cc17c2c6910 (diff)
downloadgcc-744c6d6e71f00edc77993b2b935cf8bc326b7fd8.zip
gcc-744c6d6e71f00edc77993b2b935cf8bc326b7fd8.tar.gz
gcc-744c6d6e71f00edc77993b2b935cf8bc326b7fd8.tar.bz2
* final.c (final_scan_insn): Remove if (0) code.
From-SVN: r133719
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 2968174..9816624 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1978,30 +1978,6 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
}
#ifdef HAVE_cc0
CC_STATUS_INIT;
- /* If this label is reached from only one place, set the condition
- codes from the instruction just before the branch. */
-
- /* Disabled because some insns set cc_status in the C output code
- and NOTICE_UPDATE_CC alone can set incorrect status. */
- if (0 /* optimize && LABEL_NUSES (insn) == 1*/)
- {
- rtx jump = LABEL_REFS (insn);
- rtx barrier = prev_nonnote_insn (insn);
- rtx prev;
- /* If the LABEL_REFS field of this label has been set to point
- at a branch, the predecessor of the branch is a regular
- insn, and that branch is the only way to reach this label,
- set the condition codes based on the branch and its
- predecessor. */
- if (barrier && BARRIER_P (barrier)
- && jump && JUMP_P (jump)
- && (prev = prev_nonnote_insn (jump))
- && NONJUMP_INSN_P (prev))
- {
- NOTICE_UPDATE_CC (PATTERN (prev), prev);
- NOTICE_UPDATE_CC (PATTERN (jump), jump);
- }
- }
#endif
if (LABEL_NAME (insn))