$OpenBSD: patch-libgcc_config_t-hardfp,v 1.1.1.1 2019/01/04 15:50:39 pascal Exp $
--- libgcc/config/t-hardfp.orig	Mon Jan  4 15:30:50 2016
+++ libgcc/config/t-hardfp	Tue Aug 23 15:48:20 2016
@@ -60,11 +60,11 @@ hardfp_func_list += $(foreach pair, $(hardfp_truncatio
 hardfp_func_list := $(filter-out $(hardfp_exclusions),$(hardfp_func_list))
 
 # Regexp for matching a floating-point mode.
-hardfp_mode_regexp := $(shell echo $(hardfp_float_modes) | sed 's/ /\\|/g')
+hardfp_mode_regexp := $(shell echo $(hardfp_float_modes) | gsed 's/ /\\|/g')
 
 # Regexp for matching the end of a function name, after the last
 # floating-point mode.
-hardfp_suffix_regexp := $(shell echo $(hardfp_int_modes) 2 3 | sed 's/ /\\|/g')
+hardfp_suffix_regexp := $(shell echo $(hardfp_int_modes) 2 3 | gsed 's/ /\\|/g')
 
 # Add -D options to define:
 #   FUNC: the function name (e.g. __addsf3)
@@ -73,7 +73,7 @@ hardfp_suffix_regexp := $(shell echo $(hardfp_int_mode
 #   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/')
+    gsed 's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__& -DOP_\1\3 -DTYPE=\2/')
 
 hardfp-o = $(patsubst %,%$(objext),$(hardfp_func_list))
 $(hardfp-o): %$(objext): $(srcdir)/config/hardfp.c
