CFLAGS=-O3 ... for Gnucash 1.4.7 doesn't work.

Dave Peticolas dave@krondo.com
Wed, 04 Oct 2000 00:23:54 -0700


Arnold Troeger writes:
> I tried something last night while building the gnucash 1.4.7 rpm for
> Mandrake 7.0.  I changed the CFLAGS environment variable to "i586 -O3
> -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentium
> -mcpu=pentium -march=pentium -ffast-math -fexpensive-optimizations
> -malign-loops=2 -malign-jumps=2 -malign-functions=2
> -mpreferred-stack-boundary=2."  These are the default compiler options
> in the rpmrc file and will be used when building the rpm if you put
> "CFLAGS=$RPM_OPT_FLAGS" before "./configure ..." in the %build section
> of the rpm spec file.  Gnucash did not seem to like those compiler
> options.  The first thing I noticed wrong was in the register window, my
> new entries were sorting themselves in a different order than I was
> entering them.  I immediately exited, rebuilt the rpm file without the
> CFLAGS statement, reinstalled and everything worked properly.   The
> behavior was definitely corrected by reducing the optimization, but I'm
> curious as to what does go wrong at higher optimizations.  Has anyone
> else tried this and if so, what did you decide?

I don't think anyone has ever reported this problem before. Did you try
using a different set of optimizations?

dave