From: Jakub Jelinek Date: Tue, 16 Jun 2020 16:19:44 +0000 (+0200) Subject: testsuite: Make sure the *san/inline* tests aren't UNRESOLVED with LTO X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43a9b25c17d264b81832e3bc09135f736c9e42ec;p=gcc.git testsuite: Make sure the *san/inline* tests aren't UNRESOLVED with LTO These tests are UNRESOLVED because -fdump-tree-optimized can't be scanned with slim LTO. Other *san/ tests deal with this by adding -ffat-lto-objects. 2020-06-16 Jakub Jelinek * c-c++-common/asan/inline.c: Add -ffat-lto-objects to dg-options. * c-c++-common/asan/inline-kernel.c: Likewise. * c-c++-common/ubsan/inline.c: Likewise. --- diff --git a/gcc/testsuite/c-c++-common/asan/inline-kernel.c b/gcc/testsuite/c-c++-common/asan/inline-kernel.c index d0da54a2a98..20689f86626 100644 --- a/gcc/testsuite/c-c++-common/asan/inline-kernel.c +++ b/gcc/testsuite/c-c++-common/asan/inline-kernel.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fno-sanitize=address -fsanitize=kernel-address -c -O3 -fdump-tree-optimized" } */ +/* { dg-options "-fno-sanitize=address -fsanitize=kernel-address -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */ int x; diff --git a/gcc/testsuite/c-c++-common/asan/inline.c b/gcc/testsuite/c-c++-common/asan/inline.c index 7c36702cf9e..7c7c9244b06 100644 --- a/gcc/testsuite/c-c++-common/asan/inline.c +++ b/gcc/testsuite/c-c++-common/asan/inline.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fsanitize=address -c -O3 -fdump-tree-optimized" } */ +/* { dg-options "-fsanitize=address -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */ int x; diff --git a/gcc/testsuite/c-c++-common/ubsan/inline.c b/gcc/testsuite/c-c++-common/ubsan/inline.c index de9660427f6..6cf67f97400 100644 --- a/gcc/testsuite/c-c++-common/ubsan/inline.c +++ b/gcc/testsuite/c-c++-common/ubsan/inline.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fsanitize=vla-bound -c -O3 -fdump-tree-optimized" } */ +/* { dg-options "-fsanitize=vla-bound -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */ int x;