diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-04-16 21:31:00 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2010-04-16 21:31:00 +0400 |
commit | 9d4d1f8ef92256462a22dcc2895004f42ac3e4f6 (patch) | |
tree | e6ff3785e037f37055445ae5e7c6e400f2143152 /gcc | |
parent | 607440898495d8998d9e0bea8484e57bb5ef1064 (diff) | |
download | gcc-9d4d1f8ef92256462a22dcc2895004f42ac3e4f6.zip gcc-9d4d1f8ef92256462a22dcc2895004f42ac3e4f6.tar.gz gcc-9d4d1f8ef92256462a22dcc2895004f42ac3e4f6.tar.bz2 |
double-int.h (tree_to_double_int): Convert to macro.
* double-int.h (tree_to_double_int): Convert to macro.
* double-int.c (tree_to_double_int): Remove.
From-SVN: r158437
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/double-int.c | 12 | ||||
-rw-r--r-- | gcc/double-int.h | 5 |
3 files changed, 9 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c97a549..bbce851 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-16 Anatoly Sokolov <aesok@post.ru> + + * double-int.h (tree_to_double_int): Convert to macro. + * double-int.c (tree_to_double_int): Remove. + 2010-04-16 Jakub Jelinek <jakub@redhat.com> PR debug/43762 diff --git a/gcc/double-int.c b/gcc/double-int.c index 96e5884..2af97ba 100644 --- a/gcc/double-int.c +++ b/gcc/double-int.c @@ -842,18 +842,6 @@ double_int_sext (double_int cst, unsigned prec) return r; } -/* Constructs long integer from tree CST. The extra bits over the precision of - the number are filled with sign bit if CST is signed, and with zeros if it - is unsigned. */ - -double_int -tree_to_double_int (const_tree cst) -{ - /* We do not need to call double_int_restrict here to ensure the semantics as - described, as this is the default one for trees. */ - return TREE_INT_CST (cst); -} - /* Returns true if CST fits in unsigned HOST_WIDE_INT. */ bool diff --git a/gcc/double-int.h b/gcc/double-int.h index 64ac843..6820348 100644 --- a/gcc/double-int.h +++ b/gcc/double-int.h @@ -63,7 +63,10 @@ typedef struct tree double_int_to_tree (tree, double_int); bool double_int_fits_to_tree_p (const_tree, double_int); -double_int tree_to_double_int (const_tree); + +/* Constructs double_int from tree CST. */ + +#define tree_to_double_int(cst) (TREE_INT_CST (cst)) /* Constructs double_int from integer CST. The bits over the precision of HOST_WIDE_INT are filled with the sign bit. */ |