Hi!

On Tue, Jun 09, 2020 at 09:58:11PM +0200, Martin Liška wrote:
> On 6/9/20 9:42 PM, Rainer Orth wrote:
> > Excess errors:
> > cc1: error: '-fsanitize=address' is incompatible with 
> > '-fsanitize=kernel-address'
> 
> Sorry for that, I'm going to install the following patch.

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.

Tested on x86_64-linux, committed to trunk as obvious.

2020-06-16  Jakub Jelinek  <ja...@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.c.jj 2020-06-10 14:58:17.539494212 
+0200
+++ gcc/testsuite/c-c++-common/asan/inline.c    2020-06-16 18:17:36.011197816 
+0200
@@ -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;
 
--- gcc/testsuite/c-c++-common/asan/inline-kernel.c.jj  2020-06-10 
14:58:17.539494212 +0200
+++ gcc/testsuite/c-c++-common/asan/inline-kernel.c     2020-06-16 
18:17:51.096981545 +0200
@@ -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;
 
--- gcc/testsuite/c-c++-common/ubsan/inline.c.jj        2020-06-10 
14:58:17.539494212 +0200
+++ gcc/testsuite/c-c++-common/ubsan/inline.c   2020-06-16 18:18:08.037738683 
+0200
@@ -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;
 


        Jakub

Reply via email to