patch-libgcc_config_t-hardfp 1.3 KB

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-libgcc_config_t-hardfp,v 1.1 2015/09/11 08:07:44 pascal Exp $
  2. --- libgcc/config/t-hardfp.orig Fri Aug 28 12:33:13 2015
  3. +++ libgcc/config/t-hardfp Fri Aug 28 12:33:30 2015
  4. @@ -51,11 +51,11 @@ hardfp_func_list += $(foreach pair, $(hardfp_truncatio
  5. $(subst M,$(pair),truncM2))
  6. # Regexp for matching a floating-point mode.
  7. -hardfp_mode_regexp := $(shell echo $(hardfp_float_modes) | sed 's/ /\\|/g')
  8. +hardfp_mode_regexp := $(shell echo $(hardfp_float_modes) | gsed 's/ /\\|/g')
  9. # Regexp for matching the end of a function name, after the last
  10. # floating-point mode.
  11. -hardfp_suffix_regexp := $(shell echo $(hardfp_int_modes) 2 3 | sed 's/ /\\|/g')
  12. +hardfp_suffix_regexp := $(shell echo $(hardfp_int_modes) 2 3 | gsed 's/ /\\|/g')
  13. # Add -D options to define:
  14. # FUNC: the function name (e.g. __addsf3)
  15. @@ -64,7 +64,7 @@ hardfp_suffix_regexp := $(shell echo $(hardfp_int_mode
  16. # TYPE: the last floating-point mode (e.g. sf)
  17. hardfp_defines_for = \
  18. $(shell echo $1 | \
  19. - sed 's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__& -DOP_\1\3 -DTYPE=\2/')
  20. + gsed 's/\(.*\)\($(hardfp_mode_regexp)\)\($(hardfp_suffix_regexp)\|\)$$/-DFUNC=__& -DOP_\1\3 -DTYPE=\2/')
  21. hardfp-o = $(patsubst %,%$(objext),$(hardfp_func_list))
  22. $(hardfp-o): %$(objext): $(srcdir)/config/hardfp.c