From 368a164799eb94baa3711e1982a74018471e1a16 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 19 Oct 2001 21:34:44 +0200 Subject: alpha.c (summarize_insn): Don't abort on ASM_INPUT. * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT. * gcc.dg/20011018-1.c: New test. From-SVN: r46357 --- gcc/ChangeLog | 2 ++ gcc/config/alpha/alpha.c | 2 +- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.dg/20011018-1.c | 15 +++++++++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.dg/20011018-1.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a8155b..cd0732c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,8 @@ * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg field is different to previous argument's neg field. + * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT. + Fri Oct 19 15:24:39 2001 Richard Kenner * final.c (get_decl_from_op): New function. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index b29112c..1aacc55 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -6876,7 +6876,7 @@ summarize_insn (x, sum, set) case CONST_INT: case CONST_DOUBLE: case SYMBOL_REF: case LABEL_REF: case CONST: - case SCRATCH: + case SCRATCH: case ASM_INPUT: break; /* Handle common unary and binary ops for efficiency. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a59720d..ff810d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,8 @@ * gcc.c-torture/execute/20011019-1.c: New test. + * gcc.dg/20011018-1.c: New test. + 2001-10-19 NIIBE Yutaka * gcc.c-torture/execute/ieee/ieee.exp: Change sh-*-* to sh*-*-*. diff --git a/gcc/testsuite/gcc.dg/20011018-1.c b/gcc/testsuite/gcc.dg/20011018-1.c new file mode 100644 index 0000000..aed5d32 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20011018-1.c @@ -0,0 +1,15 @@ +/* { dg-do compile { target alpha*-*-* } } */ +/* { dg-options "-O2 -mieee" } */ + +double foo (void); +void bar (float, float); + +void test (void) +{ + float f, g; + + f = foo(); + g = foo(); + asm (""); + bar (f, g); +} -- cgit v1.1