* stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
[official-gcc.git] / libgfortran / ChangeLog
blob5f9ddaf668f1d7fa66da490bc5696eaa02c8cd18
1 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
3         * intrinsics/getcwd.c: Include stdlib.h.
5 2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
7         * libgfortran.h (xrealloc): New prototype.
8         * runtime/memory.c (xrealloc): New function.
9         * io/fbuf.c (fbuf_alloc): Use xrealloc.
10         * io/list_read.c (push_char_default): Likewise.
11         (push_char4): Likewise.
13 2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
15         PR libfortran/61310
16         * intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf
17         instead of strftime.
18         (fdate): Use gf_ctime.
19         (fdate_sub): Likewise.
20         (ctime): Likewise.
21         (ctime_sub): Likewise.
23 2014-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
25         PR libgfortran/55117
26         * io/list_read.c (extended_look_ahead): New helper function to
27         scan the namelist name and look for matches with the new '+'
28         extended type parent indicator.  (str_comp_extended): New
29         helper function to compare the namelist name with the varname
30         namelist. (find_nml_name): Use the new helper functions to match
31         the extended type varnames.
33 2014-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu>
35         PR libfortran/61173
36         * io/list_read.c (eat_spaces): If the next character pointed to
37         is a space, don't seek, must be at the end.
39 2014-05-23  Hans-Peter Nilsson  <hp@axis.com>
41         * configure.ac [with_newlib] (HAVE_STRNLEN, HAVE_STRNDUP): Define.
42         * configure: Regenerate.
44 2014-05-23  Janne Blomqvist  <jb@gcc.gnu.org>
46         PR libfortran/60324
47         * runtime/string.c: Include stdlib.h.
49 2014-05-22  Janne Blomqvist  <jb@gcc.gnu.org>
51         PR libfortran/60324
52         * config.h.in: Regenerated.
53         * configure: Regenerated.
54         * configure.ac (AC_CHECK_FUNCS_ONCE): Check for strnlen and
55         strndup.
56         * libgfortran.h (fc_strdup): New prototype.
57         * runtime/string.c (strnlen): New fallback function.
58         (strndup): New fallback function.
59         (fc_strdup): New function.
60         * io/close.c (st_close): Use fc_strdup.
61         * io/open.c (new_unit): Likewise.
62         (already_open): Likewise.
63         * io/unit.c (filename_from_unit): Likewise.
64         * io/unix.c (unpack_filename): Remove function.
65         (regular_file): Rename to regular_file2, add path argument.
66         (regular_file): New function calling regular_file2.
67         (compare_file_filename): Use fc_strdup.
68         (find_file): Likewise.
69         (delete_file): Likewise.
70         (file_exists): Likewise.
71         (file_size): Likewise.
72         (inquire_sequential): Likewise.
73         (inquire_direct): Likewise.
74         (inquire_formatted): Likewise.
75         (inquire_access): Likewise.
76         * io/unix.h (unpack_filename): Remove prototype.
77         * runtime/main.c (please_free_exe_path_when_done): Change type to
78         bool.
79         (store_exe_path): Use malloced buffer, grow as needed.
81 2014-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu>
83         PR libfortran/52539
84         * io/io.h (gfc_unit): New function pointers *next_char_fn_ptr
85         and *push_char_fn_ptr.
86         *io/list_read.c (next_char): Create macro with this name to call
87         the new function pointer. Split the original next_char function
88         into three new functions. (next_char_default, next_char_internal,
89         next_char_utf8): New functions. (push_char): Create macro with
90         this name to call new function pointer. Split the original
91         push_char into three new functions. (push_char_default,
92         push_char_internal, push_char4): New functions. (set_workers):
93         New function to initilize the function pointers depending on the
94         type of IO to be performed. (list_formatted_read_scalar): Use
95         set_workers function. (finish_list_read): Likewise.
96         (namelist_read): Likewise.
97         (nml_get_obj_data): Use push_char_default.
99 2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
101         PR libfortran/61187
102         * io/unix.c (raw_close): Check if s->fd is -1.
103         (fd_to_stream): Check return value of fstat(), handle error.
105 2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>
107         PR libfortran/61035
108         * intrinsics/getcwd.c (getcwd_i4_sub): Avoid potentially large
109         stack allocation, avoid extra copying in the common case.
111 2014-05-12  Janne Blomqvist  <jb@gcc.gnu.org>
113         * configure.ac (AM_CFLAGS): Use -std=gnu11.
114         (CFLAGS): Likewise.
115         * configure: Regenerated.
117 2014-05-11  Tobias Burnus  <burnus@net-b.de>
119         * caf/libcaf.h (_gfortran_caf_num_images): Change type of
120         second argument to int.
121         * caf/mpi.c (_gfortran_caf_num_images): Ditto.
122         * caf/single.c (_gfortran_caf_num_images): Ditto.
124 2014-05-08  Tobias Burnus  <burnus@net-b.de>
126         * caf/libcaf.h (caf_vector_t, _gfortran_caf_co_sum,
127         _gfortran_caf_co_min, _gfortran_caf_co_max): Declare
128         * caf/single.c
130 2014-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu>
132         PR libfortran/61049
133         * io/list_read.c (list_formatted_read_scalar): Use eat_separator
134         and delete extraneous code.
136 2014-04-30  Tobias Burnus  <burnus@net-b.de>
138         * caf/libcaf.h (_gfortran_caf_this_image, _gfortran_caf_num_images):
139         New prototypes.
140         (_gfortran_caf_init): Change prototype.
141         (mpi_token_t): New typedef.
142         (TOKEN): New define.
143         * caf/mpi.c (_gfortran_caf_this_image, _gfortran_caf_num_images):
144         New functions.
145         (_gfortran_caf_init): Update.
146         (_gfortran_caf_finalize, _gfortran_caf_register,
147         _gfortran_caf_deregister): Use mpi_token_t.
148         * caf/single.c (_gfortran_caf_this_image, _gfortran_caf_num_images):
149         New functions.
150         (_gfortran_caf_init): Update.
151         (_gfortran_caf_finalize, _gfortran_caf_register,
152         _gfortran_caf_deregister): Use mpi_token_t, simplify.
154 2014-04-26  Jerry DeLisle  <jvdelisle@gcc.gnu>
156         PR libfortran/52539
157         * io/list_read.c: Add uchar typedef. (push_char4): New function
158         to save kind=4 character. (next_char_utf8): New function to read
159         a single UTF-8 encoded character value. (read_chracter): Update
160         to use the new functions for reading UTF-8 strings.
161         (list_formatted_read_scalar): Update to handle list directed
162         reads of UTF-8 strings. (nml_read_obj): Likewise update for
163         UTF-8 strings in namelists.
164         * io/write.c (nml_write_obj): Add kind=4 character support for
165         namelist writes.
167 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
169         * configure.ac: Quote usage of ac_cv_func_clock_gettime in if test.
170         * configure: Regenerate.
172 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
174         * config/fpu-387.h [__sun__ && __svr4__]: Remove SSE execution
175         check.
177 2014-04-11  Jerry DeLisle  <jvdelisle@gcc.gnu>
179         PR libfortran/60810
180         io/unit.c (is_trim_ok): If internal unit is array, do not trim.
182 2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu>
184         PR libfortran/60148
185         * io/transfer.c (data_transfer_init): If std= was specified, set
186         delim status to DELIM_NONE of no other was specified.
188 2014-03-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
190         * configure.ac: Check for presence of fcntl.
191         * configure: Regenerate.
192         * config.h.in: Regenerate.
193         * io/unix.c (set_close_on_exec): Check for HAVE_FCNTL.
195 2014-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu>
197         PR libfortran/48600
198         * io/list_read.c (list_formatted_read_scalar): Do not use
199         eat_separator. Explicitly set the comma and end-of-line flags.
200         Check for END condition from finish_separator.
202 2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
204         PR libfortran/58324
205         * io/list_read.c (finish_list_read): Read one character to check
206         for the end of the file.  If it is the end, then issue the file
207         end error message.  If not, use eat_line to reach the end
208         without giving error.  The next attempt to read will then
209         issue the error as described above.
211 2014-03-12  Jerry DeLisle  <jvdelisle@gcc.gnu>
213         PR libfortran/38199
214         * io/read.c (read_decimal): Quickly skip spaces to avoid calls
215         to next_char.
216         * io/unit.c (is_trim_ok): New helper function to check various
217         conditions to see if its OK to trim the internal unit string.
218         (get_internal_unit): Use LEN_TRIM to shorten selected internal
219         unit strings for optimizing READ. Enable this optimization for
220         formatted READ.
221         * io/list_read.c (finish_list_read): Don't call eat_line for
222         internal units.
224 2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>
226         PR libfortran/38199
227         * io/list_read.c (next_char): Mark unlikely error checks.
228         (eat_spaces): For character array reading, skip ahead over
229         spaces rather than call next_char multiple times.
231 2014-03-08  Tobias Burnus  <burnus@net-b.de>
233         * libgfortran.h (unlikely, likely): Add usage comment.
235 2014-03-08  Dominique d'Humieres  <dominiq@lps.ens.fr>
237         PR libgfortran/60128
238         * io/write_float.def (output_float): Remove unused variable
239         nzero_real. Replace a double space with a single one.
240         (determine_en_precision): Fix wrong handling of the EN format.
242 2014-03-03  Jerry DeLisle  <jvdelisle@gcc.gnu>
244         PR libfortran/60148
245         * io/inquire.c (inquire_via_unit): In the case of
246         DELIM_UNSPECIFIED set inquire return string to "NONE".
247         * io/list_read.c (read_character): In the case of DELIM_NONE and
248         namelists, complete the character read using the namelist
249         variable length.
250         * io/open.c (new_unit): Don't set delim status to none if not
251         specified so that DELIM_UNSPECIFIED can be used later.
252         * io/transfer.c (data_transfer_init): For namelist I/O, if the
253         unit delim status is unspecified set the current status to quote.
254         Otherwise, set current status to the unit status.
255         * io/unit.c (get_internel_unit, init_unit): Remember to set
256         flags_delim initially to DELIM_UNSPECIFIED so defaults come out
257         correctly.
258         * io/write.c (write_character): Add a new function argument
259         "mode" to signify that raw output is to be used vs output with
260         delimiters. If the mode is set to DELIM (1) proceed with
261         delimiters. (list_formatted_write_scalar): Write the separator
262         only if a delimiter was previously specified. Update the call to
263         write_character with the mode argument given.
264         (namelist_write_newline): Use the mode argument. (nml_write_obj):
265         Use the mode argument. Remove use of tmp_delim. Write the
266         semi-colon or comma correctly only when needed with using
267         delimiters. Cleanup whitespace.
268         (namelist_write): If delim is not specified in namelist I/O,
269         default to using quotes. Get rid of the tmp_delim variable and
270         use the new mode argument in write_character.
272 2014-02-21  Tobias Burnus  <burnus@net-b.de>
274         PR fortran/60286
275         * libgfortran/io/inquire.c (yes, no): New static const char vars.
276         (inquire_via_unit): Use them. Use OPEN mode instead of using
277         POSIX's access to query about write=, read= and readwrite=.
279 2014-01-20  Jerry DeLisle  <jvdelisle@gcc.gnu>
280             Dominique d'Humieres  <dominiq@lps.ens.fr>
282         * io/write_float.def (output_float): Remove inadvertent test
283         code from previous patch.
285 2014-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu>
286             Dominique d'Humieres  <dominiq@lps.ens.fr>
288         PR libfortran/59771
289         PR libfortran/59774
290         PR libfortran/59836
291         * io/write_float.def (output_float): Fix wrong handling of the
292         Fw.0 format.
293         (output_float_FMT_G_): Fixes rounding issues with -m32.
295 2014-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu>
296             Dominique d'Humieres  <dominiq@lps.ens.fr>
297             Steven G. Kargl  <kargl@gcc.gnu.org>
299         PR libfortran/59700
300         PR libfortran/59764
301         * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
302         unused bit. Define new variable line_buffer_pos.
303         * io/list_read.c (free_saved, next_char, l_push_char,
304         read_logical, read_real): Replace use of item_count with
305         line_buffer_pos for line_buffer look ahead.
306         (read_logical, read_integer, parse_real, read_real, check_type):
307         Adjust location of free_line to after generating error messages
308         to retain the correct item count for the message.
310 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
312         Update copyright years
314 2013-12-18  Steven G. Kargl  <kargl@gcc.gnu.org>
316         * io/read.c (read_f): Convert assert to runtime error.
318 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
320         * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
322 2013-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu>
324         PR libfortran/59419
325         * io/file_pos.c (st_rewind): Do proper return after
326         generate_error.
327         * io/open.c (edit_modes): Move action code inside block that
328         checks for library ok. (new_unit): Do cleanup after error.
329         (st_open): Do proper return after error.
330         * io/transfer.c (data_transfer_init): Likewise.
332 2013-12-11  Tobias Burnus  <burnus@net-b.de>
334         * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
335         instructions when __SSE_MATH__ is defined.
337 2013-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
339         * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
341 2013-12-01  Uros Bizjak  <ubizjak@gmail.com>
343         PR libfortran/59313
344         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
345         quadruple precision long double variant.
347 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
349         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
350         __float128 is not available.
352 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
354         PR libfortran/49024
355         * intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
356         * intrinsics/erfc_scaled_inc.c: Do not provide quadruple
357         precision variant.
359 2013-11-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
361         PR libfortran/51828
362         * intrinsics/unpack_generic.c (unpack_internal): Let the compiler
363         know that dim > 0 to avoid warnings.
365 2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
366             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
368         PR fortran/59108
369         * io/unix.c (regular_file): Don't set O_CREAT when opening a file
370         read-only with unknown status. Mask out O_CREAT when falling back
371         to opening read-only if ACTION= is not set and read-write fails.
373 2013-11-15  Steve Ellcey  <sellcey@mips.com>
375         * configure.ac: Do not define HAVE_STRTOLD.
376         * configure: Regenerate.
378 2013-11-10  Janne Blomqvist  <jb@gcc.gnu.org>
380         * configure.ac: Check presence of mkostemp.
381         * io/unix.c (set_close_on_exec): New function.
382         (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
383         to calling set_close_on_exec.
384         (regular_file): Add O_CLOEXEC to flags if defined.
385         (open_external): Call set_close_on_exec if O_CLOEXEC is not
386         defined.
387         * config.h.in: Regenerated.
388         * configure: Regenerated.
389         * Makefile.in: Regenerated.
390         * aclocal.m4: Regenerated.
392 2013-10-01  Tobias Burnus  <burnus@net-b.de>
394         PR fortran/55469
395         * io/list_read (parse_repeat, read_integer, read_character,
396         parse_real, read_real, check_type, list_formatted_read_scalar,
397         finish_list_read): Call list_free.
399 2013-09-20  Alan Modra  <amodra@gmail.com>
401         * configure: Regenerate.
403 2013-07-23  Uros Bizjak  <ubizjak@gmail.com>
405         * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
406         from SSE mxcsr register on x86_64.
408 2013-07-21  OndÅ™ej Bílka  <neleai@seznam.cz>
410         * io/transfer.c: Fix comment typos.
412 2013-07-21  Tobias Burnus  <burnus@net-b.de>
414         PR fortran/35862
415         * config/fpu-387.h (set_fpu_rounding_mode,
416         get_fpu_rounding_mode): Add missing _ to fix build.
418 2013-07-21  Tobias Burnus  <burnus@net-b.de>
419             Uros Bizjak  <ubizjak@gmail.com>
421         PR fortran/35862
422         * libgfortran.h (set_fpu_rounding_mode,
423         get_fpu_rounding_mode): New prototypes.
424         * config/fpu-387.h (set_fpu_rounding_mode,
425         get_fpu_rounding_mode): New functions.
426         * config/fpu-aix.h (set_fpu_rounding_mode,
427         get_fpu_rounding_mode): Ditto.
428         * config/fpu-generic.h (set_fpu_rounding_mode,
429         get_fpu_rounding_mode): Ditto.
430         * config/fpu-glibc.h (set_fpu_rounding_mode,
431         get_fpu_rounding_mode): Ditto.
432         * config/fpu-sysv.h (set_fpu_rounding_mode,
433         get_fpu_rounding_mode): Ditto.
434         * configure.ac: Check for fp_rnd and fp_rnd_t.
435         * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
436         * io/read.c (convert_real): Set FP ronding mode.
437         * Makefile.in: Regenerate.
438         * aclocal.m4: Regenerate.
439         * config.h.in: Regenerate.
440         * configure: Regenerate.
442 2013-06-24  Tobias Burnus  <burnus@net-b.de>
444         * configure.ac: Check for fp_except and fp_except_t.
445         * config/fpu-sysv.h: Conditionally use either type.
446         * configure: Regenerate.
447         * config.h.in: Regenerate.
449 2013-06-21  Eric Botcazou  <ebotcazou@adacore.com>
451         * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
453 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
455         * config/fpu-387.h (_FPU_MASK_ALL): New.
456         (_FPU_EX_ALL): Ditto.
457         (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
458         clear stalled exception flags.  Correctly clear stalled SSE
459         exception flags.  Simplify code.
460         (get_fpu_except_flags): Simplify code.
462 2013-06-20  Tobias Burnus  <burnus@net-b.de>
464         PR fortran/57633
465         * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
467 2013-06-19  Uros Bizjak  <ubizjak@gmail.com>
469         * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
470         (get_fpu_except_flags): Initialize result.
472 2013-06-17  Tobias Burnus  <burnus@net-b.de>
474         * libgfortran.h (compile_options_t) Add fpe_summary.
475         (get_fpu_except_flags): New prototype.
476         * runtime/compile_options.c (set_options, init_compile_options):
477         Handle fpe_summary.
478         * runtime/stop.c (report_exception): New function.
479         (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
480         error_stop_numeric): Call it.
481         * config/fpu-387.h (get_fpu_except_flags): New function.
482         * config/fpu-aix.h (get_fpu_except_flags): New function.
483         * config/fpu-generic.h (get_fpu_except_flags): New function.
484         * config/fpu-glibc.h (get_fpu_except_flags): New function.
485         * config/fpu-sysv.h (get_fpu_except_flags): New function.
486         * configure.ac: Check for fpxcp.h.
487         * configure: Regenerate.
488         * config.h.in: Regenerate.
490 2013-06-01  Tobias Burnus  <burnus@net-b.de>
492         PR fortran/57496
493         * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
494         SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
495         ISNAN): New macros.
496         (output_float_FMT_G_,WRITE_FLOAT): Use them.
498 2013-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
500         * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
501         * configure: Regenerate.
503 2013-05-05  David Edelsohn  <dje.gcc@gmail.com>
505         * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
506         (_gfortran_caf_end_critical): Same.
508 2013-05-04  David Edelsohn  <dje.gcc@gmail.com>
510         * runtime/environ.c: Include unistd.h.
511         * runtime/pause.c: Test HAVE_UNISTD_H.
512         * runtime/stop.c: Same.
513         * io/open.c: Same.
514         * io/unix.c: Same.
515         * io/read.c (si_max): Protect declaration of value.
517 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
519         * intrinsics/system_clock (gf_gettime_mono): Use variable
520         resolution for fractional seconds argument.
521         (system_clock_4): Simplify, update for gf_gettime_mono change.
522         (system_clock_8): Likewise.
524 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
526         PR fortran/56981
527         * io/transfer.c (next_record_w_unf): First fix head marker, then
528         write tail.
529         (next_record): Call flush_if_unbuffered.
530         * io/unix.c (struct unix_stream): Add field unbuffered.
531         (flush_if_unbuffered): New function.
532         (fd_to_stream): New argument.
533         (open_external): Fix fd_to_stream call.
534         (input_stream): Likewise.
535         (output_stream): Likewise.
536         (error_stream): Likewise.
537         * io/unix.h (flush_if_unbuffered): New prototype.
539 2013-04-28  Janne Blomqvist  <jb@gcc.gnu.org>
541         * intrinsics/system_clock.c (system_clock_4): Fix sign error in
542         Windows version.
544 2013-04-15  Tobias Burnus  <burnus@net-b.de>
546         * list_read.c (finish_separator): Initialize variable.
548 2013-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
550         PR fortran/56919
551         * intrinsics/time_1.h: Check __CYGWIN__ in addition to
552         __MINGW32__.
553         * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
554         _POSIX_MONOTONIC_CLOCK as well.
555         (system_clock_4): Use GetTickCount on Windows.
556         (system_clock_8): Use QueryPerformanceCounter and
557         QueryPerformanceCounterFrequency on Windows.
559 2013-04-04  Tobias Burnus  <burnus@net-b.de>
561         PR fortran/56810
562         * io/list_read.c (check_type): Fix kind checking for COMPLEX.
564 2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
566         PR libfortran/56660
567         * io/list_read.c (nml_read_obj): Do not reset the read error flag
568         inside nml_read_obj. If the read error flag is found set just exit.
569         Fix some whitespace on comments.
570         (nml_read_obj_data): Reset the read error flag before the first call
571         to nml_read_object.
573 2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
575         PR libfortran/56786
576         * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
577         when checking for EOF. Use error return mechanism when EOF detected.
578         Do not return false unless parse_err_msg and parse_err_msg_size have
579         been set. Use hit_eof.
580         (nml_get_obj_data): Likewise use the correct error mechanism.
581         * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
582         mode.
584 2013-03-29  Tobias Burnus  <burnus@net-b.de>
586         PR fortran/56737
587         * io/format.c (parse_format_list): Also cache FMT_STRING.
588         (parse_format): Update call.
590 2013-03-29  Tobias Burnus  <burnus@net-b.de>
592         PR fortran/56737
593         * io/format.c (parse_format): With caching, copy
594         dtp->format string.
595         (save_parsed_format): Use dtp->format directy without
596         copying.
598 2013-03-29  Tobias Burnus  <burnus@net-b.de>
600         PR fortran/56735
601         * io/list_read.c (nml_query): Only abort when
602         an error occured.
603         (namelist_read): Add goto instead of falling through.
605 2013-03-25  Tilo Schwarz  <tilo@tilo-schwarz.de>
607         PR libfortran/52512
608         * io/list_read.c (nml_parse_qualifier): To check for a derived type
609         don't use the namelist head element type but the current element type.
610         (nml_get_obj_data): Add current namelist element type to
611         nml_parse_qualifier call.
613 2013-03-24  Tobias Burnus  <burnus@net-b.de>
615         PR fortran/56696
616         * io/list_read.c (read_real): Fix EOF diagnostic.
618 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
620         PR libfortran/51825
621         * io/list_read.c (nml_read_obj): Don't end the component loop on a
622         nested derived type, but continue with the next loop iteration.
623         (nml_get_obj_data): Don't move the first_nl pointer further in the
624         list if a qualifier was found.
626 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
628         PR libfortran/48618
629         * io/open.c (st_open): Raise error for unit number < 0 only if
630         unit number does not exist already.
632 2013-03-19  Janne Blomqvist  <jb@gcc.gnu.org>
634         * libgfortran.h: Include stdbool.h.
635         (enum try): Remove.
636         (notify_std): Change return type to bool.
637         * intrinsics/chmod.c: Don't include stdbool.h.
638         * intrinsics/execute_command_line.c: Likewise.
639         * io/format.c: Likewise.
640         * io/list_read.c (nml_parse_qualifier): Change return type to bool.
641         (nml_read_obj): Likewise.
642         (nml_get_obj_data): Likewise.
643         * io/transfer.c (read_block_form): Fix comment.
644         (write_buf): Change return type to bool.
645         * io/write.c: Don't include stdbool.h.
646         * io/write_float.def (output_float): Change return type to bool.
647         (output_float_FMT_G_ ## x): Change type of result variable.
648         * runtime/error.c (notify_std): Change return type to bool.
650 2013-03-11  Tobias Burnus  <burnus@net-b.de>
652         * io/transfer.c (read_block_direct): Correct condition.
653         * intrinsics/execute_command_line.c (execute_command_line):
654         Remove dead code for the HAVE_FORK case.
656 2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>
658         PR libfortran/30162
659         * io/open.c (test_endfile): Call stell only if size != 0.
660         * io/unix.c (raw_tell): Revert r194679.
661         (raw_size): Return size field only for regular files, otherwise 0.
663 2013-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
665         PR target/56347
666         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
667         broken powf.
668         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
669         * intrinsics/c99_functions.c: Likewise.
670         * configure: Rebuilt.
671         * config.h.in: Rebuilt.
673 2013-02-06  Janus Weil  <janus@gcc.gnu.org>
675         PR fortran/55978
676         * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
677         NULL.
679 2013-01-23  Janne Blomqvist  <jb@gcc.gnu.org>
681         * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
682         instead of reverse_memcpy.
683         * io/io.h (reverse_memcpy): Remove prototype.
684         * io/transfer.c (reverse_memcpy): Make static, move towards
685         beginning of file.
686         (bswap_array): New function.
687         (unformatted_read): Use bswap_array to byte swap the data
688         in-place.
689         (unformatted_write): Use a larger temp buffer and bswap_array.
690         (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
691         (write_us_marker): Likewise.
693 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
695         Update copyright years.
697 2013-01-06  Tobias Burnus  <burnus@net-b.de>
699         PR fortran/54678
700         * intrinsics/env.c (get_environment_variable_i8): Don't use
701         uninitialized variable.
703 2013-01-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
705         PR libfortran/55818
706         * io/list_read.c (read_real): Do not call hit_eof when EOF can be
707         treated as a value separator.
708         (parse_real): Likewise.
709         (read_logical): Likewise.
710         (read_character): Likewise.
711         (read_complex): Likewise.
713 Copyright (C) 2013-2014 Free Software Foundation, Inc.
715 Copying and distribution of this file, with or without modification,
716 are permitted in any medium without royalty provided the copyright
717 notice and this notice are preserved.