aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2021-04-04 17:55:46 -0700
committerSandra Loosemore <sandra@codesourcery.com>2021-04-04 17:55:46 -0700
commit3cb9e3aee98a206b786d7414ad28e67fbcceba5c (patch)
tree2696a3ea52126743f0daf2432af55ce9645eaac0 /gcc
parent914728849a35851ba1c1e2acfef2c44d2c9a6bc4 (diff)
downloadgcc-3cb9e3aee98a206b786d7414ad28e67fbcceba5c.zip
gcc-3cb9e3aee98a206b786d7414ad28e67fbcceba5c.tar.gz
gcc-3cb9e3aee98a206b786d7414ad28e67fbcceba5c.tar.bz2
Trivial testsuite fixes for nios2-elf.
nios2-elf defaults to -fno-delete-null-pointer-checks, which causes failures in tests that assume the option is enabled. Make the dependence explicit. 2021-04-04 Sandra Loosemore <sandra@codesourcery.com> gcc/testsuite/ * gcc.dg/ipa/propmalloc-4.c: Add -fdelete-null-pointer-checks. * gcc.dg/tree-ssa/evrp11.c: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/ipa/propmalloc-4.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/evrp11.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/propmalloc-4.c b/gcc/testsuite/gcc.dg/ipa/propmalloc-4.c
index 4c40d63..9552b73 100644
--- a/gcc/testsuite/gcc.dg/ipa/propmalloc-4.c
+++ b/gcc/testsuite/gcc.dg/ipa/propmalloc-4.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 *foo(int cond1, int cond2, int cond3)
{
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/evrp11.c b/gcc/testsuite/gcc.dg/tree-ssa/evrp11.c
index f1373bd..d791305 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/evrp11.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/evrp11.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-evrp" } */
+/* { dg-options "-O2 -fdump-tree-evrp -fdelete-null-pointer-checks" } */
extern void link_error ();