Opened 10 years ago

Last modified 9 years ago

#868 closed defect

gcc optimization flags — at Initial Version

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

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 -O2 instead of -O0
  • new option --enable-opt sets -O3
  • new option --disable-opt sets -O0

Change History (0)

Note: See TracTickets for help on using tickets.