aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-09 15:15:46 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-09 15:15:46 +0000
commit442eef68d2987242045a47371716cc38ddf8ec1b (patch)
treeb7e905c28478bcd07caa2fd65cdfd47e1246db7c /gcc
parente91c2cac3486cc7c09c07c861d7938055598d211 (diff)
downloadgcc-442eef68d2987242045a47371716cc38ddf8ec1b.zip
gcc-442eef68d2987242045a47371716cc38ddf8ec1b.tar.gz
gcc-442eef68d2987242045a47371716cc38ddf8ec1b.tar.bz2
* tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
From-SVN: r247800
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/tree.h10
2 files changed, 4 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4e0abca..8a0544f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2017-05-09 Nathan Sidwell <nathan@acm.org>
+ * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
+
* ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
typedefs.
diff --git a/gcc/tree.h b/gcc/tree.h
index 1b7d86a..c6e883c 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4109,15 +4109,9 @@ extern int attribute_list_contained (const_tree, const_tree);
extern int tree_int_cst_equal (const_tree, const_tree);
extern bool tree_fits_shwi_p (const_tree)
-#ifndef ENABLE_TREE_CHECKING
- ATTRIBUTE_PURE /* tree_fits_shwi_p is pure only when checking is disabled. */
-#endif
- ;
+ ATTRIBUTE_PURE;
extern bool tree_fits_uhwi_p (const_tree)
-#ifndef ENABLE_TREE_CHECKING
- ATTRIBUTE_PURE /* tree_fits_uhwi_p is pure only when checking is disabled. */
-#endif
- ;
+ ATTRIBUTE_PURE;
extern HOST_WIDE_INT tree_to_shwi (const_tree);
extern unsigned HOST_WIDE_INT tree_to_uhwi (const_tree);
#if !defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 4003)