diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr34351.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86297fbbee3..e9034ed5201 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-02-28 Uros Bizjak <ubizjak@gmail.com> + + * gcc.dg/pr34351.c: Compile for x86 targets only. Use %ebx register. + 2008-02-27 Francois-Xavier Coudert <coudert@clipper.ens.fr> * gfortran.dg/large_real_kind_3.F90: Reverse previous commit. diff --git a/gcc/testsuite/gcc.dg/pr34351.c b/gcc/testsuite/gcc.dg/pr34351.c index 90dcfa1e5f7..f407170821c 100644 --- a/gcc/testsuite/gcc.dg/pr34351.c +++ b/gcc/testsuite/gcc.dg/pr34351.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-Wall" } */ -register int * volatile x asm ("r13"); /* { dg-warning "optimization may eliminate reads and/or writes to register variables" } */ +register int * volatile x asm ("ebx"); /* { dg-warning "optimization may eliminate reads and/or writes to register variables" } */ |