This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51949] [4.7 Regression] expand_call: seg fault
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Jan 2012 21:19:04 +0000
- Subject: [Bug middle-end/51949] [4.7 Regression] expand_call: seg fault
- Auto-submitted: auto-generated
- References: <bug-51949-4@http.gcc.gnu.org/bugzilla/>
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);
}