gcc/libgfortran
Janne Blomqvist 9cbecd06be PR 47007 and 61847 Locale failures in libgfortran.
2014-11-10  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/47007
	PR libfortran/61847
	* config.h.in: Regenerated.
	* configure: Regenerated.
	* configure.ac (AC_CHECK_HEADERS_ONCE): Check for xlocale.h.
	(AC_CHECK_FUNCS_ONCE): Check for newlocale, freelocale, uselocale,
	strerror_l.
	* io/io.h (locale.h): Include.
	(xlocale.h): Include if present.
	(c_locale): New variable.
	(old_locale): New variable.
	(old_locale_ctr): New variable.
	(old_locale_lock): New variable.
	(st_parameter_dt): Add old_locale member.
	* io/transfer.c (data_transfer_init): Set locale to "C" if doing
	formatted transfer.
	(finalize_transfer): Reset locale to previous.
	* io/unit.c (c_locale): New variable.
	(old_locale): New variable.
	(old_locale_ctr): New variable.
	(old_locale_lock): New variable.
	(init_units): Init c_locale, init old_locale_lock.
	(close_units): Free c_locale.
	* runtime/error.c (locale.h): Include.
	(xlocale.h): Include if present.
	(gf_strerror): Use strerror_l if available. Reset locale to
	LC_GLOBAL_LOCALE for strerror_r branch.

2014-11-10  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/47007
	PR libfortran/61847
	* gfortran.texi: Add note about locale issues to thread-safety
	section.

From-SVN: r217273
2014-11-10 02:17:16 +02:00
..
caf check.c (check_co_collective): Renamed from 2014-09-25 08:07:15 +02:00
config fpu-*.h (get_fpu_rounding_mode, [...]): Clean up, mark unreachable code as such. 2014-07-10 08:45:38 +00:00
generated Fix -Wmaybe-uninitialized warnings. 2014-10-01 00:15:58 +03:00
ieee f95-lang.c (gfc_init_builtin_functions): Add more floating-point built-ins. 2014-10-09 09:47:25 +00:00
intrinsics Fix -Wmaybe-uninitialized warnings. 2014-10-01 00:15:58 +03:00
io PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
m4 Fix -Wmaybe-uninitialized warnings. 2014-10-01 00:15:58 +03:00
runtime PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
acinclude.m4 Use -z ignore instead of --as-needed on Solaris 2013-05-24 09:23:33 +00:00
aclocal.m4 Add -Werror=implicit-function-declaration to AM_CFLAGS. 2014-09-30 23:05:33 +03:00
c99_protos.h Update copyright years in libgfortran/ 2014-01-02 22:25:45 +00:00
ChangeLog PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013 Rotate ChangeLog for 2013. 2014-06-17 06:55:59 +03:00
config.h.in PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
configure PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
configure.ac PR 47007 and 61847 Locale failures in libgfortran. 2014-11-10 02:17:16 +02:00
configure.host configure.host (ieee_flags): Add -mieee for alpha*. 2014-07-02 10:45:08 +02:00
fmain.c
gfortran.map f95-lang.c (gfc_init_builtin_functions): Add more floating-point built-ins. 2014-10-09 09:47:25 +00:00
kinds-override.h Update copyright years in libgfortran/ 2014-01-02 22:25:45 +00:00
libgfortran.h libgfortran.h (support_fpu_underflow_control, [...]): New prototypes. 2014-07-09 20:32:12 +00:00
libgfortran.spec.in
libtool-version
Makefile.am re PR fortran/29383 (Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support) 2014-06-28 14:17:41 +00:00
Makefile.in Add -Werror=implicit-function-declaration to AM_CFLAGS. 2014-09-30 23:05:33 +03:00
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh