PATCH RFC: Remove fork from collect2
Andrew Pinski
pinskia@physics.uc.edu
Sat Mar 20 00:56:00 GMT 2004
On Mar 19, 2004, at 14:34, Ian Lance Taylor wrote:
>
> Interesting.
>
> First I have to ask why pex-unix.c is bringing in restFP and saveFP.
> The only significant change I made was to replace fork with vfork. I
> can imagine that vfork might be an inline function on Darwin, but it's
> hard for me to see why it would be inlined when using the Apple
> version of gcc but not when using the FSF gcc.
>
> Or is the problem that the Apple gcc recognizes vfork specially, and
> open codes it, calling saveFP and restFP?
vfork was like setjmp in that it would save all the registers in the
function for some reason, this was fixed in later versions of GCC like
3.4.0, it might also be fixed in 3.3.3 but I forgot if it made in.
So in older FSF compiler on PPC darwin it would inline the saving but
in Apple's compiler it would call saveFP to save them out of line to
save space.
Thanks,
Andrew Pinski
More information about the Gcc
mailing list