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
This commit is contained in:
Geoff Keating 2000-06-14 17:45:43 -04:00 committed by David Edelsohn
parent d98a8d38dd
commit e4a0656ff8
2 changed files with 8 additions and 2 deletions

View 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.

View 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);
}