This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Disable anchors and msdata for ASAN test-case (PR sanirizer/85174).


Hi.

It's test-case workaround, tested on x86_64 and powerpc with both -m64 and -m32.

Ready for trunk?
Thanks,
Martin

gcc/testsuite/ChangeLog:

2018-04-04  Martin Liska  <mliska@suse.cz>

	PR sanirizer/85174
	* c-c++-common/asan/pointer-compare-1.c: Disable section anchors
	and msdata as a workaround for powerpc.
---
 gcc/testsuite/c-c++-common/asan/pointer-compare-1.c | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c
index cf67fe98bee..d4d7784785c 100644
--- a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c
+++ b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c
@@ -2,6 +2,9 @@
 /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=0" } */
 /* { dg-options "-fsanitize=address,pointer-compare" } */
 
+/* TODO: remove me after PR sanitizer/82501 is resolved.  */
+/* { dg-additional-options "-fno-section-anchors -msdata=none" { target { powerpc*-*-* } } } */
+
 volatile int v;
 
 __attribute__((noipa)) void


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]