noexcept30.C: Make dependence on -fdelete-null-pointer-checks explicit.

2018-08-30  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/testsuite/
	* 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.

	libstdc++-v3/
	* testsuite/experimental/propagate_const/observers/1.cc: Make
	dependence on -fdelete-null-pointer-checks explicit.

From-SVN: r264001
This commit is contained in:
Sandra Loosemore 2018-08-30 17:27:44 -04:00 committed by Sandra Loosemore
parent e602b1e353
commit 24ce3d9485
16 changed files with 36 additions and 10 deletions

View File

@ -1,3 +1,20 @@
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

View File

@ -1,5 +1,6 @@
// PR c++/69300
// { dg-do compile { target c++11 } }
// { dg-options "-fdelete-null-pointer-checks" }
template<typename A>
struct F {

View File

@ -1,5 +1,6 @@
// PR c++/82218
// { dg-do compile { target c++14 } }
// { dg-options "-fdelete-null-pointer-checks" }
template<typename _Tp>
struct identity

View File

@ -1,5 +1,6 @@
// PR c++/80485
// { dg-do compile { target c++11 } }
// { dg-options "-fdelete-null-pointer-checks" }
struct dummy {
void nonnull() {};

View File

@ -4,7 +4,7 @@
// 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))

View File

@ -1,5 +1,5 @@
// 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 {

View File

@ -1,5 +1,5 @@
// { 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()

View File

@ -2,7 +2,7 @@
/* { 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;

View File

@ -1,5 +1,5 @@
/* { 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'" } */

View File

@ -1,5 +1,5 @@
/* { 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)

View File

@ -1,5 +1,5 @@
/* { 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)

View File

@ -1,5 +1,5 @@
/* { 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));

View File

@ -1,5 +1,5 @@
/* { 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)
{

View File

@ -1,5 +1,5 @@
/* { 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)
{

View File

@ -1,3 +1,8 @@
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

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++14 } }
// { dg-options "-fdelete-null-pointer-checks" }
// Copyright (C) 2015-2018 Free Software Foundation, Inc.
//