rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare LABEL_REFs.
authorGeoff Keating <geoffk@cygnus.com>
Wed, 14 Jun 2000 21:45:43 +0000 (17:45 -0400)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 14 Jun 2000 21:45:43 +0000 (17:45 -0400)
2000-06-14  Geoff Keating  <geoffk@cygnus.com>

* rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
LABEL_REFs.

From-SVN: r34558

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 56ce1e5f64d8560bb00374d51ede191500d2f333..97094b3a3d37e98507a60675d6d80503e05a3ea8 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-14  Geoff Keating  <geoffk@cygnus.com>
+
+       * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
+       LABEL_REFs.
+
 2000-06-14  Richard Henderson  <rth@cygnus.com>
 
        * conflict.c (conflict_graph_compute): Don't look for REG_INC.
@@ -285,7 +290,7 @@ Mon Jun  12  9:44:00 2000  Mark Klein  <mklein@dis.com>
        (CPP_SPEC): Change mthreads to pthread.
        (LIB_SPEC): Likewise.
        (STARTFILE_SPEC): Likewise.
-       * aix43.h (SUBTARGET_SWITCHES): Delete thread.
+       * aix43.h (SUBTARGET_SWITCHES): Delete threads.
        (CPP_SPEC): Change mthreads to pthread.
        (LIB_SPEC): Likewise.
        (STARTFILE_SPEC): Likewise.
index 9bd42acd51289e74d13665eddb77e8ca1e74864c..66cb91145ace64a9a65d293a5fcb610c2b0f5db1 100644 (file)
@@ -6134,7 +6134,8 @@ toc_hash_eq (h1, h2)
       return 1;
     }
   else if (GET_CODE (r1) == LABEL_REF)
-    return XINT (XEXP (r1, 0), 3) == XINT (XEXP (r2, 0), 3);
+    return (CODE_LABEL_NUMBER (XEXP (r1, 0)) 
+           == CODE_LABEL_NUMBER (XEXP (r2, 0)));
   else
     return rtx_equal_p (r1, r2);
 }