[Ffmpeg-devel] Stack alignment warning

Måns Rullgård mru
Sat Dec 16 00:34:28 CET 2006

Loren Merritt <lorenm at u.washington.edu> writes:

> 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.

Is that saying that the check should be changed to test an array
larger than 1 element?

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list