]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
riscv: add work around for PR sanitizer/82501
authorAndreas Schwab <schwab@suse.de>
Mon, 29 May 2023 07:33:52 +0000 (09:33 +0200)
committerAndreas Schwab <schwab@suse.de>
Tue, 30 May 2023 09:18:08 +0000 (11:18 +0200)
gcc/testsuite/
PR sanitizer/82501
* c-c++-common/asan/pointer-compare-1.c: Disable use of small data
on RISC-V.

gcc/testsuite/c-c++-common/asan/pointer-compare-1.c

index 4b558bf8179a75bc8165823c729e763a299f6903..fb9126d6df1220fc906846baf7b5b07c06a5e7e3 100644 (file)
@@ -5,6 +5,7 @@
 /* FIXME: remove me after PR sanitizer/82501 is resolved.  */
 /* { dg-additional-options "-fno-section-anchors" } */
 /* { dg-additional-options "-msdata=none" { target { powerpc*-*-* } } } */
+/* { dg-additional-options "-msmall-data-limit=0" { target { riscv*-*-* } } } */
 
 volatile int v;