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 d0da54a2a9838f2f7479eb0fadd44606496c2c3a..20689f86626fff3f59c82f46bf02aa6675503199 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 7c36702cf9e5979e91b972a427c61f30bdf0d00d..7c7c9244b060301b2e0d8602e22d35648e8dbbf1 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 de9660427f67d8a8fb2a96e311ac6b21b6b3c575..6cf67f974002d5cc1006afde556aa216e5d0d2f5 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;