aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-03-07 10:13:29 -0800
committerRichard Henderson <rth@gcc.gnu.org>2007-03-07 10:13:29 -0800
commit7476f0866c606870ed338f64269b840da3bcb1e4 (patch)
tree9966163c9b3bfdf8faa218f12e89e2b2c8b20dd4 /gcc/testsuite
parent1611915067138d5ab84a3225599281b68943172f (diff)
downloadgcc-7476f0866c606870ed338f64269b840da3bcb1e4.zip
gcc-7476f0866c606870ed338f64269b840da3bcb1e4.tar.gz
gcc-7476f0866c606870ed338f64269b840da3bcb1e4.tar.bz2
re PR target/30848 (ICE with invalid constraint in asm statement)
PR target/30848 * reg-stack.c (emit_swap_insn): If a malformed asm was seen, silently fix up the stack in the case of a missing register. From-SVN: r122669
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.target/i386/pr30848.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr30848.c b/gcc/testsuite/gcc.target/i386/pr30848.c
new file mode 100644
index 0000000..2a92851
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr30848.c
@@ -0,0 +1,6 @@
+/* { dg-do compile } */
+
+void foo(double d)
+{
+ __asm__ ("" : "=u" (d)); /* { dg-error "output regs" } */
+}