Skip to content
Snippets Groups Projects
Commit 767a7a06 authored by Richard Earnshaw's avatar Richard Earnshaw
Browse files

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.
parent 0fc1abcc
No related branches found
No related tags found
No related merge requests found
/* { dg-lto-do link } */
/* { dg-lto-options { { -fno-short-enums -Wl,-Ur,--no-enum-size-warning -Os -nostdlib -flto } } } */
/* { dg-lto-options { { -fno-short-enums -Os -flto } } } */
/* { dg-extra-ld-options "-flinker-output=nolto-rel -Wl,-Ur,--no-enum-size-warning -nostdlib" } */
#include <stdlib.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment