This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: clean up rtx constant pool


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]