Opened 10 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 )
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 , 10 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
comment:5 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
good to clean up here!
But why not -O3 as default? Inlining etc, which O3 provides, seems useful for array processing.