This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] may_alias attribute
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Osku Salerma <osku at iki dot fi>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Jan 2002 09:50:57 -0800
- Subject: Re: [patch] may_alias attribute
- References: <Pine.LNX.4.20.0201251018120.570-100000@127>
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