[FFmpeg-cvslog] configure: x86: improve ebp availability check

Mans Rullgard git at videolan.org
Sat Sep 15 10:48:40 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Sep 13 20:17:54 2012 +0100| [692dd8ed2617f390ff53b1152a21170e886be726] | committer: Mans Rullgard

configure: x86: improve ebp availability check

Some compilers are extra strict about register usage in main(),
disallowing ebp in inline asm there while allowing it elsewhere.
This change makes the test better reflect actual usage.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=692dd8ed2617f390ff53b1152a21170e886be726
---

 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 2e28124..7c377aa 100755
--- a/configure
+++ b/configure
@@ -863,6 +863,9 @@ check_exec_crash(){
 static void sighandler(int sig){
     raise(SIGTERM);
 }
+int foo(void){
+    $code
+}
 int main(void){
     signal(SIGILL, sighandler);
     signal(SIGFPE, sighandler);
@@ -870,7 +873,7 @@ int main(void){
 #ifdef SIGBUS
     signal(SIGBUS, sighandler);
 #endif
-    { $code }
+    foo();
 }
 EOF
 }



More information about the ffmpeg-cvslog mailing list