]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite, Darwin: Add support for Mach-O function body scans.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 26 Oct 2023 08:52:04 +0000 (09:52 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 22 Nov 2023 14:50:04 +0000 (14:50 +0000)
commit2a46e0e7e20e6e9095708704ac0180859e258b7d
treef1aef0e32ef0573fbe877c15d8a06dfbc8554c63
parent6bf66276e3e41d5d92f7b7260e98b6a111653805
testsuite, Darwin: Add support for Mach-O function body scans.

We need to process the source slightly differently from ELF, especially
in that we have __USER_LABEL_PREFIX__ and there are no function start
and end assembler directives.  This means we cannot delineate functions
when frame output is switched off.

TODO: consider adding -mtest-markers or something similar to inject
assembler comments that can be scanned for.

gcc/testsuite/ChangeLog:

* lib/scanasm.exp: Initial handling for Mach-O function body scans.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Co-authored-by: Richard Sandiford <richard.sandiford@arm.com>
gcc/testsuite/lib/scanasm.exp