http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51949
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-22
Target Milestone|--- |4.7.0
Summary|expand_call: seg fault |[4.7 Regression]
| |expand_call: seg fault
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-22
21:19:04 UTC ---
Reduced testcase:
typedef long unsigned int size_t;
extern __attribute__ ((malloc)) void *mem_alloc(size_t);
void *mem_alloc(size_t amount)
{
void *q = __builtin_malloc (amount);
if (!q) {
__builtin_printf("malloc");
__builtin_exit(255);
}
}
void mem_realloc()
{
mem_alloc(1);
}
void put_env_var()
{
mem_alloc(1);
}