Part of what is needed to fix the BZ, tested on x86_64-darwin and
powerpc64le-linux, pushed to trunk, thanks,
Iain

--- 8< ---

Currently, for Darwin unwind and EH frames are emitted without use
of .cfi_xxx instructions; the emitted frames also contain the
string 'ascii'.  For the purpose of this test, omit them.

        PR testsuite/112728

gcc/testsuite/ChangeLog:

        * gcc.dg/scantest-lto.c: Omit unwind frames.

Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>
---
 gcc/testsuite/gcc.dg/scantest-lto.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/scantest-lto.c 
b/gcc/testsuite/gcc.dg/scantest-lto.c
index 46c21f20bfc..9a6e816b1ff 100644
--- a/gcc/testsuite/gcc.dg/scantest-lto.c
+++ b/gcc/testsuite/gcc.dg/scantest-lto.c
@@ -1,5 +1,6 @@
 /* { dg-do compile { target lto } }
 /* { dg-options "-O2 -flto" } */
+/* { dg-additional-options "-fno-unwind-tables 
-fno-asynchronous-unwind-tables" { target *-*-darwin* } } */
 
 void foo ()
 {
-- 
2.39.2 (Apple Git-143)

Reply via email to