Opened 10 years ago

Last modified 9 years ago

#868 closed defect

gcc optimization flags — at Version 2

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 9.1
Component: build system Version: development
Keywords: Cc: Peter Baumann
Complexity: Medium

Description (last modified by Dimitar Misev)

Currently there are two configure options that influence what optimizations flags are set:

  • --enable-debug sets:

-g3 -gdwarf-2 -O0 -rdynamic

  • --without-debug-symbols sets:

-O2

  • default (same as --enable-debug):

-g3 -gdwarf-2 -O0 -rdynamic

I'd propose that

  • default sets -O3 instead of -O0
  • new option --with-optimization=[0-3] sets the specified optimization level

Change History (2)

comment:1 by Peter Baumann, 10 years ago

good to clean up here!
But why not -O3 as default? Inlining etc, which O3 provides, seems useful for array processing.

comment:2 by Dimitar Misev, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.