This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: clean up rtx constant pool
On Fri, Jan 30, 2004 at 04:39:38PM -0500, David Edelsohn wrote:
> Maybe testing on more than one platform would have been prudent?
I suppose I should have picked one that uses the pool more heavily
than all my natives... Anyway, not having ppc64 or a simulator for
it, I picked ARM and I found this. See if it solves yours?
r~
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.407
diff -c -p -d -r1.407 varasm.c
*** varasm.c 30 Jan 2004 19:16:39 -0000 1.407
--- varasm.c 30 Jan 2004 23:12:00 -0000
*************** output_constant_pool (const char *fnname
*** 3124,3132 ****
#ifdef ASM_OUTPUT_POOL_EPILOGUE
ASM_OUTPUT_POOL_EPILOGUE (asm_out_file, fnname, fndecl, pool->offset);
#endif
-
- /* Done with this pool. */
- cfun->varasm->pool = NULL;
}
/* Determine what kind of relocations EXP may need. */
--- 3124,3129 ----