+2018-08-30 Sandra Loosemore <sandra@codesourcery.com>
+
+ * g++.dg/cpp0x/noexcept30.C: Make dependence on
+ -fdelete-null-pointer-checks explicit.
+ * g++.dg/cpp1y/constexpr-82218.C: Likewise.
+ * g++.dg/expr/pmf-3.C: Likewise.
+ * g++.dg/ext/attr-returns-nonnull.C: Likewise.
+ * g++.dg/tree-ssa/lifetime-dse1.C: Likewise.
+ * g++.dg/tree-ssa/pr61034.C: Likewise.
+ * gcc.dg/addr_equal-1.c: Likewise.
+ * gcc.dg/ipa/pr85734.c: Likewise.
+ * gcc.dg/ipa/propmalloc-1.c: Likewise.
+ * gcc.dg/ipa/propmalloc-2.c: Likewise.
+ * gcc.dg/ipa/propmalloc-3.c: Likewise.
+ * gcc.dg/tree-ssa/pr78154.c: Likewise.
+ * gcc.dg/tree-ssa/pr83648.c: Likewise.
+
2018-08-30 Martin Sebor <msebor@redhat.com>
PR testsuite/87158
// PR c++/69300
// { dg-do compile { target c++11 } }
+// { dg-options "-fdelete-null-pointer-checks" }
template<typename A>
struct F {
// PR c++/82218
// { dg-do compile { target c++14 } }
+// { dg-options "-fdelete-null-pointer-checks" }
template<typename _Tp>
struct identity
// PR c++/80485
// { dg-do compile { target c++11 } }
+// { dg-options "-fdelete-null-pointer-checks" }
struct dummy {
void nonnull() {};
// does not "inherit" attribute nonnull from an argument declared with
// one in the primary template.
// { dg-do compile }
-// { dg-options "-O -Wall -fdump-tree-optimized" }
+// { dg-options "-O -Wall -fdump-tree-optimized -fdelete-null-pointer-checks" }
template <class T>
void* __attribute__ ((returns_nonnull))
// PR c++/61982
-// { dg-additional-options "-O2 -fdump-tree-optimized" }
+// { dg-additional-options "-O2 -fdump-tree-optimized -fdelete-null-pointer-checks" }
// { dg-final { scan-tree-dump-not "= 0" "optimized" } }
struct X {
// { dg-do compile }
-// { dg-options "-O2 -fdump-tree-fre3 -fdump-tree-optimized" }
+// { dg-options "-O2 -fdump-tree-fre3 -fdump-tree-optimized -fdelete-null-pointer-checks" }
#define assume(x) if(!(x))__builtin_unreachable()
/* { dg-require-effective-target nonpic } */
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fdelete-null-pointer-checks" } */
/* { dg-skip-if "" { powerpc-ibm-aix* } } */
void abort (void);
extern int undef_var0, undef_var1;
/* { dg-do compile } */
-/* { dg-options "-O2 -Wsuggest-attribute=malloc" } */
+/* { dg-options "-O2 -Wsuggest-attribute=malloc -fdelete-null-pointer-checks" } */
__attribute__((noinline))
static void *f1(__SIZE_TYPE__ sz) /* { dg-bogus "function might be candidate for attribute 'malloc'" } */
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-pure-const-details" } */
+/* { dg-options "-O2 -fdump-ipa-pure-const-details -fdelete-null-pointer-checks" } */
__attribute__((noinline, no_icf, used))
static void *f(__SIZE_TYPE__ n)
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-pure-const-details" } */
+/* { dg-options "-O2 -fdump-ipa-pure-const-details -fdelete-null-pointer-checks" } */
__attribute__((noinline, used, no_icf))
static void *foo (__SIZE_TYPE__ n)
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-pure-const-details" } */
+/* { dg-options "-O2 -fdump-ipa-pure-const-details -fdelete-null-pointer-checks" } */
static void *foo(__SIZE_TYPE__, int) __attribute__((noinline, no_icf, used));
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-evrp-slim" } */
+/* { dg-options "-O2 -fdump-tree-evrp-slim -fdelete-null-pointer-checks" } */
void f(void *d, const void *s, __SIZE_TYPE__ n)
{
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-local-pure-const-details" } */
+/* { dg-options "-O2 -fdump-tree-local-pure-const-details -fdelete-null-pointer-checks" } */
void *g(unsigned n)
{
+2018-08-30 Sandra Loosemore <sandra@codesourcery.com>
+
+ * testsuite/experimental/propagate_const/observers/1.cc: Make
+ dependence on -fdelete-null-pointer-checks explicit.
+
2018-08-30 Jonathan Wakely <jwakely@redhat.com>
* include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64
// { dg-do run { target c++14 } }
+// { dg-options "-fdelete-null-pointer-checks" }
// Copyright (C) 2015-2018 Free Software Foundation, Inc.
//