From: Dave Korn Date: Thu, 21 May 2009 16:28:45 +0000 (+0000) Subject: * ld-pe/aligncomm-1.c (_alloca): Add dummy definition to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c344f845688ad74a0dbac376736abb71069fa0b1;p=binutils-gdb.git * 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. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 2c26f087ae0..ca27faf0b2b 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2009-05-21 Dave Korn + + * 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. + 2009-05-20 Dave Korn * lib/ld-lib.exp (run_ld_link_tests): Filter test names against diff --git a/ld/testsuite/ld-pe/aligncomm-1.c b/ld/testsuite/ld-pe/aligncomm-1.c index 44f576e2d6d..bff42b88557 100755 --- a/ld/testsuite/ld-pe/aligncomm-1.c +++ b/ld/testsuite/ld-pe/aligncomm-1.c @@ -17,3 +17,9 @@ void __main (void) " .ascii \" -aligncomm:r,4\"\n" " .text"); } + +#if defined (__CYGWIN__) || defined (__MINGW32__) +void _alloca (void) +{ +} +#endif diff --git a/ld/testsuite/ld-pe/aligncomm-2.c b/ld/testsuite/ld-pe/aligncomm-2.c index 3b333625f09..61adc69f9e1 100755 --- a/ld/testsuite/ld-pe/aligncomm-2.c +++ b/ld/testsuite/ld-pe/aligncomm-2.c @@ -18,3 +18,9 @@ void __main (void) " .ascii \" -aligncomm:r,4\"\n" " .text"); } + +#if defined (__CYGWIN__) || defined (__MINGW32__) +void _alloca (void) +{ +} +#endif diff --git a/ld/testsuite/ld-pe/aligncomm-3.c b/ld/testsuite/ld-pe/aligncomm-3.c index 04fdfd1c60b..ae0dbfb391f 100755 --- a/ld/testsuite/ld-pe/aligncomm-3.c +++ b/ld/testsuite/ld-pe/aligncomm-3.c @@ -19,3 +19,9 @@ void __main (void) " .ascii \" -aligncomm:r,4\"\n" " .text"); } + +#if defined (__CYGWIN__) || defined (__MINGW32__) +void _alloca (void) +{ +} +#endif diff --git a/ld/testsuite/ld-pe/aligncomm-4.c b/ld/testsuite/ld-pe/aligncomm-4.c index 854d9bab239..0c9e65d2962 100755 --- a/ld/testsuite/ld-pe/aligncomm-4.c +++ b/ld/testsuite/ld-pe/aligncomm-4.c @@ -20,3 +20,9 @@ void __main (void) " .ascii \" -aligncomm:r,4\"\n" " .text"); } + +#if defined (__CYGWIN__) || defined (__MINGW32__) +void _alloca (void) +{ +} +#endif