From 43a9b25c17d264b81832e3bc09135f736c9e42ec Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 16 Jun 2020 18:19:44 +0200 Subject: [PATCH] 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. --- gcc/testsuite/c-c++-common/asan/inline-kernel.c | 2 +- gcc/testsuite/c-c++-common/asan/inline.c | 2 +- gcc/testsuite/c-c++-common/ubsan/inline.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2