]> gcc.gnu.org Git - gcc.git/commitdiff
combine.c (reversed_comparison): Fix typo in last patch.
authorAndreas Jaeger <aj@suse.de>
Fri, 12 Jan 2001 11:12:34 +0000 (12:12 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 12 Jan 2001 11:12:34 +0000 (11:12 +0000)
  * 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

gcc/ChangeLog
gcc/combine.c

index 1d8e146ae352a1723e0f38d95d753c4e1ceb960d..5dca7852955137f93850a239c06c2d2a773dac4b 100644 (file)
@@ -1,3 +1,11 @@
+Fri Jan 12 12:08:12 MET 2001  Andreas Jaeger  <aj@suse.de>
+                             Jan Hubicka  <jh@suse.cz>
+
+       * combine.c (reversed_comparison): Fix typo in last patch.
+       Check X for NULL.
+       (combine_reversed_comparison_code): Make static to follow
+       prototype declaration.
+
 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
 
        * install.texi:  Remove misplaced duplicate entry.
index 53857edbf70a0143b0940075d9ae74ea8d415982..055cfc353f0d7b1ca12258a49db42714abb2af00 100644 (file)
@@ -11123,7 +11123,7 @@ simplify_comparison (code, pop0, pop1)
 \f
 /* 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);
This page took 0.084214 seconds and 5 git commands to generate.