public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix maybe_lower_iteration_bound leak (PR middle-end/56461)
@ 2013-02-27 20:19 Jakub Jelinek
  2013-02-27 22:00 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2013-02-27 20:19 UTC (permalink / raw)
  To: Richard Biener; +Cc: gcc-patches

Hi!

This function leaks the not_executed_last_iteration pointer set.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?

2013-02-27  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/56461
	* tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
	pointer_set_destroy on not_executed_last_iteration.

--- gcc/tree-ssa-loop-niter.c.jj	2013-01-31 12:28:56.000000000 +0100
+++ gcc/tree-ssa-loop-niter.c	2013-02-27 17:29:57.155507388 +0100
@@ -3293,6 +3293,7 @@ maybe_lower_iteration_bound (struct loop
     }
   BITMAP_FREE (visited);
   queue.release ();
+  pointer_set_destroy (not_executed_last_iteration);
 }
 
 /* Records estimates on numbers of iterations of LOOP.  If USE_UNDEFINED_P

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix maybe_lower_iteration_bound leak (PR middle-end/56461)
  2013-02-27 20:19 [PATCH] Fix maybe_lower_iteration_bound leak (PR middle-end/56461) Jakub Jelinek
@ 2013-02-27 22:00 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2013-02-27 22:00 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Richard Biener, gcc-patches

On 02/27/2013 01:19 PM, Jakub Jelinek wrote:
> Hi!
>
> This function leaks the not_executed_last_iteration pointer set.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR middle-end/56461
> 	* tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
> 	pointer_set_destroy on not_executed_last_iteration.
OK.
Jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-27 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-27 20:19 [PATCH] Fix maybe_lower_iteration_bound leak (PR middle-end/56461) Jakub Jelinek
2013-02-27 22:00 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).