pr27336.c: Make dependency on -fdelete-null-pointer-checks explicit.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 30 Sep 2016 02:15:51 +0000 (22:15 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Fri, 30 Sep 2016 02:15:51 +0000 (22:15 -0400)
2016-09-29  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* c-c++-common/pr27336.c: Make dependency on
-fdelete-null-pointer-checks explicit.
* g++.dg/cpp0x/constexpr-array-ptr10.C: Likewise.
* g++.dg/cpp0x/constexpr-nullptr-1.C: Likewise.
* g++.dg/lto/pr69589_0.C: Add nios2-*-elf to unsupported targets.
* gcc.dg/pic-1.c: Require fpic target support.
* gcc.dg/pic-2.c: Likewise.

From-SVN: r240644

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr27336.c
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr10.C
gcc/testsuite/g++.dg/cpp0x/constexpr-nullptr-1.C
gcc/testsuite/g++.dg/lto/pr69589_0.C
gcc/testsuite/gcc.dg/pic-1.c
gcc/testsuite/gcc.dg/pic-2.c

index 804d0c2791371b7dd1d551570cb6ea29fdd01c3c..b5106656042fe6076e3f15fc7e3ab7cf360484a1 100644 (file)
@@ -1,3 +1,13 @@
+2016-09-29  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * c-c++-common/pr27336.c: Make dependency on 
+       -fdelete-null-pointer-checks explicit.
+       * g++.dg/cpp0x/constexpr-array-ptr10.C: Likewise.
+       * g++.dg/cpp0x/constexpr-nullptr-1.C: Likewise.
+       * g++.dg/lto/pr69589_0.C: Add nios2-*-elf to unsupported targets.
+       * gcc.dg/pic-1.c: Require fpic target support.
+       * gcc.dg/pic-2.c: Likewise.
+
 2016-09-29  Jakub Jelinek  <jakub@redhat.com>
 
        Implement P0001R1 - C++17 removal of register storage class specifier
index 2978c6d709922d56e8ca1ba32ba3741d404cefbc..ce6855989a2c4d89446439890003dde4d21bb2e4 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-vrp1" } */
+/* { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-vrp1" } */
 
 struct B { int x; };
 extern void g3(struct B *that)  __attribute__((nonnull));
index f75b3c3227f3d742ac290786fc1192b5fff17b74..2ff7c4d3920c9c69c140502d9056ea688b5a8c89 100644 (file)
@@ -8,7 +8,7 @@
 // that and involves all constexpr object pointers.
 
 // { dg-do compile { target c++11 } }
-// { dg-additional-options "-Wall -Wextra" }
+// { dg-additional-options "-Wall -Wextra -fdelete-null-pointer-checks" }
 
 namespace A {
 
index 420a04b7768b82312403c23ae12c37d4a0f39300..e2f7917d36e43460b043bfbd8c57be11fb102cdd 100644 (file)
@@ -6,7 +6,7 @@
 // c++/67376 on gcc-patches for additional background.
 
 // { dg-do compile { target c++11 } }
-// { dg-options "-fdump-tree-optimized" }
+// { dg-options "-fdelete-null-pointer-checks -fdump-tree-optimized" }
 
 // Runtime assert.  Used for potentially invalid expressions.
 #define RA(e)  ((e) ? (void)0 : __builtin_abort ())
index 1457d2eb13e866643b8f038b5c5819089d1070f8..11766f1fe0719fdd213b4feb304952b6796f95df 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-lto-do link }
 // { dg-lto-options "-O2 -rdynamic" }
 // { dg-extra-ld-options "-r -nostdlib" }
-// { dg-skip-if "Skip targets without -rdynamic support" { arm*-none-eabi aarch64*-*-elf } { "*" } { "" } }
+// { dg-skip-if "Skip targets without -rdynamic support" { arm*-none-eabi aarch64*-*-elf nios2-*-elf } { "*" } { "" } }
 
 #pragma GCC visibility push(hidden)
 struct A { int &operator[] (long); };
index 38414e9708b20ef08a748e9a5c31c34cd848a9f9..82ba43da83e707108024ed78b7a9124a29c9b1c9 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! { *-*-darwin* hppa*-*-* } } } } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-fpic" } */
 
 #if __PIC__ != 1
index 2c742e932b84ff112b454ffbf522885c39f0e9fc..59ce8e25bfc54e7d9767b9d908bd4b7cba275cc8 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-fPIC" } */
 
 #if __PIC__ != 2