Blitz logo

Blitz Bugs :

From: Peter Simons (simons_at_[hidden])
Date: 2002-10-11 06:43:38


Hi,

I just checked-out the latest version of the blitz library and tried
to compile it with GCC 3.1 on Linux/386. While the library built fine,
compiling the test-suite failed because the maximum template depth
exceeded 30 -- as specified by the configure script. I thus patched
the configure.in file as follows:

--- configure.in 8 Oct 2002 21:57:18 -0000 1.18
+++ configure.in 11 Oct 2002 11:41:56 -0000
@@ -148,8 +148,8 @@
      gcc*) # gcc http://gcc.gnu.org/
        echo "Configuring for gcc (wahoo!)"
        bz_compiler=gcc
- AC_BZ_SET_COMPILER($withval,"g++","-ftemplate-depth-30")
- CXX_OPTIMIZE_FLAGS="-O2 -funroll-loops -fstrict-aliasing -fno-gcse"
+ AC_BZ_SET_COMPILER($withval,"g++","-ftemplate-depth-48")
+ CXX_OPTIMIZE_FLAGS="-O3 -funroll-loops -fstrict-aliasing -fno-gcse"
        CXX_DEBUG_FLAGS="-g -DBZ_DEBUG"
      ;;
      aCC) # HP-UX compiler http://www.hp.com/go/c++

As you can see, I also changed the -O2 flag to an -O3 flag, because at
optimization level 2 gcc does NOT inline functions, and I figured that
this would be a useful optimaziation. With these changes, the library
and the self-tests worked fine. I'll also test it with gcc 3.2, just
to be sure.

        -peter
_______________________________________________
Blitz-bugs mailing list
Blitz-bugs_at_[hidden]
http://www.oonumerics.org/mailman/listinfo.cgi/blitz-bugs