newlib-cygwin/newlib/libm/math
Corinna Vinschen 1f232abc89 Throughout, run newlib with -Wall -Werror option and fix bugs and
compiler warnings found this way.

	* libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags.

	* libc/include/stdio.h (_rename): Define when building newlib.
	* libc/include/sys/signal.h (_kill): Ditto.
	* libc/include/sys/stat.h (_mkdir): Ditto.
	* libc/include/sys/time.h (_gettimeofday): Ditto.
	* libc/include/sys/times.h (_times): Ditto.
	* libc/include/sys/wait.h (_wait): Ditto.
	* libc/locale/lmessages.c (empty): Don't define for Cygwin.
	* libc/locale/lmonetary.c (cnv): Ditto.
	* libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s.
	* libc/posix/collate.c: Throughout cast to avoid compiler warning.
	* libc/posix/engine.c (matcher): Initialize dp to avoid compiler
	warning.
	* libc/posix/glob.c: Disable on Cygwin.  Explain why.
	* libc/posix/regcomp.c: Fix "uninitialized" compiler warnings.
	(dissect): Deliberately silence gcc compiler warning.  Add comment to
	explain why.
	* libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result
	is never used.
	* libc/posix/popen.c (popen): Ditto for variable last.
	* libc/reent/mkdirr.c: Include sys/stat.h.
	* libc/reent/renamer.c: Include stdio.h.
	* libc/search/hash.c:  Throughout use underscored variants of the stat
	function family.
	(init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case.
	* libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid
	compiler warning.
	* libc/search/hash_page.c (overflow_page): Initalize freep to NULL to
	avoid compiler warning.
	* libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char *
	to avoid compiler warning.
	(asiprintf): Ditto.
	* libc/stdio/asprintf.c (_asprintf_r): Ditto.
	(asprintf): Ditto.
	* libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto.
	* libc/stdio/vasprintf.c (_vasprintf_r): Ditto.
	* libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to
	isdigit to avoid compiler warning.
	* libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for
	grouping to avoid compiler warning.  Only define and set nseps and
	nrepeats if they are really used.
	* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto.  Only define state if
	it is really used.
	* libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char.
	(__SVFSCANF_R): Cast fmt in call to __mbtowc.
	* libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building
	Cygwin.
	(JIS_action_table): Ditto.
	* libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid
	compiler warning.
	* libc/string/strcasestr.c: Deliberately silence gcc compiler warning.
	Add comment to explain why.
	* libc/time/strptime.c (strptime): Cast to unsigned char in calls to
	isspace to avoid compiler warning.
	* libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid
	compiler warning.
	* libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid
	compiler warning.  Drop setting it to 0 later.
	* libm/math/ef_exp.c (__ieee754_expf): Ditto.
	* libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler
	warning.
	* libm/math/ef_pow.c (__ieee754_powf): Ditto.
	* libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to
	avoid compiler warning.
	* libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto.
	* libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z.
	* libm/common/sf_round.c (roundf): Remove signbit variable since result
	is never used.
2012-08-08 11:04:18 +00:00
..
Makefile.am * libm/math/w_cabs.c: Delete. 2010-10-08 10:49:28 +00:00
Makefile.in 2011-12-19 Jeff Johnston <jjohnstn@redhat.com> 2011-12-19 22:03:51 +00:00
e_acos.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_acosh.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_asin.c 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl> 2000-05-26 22:42:39 +00:00
e_atan2.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
e_atanh.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_cosh.c 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-08-28 17:45:56 +00:00
e_exp.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
e_fmod.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_hypot.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_j0.c 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl> 2000-05-26 22:42:39 +00:00
e_j1.c 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl> 2000-05-26 22:42:39 +00:00
e_jn.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_log.c 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl> 2000-05-26 22:42:39 +00:00
e_log10.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_pow.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
e_rem_pio2.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
e_remainder.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_scalb.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
e_sinh.c 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-08-28 17:45:56 +00:00
e_sqrt.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
ef_acos.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
ef_acosh.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_asin.c 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net> 2001-04-17 17:13:00 +00:00
ef_atan2.c 2005-07-20 Bob Wilson <bob.wilson@acm.org> 2005-07-20 16:20:24 +00:00
ef_atanh.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
ef_cosh.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_exp.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
ef_fmod.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_hypot.c 2005-08-02 Bob Wilson <bob.wilson@acm.org> 2005-08-02 19:44:44 +00:00
ef_j0.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_j1.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_jn.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_log.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_log10.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_pow.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
ef_rem_pio2.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_remainder.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_scalb.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
ef_sinh.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
ef_sqrt.c * libm/math/ef_sqrt.c: Delete unused variable sign. 2010-03-05 08:55:16 +00:00
er_gamma.c * libm/common/s_fdim.c: New file. 2002-06-07 21:59:57 +00:00
er_lgamma.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
erf_gamma.c * libm/common/s_fdim.c: New file. 2002-06-07 21:59:57 +00:00
erf_lgamma.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
k_cos.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
k_rem_pio2.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
k_sin.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
k_standard.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
k_tan.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
kf_cos.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
kf_rem_pio2.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
kf_sin.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
kf_tan.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
math.tex 2009-03-25 Craig Howland <howland@LGSInnovations.com> 2009-03-25 19:13:24 +00:00
s_asinh.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
s_atan.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
s_ceil.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_cos.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_erf.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_fabs.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_floor.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_frexp.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
s_ldexp.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
s_signif.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_sin.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_tan.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
s_tanh.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sf_asinh.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_atan.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_ceil.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_cos.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_erf.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_fabs.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sf_floor.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_frexp.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_ldexp.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sf_signif.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sf_sin.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_tan.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
sf_tanh.c * libc/include/machine/ieeefp.h: Comment about new configuration 2001-04-04 13:33:01 +00:00
w_acos.c 2007-05-01 Cary R. <cygcary <at> yahoo.com> 2007-05-01 18:42:15 +00:00
w_acosh.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_asin.c 2007-05-01 Cary R. <cygcary <at> yahoo.com> 2007-05-01 18:42:15 +00:00
w_atan2.c 2007-05-17 Cary R. <cygcary <at> yahoo.com> 2007-05-17 21:52:11 +00:00
w_atanh.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_cosh.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_drem.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_exp.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_exp2.c 2009-03-25 Craig Howland <howland@LGSInnovations.com> 2009-03-25 19:13:24 +00:00
w_fmod.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_gamma.c 2009-03-25 Craig Howland <howland@LGSInnovations.com> 2009-03-25 19:13:24 +00:00
w_hypot.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_j0.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
w_j1.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_jn.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_lgamma.c * implement a new `struct _reent' that is significantly smaller. use this 2002-02-03 09:24:18 +00:00
w_log.c 2007-10-17 Jeff Johnston <jjohnstn@redhat.com> 2007-10-18 00:03:32 +00:00
w_log10.c 2007-10-17 Jeff Johnston <jjohnstn@redhat.com> 2007-10-18 00:03:32 +00:00
w_pow.c 2007-05-01 Cary R. <cygcary <at> yahoo.com> 2007-05-01 18:42:15 +00:00
w_remainder.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_scalb.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_sincos.c * libc/sys/linux/cmath: New directory. 2002-08-16 21:29:45 +00:00
w_sinh.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
w_sqrt.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
w_tgamma.c 2011-01-12 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-01-12 22:25:15 +00:00
wf_acos.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_acosh.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_asin.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_atan2.c 2007-05-17 Cary R. <cygcary <at> yahoo.com> 2007-05-17 21:52:11 +00:00
wf_atanh.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_cosh.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_drem.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wf_exp.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wf_exp2.c * libm/common/s_fdim.c: New file. 2002-06-07 21:59:57 +00:00
wf_fmod.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_gamma.c * implement a new `struct _reent' that is significantly smaller. use this 2002-02-03 09:24:18 +00:00
wf_hypot.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wf_j0.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_j1.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_jn.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_lgamma.c * implement a new `struct _reent' that is significantly smaller. use this 2002-02-03 09:24:18 +00:00
wf_log.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_log10.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_pow.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_remainder.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_scalb.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_sincos.c * libc/sys/linux/cmath: New directory. 2002-08-16 21:29:45 +00:00
wf_sinh.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wf_sqrt.c 2009-07-09 Craig Howland <howland@LGSInnovations.com> 2009-07-09 17:04:56 +00:00
wf_tgamma.c 2011-01-12 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-01-12 22:25:15 +00:00
wr_gamma.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wr_lgamma.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wrf_gamma.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wrf_lgamma.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00