On Wed, 24 May 2006, Reid Spencer wrote:
+# this can be overridden on the make command line.
+OPTIMIZE_OPTION := -O3
Yuck! :)
That means anyone not using a compiler that understands -O3 will have to
put that on every make command line. I assume this is a temporary
situation. What we ought to do is put the value into Makefile.config.in
and have configure deduce it when it determines the kind of compiler
we'll be using. If that makes sense, can you file a bug and I'll get to
it eventually?
That's not the intention of this option. The specific situation I have is
that some versions of GCC crash when compiling some of the LLVM sources as
-O3. As a temporary work around, I'm forcing -O2 to be used: ugly but
effective. The only way to check for this in an autoconf check would be
to compile all of llvm with -O3 :)
I don't think the LLVM build systems are well suited for compilers that
don't grok -O3, but this patch doesn't change that...
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits