[MPlayer-dev-eng] SSE check leaves a coredump behind
Arpi
arpi at thot.banki.hu
Mon May 20 02:01:30 CEST 2002
Hi,
applied
please read DOCS/tech/patches.txt next time
> 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
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
>
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-dev-eng
mailing list