diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-12-20 20:27:13 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-12-20 20:27:13 +0000 |
commit | aca469e8346a216e7cde12608df057f018852068 (patch) | |
tree | 8ef2c5c513b8d5bc58d3005de49b52d93290f1ba | |
parent | b8019d2a215ba08c34997ab9314b658245ef363f (diff) | |
download | xine-lib-aca469e8346a216e7cde12608df057f018852068.tar.gz xine-lib-aca469e8346a216e7cde12608df057f018852068.tar.bz2 |
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
-rw-r--r-- | configure.ac | 20 |
1 files changed, 16 insertions, 4 deletions
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 |