[gccgo] Split stack fixups

Ian Lance Taylor iant@google.com
Thu Jul 1 20:56:00 GMT 2010


This patch has a couple more split stack fixups.  On x86_64 we ensure
that more stack space is available, since 64-bit addresses use up the
stack faster.  We ensure that the dynamic linker resolves getpagesize
early.  We avoid calling __builtin_memcpy, because in some cases it is
compiled into a call to memcpy which could require the dynamic linker to
resolve it when stack space is low.  It's hard to absolutely ensure that
memcpy is resolved because the compiler will some times compile it into
a loop.  Since the size argument to memcpy is just the size of the
parameters, and is thus sure to be relatively small, I think using a
simple loop is OK.

Committed to gccgo branch.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 5219 bytes
Desc: split
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100701/56932b80/attachment.bin>


More information about the Gcc-patches mailing list