This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] fix 14204


Richard Henderson <rth@twiddle.net> writes:

> +++ testsuite/gcc.dg/uninit-H.c	12 Mar 2004 01:56:51 -0000
> @@ -0,0 +1,19 @@
> +/* PR 14204 */
> +/* { dg-do compile } */
> +/* { dg-options "-O -Wall -Werror" } */
> +
> +#if defined __alpha__
> +# define ASM __asm__("$30")
> +#elif defined __i386__
> +# define ASM __asm__("esp")
> +#elif defined __powerpc__
> +# define ASM __asm__("r1")
> +#else
> +# define ASM
> +#endif
> +
> +void *load_PCB (void)
> +{
> +  register void *sp ASM;
> +  return sp;			/* { dg-bogus "uninitialized" } */
> +}

Maybe I'm missing something, but won't this fail on architectures
other than the three specified?

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]