[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

#include <stdio.h>

void f()
  int tmp[64] __attribute__((aligned(16)));
  printf("align %d\n", __alignof__(tmp));

int main()



Luca Barbato

Gentoo/linux Gentoo/PPC

More information about the ffmpeg-devel mailing list