Daily bump.
[official-gcc.git] / libgfortran / ChangeLog
blob6b995493057c5cfdc66f80464f76cdf4d38e2383
1 2014-10-30  Release Manager
3         * GCC 4.9.2 released.
5 2014-10-20  Janne Blomqvist  <jb@gcc.gnu.org>
7         PR libfortran/63589
8         * configure.ac: Check for strtok_r.
9         * runtime/main.c (gfstrtok_r): Fallback implementation of
10         strtok_r.
11         (find_addr2line): Use strtok_r to split PATH.
12         * config.h.in: Regenerated.
13         * configure: Regenerated.
15 2014-10-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
17         PR libgfortran/63460
18         * io/unit.c (init_units): Initialize the DELIM flag to
19         UNSPECIFIED for the STDIN unit so that the flag is
20         correctly set later.
22 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
24         Backported from mainline
25         2014-08-04  Jakub Jelinek  <jakub@redhat.com>
27         * runtime/memory.c (xmallocarray): Avoid division for the common case.
29 2014-08-20  Steven G. Kargl  <kargl@gcc.gnu.org>
31         PR libgfortran/62188
32         * m4/bessel.m4: Avoid indexing off the end of an array.
33         * generated/bessel_r10.c: Regenerated.
34         * generated/bessel_r16.c: Ditto.
35         * generated/bessel_r4.c: Ditto.
36         * generated/bessel_r8.c: Ditto.
38 2014-07-31  Janne Blomqvist  <jb@gcc.gnu.org>
40         Backport from mainline
41         CVE-2014-5044
42         * libgfortran.h (xmallocarray): New prototype.
43         * runtime/memory.c (xmallocarray): New function.
44         (xcalloc): Check for nonzero separately instead of multiplying.
45         * generated/*.c: Regenerated.
46         * intrinsics/cshift0.c (cshift0): Call xmallocarray instead of
47         xmalloc.
48         * intrinsics/eoshift0.c (eoshift0): Likewise.
49         * intrinsics/eoshift2.c (eoshift2): Likewise.
50         * intrinsics/pack_generic.c (pack_internal): Likewise.
51         (pack_s_internal): Likewise.
52         * intrinsics/reshape_generic.c (reshape_internal): Likewise.
53         * intrinsics/spread_generic.c (spread_internal): Likewise.
54         (spread_internal_scalar): Likewise.
55         * intrinsics/string_intrinsics_inc.c (string_trim): Likewise.
56         (string_minmax): Likewise.
57         * intrinsics/transpose_generic.c (transpose_internal): Likewise.
58         * intrinsics/unpack_generic.c (unpack_internal): Likewise.
59         * io/list_read.c (nml_touch_nodes): Don't cast xmalloc return value.
60         * io/transfer.c (st_set_nml_var): Call xmallocarray instead of
61         xmalloc.
62         * io/unit.c (get_internal_unit): Likewise.
63         (filename_from_unit): Don't cast xmalloc return value.
64         * io/write.c (nml_write_obj): Likewise, formatting.
65         * m4/bessel.m4 (bessel_jn_r'rtype_kind`): Call xmallocarray
66         instead of xmalloc.
67         (besse_yn_r'rtype_kind`): Likewise.
68         * m4/cshift1.m4 (cshift1): Likewise.
69         * m4/eoshift1.m4 (eoshift1): Likewise.
70         * m4/eoshift3.m4 (eoshift3): Likewise.
71         * m4/iforeach.m4: Likewise.
72         * m4/ifunction.m4: Likewise.
73         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code):
74         Likewise.
75         * m4/in_pack.m4 (internal_pack_'rtype_ccode`): Likewise.
76         * m4/matmul.m4 (matmul_'rtype_code`): Likewise.
77         * m4/matmull.m4 (matmul_'rtype_code`): Likewise.
78         * m4/pack.m4 (pack_'rtype_code`): Likewise.
79         * m4/reshape.m4 (reshape_'rtype_ccode`): Likewise.
80         * m4/shape.m4 (shape_'rtype_kind`): Likewise.
81         * m4/spread.m4 (spread_'rtype_code`): Likewise.
82         (spread_scalar_'rtype_code`): Likewise.
83         * m4/transpose.m4 (transpose_'rtype_code`): Likewise.
84         * m4/unpack.m4 (unpack0_'rtype_code`): Likewise.
85         (unpack1_'rtype_code`): Likewise.
86         * runtime/convert_char.c (convert_char1_to_char4): Likewise.
87         (convert_char4_to_char1): Simplify.
88         * runtime/environ.c (init_unformatted): Call xmallocarray instead
89         of xmalloc.
90         * runtime/in_pack_generic.c (internal_pack): Likewise.
92 2014-07-16  Release Manager
94         * GCC 4.9.1 released.
96 2014-07-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
98         Backport from trunk.
99         PR libgfortran/61640
100         * io/list_read.c (next_char_internal): Adjust the read length to
101         a single wide character. (eat_spaces): Add missing paren. 
102         * io/unix.c (mem_read4): Use the correct mem_alloc function for
103         wide character internal reads.
105 2014-06-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
107         Backport from trunk.
108         PR libgfortran/61499
109         * io/list_read.c (eat_spaces): Use a 'for' loop instead of
110         'while' loop to skip the loop if there are no bytes left in the
111         string. Only seek if actual spaces can be skipped.
113 2014-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu>
115         Backport from trunk.
116         PR libfortran/61173
117         * io/list_read.c (eat_spaces): If the next character pointed to
118         is a space, don't seek, must be at the end.
120 2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
122         Backport from mainline
123         PR libfortran/61310
124         * intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf
125         instead of strftime.
126         (fdate): Use gf_ctime.
127         (fdate_sub): Likewise.
128         (ctime): Likewise.
129         (ctime_sub): Likewise.
131 2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
133         Backport from trunk:
134         PR libfortran/61187
135         * io/unix.c (raw_close): Check if s->fd is -1.
136         (fd_to_stream): Check return value of fstat(), handle error.
138 2014-05-10  Jerry DeLisle  <jvdelisle@gcc.gnu>
140         Backport from Trunk.
141         PR libfortran/61049
142         * io/list_read.c (list_formatted_read_scalar): Use eat_separator
143         and delete extraneous code.
145 2014-04-22  Release Manager
147         * GCC 4.9.0 released.
149 2014-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu>
151         PR libfortran/60810
152         io/unit.c (is_trim_ok): If internal unit is array, do not trim.
154 2014-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu>
156         PR libfortran/60148
157         * io/transfer.c (data_transfer_init): If std= was specified, set
158         delim status to DELIM_NONE if no other was specified.
160 2014-03-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
162         * configure.ac: Check for presence of fcntl.
163         * configure: Regenerate.
164         * config.h.in: Regenerate.
165         * io/unix.c (set_close_on_exec): Check for HAVE_FCNTL.
167 2014-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu>
169         PR libfortran/48600
170         * io/list_read.c (list_formatted_read_scalar): Do not use
171         eat_separator. Explicitly set the comma and end-of-line flags.
172         Check for END condition from finish_separator.
174 2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
176         PR libfortran/58324
177         * io/list_read.c (finish_list_read): Read one character to check
178         for the end of the file.  If it is the end, then issue the file
179         end error message.  If not, use eat_line to reach the end
180         without giving error.  The next attempt to read will then
181         issue the error as described above.
183 2014-03-12  Jerry DeLisle  <jvdelisle@gcc.gnu>
185         PR libfortran/38199
186         * io/read.c (read_decimal): Quickly skip spaces to avoid calls
187         to next_char.
188         * io/unit.c (is_trim_ok): New helper function to check various
189         conditions to see if its OK to trim the internal unit string.
190         (get_internal_unit): Use LEN_TRIM to shorten selected internal
191         unit strings for optimizing READ. Enable this optimization for
192         formatted READ.
193         * io/list_read.c (finish_list_read): Don't call eat_line for
194         internal units.
196 2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>
198         PR libfortran/38199
199         * io/list_read.c (next_char): Mark unlikely error checks.
200         (eat_spaces): For character array reading, skip ahead over
201         spaces rather than call next_char multiple times.
203 2014-03-08  Tobias Burnus  <burnus@net-b.de>
205         * libgfortran.h (unlikely, likely): Add usage comment.
207 2014-03-08  Dominique d'Humieres  <dominiq@lps.ens.fr>
209         PR libgfortran/60128
210         * io/write_float.def (output_float): Remove unused variable
211         nzero_real. Replace a double space with a single one.
212         (determine_en_precision): Fix wrong handling of the EN format.
214 2014-03-03  Jerry DeLisle  <jvdelisle@gcc.gnu>
216         PR libfortran/60148
217         * io/inquire.c (inquire_via_unit): In the case of
218         DELIM_UNSPECIFIED set inquire return string to "NONE".
219         * io/list_read.c (read_character): In the case of DELIM_NONE and
220         namelists, complete the character read using the namelist
221         variable length.
222         * io/open.c (new_unit): Don't set delim status to none if not
223         specified so that DELIM_UNSPECIFIED can be used later.
224         * io/transfer.c (data_transfer_init): For namelist I/O, if the
225         unit delim status is unspecified set the current status to quote.
226         Otherwise, set current status to the unit status.
227         * io/unit.c (get_internel_unit, init_unit): Remember to set
228         flags_delim initially to DELIM_UNSPECIFIED so defaults come out
229         correctly.
230         * io/write.c (write_character): Add a new function argument
231         "mode" to signify that raw output is to be used vs output with
232         delimiters. If the mode is set to DELIM (1) proceed with
233         delimiters. (list_formatted_write_scalar): Write the separator
234         only if a delimiter was previously specified. Update the call to
235         write_character with the mode argument given.
236         (namelist_write_newline): Use the mode argument. (nml_write_obj):
237         Use the mode argument. Remove use of tmp_delim. Write the
238         semi-colon or comma correctly only when needed with using
239         delimiters. Cleanup whitespace.
240         (namelist_write): If delim is not specified in namelist I/O,
241         default to using quotes. Get rid of the tmp_delim variable and
242         use the new mode argument in write_character.
244 2014-02-21  Tobias Burnus  <burnus@net-b.de>
246         PR fortran/60286
247         * libgfortran/io/inquire.c (yes, no): New static const char vars.
248         (inquire_via_unit): Use them. Use OPEN mode instead of using
249         POSIX's access to query about write=, read= and readwrite=.
251 2014-01-20  Jerry DeLisle  <jvdelisle@gcc.gnu>
252             Dominique d'Humieres  <dominiq@lps.ens.fr>
254         * io/write_float.def (output_float): Remove inadvertent test
255         code from previous patch.
257 2014-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu>
258             Dominique d'Humieres  <dominiq@lps.ens.fr>
260         PR libfortran/59771
261         PR libfortran/59774
262         PR libfortran/59836
263         * io/write_float.def (output_float): Fix wrong handling of the
264         Fw.0 format.
265         (output_float_FMT_G_): Fixes rounding issues with -m32.
267 2014-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu>
268             Dominique d'Humieres  <dominiq@lps.ens.fr>
269             Steven G. Kargl  <kargl@gcc.gnu.org>
271         PR libfortran/59700
272         PR libfortran/59764
273         * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
274         unused bit. Define new variable line_buffer_pos.
275         * io/list_read.c (free_saved, next_char, l_push_char,
276         read_logical, read_real): Replace use of item_count with
277         line_buffer_pos for line_buffer look ahead.
278         (read_logical, read_integer, parse_real, read_real, check_type):
279         Adjust location of free_line to after generating error messages
280         to retain the correct item count for the message. 
282 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
284         Update copyright years
286 2013-12-18  Steven G. Kargl  <kargl@gcc.gnu.org>
288         * io/read.c (read_f): Convert assert to runtime error.
290 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
292         * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
294 2013-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu>
296         PR libfortran/59419
297         * io/file_pos.c (st_rewind): Do proper return after
298         generate_error.
299         * io/open.c (edit_modes): Move action code inside block that
300         checks for library ok. (new_unit): Do cleanup after error.
301         (st_open): Do proper return after error.
302         * io/transfer.c (data_transfer_init): Likewise.
303         
304 2013-12-11  Tobias Burnus  <burnus@net-b.de>
306         * config/fpu-387.h (sigill_hdlr, get_fpu_rounding_mode): Emit SSE
307         instructions when __SSE_MATH__ is defined.
309 2013-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
311         * intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.
313 2013-12-01  Uros Bizjak  <ubizjak@gmail.com>
315         PR libfortran/59313
316         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
317         quadruple precision long double variant.
319 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
321         * intrinsics/erfc_scaled.c (erfc_scaled_r16): Don't define if
322         __float128 is not available.
324 2013-11-20  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
326         PR libfortran/49024
327         * intrinsics/erfc_scaled.c (erfc_scaled_r16): New function.
328         * intrinsics/erfc_scaled_inc.c: Do not provide quadruple
329         precision variant.
331 2013-11-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
333         PR libfortran/51828
334         * intrinsics/unpack_generic.c (unpack_internal): Let the compiler
335         know that dim > 0 to avoid warnings.
337 2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
338             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
340         PR fortran/59108
341         * io/unix.c (regular_file): Don't set O_CREAT when opening a file
342         read-only with unknown status. Mask out O_CREAT when falling back
343         to opening read-only if ACTION= is not set and read-write fails.
345 2013-11-15  Steve Ellcey  <sellcey@mips.com>
347         * configure.ac: Do not define HAVE_STRTOLD.
348         * configure: Regenerate.
350 2013-11-10  Janne Blomqvist  <jb@gcc.gnu.org>
352         * configure.ac: Check presence of mkostemp.
353         * io/unix.c (set_close_on_exec): New function.
354         (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback
355         to calling set_close_on_exec.
356         (regular_file): Add O_CLOEXEC to flags if defined.
357         (open_external): Call set_close_on_exec if O_CLOEXEC is not
358         defined.
359         * config.h.in: Regenerated.
360         * configure: Regenerated.
361         * Makefile.in: Regenerated.
362         * aclocal.m4: Regenerated.
364 2013-10-01  Tobias Burnus  <burnus@net-b.de>
366         PR fortran/55469
367         * io/list_read (parse_repeat, read_integer, read_character,
368         parse_real, read_real, check_type, list_formatted_read_scalar,
369         finish_list_read): Call list_free.
371 2013-09-20  Alan Modra  <amodra@gmail.com>
373         * configure: Regenerate.
375 2013-07-23  Uros Bizjak  <ubizjak@gmail.com>
377         * config/fpu-387.h (get_fpu_rounding_mode): Read rounding mode
378         from SSE mxcsr register on x86_64.
380 2013-07-21  OndÅ™ej Bílka  <neleai@seznam.cz>
382         * io/transfer.c: Fix comment typos.
384 2013-07-21  Tobias Burnus  <burnus@net-b.de>
386         PR fortran/35862
387         * config/fpu-387.h (set_fpu_rounding_mode,
388         get_fpu_rounding_mode): Add missing _ to fix build.
390 2013-07-21  Tobias Burnus  <burnus@net-b.de>
391             Uros Bizjak  <ubizjak@gmail.com>
393         PR fortran/35862
394         * libgfortran.h (set_fpu_rounding_mode,
395         get_fpu_rounding_mode): New prototypes.
396         * config/fpu-387.h (set_fpu_rounding_mode,
397         get_fpu_rounding_mode): New functions.
398         * config/fpu-aix.h (set_fpu_rounding_mode,
399         get_fpu_rounding_mode): Ditto.
400         * config/fpu-generic.h (set_fpu_rounding_mode,
401         get_fpu_rounding_mode): Ditto.
402         * config/fpu-glibc.h (set_fpu_rounding_mode,
403         get_fpu_rounding_mode): Ditto.
404         * config/fpu-sysv.h (set_fpu_rounding_mode,
405         get_fpu_rounding_mode): Ditto.
406         * configure.ac: Check for fp_rnd and fp_rnd_t.
407         * io/io.h (enum unit_round): Use GFC_FPE_* for the value.
408         * io/read.c (convert_real): Set FP ronding mode.
409         * Makefile.in: Regenerate.
410         * aclocal.m4: Regenerate.
411         * config.h.in: Regenerate.
412         * configure: Regenerate.
414 2013-06-24  Tobias Burnus  <burnus@net-b.de>
416         * configure.ac: Check for fp_except and fp_except_t.
417         * config/fpu-sysv.h: Conditionally use either type.
418         * configure: Regenerate.
419         * config.h.in: Regenerate.
421 2013-06-21  Eric Botcazou  <ebotcazou@adacore.com>
423         * config/fpu-sysv.h (get_fpu_except_flags): Fix typo.
425 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
427         * config/fpu-387.h (_FPU_MASK_ALL): New.
428         (_FPU_EX_ALL): Ditto.
429         (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
430         clear stalled exception flags.  Correctly clear stalled SSE
431         exception flags.  Simplify code.
432         (get_fpu_except_flags): Simplify code.
434 2013-06-20  Tobias Burnus  <burnus@net-b.de>
436         PR fortran/57633
437         * io/list_read.c (next_char, eat_separator): Don't set EOL for \r.
439 2013-06-19  Uros Bizjak  <ubizjak@gmail.com>
441         * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
442         (get_fpu_except_flags): Initialize result.
444 2013-06-17  Tobias Burnus  <burnus@net-b.de>
446         * libgfortran.h (compile_options_t) Add fpe_summary.
447         (get_fpu_except_flags): New prototype.
448         * runtime/compile_options.c (set_options, init_compile_options):
449         Handle fpe_summary.
450         * runtime/stop.c (report_exception): New function.
451         (stop_numeric, stop_numeric_f08, stop_string, error_stop_string,
452         error_stop_numeric): Call it.
453         * config/fpu-387.h (get_fpu_except_flags): New function.
454         * config/fpu-aix.h (get_fpu_except_flags): New function.
455         * config/fpu-generic.h (get_fpu_except_flags): New function.
456         * config/fpu-glibc.h (get_fpu_except_flags): New function.
457         * config/fpu-sysv.h (get_fpu_except_flags): New function.
458         * configure.ac: Check for fpxcp.h.
459         * configure: Regenerate.
460         * config.h.in: Regenerate.
462 2013-06-01  Tobias Burnus  <burnus@net-b.de>
464         PR fortran/57496
465         * io/write_float.def (ISFINITE2Q, ISFINITE2, ISFINITE2L, ISFINITE,
466         SIGNBIT2Q, SIGNBIT2, SIGNBIT2L, SIGNBIT, ISNAN2Q, ISNAN2, ISNAN2L,
467         ISNAN): New macros.
468         (output_float_FMT_G_,WRITE_FLOAT): Use them.
470 2013-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
472         * acinclude.m4 (libgfor_cv_have_as_needed): Check for -z ignore, too.
473         * configure: Regenerate.
475 2013-05-05  David Edelsohn  <dje.gcc@gmail.com>
477         * caf/libcaf.h (_gfortran_caf_critical): Add a prototype.
478         (_gfortran_caf_end_critical): Same.
480 2013-05-04  David Edelsohn  <dje.gcc@gmail.com>
482         * runtime/environ.c: Include unistd.h.
483         * runtime/pause.c: Test HAVE_UNISTD_H.
484         * runtime/stop.c: Same.
485         * io/open.c: Same.
486         * io/unix.c: Same.
487         * io/read.c (si_max): Protect declaration of value.
489 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
491         * intrinsics/system_clock (gf_gettime_mono): Use variable
492         resolution for fractional seconds argument.
493         (system_clock_4): Simplify, update for gf_gettime_mono change.
494         (system_clock_8): Likewise.
496 2013-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
498         PR fortran/56981
499         * io/transfer.c (next_record_w_unf): First fix head marker, then
500         write tail.
501         (next_record): Call flush_if_unbuffered.
502         * io/unix.c (struct unix_stream): Add field unbuffered.
503         (flush_if_unbuffered): New function.
504         (fd_to_stream): New argument.
505         (open_external): Fix fd_to_stream call.
506         (input_stream): Likewise.
507         (output_stream): Likewise.
508         (error_stream): Likewise.
509         * io/unix.h (flush_if_unbuffered): New prototype.
511 2013-04-28  Janne Blomqvist  <jb@gcc.gnu.org>
513         * intrinsics/system_clock.c (system_clock_4): Fix sign error in
514         Windows version.
516 2013-04-15  Tobias Burnus  <burnus@net-b.de>
518         * list_read.c (finish_separator): Initialize variable.
520 2013-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
522         PR fortran/56919
523         * intrinsics/time_1.h: Check __CYGWIN__ in addition to
524         __MINGW32__.
525         * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
526         _POSIX_MONOTONIC_CLOCK as well.
527         (system_clock_4): Use GetTickCount on Windows.
528         (system_clock_8): Use QueryPerformanceCounter and
529         QueryPerformanceCounterFrequency on Windows.
531 2013-04-04  Tobias Burnus  <burnus@net-b.de>
533         PR fortran/56810
534         * io/list_read.c (check_type): Fix kind checking for COMPLEX.
536 2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
538         PR libfortran/56660
539         * io/list_read.c (nml_read_obj): Do not reset the read error flag
540         inside nml_read_obj. If the read error flag is found set just exit.
541         Fix some whitespace on comments.
542         (nml_read_obj_data): Reset the read error flag before the first call
543         to nml_read_object.
545 2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
547         PR libfortran/56786
548         * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
549         when checking for EOF. Use error return mechanism when EOF detected.
550         Do not return false unless parse_err_msg and parse_err_msg_size have
551         been set. Use hit_eof.
552         (nml_get_obj_data): Likewise use the correct error mechanism.
553         * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
554         mode.
556 2013-03-29  Tobias Burnus  <burnus@net-b.de>
558         PR fortran/56737
559         * io/format.c (parse_format_list): Also cache FMT_STRING.
560         (parse_format): Update call.
562 2013-03-29  Tobias Burnus  <burnus@net-b.de>
564         PR fortran/56737
565         * io/format.c (parse_format): With caching, copy
566         dtp->format string.
567         (save_parsed_format): Use dtp->format directy without
568         copying.
570 2013-03-29  Tobias Burnus  <burnus@net-b.de>
572         PR fortran/56735
573         * io/list_read.c (nml_query): Only abort when
574         an error occured.
575         (namelist_read): Add goto instead of falling through.
577 2013-03-25  Tilo Schwarz  <tilo@tilo-schwarz.de>
579         PR libfortran/52512
580         * io/list_read.c (nml_parse_qualifier): To check for a derived type
581         don't use the namelist head element type but the current element type.
582         (nml_get_obj_data): Add current namelist element type to
583         nml_parse_qualifier call.
585 2013-03-24  Tobias Burnus  <burnus@net-b.de>
587         PR fortran/56696
588         * io/list_read.c (read_real): Fix EOF diagnostic.
590 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
592         PR libfortran/51825
593         * io/list_read.c (nml_read_obj): Don't end the component loop on a
594         nested derived type, but continue with the next loop iteration.
595         (nml_get_obj_data): Don't move the first_nl pointer further in the
596         list if a qualifier was found.
598 2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>
600         PR libfortran/48618
601         * io/open.c (st_open): Raise error for unit number < 0 only if
602         unit number does not exist already.
604 2013-03-19  Janne Blomqvist  <jb@gcc.gnu.org>
606         * libgfortran.h: Include stdbool.h.
607         (enum try): Remove.
608         (notify_std): Change return type to bool.
609         * intrinsics/chmod.c: Don't include stdbool.h.
610         * intrinsics/execute_command_line.c: Likewise.
611         * io/format.c: Likewise.
612         * io/list_read.c (nml_parse_qualifier): Change return type to bool.
613         (nml_read_obj): Likewise.
614         (nml_get_obj_data): Likewise.
615         * io/transfer.c (read_block_form): Fix comment.
616         (write_buf): Change return type to bool.
617         * io/write.c: Don't include stdbool.h.
618         * io/write_float.def (output_float): Change return type to bool.
619         (output_float_FMT_G_ ## x): Change type of result variable.
620         * runtime/error.c (notify_std): Change return type to bool.
622 2013-03-11  Tobias Burnus  <burnus@net-b.de>
624         * io/transfer.c (read_block_direct): Correct condition.
625         * intrinsics/execute_command_line.c (execute_command_line):
626         Remove dead code for the HAVE_FORK case.
628 2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>
630         PR libfortran/30162
631         * io/open.c (test_endfile): Call stell only if size != 0.
632         * io/unix.c (raw_tell): Revert r194679.
633         (raw_size): Return size field only for regular files, otherwise 0.
635 2013-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
637         PR target/56347
638         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
639         broken powf.
640         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
641         * intrinsics/c99_functions.c: Likewise.
642         * configure: Rebuilt.
643         * config.h.in: Rebuilt.
645 2013-02-06  Janus Weil  <janus@gcc.gnu.org>
647         PR fortran/55978
648         * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
649         NULL.
651 2013-01-23  Janne Blomqvist  <jb@gcc.gnu.org>
653         * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
654         instead of reverse_memcpy.
655         * io/io.h (reverse_memcpy): Remove prototype.
656         * io/transfer.c (reverse_memcpy): Make static, move towards
657         beginning of file.
658         (bswap_array): New function.
659         (unformatted_read): Use bswap_array to byte swap the data
660         in-place.
661         (unformatted_write): Use a larger temp buffer and bswap_array.
662         (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
663         (write_us_marker): Likewise.
665 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
667         Update copyright years.
669 2013-01-06  Tobias Burnus  <burnus@net-b.de>
671         PR fortran/54678
672         * intrinsics/env.c (get_environment_variable_i8): Don't use
673         uninitialized variable.
675 2013-01-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
677         PR libfortran/55818
678         * io/list_read.c (read_real): Do not call hit_eof when EOF can be
679         treated as a value separator.
680         (parse_real): Likewise.
681         (read_logical): Likewise.
682         (read_character): Likewise.
683         (read_complex): Likewise.
685 Copyright (C) 2013-2014 Free Software Foundation, Inc.
687 Copying and distribution of this file, with or without modification,
688 are permitted in any medium without royalty provided the copyright
689 notice and this notice are preserved.