[LLVMdev] dragonegg vs -ffast-math?

Jack Howarth howarth at bromo.med.uc.edu
Wed Oct 6 08:46:32 PDT 2010


On Wed, Oct 06, 2010 at 02:26:35PM +0200, Duncan Sands wrote:
> Hi Jack,
> 
> >    I am finding that llvm 2.8 rc3 with dragonegg svn built against current
> > gcc-4_5-branch doesn't appear to allow gfortran to use -ffast-math. Attempting
> > to compile code using the dragonegg plugin under gcc 4.5.2  with that option produces the error...
> >
> > f951: Unknown command line argument '--enable-finite-only-fp-math'.  Try: 'f951 -help'
> >
> > The standard gcc 4.5.2 gfortran compiler has no problem with that option.
> >         Jack
> 
> I've fixed this in commit 115781.  The fix will be in the dragonegg 2.8 release,
> which should come out sometime this week.
> 
> Ciao,
> 
> Duncan.

Duncan,
   Thanks. I can confirm this is in fact fixed in current dragonegg svn. On a different
question, what are the prospects getting aermod to compile under dragonegg? I am still
seeing compile failures of the form...

de-gfortran45 -ffast-math -funroll-loops -msse3 -O3 aermod.f90 -o aermod
Assertion failed: ((NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FTy->getNumParams())) && "Calling a function with bad signature!"), function init, file /sw/src/fink.build/llvm-clang-2.8-1/llvm-2.8/lib/VMCore/Instructions.cpp, line 242.
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.

This also seems to be the same failure preventing capacita.f90, gas_dyn.f90, induct.f90, protein.f90, rnflow.f90 and
test_fpu.f90 from compiling.
         Jack

> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list