This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Darwin gcc 3.3 sizeof of C++ structures with long long ints is strange
- From: "Kevin B. Hendricks" <kevin dot hendricks at sympatico dot ca>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Andrew Haley <aph at redhat dot com>,gcc at gcc dot gnu dot org
- Date: Wed, 19 Mar 2003 21:16:46 -0500
- Subject: Re: Darwin gcc 3.3 sizeof of C++ structures with long long ints is strange
- References: <200303192352.SAA20598@makai.watson.ibm.com>
Hi,
That's interesting to know. That means any AIX port of OOo would run into
the same difficulties. Does the AIX gcc version support anything like
-malign-natural does for Apple's gcc 3.1 (byte aligned to 1, short aligned
to 2, int aligned to 4, double and long long int aligned to 8)?
Any particular reason for treating long long ints differently from doubles?
Thanks,
Kevin
On March 19, 2003 06:52 pm, David Edelsohn wrote:
> The Apple PowerMac alignment was the same as AIX. Unless Apple
> has changed their ABI, doubles are not naturally aligned, but long long
> ints are.
>
> David
>
>