Opened 3 years ago

Closed 2 years ago

#868 closed defect (fixed)

gcc optimization flags

Reported by: dmisev Owned by: dmisev
Priority: major Milestone: 9.1
Component: build system Version: development
Keywords: Cc: pbaumann
Complexity: Medium

Description (last modified by dmisev)

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:


  • 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 Changed 3 years ago by pbaumann

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

comment:2 Changed 3 years ago by dmisev

  • Description modified (diff)

comment:3 Changed 3 years ago by pbaumann


comment:4 Changed 3 years ago by dmisev

Patch submitted.

comment:5 Changed 2 years ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.