diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-06-14 17:45:43 -0400 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2000-06-14 17:45:43 -0400 |
commit | e4a0656ff880f106b13691ea8fcf37a2ec4a7976 (patch) | |
tree | 147b1efe7bb233206dd9c1cfa8351d255e52ef21 | |
parent | d98a8d38dd84a3ffff7bf7366ca5972997245129 (diff) | |
download | gcc-e4a0656ff880f106b13691ea8fcf37a2ec4a7976.zip gcc-e4a0656ff880f106b13691ea8fcf37a2ec4a7976.tar.gz gcc-e4a0656ff880f106b13691ea8fcf37a2ec4a7976.tar.bz2 |
rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare LABEL_REFs.
2000-06-14 Geoff Keating <geoffk@cygnus.com>
* rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
LABEL_REFs.
From-SVN: r34558
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 56ce1e5..97094b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9bd42ac..66cb911 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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); } |