aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-05-19 00:54:59 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-05-19 00:54:59 +0400
commitabdbbf16d4e2366c55975b86998ae7a7c3bccab2 (patch)
tree55578260d871250a02af221648451770f28d925a /gcc/tree.h
parentf8a02aacf19d0e9c7c4daea13c5a598d5ea11cab (diff)
downloadgcc-abdbbf16d4e2366c55975b86998ae7a7c3bccab2.zip
gcc-abdbbf16d4e2366c55975b86998ae7a7c3bccab2.tar.gz
gcc-abdbbf16d4e2366c55975b86998ae7a7c3bccab2.tar.bz2
tree.h (build_int_cstu): Implement as static inline.
* tree.h (build_int_cstu): Implement as static inline. * tree.c (build_int_cstu): Remove function. (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as sign extended. From-SVN: r159544
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 5808827..e2f54a3 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4001,9 +4001,16 @@ tree_to_double_int (const_tree cst)
extern tree double_int_to_tree (tree, double_int);
extern bool double_int_fits_to_tree_p (const_tree, double_int);
+/* Create an INT_CST node with a CST value zero extended. */
+
+static inline tree
+build_int_cstu (tree type, unsigned HOST_WIDE_INT cst)
+{
+ return double_int_to_tree (type, uhwi_to_double_int (cst));
+}
+
extern tree build_int_cst (tree, HOST_WIDE_INT);
extern tree build_int_cst_type (tree, HOST_WIDE_INT);
-extern tree build_int_cstu (tree, unsigned HOST_WIDE_INT);
extern tree build_int_cst_wide (tree, unsigned HOST_WIDE_INT, HOST_WIDE_INT);
extern tree build_int_cst_wide_type (tree,
unsigned HOST_WIDE_INT, HOST_WIDE_INT);