* varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.

From-SVN: r77191
This commit is contained in:
Richard Henderson 2004-02-03 13:24:39 -08:00 committed by Richard Henderson
parent 18f5be99b4
commit a8c0bbc721
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-02-03 Richard Henderson <rth@redhat.com>
* varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
* config.gcc (sh[234]l): Use little endian fragments.

View File

@ -2617,7 +2617,7 @@ const_desc_rtx_sym_eq (const void *a, const void *b)
{
const struct constant_descriptor_rtx *x = a;
const struct constant_descriptor_rtx *y = b;
return x->sym == y->sym;
return XSTR (x->sym, 0) == XSTR (y->sym, 0);
}
/* This is the worker function for const_rtx_hash, called via for_each_rtx. */