as per man gcc: -mfpmath=both == 387+sse == 387,sse currently filter-mfpmath only deals with ',' case
Created attachment 257611 [details, diff] cover "both" and "foo+bar" in filter-mfpmath
simpler to use ${foo//[,+]/ } although i wonder if we've just out grown this function and shouldnt punt it
these are the current users: $ greptree filter-mfpmath /usr/portage/eclass/gnat.eclass: 261 : filter-mfpmath sse 387 /usr/portage/eclass/flag-o-matic.eclass: 286 :# @FUNCTION: filter-mfpmath /usr/portage/eclass/flag-o-matic.eclass: 290 :# has -mfpmath=sse,386, running `filter-mfpmath sse` will leave the user with /usr/portage/eclass/flag-o-matic.eclass: 292 :filter-mfpmath() { /usr/portage/dev-db/firebird/firebird-2.1.3.18185.0.ebuild: 133: filter-mfpmath sse /usr/portage/dev-db/firebird/firebird-2.5.0.26074.0-r1.ebuild: 89 : filter-mfpmath sse /usr/portage/dev-db/firebird/firebird-2.0.3.12981.0-r6.ebuild: 125 : filter-mfpmath sse /usr/portage/sci-libs/gsl/gsl-1.14-r1.ebuild: 38 : && filter-mfpmath sse /usr/portage/sci-libs/gsl/gsl-1.15.ebuild: 46 : && filter-mfpmath sse /usr/portage/sci-libs/fftw/fftw-2.1.5-r5.ebuild: 26 : filter-mfpmath "sse" /usr/portage/sci-libs/fftw/fftw-2.1.5-r8.ebuild: 28 : filter-mfpmath "sse" /usr/portage/net-analyzer/rrdtool/rrdtool-1.2.30.ebuild: 45 : filter-mfpmath sse /usr/portage/net-analyzer/rrdtool/rrdtool-1.0.50.ebuild: 38 : filter-mfpmath sse /usr/portage/net-analyzer/rrdtool/rrdtool-1.2.29.ebuild: 45 : filter-mfpmath sse /usr/portage/dev-lang/ocaml/ocaml-3.11.2.ebuild: 56 : filter-mfpmath sse /usr/portage/dev-lang/ocaml/ocaml-3.12.1.ebuild: 56 : filter-mfpmath sse
http://sources.gentoo.org/eclass/flag-o-matic.eclass?r1=1.187&r2=1.188