re PR rtl-optimization/25739 (Memory leak in bt_load.c(augment_live_range))
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. From-SVN: r112039
This commit is contained in:
parent
a62cdb32bb
commit
a14df7dabe
@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2006-03-13 Roger Sayle <roger@eyesopen.com>
|
2006-03-13 Roger Sayle <roger@eyesopen.com>
|
||||||
|
|
||||||
PR middle-end/26557
|
PR middle-end/26557
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* Perform branch target register load optimizations.
|
/* Perform branch target register load optimizations.
|
||||||
Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
|
|
||||||
@ -911,6 +912,7 @@ augment_live_range (bitmap live_range, HARD_REG_SET *btrs_live_in_range,
|
|||||||
{
|
{
|
||||||
if (full_range)
|
if (full_range)
|
||||||
IOR_HARD_REG_SET (*btrs_live_in_range, btrs_live[new_bb->index]);
|
IOR_HARD_REG_SET (*btrs_live_in_range, btrs_live[new_bb->index]);
|
||||||
|
free (tos);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*tos++ = new_bb;
|
*tos++ = new_bb;
|
||||||
|
@ -658,6 +658,7 @@ create_file_names (const char *file_name)
|
|||||||
strcpy (da_file_name, name);
|
strcpy (da_file_name, name);
|
||||||
strcpy (da_file_name + length, GCOV_DATA_SUFFIX);
|
strcpy (da_file_name + length, GCOV_DATA_SUFFIX);
|
||||||
|
|
||||||
|
free (name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Support routines for the various generation passes.
|
/* Support routines for the various generation passes.
|
||||||
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
|
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
@ -468,6 +468,8 @@ identify_predicable_attribute (void)
|
|||||||
message_with_line (elem->lineno,
|
message_with_line (elem->lineno,
|
||||||
"attribute `predicable' is not a boolean");
|
"attribute `predicable' is not a boolean");
|
||||||
errors = 1;
|
errors = 1;
|
||||||
|
if (p_false)
|
||||||
|
free (p_false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
p_true[-1] = '\0';
|
p_true[-1] = '\0';
|
||||||
@ -485,12 +487,16 @@ identify_predicable_attribute (void)
|
|||||||
message_with_line (elem->lineno,
|
message_with_line (elem->lineno,
|
||||||
"attribute `predicable' cannot be const");
|
"attribute `predicable' cannot be const");
|
||||||
errors = 1;
|
errors = 1;
|
||||||
|
if (p_false)
|
||||||
|
free (p_false);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
message_with_line (elem->lineno,
|
message_with_line (elem->lineno,
|
||||||
"attribute `predicable' must have a constant default");
|
"attribute `predicable' must have a constant default");
|
||||||
errors = 1;
|
errors = 1;
|
||||||
|
if (p_false)
|
||||||
|
free (p_false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,6 +511,9 @@ identify_predicable_attribute (void)
|
|||||||
value);
|
value);
|
||||||
errors = 1;
|
errors = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (p_false)
|
||||||
|
free (p_false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the number of alternatives in constraint S. */
|
/* Return the number of alternatives in constraint S. */
|
||||||
|
Loading…
Reference in New Issue
Block a user