This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Align DImode to 4 byte for i386
On Feb 11, 2008 2:14 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> > Ada compiler is written in Ada.
>
> Most of the front-end is written in Ada, but the rest (called gigi) is in C.
>
> > I don't know Ada and have no idea where to look.
>
> Probably ada/decl.c.
>
ada/decl.c has
/* Return the smallest alignment not less than SIZE. */
static unsigned int
ceil_alignment (unsigned HOST_WIDE_INT size)
{
return (unsigned int) 1 << (floor_log2 (size - 1) + 1);
}
Will this assume a long long field in a struct is aligned at 8 byte?
H.J.