This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/56921] [4.9 Regression] ICE in rtx_cost called by doloop_optimize_loops for PPC
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Apr 2013 07:46:01 +0000
- Subject: [Bug rtl-optimization/56921] [4.9 Regression] ICE in rtx_cost called by doloop_optimize_loops for PPC
- Auto-submitted: auto-generated
- References: <bug-56921-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56921
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.0
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-12 07:46:01 UTC ---
niter_desc is not marked GTY(()) but is cached from struct loop aux field.
niter_desc uses heap memory but points to GC memory. Thus, caching of this
across passes is not safe.
I suppose passes are missing free_simple_loop_desc, loop-doloop.c calls
get_simple_loop_desc but never free_simple_loop_desc for example (which
then at least leaks the niter_desc memory).