This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Void Pointer Alignment - GCC 3.4.6
- From: Rohit Arul Raj <rohitarulraj at gmail dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 29 Jan 2009 11:29:38 +0530
- Subject: Void Pointer Alignment - GCC 3.4.6
Hi All,
I am working with GCC 3.4.6 for a private target. The Alignment of all
pointer variables in my target is supposed to be 16bits. But it seems
that for void pointers, the alignment by default is taken as 8 bits. I
have defined the following macros to get the desired alignment but
still it doesn't seem to work.
#define Pmode HImode
#define POINTER_SIZE 16
Are there any other macros that are supposed to be defined to get the
preferred alignment or any other way of implementing this?
Regards,
Rohit