summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-01-12 12:12:34 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2001-01-12 11:12:34 +0000
commitc3ffea50514f9cd804d69ee6a4bdd789112c3245 (patch)
tree9e18f7f1518139415d111016dd17541d92e8eb46 /gcc/combine.c
parent0949f72302592c9daf2a114fd89a858383ddf7ad (diff)
downloadgcc-c3ffea50514f9cd804d69ee6a4bdd789112c3245.tar.gz
combine.c (reversed_comparison): Fix typo in last patch.
* combine.c (reversed_comparison): Fix typo in last patch. Check X for NULL. (combine_reversed_comparison_code): Make static to follow prototype declaration. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r38942
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 53857edbf70..055cfc353f0 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -11123,7 +11123,7 @@ simplify_comparison (code, pop0, pop1)
/* Like jump.c' reversed_comparison_code, but use combine infrastructure for
searching backward. */
-enum rtx_code
+static enum rtx_code
combine_reversed_comparison_code (exp)
rtx exp;
{
@@ -11135,8 +11135,8 @@ combine_reversed_comparison_code (exp)
return code1;
/* Otherwise try and find where the condition codes were last set and
use that. */
- x = get_last_value (XEXP (x, 0));
- if (GET_CODE (x) != COMPARE)
+ x = get_last_value (XEXP (exp, 0));
+ if (!x || GET_CODE (x) != COMPARE)
return UNKNOWN;
return reversed_comparison_code_parts (GET_CODE (exp),
XEXP (x, 0), XEXP (x, 1), NULL);