[committed] Fix ld-pe aligncomm tests vs. GCC-3

Dave Korn dave.korn.cygwin@googlemail.com
Thu May 21 16:30:00 GMT 2009


    Hi all,

  As per the other day's discussion[*], gcc-3 used to call _alloca to align
the stack at the start of main().  Because these tests only need to link, not
run, a dummy definition will do fine, so this patch adds it.

  Tested on i686-pc-cygwin with gcc-3 and gcc-4.  Verified that it builds ok
with the addition on MinGW and arm-cegcc as well, although their standard
toolchains don't support the feature yet.

ld/testsuite/ChangeLog

	* ld-pe/aligncomm-1.c (_alloca):  Add dummy definition to
	satisfy final link on Windows targets when using gcc-3.
	* ld-pe/aligncomm-2.c (_alloca):  Likewise.
	* ld-pe/aligncomm-3.c (_alloca):  Likewise.
	* ld-pe/aligncomm-4.c (_alloca):  Likewise.

    cheers,
      DaveK
-- 
[*] - http://sourceware.org/ml/binutils/2009-05/msg00312.html and thread.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-ld-tests-vs-gcc-3.diff
Type: text/x-c
Size: 2121 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090521/fb88dc88/attachment.bin>


More information about the Binutils mailing list