aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2017-07-06 15:31:42 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2017-07-06 15:31:42 +0000
commita40c6fa86bb08d9db1fad97bc71b6a0158638e05 (patch)
treefe2f6e10d4ba977dda7ffddc223ff665af6962cc
parent61d65d2032f93d8852d3e6318663bc3704d2100c (diff)
downloadgcc-a40c6fa86bb08d9db1fad97bc71b6a0158638e05.zip
gcc-a40c6fa86bb08d9db1fad97bc71b6a0158638e05.tar.gz
gcc-a40c6fa86bb08d9db1fad97bc71b6a0158638e05.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/avr/isr-test.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1a83895..59ab5aa 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-06 Georg-Johann Lay <avr@gjlay.de>
+
+ PR target/81305
+ * gcc.target/avr/isr-test.h: Fix warnings.
+
2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
* 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 2d2babe..4643481 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();
}