This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: strict-aliasing and typedefs
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: drow at mvista dot com (Daniel Jacobowitz)
- Cc: gdr at integrable-solutions dot net (Gabriel Dos Reis), schwab at suse dot de (Andreas Schwab), lucier at math dot purdue dot edu (Brad Lucier), gcc at gcc dot gnu dot org
- Date: Wed, 14 May 2003 17:07:26 -0500 (EST)
- Subject: Re: strict-aliasing and typedefs
> You're entirely correct, but I think that what Brad wanted (based on
> his message) was:
> typedef int kindone;
> typedef int kindtwo;
>
> and then to have any kindtwo* pointer not alias any kindone* pointer.
> Which is not quite the same as restrict, and is not possible in C.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
Yes, that's what I wanted, but I'm a practical person, and I'll take what
I can get ;-).
Brad