This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64] --with-arch in config.gcc support "."
- From: Andreas Schwab <schwab at suse dot de>
- To: Jiong Wang <jiong dot wang at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Oct 2015 17:24:36 +0200
- Subject: Re: [AArch64] --with-arch in config.gcc support "."
- Authentication-results: sourceware.org; auth=none
- References: <n99zizljy7r dot fsf at arm dot com>
Jiong Wang <jiong.wang@arm.com> writes:
> diff --git a/gcc/config.gcc b/gcc/config.gcc
> index 5818663..215ad9a 100644
> --- a/gcc/config.gcc
> +++ b/gcc/config.gcc
> @@ -3544,7 +3544,7 @@ case "${target}" in
>
> eval "val=\$with_$which"
> base_val=`echo $val | sed -e 's/\+.*//'`
> - ext_val=`echo $val | sed -e 's/[a-z0-9\-]\+//'`
> + ext_val=`echo $val | sed -e 's/[a-z0-9\.\-]\+//'`
Neither backslash is needed inside bracket expressions (in fact, the
backslash is taken literally here) as the set of special characters is
completely different there.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."