Message ID | ca21e998-8469-7c93-4982-24505f9b408b@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On Wed, 10 Aug 2016, Paul E. Murphy wrote: > diff --git a/math/Makefile b/math/Makefile > index 567b7ed..7451e4e 100644 > --- a/math/Makefile > +++ b/math/Makefile > @@ -274,7 +274,7 @@ generated += $(addsuffix .c,$(call type-foreach,$(gen-libm-calls:%=%$(s)))) \ > # Create wrappers in the math build directory. > $(objpfx)gen-libm-templates.stmp: > for gfunc in $(gen-libm-calls); do \ > - gfunc_basefile=$${gfunc/F/}_template.c; \ > + gfunc_basefile=$${gfunc%F*}$${gfunc#*F}_template.c; \ > for type in $(foreach t,$(types),$(t)__$(type-$(t)-suffix)); do \ > func=$(objpfx)$${gfunc/F/$${type#*__}}; \ There's a further unfixed instance of this non-POSIX shell usage. Please send a complete fixed patch.
diff --git a/math/Makefile b/math/Makefile index 567b7ed..7451e4e 100644 --- a/math/Makefile +++ b/math/Makefile @@ -274,7 +274,7 @@ generated += $(addsuffix .c,$(call type-foreach,$(gen-libm-calls:%=%$(s)))) \ # Create wrappers in the math build directory. $(objpfx)gen-libm-templates.stmp: for gfunc in $(gen-libm-calls); do \ - gfunc_basefile=$${gfunc/F/}_template.c; \ + gfunc_basefile=$${gfunc%F*}$${gfunc#*F}_template.c; \ for type in $(foreach t,$(types),$(t)__$(type-$(t)-suffix)); do \ func=$(objpfx)$${gfunc/F/$${type#*__}}; \ type=$${type%__*}; \ diff --git a/sysdeps/generic/math-type-macros.h b/sysdeps/generic/math-type-macros.h index 91394ba..259cb94 100644 --- a/sysdeps/generic/math-type-macros.h +++ b/sysdeps/generic/math-type-macros.h @@ -95,7 +95,7 @@ #include <float.h> /* Use a special epsilon value for IBM long double - to avoid spurious overflows. */ + to avoid spurious overflows/underflows. */ #if M_MANT_DIG != 106 # define M_EPSILON __M_CONCATX (M_PFX, _EPSILON) #else