From a8c0bbc7214a44d82448ea5b6d443f53c8b5c43b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 3 Feb 2004 13:24:39 -0800 Subject: [PATCH] * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings. From-SVN: r77191 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 144acac..daf843d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-02-03 Richard Henderson + + * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings. + 2004-02-03 J"orn Rennecke * config.gcc (sh[234]l): Use little endian fragments. diff --git a/gcc/varasm.c b/gcc/varasm.c index 27f2f34..91ca435 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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. */ -- 2.7.4