[testsuite] Fix gcc.dg/fstack-protector-strong.c on Solaris/x86

Jakub Jelinek jakub@redhat.com
Tue May 14 10:31:00 GMT 2013


On Tue, May 14, 2013 at 12:26:31PM +0200, Rainer Orth wrote:
> Tested with the appropriate runtest invocations on i386-pc-solaris2.11
> and x86_64-unknown-linux-gnu, installed on mainline.

I'd say the test should just use __builtin_alloca instead.

> 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> 
> 	* gcc.dg/fstack-protector-strong.c (alloca): Declare.
> 

> # HG changeset patch
> # Parent 677b6b866a10b42d04929883383fbf70e152c598
>  Fix gcc.dg/fstack-protector-strong.c on Solaris/x86
> 
> diff --git a/gcc/testsuite/gcc.dg/fstack-protector-strong.c b/gcc/testsuite/gcc.dg/fstack-protector-strong.c
> --- a/gcc/testsuite/gcc.dg/fstack-protector-strong.c
> +++ b/gcc/testsuite/gcc.dg/fstack-protector-strong.c
> @@ -6,6 +6,8 @@
>  #include<string.h>
>  #include<stdlib.h>
>  
> +extern void *alloca(__SIZE_TYPE__);
> +
>  extern int g0;
>  extern int* pg0;
>  int

	Jakub



More information about the Gcc-patches mailing list