This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Non portable sed invocation in libgcc configury
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Martin Husemann <martin at NetBSD dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 23 Mar 2014 11:59:39 +0100
- Subject: Re: Non portable sed invocation in libgcc configury
- Authentication-results: sourceware.org; auth=none
- References: <20140323104629 dot GA18530 at mail dot duskware dot de>
Martin Husemann <martin@NetBSD.org> writes:
> --- t-hardfp.orig 2014-02-07 08:46:34.000000000 +0100
> +++ t-hardfp 2014-03-23 11:36:12.000000000 +0100
> @@ -64,7 +64,7 @@
> # TYPE: the last floating-point mode (e.g. sf)
> hardfp_defines_for = \
> $(shell echo $1 | \
> - sed 's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__& -DOP_\1\3 -DTYPE=\2/')
> + sed -r 's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__& -DOP_\1\3 -DTYPE=\2/')
-r changes the regexp syntax to extended, so this will no longer match.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."