Commit 2c82eecc by Kaveh R. Ghazi Committed by Kaveh Ghazi

tsystem.h (alloca): Provide a default definition.

	* tsystem.h (alloca): Provide a default definition.

	Revert:
	2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
	    * unwind-dw2.c: Call __builtin_alloca, not alloca.

From-SVN: r87775
parent d3907cc3
2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tsystem.h (alloca): Provide a default definition.
Revert:
2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* unwind-dw2.c: Call __builtin_alloca, not alloca.
2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/17558
......
......@@ -117,4 +117,8 @@ extern int errno;
#define NULL 0
#endif
/* GCC always provides __builtin_alloca(x). */
#undef alloca
#define alloca(x) __builtin_alloca(x)
#endif /* ! GCC_TSYSTEM_H */
......@@ -840,7 +840,7 @@ execute_cfa_program (const unsigned char *insn_ptr,
unused_rs = unused_rs->prev;
}
else
new_rs = __builtin_alloca (sizeof (struct frame_state_reg_info));
new_rs = alloca (sizeof (struct frame_state_reg_info));
*new_rs = fs->regs;
fs->regs.prev = new_rs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment