The test case uses a global asm which doesn't work with LTO.
As -fno-toplevel-reorder didn't help I added -fno-lto.

Johann

--


    AVR: Don't run avr/torture/pr84211-fuse-move-1.c with -flto.

    This test case failed since LTO failed on a global asm.

    gcc/testsuite/
            * gcc.target/avr/torture/pr84211-fuse-move-1.c: Add -fno-lto.

diff --git a/gcc/testsuite/gcc.target/avr/torture/pr84211-fuse-move-1.c b/gcc/testsuite/gcc.target/avr/torture/pr84211-fuse-move-1.c
index 82ce22796b3..4924e9d93dc 100644
--- a/gcc/testsuite/gcc.target/avr/torture/pr84211-fuse-move-1.c
+++ b/gcc/testsuite/gcc.target/avr/torture/pr84211-fuse-move-1.c
@@ -1,5 +1,6 @@
 /* { dg-do run } */
-/* { dg-additional-options -std=gnu99 } */
+/* Disable LTO since it has problems with flobal asm. */
+/* { dg-additional-options { -std=gnu99 -fno-lto } } */

 #define USE_VALUE 0


Reply via email to