https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82534
Bug ID: 82534
Summary: [meta-bug] POSIX compliant compiler options
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: wilson at gcc dot gnu.org
Target Milestone: ---
This is a meta bug to track issues with compiler options not being POSIX
compliant. POSIX says that -X -Y is equivalent to -XY. This is not true for
some gcc options. The GNU coding standards require that single character
options are introduced with one dash and multiple character options are
introduced with two dashes. GCC needs to try to conform to this rule.
A single character option that requires an argument does not need to comply
with this rule, so -f and -m options are OK.
POSIX does also say that if you have options that comply with the rules, then
it is OK to have some non-compliant options for compatibility with older
versions of the tool. So we don't necessarily have to eliminate the old single
dash multiple character options.