Opened 9 years ago

Closed 9 years ago

#868 closed defect (fixed)

gcc optimization flags

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 (5)

comment:1 by Peter Baumann, 9 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, 9 years ago

Description: modified (diff)

comment:3 by Peter Baumann, 9 years ago

+1

comment:4 by Dimitar Misev, 9 years ago

Patch submitted.

comment:5 by Dimitar Misev, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.