This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Non portable sed invocation in libgcc configury


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]