Commit a40c6fa8 by Georg-Johann Lay Committed by Georg-Johann Lay

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
parent 61d65d20
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> 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
* lib/target-supports.exp: Generate * lib/target-supports.exp: Generate
......
...@@ -40,14 +40,14 @@ typedef struct ...@@ -40,14 +40,14 @@ typedef struct
regs_t reginfo1, reginfo2; regs_t reginfo1, reginfo2;
__attribute__((noinline)) __attribute__((noinline,unused))
static void clear_reginfo (void) static void clear_reginfo (void)
{ {
memset (reginfo1.sfrs, 0, sizeof (reginfo1.sfrs)); memset (reginfo1.sfrs, 0, sizeof (reginfo1.sfrs));
memset (reginfo2.sfrs, 0, sizeof (reginfo2.sfrs)); memset (reginfo2.sfrs, 0, sizeof (reginfo2.sfrs));
} }
__attribute__((noinline)) __attribute__((noinline,unused))
static void compare_reginfo (unsigned long gpr_ignore) static void compare_reginfo (unsigned long gpr_ignore)
{ {
signed char regno; signed char regno;
...@@ -68,6 +68,7 @@ static void compare_reginfo (unsigned long gpr_ignore) ...@@ -68,6 +68,7 @@ static void compare_reginfo (unsigned long gpr_ignore)
if (*preg1 != *preg2) if (*preg1 != *preg2)
{ {
static signed char volatile failed_regno; static signed char volatile failed_regno;
(void) failed_regno;
failed_regno = regno; failed_regno = regno;
__builtin_abort(); __builtin_abort();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment