aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@gcc.gnu.org>2019-06-27 04:07:40 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-06-27 04:07:40 +0000
commitc7c08a516d4a84ccaa1bd0448cf1d9e4468a72e8 (patch)
tree84b8b52c6b4b4592262a6381662dbf300f19355f /gcc
parent43e0b376cbb83c77a14be605c3858309b496d88a (diff)
downloadgcc-c7c08a516d4a84ccaa1bd0448cf1d9e4468a72e8.zip
gcc-c7c08a516d4a84ccaa1bd0448cf1d9e4468a72e8.tar.gz
gcc-c7c08a516d4a84ccaa1bd0448cf1d9e4468a72e8.tar.bz2
Move USE_IRANGE from tree-vrp.h into range.h.
From-SVN: r272729
Diffstat (limited to 'gcc')
-rw-r--r--gcc/range.h10
-rw-r--r--gcc/ssa.h2
-rw-r--r--gcc/tree-vrp.c1
-rw-r--r--gcc/tree-vrp.h12
4 files changed, 11 insertions, 14 deletions
diff --git a/gcc/range.h b/gcc/range.h
index 5b10232..59def12 100644
--- a/gcc/range.h
+++ b/gcc/range.h
@@ -21,6 +21,12 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_RANGE_H
#define GCC_RANGE_H
+// Set to one if irange is a standalone class, or zero if irange is
+// just value_range_base underneath.
+#define USE_IRANGE 1
+
+class value_range_base;
+
#if USE_IRANGE
// This is the standalone irange implementation.
@@ -329,6 +335,10 @@ irange::supports_p (tree expr)
}
value_range_base irange_to_value_range (const irange &);
+#else // USE_IRANGE
+class value_range_storage;
+typedef value_range_base irange;
+typedef value_range_storage irange_storage;
#endif // USE_IRANGE
// Common code between the alternate irange implementations.
diff --git a/gcc/ssa.h b/gcc/ssa.h
index 2fe4add..74dcc73 100644
--- a/gcc/ssa.h
+++ b/gcc/ssa.h
@@ -25,8 +25,8 @@ along with GCC; see the file COPYING3. If not see
#include "stringpool.h"
#include "gimple-ssa.h"
-#include "tree-vrp.h"
#include "range.h"
+#include "tree-vrp.h"
#include "tree-ssanames.h"
#include "tree-phinodes.h"
#include "ssa-iterators.h"
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index f102a89..b4a30ed 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -65,7 +65,6 @@ along with GCC; see the file COPYING3. If not see
#include "tree-cfgcleanup.h"
#include "stringpool.h"
#include "attribs.h"
-#include "range.h"
#include "vr-values.h"
#include "builtins.h"
#include "wide-int-range.h"
diff --git a/gcc/tree-vrp.h b/gcc/tree-vrp.h
index 1d4fe3b..5d800e0 100644
--- a/gcc/tree-vrp.h
+++ b/gcc/tree-vrp.h
@@ -22,18 +22,6 @@ along with GCC; see the file COPYING3. If not see
class value_range_storage;
-// Set to one if irange is a standalone class, or zero if irange is
-// just value_range_base underneath.
-#define USE_IRANGE 1
-
-#if USE_IRANGE
-class irange;
-#else
-class value_range_base;
-typedef value_range_base irange;
-typedef value_range_storage irange_storage;
-#endif
-
/* Range of values that can be associated with an SSA_NAME after VRP
has executed. */
class GTY((for_user)) value_range_base