public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range)
@ 2006-01-10 13:48 pth at suse dot de
2006-01-10 14:06 ` [Bug rtl-optimization/25739] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pth at suse dot de @ 2006-01-10 13:48 UTC (permalink / raw)
To: gcc-bugs
As reported on gcc ml by Christophe Jaillet <christophe.jaillet@wanadoo.fr>:
gcc leaks memory augment_live_range
static void
augment_live_range (bitmap live_range, HARD_REG_SET *btrs_live_in_range,
basic_block head_bb, basic_block new_bb, int full_range)
{
basic_block *worklist, *tos;
tos = worklist = xmalloc (sizeof (basic_block) * (n_basic_blocks + 1));
if (dominated_by_p (CDI_DOMINATORS, new_bb, head_bb))
{
if (new_bb == head_bb)
{
if (full_range)
IOR_HARD_REG_SET (*btrs_live_in_range, btrs_live[new_bb->index]);
return; <------------ Here we leak
--
Summary: Memory leak in bt_load.c(augment_live_range)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pth at suse dot de
GCC build triplet: x86_64-suse-linux
GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/25739] Memory leak in bt_load.c(augment_live_range)
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
@ 2006-01-10 14:06 ` pinskia at gcc dot gnu dot org
2006-01-10 14:25 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-10 14:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-10 14:06 -------
I should note that bt-load.c is only invoked by default on sh-*.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|x86_64-suse-linux |
GCC host triplet|x86_64-suse-linux |
GCC target triplet|x86_64-suse-linux |
Keywords| |memory-hog
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/25739] Memory leak in bt_load.c(augment_live_range)
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
2006-01-10 14:06 ` [Bug rtl-optimization/25739] " pinskia at gcc dot gnu dot org
@ 2006-01-10 14:25 ` rguenth at gcc dot gnu dot org
2006-01-10 14:26 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-01-10 14:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-01-10 14:25 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-01-10 14:25:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/25739] Memory leak in bt_load.c(augment_live_range)
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
2006-01-10 14:06 ` [Bug rtl-optimization/25739] " pinskia at gcc dot gnu dot org
2006-01-10 14:25 ` rguenth at gcc dot gnu dot org
@ 2006-01-10 14:26 ` rguenth at gcc dot gnu dot org
2006-03-14 0:25 ` sayle at gcc dot gnu dot org
2006-03-14 1:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-01-10 14:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2006-01-10 14:26 -------
Created an attachment (id=10607)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10607&action=view)
patch
patch, untested but obvious.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/25739] Memory leak in bt_load.c(augment_live_range)
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
` (2 preceding siblings ...)
2006-01-10 14:26 ` rguenth at gcc dot gnu dot org
@ 2006-03-14 0:25 ` sayle at gcc dot gnu dot org
2006-03-14 1:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-14 0:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sayle at gcc dot gnu dot org 2006-03-14 00:24 -------
Subject: Bug 25739
Author: sayle
Date: Tue Mar 14 00:24:54 2006
New Revision: 112039
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112039
Log:
2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
PR rtl-optimization/25739
* bt-load.c (augment_live_range): Free tos pointer.
* gensupport.c (identify_predicable_attribute): Free
p_false pointer.
* gcov.c (create_file_names): Free name pointer.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/bt-load.c
trunk/gcc/gcov.c
trunk/gcc/gensupport.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/25739] Memory leak in bt_load.c(augment_live_range)
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
` (3 preceding siblings ...)
2006-03-14 0:25 ` sayle at gcc dot gnu dot org
@ 2006-03-14 1:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-14 01:30 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25739
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-03-14 1:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 13:48 [Bug tree-optimization/25739] New: Memory leak in bt_load.c(augment_live_range) pth at suse dot de
2006-01-10 14:06 ` [Bug rtl-optimization/25739] " pinskia at gcc dot gnu dot org
2006-01-10 14:25 ` rguenth at gcc dot gnu dot org
2006-01-10 14:26 ` rguenth at gcc dot gnu dot org
2006-03-14 0:25 ` sayle at gcc dot gnu dot org
2006-03-14 1:30 ` pinskia at gcc dot gnu dot org
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).