diff options
author | Martin Jambor <mjambor@suse.cz> | 2024-10-18 12:00:12 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2024-10-18 12:08:45 +0200 |
commit | 1a458bdeb223ffa501bac8e76182115681967094 (patch) | |
tree | 6840f64cbca12d0bc4ba4859dd58332544735e0a | |
parent | 51291ad0f1f89a81de917110af96e019dcd5690c (diff) | |
download | gcc-1a458bdeb223ffa501bac8e76182115681967094.zip gcc-1a458bdeb223ffa501bac8e76182115681967094.tar.gz gcc-1a458bdeb223ffa501bac8e76182115681967094.tar.bz2 |
testsuite: Add necessary dejagnu directives to pr115815_0.c
I have received an email from the Linaro infrastructure that the test
gcc.dg/lto/pr115815_0.c which I added is failing on arm-eabi and I
realized that not only it is missing dg-require-effective-target
global_constructor but actually any dejagnu directives at all, which
means it is unnecessarily running both at -O0 and -O2 and there is an
unnecesary run test too. All fixed by this patch.
I have not actually verified that the failure goes away on arm-eabi
but have very high hopes it will. I have verified that the test still
checks for the bug and also that it passes by running:
make -k check-gcc RUNTESTFLAGS="lto.exp=*pr115815*"
gcc/testsuite/ChangeLog:
2024-10-14 Martin Jambor <mjambor@suse.cz>
* gcc.dg/lto/pr115815_0.c: Add dejagu directives.
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/pr115815_0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr115815_0.c b/gcc/testsuite/gcc.dg/lto/pr115815_0.c index d938ae4..ade91de 100644 --- a/gcc/testsuite/gcc.dg/lto/pr115815_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr115815_0.c @@ -1,3 +1,7 @@ +/* { dg-lto-options {{-O2 -flto}} } */ +/* { dg-lto-do link } */ +/* { dg-require-effective-target global_constructor } */ + int a; volatile int v; volatile int w; |