This is the mail archive of the
mailing list for the GCC project.
Fwd: An options exception
- From: Sergey Ostanevich <sergos dot gnu at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 15 Apr 2014 08:38:06 +0100
- Subject: Fwd: An options exception
- Authentication-results: sourceware.org; auth=none
- References: <CAGYS_TJP5OGUALFiNZ4fOhkfgAu5AOjMHcEyPrPeqreF4HuvcQ at mail dot gmail dot com>
I didn't find any precedent of the following before, so this can be a start for
Options are known to be different between compilers and achieve options
compatibility is somewhat complex because of this. GCC can be taken as a
reference point, but since other comilers still can (and expected to) have their
own proprietary options there potentially can be a situation that GCC redefines
the same option that was previously (in time) introuced by other compiler.
To evade such a `derail` can we elaborate a rule about new options introduction
and make an escape prefix, such as -q. No options under this escape should be
introduced for GCC. Then other comilers will never appear in a situation their
options reused by GCC and cause a conflict.