]> git.ipfire.org Git - thirdparty/gcc.git/commit
[arm] Allow explicit periods to be escaped in
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jun 2017 21:05:08 +0000 (21:05 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jun 2017 21:05:08 +0000 (21:05 +0000)
commit0c8a04b52bc64da5a091e6ae5eadf3fe9161a010
tree822455acd69da19fe65310e15eb9056099d9f16e
parent73c72cdfa3d2d4e42101fec9c155ea6fdd053e10
[arm] Allow explicit periods to be escaped in

The MULTILIB_REUSE mapping rules are built up using periods to
represent the placement of '=' signs in the command line syntax.  This
presents a problem if the option contains an explicit period because
that is translated unconditionally.  The result is that it is not
currently possible to write a reuse rule that would match the
ARMv8-M mainline architecture:

-march=armv8-m.main

To fix this, this patch allows an explicit period to be escaped by writing
\. and by then preserving the period into the generated multilib header.

* genmultilib (multilib_reuse): Allow an explicit period to be escaped
with a backslash.  Remove the backslash after substituting unescaped
periods.
* doc/fragments.texi (MULTILIB_REUSE): Document it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249298 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/fragments.texi
gcc/genmultilib