https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66032
--- Comment #5 from Chris Johns <chrisj at rtems dot org> --- I have decided to revisit this bug and see what the issue is. I cannot see how to reopen the issue? Using GNU sed on FreeBSD is not straight forward. It requires either building by hand to a custom prefix with special paths or adding links to the packaged GNU sed executable called `gsed` and that could effect other parts of the system. The GCC Makefiles use `sed` directly so it cannot be specified to configure or make. I tracked the issue down to `libgcc/config/t-hardfd` and the make call ` hardfp_defines_for`. For reasons I could not figure out the FreeBSD sed does not like `|` in the branch `(sf|df)`. I have no idea why. Maybe someone who understands this part of sed better than me can spot the problem. As a result I implemented the functionality in awk. I attach a patch I have tested on FreeBSD 11.0 and debian 8.7 with the mips-rtems4.12 target with no errors.