]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, darwin: Compile a test without unwind frames.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 5 May 2024 13:13:37 +0000 (14:13 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 19 May 2024 13:28:02 +0000 (14:28 +0100)
In the current Darwin implementation, we do not use .cfi_ insns
and emitted EH frames contain 'coalesced' section designations
which interfere with the scan asm.

gcc/testsuite/ChangeLog:

* gcc.dg/darwin-weakimport-3.c: Suppress unwind frames.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/gcc.dg/darwin-weakimport-3.c

index a15b5b0e7cb964f896e5c4d2061b866be9f34ad1..7e83987bad5e428505a13ea4dba6bc41afd54035 100644 (file)
    With modern linkers this is moot, since even weak symbols
    are emitted into the regular sections.
 
-   To avoid the unwind tables -fno-asynchronous-unwind-tables.
+   To avoid the unwind tables -fno-asynchronous-unwind-tables
+   and fno-unwind-tables (since EH contains coalesced data).
    To ensure that we emit code for an older linker -mtarget-linker
    To avoid the get_pc thunk optimise at least O1.  */
 
-/* { dg-options "-fno-asynchronous-unwind-tables -O1 -mtarget-linker 85.2" } */
+/* { dg-options "-fno-asynchronous-unwind-tables -fno-unwind-tables -O1 -mtarget-linker 85.2" } */
 /* { dg-require-weak "" } */
 
 /* { dg-final { scan-assembler-not "coalesced" } } */