C++ Exception handling

Nick Burrett nick at dsvr.net
Tue Mar 2 13:37:34 PST 2004


Graham Shaw wrote:
> In article <4044E72E.8040909 at dsvr.net>,
>    Nick Burrett <nick at dsvr.net> wrote:
> 
> 
>>I'm a little confused.  The code in the copy of gccsdk-2.95 in my CVS 
>>tree is shown below.  The file hasn't been changed since 12 Sep 2001.
> 
> 
>>  /* XXX, FIXME: The stack space allocated this way is too long lived,
>>     but there is no allocation routine that allocates at the level of
>>     the last binding contour.  */
>>  arg = assign_stack_local (BLKmode,
>>			    GET_MODE_SIZE (Pmode)*(size+1),
>>			    0);
> 
> 
>>Where 'size+2' comes from, I really don't know.
> 
> 
> Sorry, the patch was backwards.
> 
> (Currently, GCC allocates one word less than it needs to.)

I agree with your change and have committed it.  Thanks.


Nick.







More information about the gcc mailing list