[MPlayer-dev-eng] SSE check leaves a coredump behind

Steven M. Schultz sms at 2BSD.COM
Sun May 19 10:11:49 CEST 2002


Hi!

	On systems without SSE/SSE2 support the test for those instructions
	leaves a coredump file behind.

	The small patch below catches the SIGILL signal and exits with 
	non-zero status but without creating a core file.

	Cheers,
	Steven Schultz
	sms at 2bsd.com

---------------cut here-----------------
--- configure.dist	Sun May 19 00:58:18 2002
+++ configure	Sun May 19 01:00:34 2002
@@ -722,7 +722,11 @@
     if test "$1" = yes ; then
       echocheck "kernel support of $2"
       cat > $TMPC <<EOF
-int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);}
+#include <signal.h>
+void catch() { exit(1); }
+int main(void){
+signal(SIGILL, catch);
+__asm__ __volatile__ ("$3":::"memory");return(0);}
EOF
 
       if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then



More information about the MPlayer-dev-eng mailing list