Disable anchors and msdata for ASAN test-case (PR sanirizer/85174).
authorMartin Liska <mliska@suse.cz>
Wed, 4 Apr 2018 10:40:57 +0000 (12:40 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 4 Apr 2018 10:40:57 +0000 (10:40 +0000)
2018-04-04  Martin Liska  <mliska@suse.cz>

PR sanitizer/85174
* c-c++-common/asan/pointer-compare-1.c: Disable section anchors
and msdata as a workaround for powerpc.

From-SVN: r259074

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

index 5c72bd78387f7562a598c3f20c1c6fa77123ea70..3258830c7f49004bca546be91188bae11060ee48 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-04  Martin Liska  <mliska@suse.cz>
+
+       PR sanitizer/85174
+       * c-c++-common/asan/pointer-compare-1.c: Disable section anchors
+       and msdata as a workaround for powerpc.
+
 2018-04-04  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/85168
index cf67fe98bee84947c2cf8153618a0ad6438b2682..1ce349e4917a6c5ac0506b99cfd214fbe9fffdde 100644 (file)
@@ -2,6 +2,10 @@
 /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=0" } */
 /* { dg-options "-fsanitize=address,pointer-compare" } */
 
+/* FIXME: remove me after PR sanitizer/82501 is resolved.  */
+/* { dg-additional-options "-fno-section-anchors" } */
+/* { dg-additional-options "-msdata=none" { target { powerpc*-*-* } } } */
+
 volatile int v;
 
 __attribute__((noipa)) void