diff options
| author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-16 10:20:44 +0000 |
|---|---|---|
| committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-16 10:20:44 +0000 |
| commit | 077ac7c87d23d18d19ed2ea57488331d5fc7a8c5 (patch) | |
| tree | 69a1ef59a040773c971fe67c90282502b0d957ad | |
| parent | a93d2759837542219be8ab8ed9c0bf05167dc5a7 (diff) | |
| download | ppe42-gcc-077ac7c87d23d18d19ed2ea57488331d5fc7a8c5.tar.gz ppe42-gcc-077ac7c87d23d18d19ed2ea57488331d5fc7a8c5.zip | |
Fix an older test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30975 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/991214-1.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e623b37f4da..8682ef73f7e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk> + + * gcc.dg/991214-1.c: Use "__asm__", not "asm". + Actually make the test fail by using "-O2" for compilation. + 1999-12-15 Nathan Sidwell <nathan@acm.org> * g++.old-deja/g++.warn/cast-align1.C: New test. diff --git a/gcc/testsuite/gcc.dg/991214-1.c b/gcc/testsuite/gcc.dg/991214-1.c index 2bc7f3ff33c..5b9f56c277e 100644 --- a/gcc/testsuite/gcc.dg/991214-1.c +++ b/gcc/testsuite/gcc.dg/991214-1.c @@ -1,7 +1,10 @@ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-options "-O2" } */ +/* Test against a problem with the combiner substituting explicit hard reg + references when it shouldn't. */ int foo (int, int) __attribute__ ((regparm (3))); int foo (int x, int y) { - asm volatile("" : : "d" (x), "r" (y)); + __asm__ __volatile__("" : : "d" (x), "r" (y)); } |

