From: Martin Liska Date: Wed, 11 Oct 2017 12:22:48 +0000 (+0200) Subject: Fix a test-case for Darwin. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1a651a25a4345c59604d8e50714b22742001afc;p=gcc.git Fix a test-case for Darwin. 2017-10-11 Martin Liska * c-c++-common/ubsan/ptr-overflow-sanitization-1.c: Scan optimized dump rather than assembly. From-SVN: r253636 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 15b3a79457c..8b60350710d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 Martin Liska + + * c-c++-common/ubsan/ptr-overflow-sanitization-1.c: Scan + optimized dump rather than assembly. + 2017-10-11 Nathan Sidwell * g++.dg/cpp/string-3.C: Fix dg-final. diff --git a/gcc/testsuite/c-c++-common/ubsan/ptr-overflow-sanitization-1.c b/gcc/testsuite/c-c++-common/ubsan/ptr-overflow-sanitization-1.c index 42c14523764..c12c7df252b 100644 --- a/gcc/testsuite/c-c++-common/ubsan/ptr-overflow-sanitization-1.c +++ b/gcc/testsuite/c-c++-common/ubsan/ptr-overflow-sanitization-1.c @@ -1,5 +1,4 @@ -/* { dg-require-effective-target lp64 } */ -/* { dg-options "-O -fsanitize=pointer-overflow" } */ +/* { dg-options "-O -fsanitize=pointer-overflow -fdump-tree-optimized" } */ /* { dg-skip-if "" { *-*-* } "-flto" } */ #define SMAX __PTRDIFF_MAX__ @@ -76,5 +75,4 @@ void negative_to_negative (char *ptr) p2 += 5; } - -/* { dg-final { scan-assembler-times "call\\s+__ubsan_handle_pointer_overflow" 17 } } */ +/* { dg-final { scan-tree-dump-times "__ubsan_handle_pointer_overflow" 17 "optimized" } } */