Autsch. Deine CFLAGS bedürfen wohl einiger Überarbeitung...
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html#Optimize-Options:
Zitat:
-funroll-loops
Unroll loops whose number of iterations can be determined at compile time or upon entry to the loop. -funroll-loops implies both -fstrength-reduce and -frerun-cse-after-loop. This option makes code larger, and may or may not make it run faster.
-funroll-all-loops
Unroll all loops, even if their number of iterations is uncertain when the loop is entered. This usually makes programs run more slowly. -funroll-all-loops implies the same options as -funroll-loops,
Ich würde dir von beiden Flags abraten.
-fthread-jumps wird durch -O2 und damit auch -O3 bereits impliziert, ist also redundant und unnötig. Selbiges für -frerun-cse-after-loop, -frerun-loop-opt und -fexpensive-optimizations.
Zitat:
-ffast-math
Sets -fno-math-errno, -funsafe-math-optimizations,
-fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range.
This option causes the preprocessor macro __FAST_MATH__ to be defined.
This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions.
Zu gut deutsch: lass das lieber aus...
-mmmx und -msse werden durch -march=pentium3 bereits impliziert.
http://www.gentoo-wiki.com/Safe_Cflags:
Zitat:
The flag -mfpmath=sse however is not enabled by -march but it usually makes binaries slower due to limitations in the glibc headers. So it's better to not use this flag, even if you have an SSE capable CPU. Also -mfpmath=sse,387 is experimental and unstable.
Abschalten.
Und noch ein paar Links:
http://www.gentoo-wiki.com/Cflags
http://www.gentoo-wiki.com/CFLAGS_matrix