This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: strict-aliasing and typedefs
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Cc: drow at mvista dot com (Daniel Jacobowitz), schwab at suse dot de (Andreas Schwab), gcc at gcc dot gnu dot org
- Date: 15 May 2003 00:11:04 +0200
- Subject: Re: strict-aliasing and typedefs
- Organization: Integrable Solutions
- References: <200305142207.h4EM7Qq5026776@banach.math.purdue.edu>
Brad Lucier <lucier@math.purdue.edu> writes:
| > 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.
Yes, you're right.
| > --
| > 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 ;-).
I'm curious...
-- Gaby