This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] fix tree-ssa/asm-1.c
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Jan 2004 17:43:31 -0800
- Subject: [tree-ssa] fix tree-ssa/asm-1.c
This started failing when we added a warning for user code
that uses "+m".
r~
* gcc.dg/tree-ssa/asm-1.c: Fix memory constaint.
Index: testsuite/gcc.dg/tree-ssa/asm-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/asm-1.c,v
retrieving revision 1.1.2.1
diff -c -p -d -r1.1.2.1 asm-1.c
*** testsuite/gcc.dg/tree-ssa/asm-1.c 9 Oct 2003 07:20:03 -0000 1.1.2.1
--- testsuite/gcc.dg/tree-ssa/asm-1.c 22 Jan 2004 01:33:04 -0000
*************** void f()
*** 9,15 ****
int i = 42;
int j = 63;
! asm ("":"+m"(i), "+r"(j));
}
/* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */
--- 9,15 ----
int i = 42;
int j = 63;
! asm ("": "=m"(i), "+r"(j) : "m"(i));
}
/* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */