summaryrefslogtreecommitdiff
path: root/gcc/tree.def
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-05 10:32:07 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-05 10:32:07 +0000
commit70d2daf706955b9c5e21c4d1dc9501ff45837f2e (patch)
treedbc226445478bac071c83a30072ba45eb3da7ff8 /gcc/tree.def
parenta08778a200c37877029d20fe6a974b5798710b78 (diff)
downloadgcc-70d2daf706955b9c5e21c4d1dc9501ff45837f2e.tar.gz
2008-03-05 Richard Guenther <rguenther@suse.de>
PR c++/35336 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2 should be constants. * tree-cfg.c (verify_expr): Verify it. * fold-const.c (fold_truthop): Remove code generating BIT_FIELD_REFs of structure bases. (fold_binary): Likewise. (fold_ternary): Position and size of BIT_FIELD_REFs are always host integers. (make_bit_field_ref): Remove. (optimize_bit_field_compare): Remove. (all_ones_mask_p): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132894 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.def')
-rw-r--r--gcc/tree.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.def b/gcc/tree.def
index f485e4b25c9..aac9d563c38 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -389,8 +389,8 @@ DEFTREECODE (COMPONENT_REF, "component_ref", tcc_reference, 3)
/* Reference to a group of bits within an object. Similar to COMPONENT_REF
except the position is given explicitly rather than via a FIELD_DECL.
Operand 0 is the structure or union expression;
- operand 1 is a tree giving the number of bits being referenced;
- operand 2 is a tree giving the position of the first referenced bit.
+ operand 1 is a tree giving the constant number of bits being referenced;
+ operand 2 is a tree giving the constant position of the first referenced bit.
The field can be either a signed or unsigned field;
BIT_FIELD_REF_UNSIGNED says which. */
DEFTREECODE (BIT_FIELD_REF, "bit_field_ref", tcc_reference, 3)