[MPlayer-dev-eng] ppc runtime-cpu-detection fails with gcc 3.3

Alan Curry pacman at theworld.com
Thu Feb 23 10:33:58 CET 2006


Ivan Kalvachev writes the following:
>
>2006/2/23, Alan Curry <pacman at theworld.com>:
>> It looks to me like we should blacklist the combination of ppc,
>> runtime-cpu-detect, and gcc 3.3 in configure. Objections? Alternatives?
>> Comments?
>
>MPlayer have old-day policy of _not_ workarounding gcc bugs (read gcc
>2.96 flames;)
>It would be much simpler to just blacklist the 3.3.x that produce this
>bug and require the newer (fixed) version.

OK, here's a specific patch for inspection:

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1134
diff -u -r1.1134 configure
--- configure	16 Feb 2006 20:45:24 -0000	1.1134
+++ configure	23 Feb 2006 09:31:24 -0000
@@ -2225,6 +2225,17 @@
         _runtime_cpudetection=no
     fi
 
+    if test "$_runtime_cpudetection" = yes -a \
+	    "$cc_vendor" = "gnu" -a "$_cc_major" = 3 -a "$_cc_minor" = 3; then
+	cat <<EOF
+
+Runtime CPU detection does not work with gcc 3.3.x due to a compiler bug. Use
+a different compiler or try again without --enable-runtime-cpudetection.
+
+EOF
+	die "Bad gcc version"
+    fi
+
     # show that we are optimizing for altivec (if enabled and supported)
 
     if test "$_runtime_cpudetection" = no -a "$_altivec" = yes ; then




More information about the MPlayer-dev-eng mailing list