This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] may_alias attribute


On Fri, Jan 25, 2002 at 10:28:13AM +0200, Osku Salerma wrote:
> I tried to implement a may_alias attribute for the C/C++ front-ends.
> The spesification is something like "types with this attribute behave
> like char*, ie. can alias anything".

The inverse is also desirable: "types with this attribute cannot alias
other types, even though they are character types."  I'm not sure what
to call it.  type_alias?  As it's only useful for char, maybe a
__builtin_char_without_aliasing_exception type (accepting "signed" and
"unsigned" modifiers) would do just as well.

[I wonder if we could define our [u]int8_t using that type, if we had
it.]

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]