Greetings, Here's a little m4 snippet you can stick into configure.in or .ac (from my PETSc package's math-blaslapack.m4):
AC_DEFUN([ALPHA_MIEEE_CHECK],[ AC_CHECKING([whether -mieee is needed to avoid SIGFPE on divide by zero]) case $build/$CC in alpha*/gcc* ) MIEEE_CFLAGS="-mieee" AC_MSG_RESULT([yes]) ;; * ) MIEEE_CFLAGS="" AC_MSG_RESULT([not needed]) ;; esac AC_SUBST(MIEEE_CFLAGS) ]) Then you just add MIEEE_CFLAGS to CFLAGS, CXXFLAGS etc. On Mon, 2004-02-09 at 12:18, Dominique Devriese wrote: package konqueror reopen 203722 thanks Steve Langasek writes: >> I'm currently looking at the following bug report >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=203722 about a >> frequent SIGFPE on an alpha machine. I guess we all know the cause >> of this bug, namely the non-standard alpha FPU semantics. > Even if gcc will soon adopt a patch to make -mieee the default, > there will be older versions of gcc around for a while. This is a > bug *now*, and there's no reason not to add the -mieee explicitly to > the compiler flags for the time being: it will just become a no-op > later once this is the gcc default. I guess I'm in the minority (based on prior discussions on debian-alpha), but IMHO the above is a better way to work around this issue than making slower performance the default... :-) Cheers, -- -Adam P. GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6 Welcome to the best software in the world today cafe! http://lyre.mit.edu/~powell/The_Best_Stuff_In_The_World_Today_Cafe.ogg