gcc/libgfortran/runtime
Janne Blomqvist 68ee9c0807 Fix handling of temporary files.
2012-05-05  Janne Blomqvist  <jb@gcc.gnu.org>

        * gfortran.texi (GFORTRAN_TMPDIR): Rename to TMPDIR, explain
        algorithm for choosing temp directory.


2012-05-05  Janne Blomqvist  <jb@gcc.gnu.org>

        * config.h.in: Regenerated.
        * configure: Regenerated.
        * configure.ac: Add checks for getegid and __secure_getenv.
        * io/unix.c (P_tmpdir): Fallback definition for macro.
        (tempfile_open): New function.
        (tempfile): Use secure_getenv, call tempfile_open to try each
        directory in turn.
        * libgfortran.h (DEFAULT_TMPDIR): Remove macro.
        (secure_getenv): New macro/prototype.
        * runtime/environ.c (secure_getenv): New function.
        (variable_table): Rename GFORTRAN_TMPDIR to TMPDIR.
        * runtime/main.c (find_addr2line): Use secure_getenv.

From-SVN: r187190
2012-05-05 09:30:51 +03:00
..
backtrace.c Remove configure check for unused fdopen. 2012-01-12 12:30:45 +02:00
bounds.c libgfortran.h (descriptor_dimension, [...]): Rename _lbound to lower_bound and data to base_addr. 2012-03-10 18:22:31 +01:00
compile_options.c re PR fortran/51197 (Backtrace information less useful) 2012-01-10 10:32:29 +01:00
convert_char.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
environ.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
error.c Configure cleanup. 2011-11-09 20:25:58 +02:00
fpu.c
in_pack_generic.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
in_unpack_generic.c libgfortran.h (descriptor_dimension, [...]): Rename _lbound to lower_bound and data to base_addr. 2012-03-10 18:22:31 +01:00
main.c Fix handling of temporary files. 2012-05-05 09:30:51 +03:00
memory.c Combined get_mem and internal_malloc_size. 2012-03-26 18:16:05 +03:00
pause.c Error printing thread safety, remove GFORTRAN_USE_STDERR 2011-05-14 10:55:51 +03:00
select_inc.c
select.c
stop.c ctime.c: Include <stdlib.h>. 2011-07-23 11:06:04 +00:00
string.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00