Changeset 9495cd17 in ffmpeg

Timestamp:
May 25, 2013, 10:07:56 AM (12 years ago)
Author:
Luca Barbato <lu_zero@gentoo.org>
Branches:
master
Children:
322e4194, efcc334c
Parents:
597208fd
git-author:
Laurent <laurent.aml@gmail.com> (05/25/13 10:01:29)
git-committer:
Luca Barbato <lu_zero@gentoo.org> (05/25/13 10:07:56)
Message:

configure: Fix check_exec_crash for ICL support

Change the check_exec_crash test to use a function pointer instead of
simply calling the function. The EBP availability test will crash when
compiled with ICL likely due to compiler optimization shenanigans.

Originally the check_exec_crash code was moved out of main to fix a
problem with gcc's treatment of non-leaf main on x86_32. Libav already
moved the code out of main but the addition of the function pointer will
prevent any inlining which fixes the remaining problem.

A function pointer is used since it is compiler agnostic (as opposed to
say attribute ((noinline)) which would only work with gcc compatible
compilers).

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>

(No files)

Note: See TracChangeset for help on using the changeset viewer.