[FFmpeg-devel] [PATCH]Change check_exec_crash in configure
Carl Eugen Hoyos
cehoyos
Sat Mar 14 10:35:54 CET 2009
Hi!
Attached patch allows configure to enable ebp usage for icc compilations.
Ok to apply?
Carl Eugen
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 17954)
+++ configure (working copy)
@@ -670,6 +670,9 @@
static void sighandler(int sig){
raise(SIGTERM);
}
+__attribute__((noinline)) void foo() {
+ { $code }
+}
int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
@@ -677,7 +680,9 @@
#ifdef SIGBUS
signal(SIGBUS, sighandler);
#endif
- { $code }
+ volatile int i=0;
+ foo();
+ return i;
}
EOF
}
@@ -1832,11 +1837,9 @@
# if the base pointer is used to access it because the
# base pointer is cleared in the inline assembly code.
check_exec_crash <<EOF && enable ebp_available
- volatile int i=0;
__asm__ volatile (
"xorl %%ebp, %%ebp"
::: "%ebp");
- return i;
EOF
# check wether EBX is available on x86
More information about the ffmpeg-devel
mailing list