- To: Florian Weimer <fw@xxxxxxxxxxxxx>
- Subject: Re: Integral type with sizeof(T) == 1 and distinct aliasing class
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Sun, 20 May 2012 21:06:30 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <email@example.com> (Florian Weimer's message of "Sun, 20 May 2012 11:45:29 +0200")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Florian Weimer <fw@xxxxxxxxxxxxx> writes:
> Is there a type which is basically an (unsigned) char, but with the
> additional feature that a pointer derived from it wouldn't alias with
> basically anything?
> This type would be handy for optimizing marshaling code.
There is no such type. However, use of the restrict qualifier should
achieve a similar effect.
[Linux C Programming]
[The DWARVES Debugging Tools]