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.
This commit is contained in:
Sandra Loosemore 2021-04-04 17:55:46 -07:00
parent 914728849a
commit 3cb9e3aee9
2 changed files with 2 additions and 2 deletions

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 *foo(int cond1, int cond2, int cond3)
{

View File

@ -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 ();