]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: arm: Avoid incremental link warnings in pr61123-enum-size
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 27 Feb 2025 15:11:47 +0000 (15:11 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Thu, 27 Feb 2025 15:26:29 +0000 (15:26 +0000)
commit767a7a06915651da173b6751959a47487351ed3a
tree820a4b2f78baf8a9425127cecaecaf279b870327
parent0fc1abcc46ecc34e8d2d7ec7167656ede2cd5690
testsuite: arm: Avoid incremental link warnings in pr61123-enum-size

This test uses incremental linking, but that can generate warnings if
the LTO step contains a mix of LTO and non-LTO object files (this can
happen when there's a testglue file that is normally included during
linking).

We don't care about the testglue, though, so just tell the LTO
optimizer to generate nolto-rel output, which is what it is falling
back to anyway.

gcc/testsuite:
* gcc.target/arm/lto/pr61123-enum-size_0.c: (dg-lto-options) Move
linker related options to ...
(dg-extra-ld-options): ... here.  Add -flinker-output=nolto-rel.
gcc/testsuite/gcc.target/arm/lto/pr61123-enum-size_0.c