Enabled flags for -Os different from man page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.8 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The flags enabled when using gcc's command-line parameter -Os are:
$ gcc -c -Q -Os --help=optimizers | grep 'align\
-falign-functions [enabled]
-falign-jumps [enabled]
-falign-labels [enabled]
-falign-loops [enabled]
-fprefetch-
-freorder-blocks [enabled]
-freorder-
-ftree-
But according to gcc's man page: "-Os disables the following optimization flags: -falign-functions -falign-jumps -falign-loops -falign-labels -freorder-blocks -freorder-
Maybe gcc is using some wrong defaults for parameter "-Os"?
This is the default package, details follow:
$ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9)
summary: |
- Enabed flags for -Os different from man page + Enabled flags for -Os different from man page |