[PATCH] Diagnose pr54694

Jakub Jelinek jakub@redhat.com
Wed Jan 15 21:58:00 GMT 2014


On Wed, Jan 15, 2014 at 01:43:18PM -0800, Richard Henderson wrote:
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/i386/pr54694.c
> @@ -0,0 +1,11 @@
> +/* { dg-do compile } */
> +/* { dg-options "-O" } */
> +
> +register void *hfp __asm__("%ebp");	/* { dg-message "note: for" } */

Shouldn't that be %rbp for x86_64?  Or do we treat it the same?

> +extern void g(void *);
> +
> +void f(int x)			/* { dg-error "frame pointer required" } */
> +{
> +  g(__builtin_alloca(x));
> +}


	Jakub



More information about the Gcc-patches mailing list