[PATCH] Avoid using alloca for stack_usage_map if argument size is excessively large
Andrew Pinski
pinskia@physics.uc.edu
Wed Jun 22 12:07:00 GMT 2005
On Jun 22, 2005, at 5:33 AM, Jakub Jelinek wrote:
> Hi!
>
> GCC will not compile programs that pass excessively large arguments
> by value, because it uses alloca unconditionally for stack_usage_map,
> no matter how big the arguments are.
> It is true that for running such program you need to increase
> stack limits, but programs aren't necessarily compiled on the same
> system as they are run on, so IMHO using xmalloc/free for really big
> argument sizes certainly doesn't hurt. 256K is a random number, on the
> other side making it --param sounds overkill to me.
> Ok for HEAD?
>
This is PR 17965.
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list