Hi, Currently, the interrupt_handler-bug-1.c test will fail on pre-R2 targets because the "interrupt" function attribute requires at least an R2 target and the test does not enforce this requirement.
This patch fixes this by adding the isa_rev>=2 option to the test's dg-options. Tested with mips-mti-elf. Regards, Toma Tabacu gcc/testsuite/ChangeLog: 2016-11-21 Toma Tabacu <toma.tab...@imgtec.com> * gcc.target/mips/interrupt_handler-bug-1.c (dg-options): Add isa_rev>=2. diff --git a/gcc/testsuite/gcc.target/mips/interrupt_handler-bug-1.c b/gcc/testsuite/gcc.target/mips/interrupt_handler-bug-1.c index 2784705..083e152 100644 --- a/gcc/testsuite/gcc.target/mips/interrupt_handler-bug-1.c +++ b/gcc/testsuite/gcc.target/mips/interrupt_handler-bug-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-funroll-loops" } */ +/* { dg-options "-funroll-loops isa_rev>=2" } */ int foo; int bar;