aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <crux@pool.informatik.rwth-aachen.de>1998-10-19 12:28:19 +0000
committerJeff Law <law@gcc.gnu.org>1998-10-19 06:28:19 -0600
commit51d87cd905f80052041194f99839ac2df6dc4b68 (patch)
tree998347324efaad465981ac9ec9206380c65bde25 /gcc
parente1f7435e415108d10eb601d21b5785bbbc838e54 (diff)
downloadgcc-51d87cd905f80052041194f99839ac2df6dc4b68.zip
gcc-51d87cd905f80052041194f99839ac2df6dc4b68.tar.gz
gcc-51d87cd905f80052041194f99839ac2df6dc4b68.tar.bz2
* jump.c (sets_cc0_p): Compile only if HAVE_cc0.
From-SVN: r23180
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/jump.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5d3a4cb..25a0385 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Mon Oct 19 13:26:24 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
+
+ * jump.c (sets_cc0_p): Compile only if HAVE_cc0.
+
Mon Oct 19 11:40:56 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (scan_loop): Be more selective about what invariants are
diff --git a/gcc/jump.c b/gcc/jump.c
index 6884270..9748fb2 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -3317,6 +3317,8 @@ condjump_in_parallel_p (insn)
return 0;
}
+#ifdef HAVE_cc0
+
/* Return 1 if X is an RTX that does nothing but set the condition codes
and CLOBBER or USE registers.
Return -1 if X does explicitly set the condition codes,
@@ -3326,7 +3328,6 @@ int
sets_cc0_p (x)
rtx x ATTRIBUTE_UNUSED;
{
-#ifdef HAVE_cc0
if (GET_CODE (x) == SET && SET_DEST (x) == cc0_rtx)
return 1;
if (GET_CODE (x) == PARALLEL)
@@ -3345,10 +3346,8 @@ sets_cc0_p (x)
return ! sets_cc0 ? 0 : other_things ? -1 : 1;
}
return 0;
-#else
- abort ();
-#endif
}
+#endif
/* Follow any unconditional jump at LABEL;
return the ultimate label reached by any such chain of jumps.