From: Jakub Jelinek Date: Mon, 25 Jun 2018 17:24:42 +0000 (+0200) Subject: backport: re PR sanitizer/70875 (ICE in get_ubsan_type_info_for_type with -fsanitize... X-Git-Tag: releases/gcc-6.5.0~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4807a17c846b5b50802068bfd7cee9328fabffb;p=thirdparty%2Fgcc.git backport: re PR sanitizer/70875 (ICE in get_ubsan_type_info_for_type with -fsanitize=undefined) Backported from mainline 2018-03-02 Jakub Jelinek PR sanitizer/70875 * gcc.dg/ubsan/bounds-3.c: Add -fno-sanitize-recover=bounds to dg-options and dg-shouldfail "ubsan" directive. From-SVN: r262067 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8414ca165708..401bf84ec515 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,12 @@ 2018-06-25 Jakub Jelinek Backported from mainline + 2018-03-02 Jakub Jelinek + + PR sanitizer/70875 + * gcc.dg/ubsan/bounds-3.c: Add -fno-sanitize-recover=bounds to + dg-options and dg-shouldfail "ubsan" directive. + 2018-02-26 Jakub Jelinek PR c++/84558 diff --git a/gcc/testsuite/gcc.dg/ubsan/bounds-3.c b/gcc/testsuite/gcc.dg/ubsan/bounds-3.c index 50ad67389f8a..c9d896d1903b 100644 --- a/gcc/testsuite/gcc.dg/ubsan/bounds-3.c +++ b/gcc/testsuite/gcc.dg/ubsan/bounds-3.c @@ -1,6 +1,7 @@ /* PR sanitizer/70875 */ /* { dg-do run } */ -/* { dg-options "-fsanitize=bounds" } */ +/* { dg-options "-fsanitize=bounds -fno-sanitize-recover=bounds" } */ +/* { dg-shouldfail "ubsan" } */ int foo (int n, int k)