Jack Howarth <howa...@bromo.med.uc.edu> writes:

>    Is split stack support unique to the go compiler or might it eventually
> be leveraged in the other compilers as well? We could submit a radar for
> the addition of split stack support for the linker in Xcode 4.0 or later
> but it would helpful if the eventual usage was greater than just the go
> compiler.
Split stack support is now in mainline and is available for any language
via the -fsplit-stack option.  The only thing unique to the Go frontend
is that the Go frontend turns it on by default.

Using it on Darwin will require some porting work of the assembly code
in libgcc, which currently uses ELF pseudo-ops.  Object files which are
compiled with -fsplit-stack need to be marked in some way.  What the
linker needs to do is frob functions in object files compiled with
-fsplit-stack which call functoins defined in object files compiled
without -fsplit-stack.

Ian

Reply via email to