This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
strict-aliasing and typedefs
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: lucier at math dot purdue dot edu (Brad Lucier)
- Date: Wed, 14 May 2003 15:56:45 -0500 (EST)
- Subject: strict-aliasing and typedefs
I've read the documentation and done a google and gcc search, but
I still have this question.
If I have the typedefs and variables
typedef int stackslot;
typedef int heapslot;
stackslot *sp;
heapslot *hp;
then can sp and hp point to the same location in memory with
ISO C's aliasing rules? I'm wondering if a Scheme->C compiler
can use typedefs and ISO C's aliasing rules to tell gcc that certain
memory locations cannot alias each other.
Brad