diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-05-19 00:54:59 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2010-05-19 00:54:59 +0400 |
commit | abdbbf16d4e2366c55975b86998ae7a7c3bccab2 (patch) | |
tree | 55578260d871250a02af221648451770f28d925a /gcc/tree.h | |
parent | f8a02aacf19d0e9c7c4daea13c5a598d5ea11cab (diff) | |
download | gcc-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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |