don't understand optimizations flags

As example I take one line from Makefile output. I see here you using two optimization flags -O3 & -O2, but:
If you use multiple -O options, with or without level numbers, the last such option is the one that is effective.

gcc -g -O3 -ffast-math --param max-inline-insns-single=2400 -fkeep-inline-functions -Winline -DPACKAGE_DATA_DIR=\"/usr/local/share/flam3\" -g -O2 -o flam3-convert flam3-convert.o docstring.o ./.libs/libflam3.a -lm /usr/lib/libjpeg.so -lpthread /usr/lib/libxml2.so -lpng -lz

Oh, sorry this above was my

Oh, sorry this above was my Makefile(inline don't help).
Here is from flam3


gcc -g -O3 -ffast-math -DPACKAGE_DATA_DIR=\"/usr/local/share/flam3\" -g -O2 -o flam3-convert flam3-convert.o docstring.o ./.libs/libflam3.a -lm /usr/lib/libjpeg.so -lpthread /usr/lib/libxml2.so -lpng -lz

O3 vs O2

I'm aware of the extra O2 flags in the compile flags. I've fixed this at sourceforge but it hasn't been released yet.

To make those flags go away, you can also execute this:

env CFLAGS='' ./configure

Erik Reckase
flam3 developer
AIM: flam3dev

When I simply remove every

When I simply remove every -O2 form Makefile I have little speed up render.

And I don't remove -g.

And I don't remove -g.