clean up rtx constant pool
Richard Henderson
rth@twiddle.net
Tue Feb 3 18:21:00 GMT 2004
On Tue, Feb 03, 2004 at 03:37:28PM +0000, Joern Rennecke wrote:
> Is there a way to have multiple SYMBOL_REFS (with different modes)
> correspond to the same constant pool entry, or
I thought I'd preserved that, but slipped up here. Does this
fix it or is there something else I missed? If you can provide
a test case, that'd be helpful.
r~
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.409
diff -u -p -u -r1.409 varasm.c
--- varasm.c 2 Feb 2004 00:17:18 -0000 1.409
+++ varasm.c 3 Feb 2004 18:20:26 -0000
@@ -2617,7 +2617,7 @@ const_desc_rtx_sym_eq (const void *a, co
{
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. */
More information about the Gcc-patches
mailing list