arm: Fix handler-align.c testcase [PR target/94743]
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 1 Jul 2020 12:23:51 +0000 (12:23 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 1 Jul 2020 12:28:07 +0000 (12:28 +0000)
This testcase triggers the new warning, so compile it with
-mgeneral-regs-only.

2020-07-01  Christophe Lyon  <christophe.lyon@linaro.org>

PR target/94743

gcc/testsuite/
* gcc.target/arm/handler-align.c: Add -mgeneral-regs-only.

gcc/testsuite/gcc.target/arm/handler-align.c

index 6c5187b202849579277c1d6340bef9dd1178a7cc..93db8e2a73854dba371ba92150706c0dcadd9c2b 100644 (file)
@@ -1,6 +1,6 @@
 /* Test epilogue of a realigned interrupt handler. */
 /* { dg-do run } */
-/* { dg-options "-mthumb -Os" } */
+/* { dg-options "-mthumb -Os -mgeneral-regs-only" } */
 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-require-effective-target arm_cortex_m } */
 /* { dg-require-effective-target arm_eabi } */