[committed,PR,middle-end/86897] Disable DOM in test compromised by DOM

Message ID cbd9ad30-3e76-61d1-3d2a-7d1b7c0c0050@redhat.com
State New
Headers show
Series
  • [committed,PR,middle-end/86897] Disable DOM in test compromised by DOM
Related show

Commit Message

Jeff Law Aug. 9, 2018, 5:13 p.m.
This should have been committed with the most recent DOM change.

DOM compromises this test now that it uses the EVRP range data to
discover more constants.

The fix is trivial, disable DOM for this test.

Committed to the trunk.
Jeff
commit 08482a36034ea41b202c26589fa0907f8c25ff90
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Aug 9 17:11:45 2018 +0000

            PR middle-end/86897
            * gcc.dg/uninit-suppress_2.c: Disable DOM.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263454 138bc75d-0d04-0410-961f-82ee72b054a4

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8ea8530243d..1e915bc1a0a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2018-08-09  Jeff Law  <law@redhat.com>
+
+	PR middle-end/86897
+	* gcc.dg/uninit-suppress_2.c: Disable DOM.
+
 2018-08-09  Richard Sandiford  <richard.sandiford@arm.com>
 
 	* gcc.target/aarch64/sve/reduc_8.c: New test.
diff --git a/gcc/testsuite/gcc.dg/uninit-suppress_2.c b/gcc/testsuite/gcc.dg/uninit-suppress_2.c
index af0f192f0c0..b617609f5e1 100644
--- a/gcc/testsuite/gcc.dg/uninit-suppress_2.c
+++ b/gcc/testsuite/gcc.dg/uninit-suppress_2.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-fno-tree-ccp -fno-tree-vrp -fno-tree-fre -fno-tree-pre -fno-code-hoisting -O2 -Wuninitialized -Werror=uninitialized -Wno-error=maybe-uninitialized" } */
+/* { dg-options "-fno-tree-dominator-opts -fno-tree-ccp -fno-tree-vrp -fno-tree-fre -fno-tree-pre -fno-code-hoisting -O2 -Wuninitialized -Werror=uninitialized -Wno-error=maybe-uninitialized" } */
 void blah();
 void bar (int);
 int gflag;