diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-09-23 18:08:16 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-09-23 16:08:16 +0000 |
commit | 10b8fa2ed23366f5a9224a050db24b5f9d1236ab (patch) | |
tree | edac9be42c0dfb8002518876a201a76bdd0d3e7f /gcc/tree.c | |
parent | 54f9184b594d38d288471029277733a0c3374a65 (diff) | |
download | gcc-10b8fa2ed23366f5a9224a050db24b5f9d1236ab.zip gcc-10b8fa2ed23366f5a9224a050db24b5f9d1236ab.tar.gz gcc-10b8fa2ed23366f5a9224a050db24b5f9d1236ab.tar.bz2 |
tree.h (int_bit_position): Turn into inline function; implement using wide int.
* tree.h (int_bit_position): Turn into inline function;
implement using wide int.
* tree.c (int_bit_position): Remove.
From-SVN: r215518
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -2831,16 +2831,6 @@ bit_position (const_tree field) return bit_from_pos (DECL_FIELD_OFFSET (field), DECL_FIELD_BIT_OFFSET (field)); } - -/* Likewise, but return as an integer. It must be representable in - that way (since it could be a signed value, we don't have the - option of returning -1 like int_size_in_byte can. */ - -HOST_WIDE_INT -int_bit_position (const_tree field) -{ - return tree_to_shwi (bit_position (field)); -} /* Return the byte position of FIELD, in bytes from the start of the record. This is a tree of type sizetype. */ |