[Ffmpeg-devel] [patch] strict-aliasing support
Luca Barbato
lu_zero
Tue Jul 4 00:42:18 CEST 2006
Michael Niedermayer wrote:
> Hi
>
> not ok, some versions of gcc silently ignore attribute align for variables
> on the stack, while they had no problem aligning double/uint64_t on the
> stack correctly
>
>
> [...]
>
I tested the following testcase on ppc, amd64 and x86 using gcc-4.1.1 on
all of them and gcc-3.4.6 on x86, the value is correct for 16 and 8
alignment. Could someone with a more ancient gcc test this testcase or
equivalents?
#include <stdio.h>
void f()
{
int tmp[64] __attribute__((aligned(16)));
printf("align %d\n", __alignof__(tmp));
}
int main()
{
f();
}
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
More information about the ffmpeg-devel
mailing list