testsuite: Make sure the *san/inline* tests aren't UNRESOLVED with LTO
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Jun 2020 16:19:44 +0000 (18:19 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 16 Jun 2020 16:19:44 +0000 (18:19 +0200)
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  <jakub@redhat.com>

* 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
gcc/testsuite/c-c++-common/asan/inline.c
gcc/testsuite/c-c++-common/ubsan/inline.c

index d0da54a..20689f8 100644 (file)
@@ -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;
 
index 7c36702..7c7c924 100644 (file)
@@ -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;
 
index de96604..6cf67f9 100644 (file)
@@ -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;