[patch] Reduce ridiculous stack use in _dl_map_object_deps

Roland McGrath roland@hack.frob.com
Mon Oct 31 20:36:00 GMT 2011


> +	  int new_size;

size_t

> +	  if (new_size > needed_space_bytes)
> +	    {
> +	      needed_space
> +		= (struct link_map **) extend_alloca (needed_space,
> +						      needed_space_bytes,
> +						      new_size);
> +	    }

No braces around a single statement.  No cast required on extend_alloca.
It returns the type of its first argument.



More information about the Libc-alpha mailing list