[Bug 235293] GCC MIPS cross-compiler build fails due to BSD sed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 29 11:44:28 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235293

--- Comment #2 from sebastian.huber at embedded-brains.de ---
In the referenced GCC file, the sed expression is constructed in several steps,
one input is

hardfp_float_modes := sf df

which is transformed via

hardfp_mode_regexp := $(shell echo $(hardfp_float_modes) | sed 's/ /\\|/g')

which is used in

hardfp_defines_for = \
   $(shell echo $1 | \
     sed
's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__&
-DOP_\1\3 -DTYPE=\2/')

So, it is difficult to use another regex.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list