From 24ce3d9485f4140c6ebee618ecd501dac1a9fc98 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Thu, 30 Aug 2018 17:27:44 -0400 Subject: [PATCH] noexcept30.C: Make dependence on -fdelete-null-pointer-checks explicit. 2018-08-30 Sandra Loosemore 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 --- gcc/testsuite/ChangeLog | 17 +++++++++++++++++ gcc/testsuite/g++.dg/cpp0x/noexcept30.C | 1 + gcc/testsuite/g++.dg/cpp1y/constexpr-82218.C | 1 + gcc/testsuite/g++.dg/expr/pmf-3.C | 1 + gcc/testsuite/g++.dg/ext/attr-returns-nonnull.C | 2 +- gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C | 2 +- gcc/testsuite/g++.dg/tree-ssa/pr61034.C | 2 +- gcc/testsuite/gcc.dg/addr_equal-1.c | 2 +- gcc/testsuite/gcc.dg/ipa/pr85734.c | 2 +- gcc/testsuite/gcc.dg/ipa/propmalloc-1.c | 2 +- gcc/testsuite/gcc.dg/ipa/propmalloc-2.c | 2 +- gcc/testsuite/gcc.dg/ipa/propmalloc-3.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr78154.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr83648.c | 2 +- libstdc++-v3/ChangeLog | 5 +++++ .../experimental/propagate_const/observers/1.cc | 1 + 16 files changed, 36 insertions(+), 10 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 700b86ab135..ea4436c807c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,20 @@ +2018-08-30 Sandra Loosemore + + * 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 PR testsuite/87158 diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept30.C b/gcc/testsuite/g++.dg/cpp0x/noexcept30.C index c51e94e7573..8c7ff2aad45 100644 --- a/gcc/testsuite/g++.dg/cpp0x/noexcept30.C +++ b/gcc/testsuite/g++.dg/cpp0x/noexcept30.C @@ -1,5 +1,6 @@ // PR c++/69300 // { dg-do compile { target c++11 } } +// { dg-options "-fdelete-null-pointer-checks" } template struct F { diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-82218.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-82218.C index 06507a9f437..eb8d1e040cc 100644 --- a/gcc/testsuite/g++.dg/cpp1y/constexpr-82218.C +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-82218.C @@ -1,5 +1,6 @@ // PR c++/82218 // { dg-do compile { target c++14 } } +// { dg-options "-fdelete-null-pointer-checks" } template struct identity diff --git a/gcc/testsuite/g++.dg/expr/pmf-3.C b/gcc/testsuite/g++.dg/expr/pmf-3.C index fac42fc23a5..b94cd8ea638 100644 --- a/gcc/testsuite/g++.dg/expr/pmf-3.C +++ b/gcc/testsuite/g++.dg/expr/pmf-3.C @@ -1,5 +1,6 @@ // PR c++/80485 // { dg-do compile { target c++11 } } +// { dg-options "-fdelete-null-pointer-checks" } struct dummy { void nonnull() {}; diff --git a/gcc/testsuite/g++.dg/ext/attr-returns-nonnull.C b/gcc/testsuite/g++.dg/ext/attr-returns-nonnull.C index f75f32e46e8..46d1fa0e7fb 100644 --- a/gcc/testsuite/g++.dg/ext/attr-returns-nonnull.C +++ b/gcc/testsuite/g++.dg/ext/attr-returns-nonnull.C @@ -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 void* __attribute__ ((returns_nonnull)) diff --git a/gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C b/gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C index 90c90f2650c..0b7451d42b3 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C +++ b/gcc/testsuite/g++.dg/tree-ssa/lifetime-dse1.C @@ -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 { diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C index 023655b20fb..870b2372166 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C @@ -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() diff --git a/gcc/testsuite/gcc.dg/addr_equal-1.c b/gcc/testsuite/gcc.dg/addr_equal-1.c index dd237a7d3cd..70fa35464c1 100644 --- a/gcc/testsuite/gcc.dg/addr_equal-1.c +++ b/gcc/testsuite/gcc.dg/addr_equal-1.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/ipa/pr85734.c b/gcc/testsuite/gcc.dg/ipa/pr85734.c index e5fa21f0548..cbd524b1e8d 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr85734.c +++ b/gcc/testsuite/gcc.dg/ipa/pr85734.c @@ -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'" } */ diff --git a/gcc/testsuite/gcc.dg/ipa/propmalloc-1.c b/gcc/testsuite/gcc.dg/ipa/propmalloc-1.c index 9a95f817079..48136275590 100644 --- a/gcc/testsuite/gcc.dg/ipa/propmalloc-1.c +++ b/gcc/testsuite/gcc.dg/ipa/propmalloc-1.c @@ -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) diff --git a/gcc/testsuite/gcc.dg/ipa/propmalloc-2.c b/gcc/testsuite/gcc.dg/ipa/propmalloc-2.c index 95b2fd74a7a..4ad8fb1e751 100644 --- a/gcc/testsuite/gcc.dg/ipa/propmalloc-2.c +++ b/gcc/testsuite/gcc.dg/ipa/propmalloc-2.c @@ -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) diff --git a/gcc/testsuite/gcc.dg/ipa/propmalloc-3.c b/gcc/testsuite/gcc.dg/ipa/propmalloc-3.c index 13558ddd07d..c32254489a5 100644 --- a/gcc/testsuite/gcc.dg/ipa/propmalloc-3.c +++ b/gcc/testsuite/gcc.dg/ipa/propmalloc-3.c @@ -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)); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr78154.c b/gcc/testsuite/gcc.dg/tree-ssa/pr78154.c index d908a39dcd6..b561503a000 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr78154.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr78154.c @@ -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) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr83648.c b/gcc/testsuite/gcc.dg/tree-ssa/pr83648.c index 884faf81167..954eb2f0f4f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr83648.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr83648.c @@ -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) { diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 98288521abd..d14bbaa9d38 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-08-30 Sandra Loosemore + + * testsuite/experimental/propagate_const/observers/1.cc: Make + dependence on -fdelete-null-pointer-checks explicit. + 2018-08-30 Jonathan Wakely * include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64 diff --git a/libstdc++-v3/testsuite/experimental/propagate_const/observers/1.cc b/libstdc++-v3/testsuite/experimental/propagate_const/observers/1.cc index 24aa1a10c47..512c64d0b06 100644 --- a/libstdc++-v3/testsuite/experimental/propagate_const/observers/1.cc +++ b/libstdc++-v3/testsuite/experimental/propagate_const/observers/1.cc @@ -1,4 +1,5 @@ // { dg-do run { target c++14 } } +// { dg-options "-fdelete-null-pointer-checks" } // Copyright (C) 2015-2018 Free Software Foundation, Inc. //