[PATCH 20/30] [genmultilib] Allow explicit periods to be escaped in MULTILIB_REUSE
Richard Earnshaw
Richard.Earnshaw@arm.com
Fri Jun 9 12:55:00 GMT 2017
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.
---
gcc/doc/fragments.texi | 10 ++++++----
gcc/genmultilib | 4 ++--
2 files changed, 8 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-genmultilib-Allow-explicit-periods-to-be-escaped-in-.patch
Type: text/x-patch
Size: 2239 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170609/f20a7c21/attachment.bin>
More information about the Gcc-patches
mailing list