From: Georg-Johann Lay Date: Thu, 6 Jul 2017 15:31:42 +0000 (+0000) Subject: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a40c6fa86bb08d9db1fad97bc71b6a0158638e05;p=gcc.git re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.) PR target/81305 * gcc.target/avr/isr-test.h: Fix warnings. From-SVN: r250029 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a838952269..59ab5aaf446 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-07-06 Georg-Johann Lay + + PR target/81305 + * gcc.target/avr/isr-test.h: Fix warnings. + 2017-07-06 Thomas Preud'homme * lib/target-supports.exp: Generate diff --git a/gcc/testsuite/gcc.target/avr/isr-test.h b/gcc/testsuite/gcc.target/avr/isr-test.h index 2d2babe2150..464348107f7 100644 --- a/gcc/testsuite/gcc.target/avr/isr-test.h +++ b/gcc/testsuite/gcc.target/avr/isr-test.h @@ -40,14 +40,14 @@ typedef struct regs_t reginfo1, reginfo2; -__attribute__((noinline)) +__attribute__((noinline,unused)) static void clear_reginfo (void) { memset (reginfo1.sfrs, 0, sizeof (reginfo1.sfrs)); memset (reginfo2.sfrs, 0, sizeof (reginfo2.sfrs)); } -__attribute__((noinline)) +__attribute__((noinline,unused)) static void compare_reginfo (unsigned long gpr_ignore) { signed char regno; @@ -68,6 +68,7 @@ static void compare_reginfo (unsigned long gpr_ignore) if (*preg1 != *preg2) { static signed char volatile failed_regno; + (void) failed_regno; failed_regno = regno; __builtin_abort(); }