]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Make check-function-bodies work with LTO
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Oct 2024 12:57:36 +0000 (13:57 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Oct 2024 12:57:36 +0000 (13:57 +0100)
commitb94331d9a3f7efb451bfad9db0fda162d3c46748
tree711f2edb8557ede0167b031c73f0ad732ee7dad8
parent9a5ac633f0f49c819f2745584475051c9eb8f6e0
testsuite: Make check-function-bodies work with LTO

This patch tries to make check-function-bodies automatically
choose between reading the regular assembly file and reading the
LTO assembly file.  There should only ever be one right answer,
since check-function-bodies doesn't make sense on slim LTO output.

Maybe this will turn out to be impossible to get right, but I'd like
to try at least.

gcc/testsuite/
* lib/scanasm.exp (check-function-bodies): Look in ltrans0.ltrans.s
if the test appears to be using LTO.
gcc/testsuite/lib/scanasm.exp