[Ffmpeg-devel] Stack alignment warning

Loren Merritt lorenm
Sat Dec 16 00:20:09 CET 2006

On Sat, 16 Dec 2006, Uoti Urpala wrote:
>> 2006/12/15, Ismail Donmez <ismail at pardus.org.tr>:
>>  (support stack aligned local arrays)
> The warning test in ffmpeg does not use arrays (it's a single int
> variable), and the alignment does seem to work for arrays too in gcc
> 4.1.

In particular, gcc 3.4.3 completely ignores __attribute__((aligned(...)))
for scalar variables and 1-element arrays, but obeys it on multi-element
arrays (given the aligned-stack abi assumption, which was the original
problem). Thus it miscompiles ff_check_alignment even though the other 
instances of alignment are ok.

--Loren Merritt

More information about the ffmpeg-devel mailing list