> > Seems that the inputs for the inline asm in XPTC_InvokeByIndex() in
> > xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp need an
> > additional memory input in order to prevent gcc from optimizing away
> > the initialization of the structure used by the asm.
> 
> Is this a gcc 4 issue? Any idea why this is necessary? 

I suppose one could call it a gcc 4 issue if earlier gcc versions were
unable to optimize away the dead struct init. As far as I understand
the asm contraints, not specifying the structure as a mem input for
the asm, makes the struct init dead code. So the mem input should be
specified anyway - the code just was "lucky" with earlier gcc
versions. But I'm not an expert in gcc asm.. could be something more
subtle..



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to