diff options
| author | Linus Torvalds <torvalds@penguin.transmeta.com> | 2003-03-26 16:39:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:50 -0700 |
| commit | a9b6800b866e5506369bda74575bdbdcfb98c624 (patch) | |
| tree | 6e889406507a87feb377ee7a570a917e92daea00 /expression.h | |
| parent | cfd8c66684fca4398459876c09bdd4ff5d2d2444 (diff) | |
| download | sparse-dev-a9b6800b866e5506369bda74575bdbdcfb98c624.tar.gz | |
Evaluate bitfields into bitfield expressions.
Optimize away an offset of 0 in a structure reference.
Diffstat (limited to 'expression.h')
| -rw-r--r-- | expression.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/expression.h b/expression.h index 3b0bd635..f9ae6bfb 100644 --- a/expression.h +++ b/expression.h @@ -26,6 +26,7 @@ enum expression_type { EXPR_CALL, EXPR_COMMA, EXPR_COMPARE, + EXPR_BITFIELD, }; struct expression { @@ -68,6 +69,11 @@ struct expression { struct expression *fn; struct expression_list *args; }; + // EXPR_BITFIELD + struct bitfield_expr { + unsigned char bitpos, nrbits; + struct expression *address; + }; }; }; |
