[PATCH] __attribute__((bitwise))
commit032f492af0ac27772a09c54f56a7ef2a8e06c1a0
authorAlexander Viro <viro@www.linux.org.uk>
Sun, 5 Sep 2004 02:56:24 +0000 (4 19:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:03:05 +0000 (7 21:03 -0700)
tree55b46a3c14d9a83d5388a90b59949e6981c5a056
parent48e449e622686e5867de88439def77a3499df5ba
[PATCH] __attribute__((bitwise))

Handling of __attribute__((bitwise)) in a way that should be easy to extend
afterwards.   Example of use:

typedef __u32 __attribute__((bitwise)) __le32;

That will create a new 32bit type that will be assignment-incompatible with
anything else.  The set of allowed operations is restricted to bitwise ones,
the only allowed constant is 0 right now.  Forced casts are allowed, so is
cast from type to itself and cast to void.  Any other cast will give a warning.

Checks are triggered by -Wbitwise in command line; if it's not there,
attribute will be silently ignored.
evaluate.c
ident-list.h
lib.c
lib.h
parse.c
show-parse.c
symbol.h