From aca469e8346a216e7cde12608df057f018852068 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Fri, 20 Dec 2002 20:27:13 +0000 Subject: xine-lib triggers a GCC 2.95.3 compiler crash on SPARC. Avoid the -mcpu=ultrasparc option. CVS patchset: 3597 CVS date: 2002/12/20 20:27:13 --- configure.ac | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f58dd09d2..f95ccfae6 100644 --- a/configure.ac +++ b/configure.ac @@ -926,10 +926,22 @@ case "$host_or_hostalias" in sun4c) cpu_cflags="-mcpu=v7 -mtune=supersparc" ;; sun4m) cpu_cflags="-mcpu=v8 -mtune=supersparc" ;; sun4u) - cpu_cflags="-mcpu=ultrasparc -mtune=ultrasparc" - if test x$enable_vis = xyes; then - AC_DEFINE_UNQUOTED(ENABLE_VIS,,[Define this if you have Sun UltraSPARC CPU]) - fi + case `$CC --version 2>/dev/null` in + [12].*) + # -mcpu=ultrasparc triggers a GCC 2.95.x compiler bug when + # compiling video_out.c: + # gcc: Internal compiler error: program cc1 got fatal signal 11 + # avoid -mcpu=ultrasparc with gcc 2.* + cpu_cflags="-mcpu=v8 -mtune=ultrasparc" + ;; + *) + # GCC 3 or newer should have no problem with -mcpu=ultrasparc + cpu_cflags="-mcpu=ultrasparc -mtune=ultrasparc" + if test x$enable_vis = xyes; then + AC_DEFINE_UNQUOTED(ENABLE_VIS,,[Define this if you have Sun UltraSPARC CPU]) + fi + ;; + esac ;; *) cpu_cflags= ;; esac -- cgit v1.2.3