OSDN Git Service

PR 48915 Abort handling
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2011-05-14  Janne Blomqvist  <jb@gcc.gnu.org>
2
3         PR libfortran/48915
4         * intrinsics/abort.c (abort): Call sys_abort().
5         * io/unix.c (st_vprintf): Call sys_abort().
6         * libgfortran.h (options_t): Remove dump_core member.
7         (handler): Rename to backtrace_handler.
8         (compile_options_t): Remove dump_core member.
9         (sys_exit): Remove.
10         (sys_abort): New function.
11         * runtime/backtrace.c (show_backtrace): Print a message if
12         backtrace is not available on target, update filter symbol name
13         due to backtrace_handler renaming.
14         * runtime/compile_options.c (backtrace_handler): New
15         implementation based on example in Glibc manual.
16         (set_options): Remove dump_core handling, make signal handler
17         handle more signals.
18         (init_compile_options): Remove dump_core.
19         * runtime/environ.c (variable_table[]): Remove
20         GFORTRAN_ERROR_DUMPCORE element.
21         (show_variables): Update name, call exit().
22         * runtime/error.c (sys_exit): Remove.
23         (sys_abort): New function.
24         (recursion_check): Call sys_abort().
25         (os_error): Call exit().
26         (runtime_error): Likewise.
27         (runtime_error_at): Likewise.
28         (internal_error): Likewise.
29         (generate_error): Likewise.
30         (notify_std): Likewise.
31         * runtime/stop.c (stop_numeric): Call exit().
32         (stop_numeric_f08): Likewise.
33         (stop_string): Likewise.
34         (error_stop_string): Call sys_abort().
35         (error_stop_numeric): Print backtrace, exit with provided code.
36
37 2011-05-14  Janne Blomqvist  <jb@gcc.gnu.org>
38
39         * io/unix.c (st_vprintf,st_printf): Move to runtime/error.c.
40         * libgfortran.h (struct options_t): Remove use_stderr field.
41         (st_vprintf,st_printf): Move prototypes.
42         (estr_write): New prototype.
43         * runtime/error.c (sys_exit): Use estr_write instead of st_printf.
44         (estr_write): New function.
45         (st_vprintf): Move from io/unix.c, use stack allocated buffer,
46         always output to stderr.
47         (st_printf): Move from io/unix.c.
48         (show_locus): Use a local variable instead of static.
49         (os_error): Use estr_write instead of st_printf.
50         (runtime_error): Likewise.
51         (runtime_error_at): Likewise.
52         (runtime_warning_at): Likewise.
53         (internal_error): Likewise.
54         (generate_error): Likewise.
55         (generate_warning): Likewise.
56         (notify_std): Likewise.
57         * runtime/pause.c (do_pause): Likewise.
58         (pause_string): Likewise.
59         * runtime/stop.c (stop_string): Likewise.
60         (error_stop_string): Likewise.
61         * config/fpu_aix.h (set_fpu): Likewise.
62         * config/fpu_generic.h (set_fpu): Likewise.
63         * config/fpu_glibc.h (set_fpu): Likewise.
64         * config/fpu-sysv.h (set_fpu): Likewise.
65         * runtime/backtrace.c (dump_glibc_backtrace): Likewise.
66         (show_backtrace): Likewise.
67         * runtime/environ.c (print_spaces): Likewise.
68         (show_string): Likewise.
69         (show_variables): Likewise.
70         (variable_table[]): Remove GFORTRAN_USE_STDERR entry.
71
72 2011-05-14  Tobias Burnus  <burnus@net-b.de>
73
74         PR fortran/48961
75         * intrinsics/execute_command_line.c (set_cmdstat): Don't abort if
76         synchronously executing with WAIT=.false.
77         (execute_command_line): Fix setting of cmdstat and exitstat.
78
79 2011-05-06  Tobias Burnus  <burnus@net-b.de>
80
81         PR fortran/18918
82         * caf/libcaf.h: Cleanup headers.
83         (_gfortran_caf_critical, _gfortran_caf_end_critical): Make stub.
84         (caf_register_t): New enum.
85         (_gfortran_caf_register, _gfortran_caf_deregister): New prototype.
86         * caf/single.c (_gfortran_caf_critical,
87         _gfortran_caf_end_critical): Remove.
88         (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
89         * caf/mpi.c (_gfortran_caf_critical,
90         _gfortran_caf_end_critical): Remove.
91         (_gfortran_caf_register, _gfortran_caf_deregister): New functions.
92         (caf_world_window): Remove global variable.
93         (_gfortran_caf_init): Fix off-by-one error of this_image.
94
95 2011-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
96
97         PR libgfortran/48787
98         * io/write_float.def (output_float): Adjust up and down rounding for
99         cases where 'd' = 0. Gather common code to one location.
100
101 2011-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
102
103         PR libgfortran/48787
104         * io/write_float.def (output_float): Gather up integer declarations and
105         add new 'p' for scale factor. Use 'p' in place of the 'dtp' reference
106         everywhere. For ROUND_UP scan the digit string and only perform
107         rounding if something other than '0' is found.
108
109 2011-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
110
111         * io/unix.c (min): New macro.
112         (unpack_filename): Return errno number for errors.
113         (regular_file): Use appropriately sized buffer for path.
114         (compare_file_filename): Likewise.
115         (find_file): Likewise.
116         (delete_file): Likewise.
117         (file_exists): Likewise.
118         (file_size): Likewise.
119         (inquire_sequential): Likewise.
120         (inquire_direct): Likewise.
121         (inquire_formatted): Likewise.
122         (inquire_access): Likewise.
123
124 2011-04-29  Janne Blomqvist  <jb@gcc.gnu.org>
125
126         PR libfortran/48488
127         * io/write.c (write_real, write_real_g0): Update comments.
128
129 2011-04-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
130             Janne Blomqvist  <jb@gcc.gnu.org>
131
132         PR libgfortran/48488
133         PR libgfortran/48602
134         PR libgfortran/48615
135         PR libgfortran/48684
136         PR libgfortran/48787
137         * io/write.c (write_d, write_e, write_f, write_en,
138         write_es): Add precision compemsation parameter to call.
139         (set_fnode_default): Adjust default widths to assure
140         round trip on write and read. (write_real): Adjust call to write_float.
141         (write_real_g0): Calculate compensation for extra precision and adjust
142         call to write_float.
143         * io/write_float.def (output_float_FMT_G_): Use volatile rather than
144         asm volatile to avoid optimization issue. Correctly calculate the
145         number of blanks (nb) to be appended and simplify calculation logic.
146         (write_float): Increase MIN_FIELD_WIDTH by one to accomodate the new
147         default widths. Eliminate the code that attempted to reduce the
148         the precision used in later sprintf functions.  Add call parameter to
149         compensate for extra precision.
150
151 2011-04-20  Jim Meyering  <meyering@redhat.com>
152
153         * intrinsics/move_alloc.c (move_alloc): Remove useless
154         if-before-free test.
155         * io/fbuf.c (fbuf_destroy): Likewise.
156         * io/format.c (save_parsed_format): Likewise.
157         * io/open.c (already_open): Likewise.
158         * io/unit.c (free_internal_unit, close_unit_1): Likewise.
159         * io/unix.c (mem_close): Likewise.
160
161 2011-04-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
162
163         PR libgfortran/48602
164         * io/write_float.def (output_float_FMT_G): Fix reversal in conditional.
165         Use asm volatile to mark temp variable, avoiding optimization errors.
166
167 2011-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
168
169         PR libgfortran/48602
170         * io/write_float.def (output_float_FMT_G): Use current rounding mode
171         to set the rounding parameters. (output_float): Skip rounding
172         if value is zero.
173         
174 2011-04-16  Janne Blomqvist  <jb@gcc.gnu.org>
175
176         * intrinsics/date_and_time.c (date_and_time): Remove sprintf CPP
177         branch.
178         * io/format.c (format_error): Use snprintf instead of sprintf.
179         * io/list_read.c: Move snprintf fallback macro to libgfortran.h.
180         (convert_integer): Use snprintf instead of sprintf.
181         (parse_repeat): Likewise.
182         (read_logical): Likewise.
183         (read_integer): Likewise.
184         (read_character): Likewise.
185         (parse_real): Likewise.
186         (read_complex): Likewise.
187         (read_real): Likewise.
188         (check_type): Likewise.
189         (nml_parse_qualifier): Add string length argument, use snprintf
190         instead of sprintf.
191         (nml_get_obj_data): Use snprintf instead of sprintf.
192         * io/open.c (new_unit): Remove sprintf CPP branch, use snprintf
193         instead of sprintf.
194         * io/transfer.c (require_type): Use snprintf instead of sprintf.
195         * io/unix.c (tempfile): Likewise.
196         * io/write.c (nml_write_obj): Likewise.
197         * io/write_float.def (output_float): Remove sprintf CPP branch,
198         use snprintf instead of sprintf.
199         * libgfortran.h: Add fallback snprintf macro from io/list_read.c.
200         * runtime/backtrace.c (show_backtrace): Remove sprintf CPP branch.
201         * runtime/main.c (store_exe_path): Use snprintf instead of
202         sprintf.
203
204 2011-04-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
205
206         PR libgfortran/48589
207         * io/write_float.def (write_infnan): Set width properly for G0.
208
209 2011-04-15  Tobias Burnus  <burnus@net-b.de>
210
211         PR fortran/18918
212         * Makefile.am: Build and install caf/single.c as
213         libcaf_single.a.
214         * Makefile.in: Regenerate.
215
216 2011-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
217
218         PR libfortran/47571
219         * configure: Regenerated.
220         * config.h.in: Regenerated.
221         * acinclude.m4: Add alpha*-dec-osf* to gthread blacklist.
222         * configure.ac: Use separate symbol for clock_gettime in librt.
223         * intrinsics/system_clock.c: Use weakrefs only when needed and
224         supported.
225
226 2011-04-12  Janne Blomqvist  <jb@gcc.gnu.org>
227
228         * configure.ac: Use AC_TYPE_* to make sure we have (u)intptr_t,
229         check for ptrdiff_t.
230         * libgfortran.h: Remove (u)intptr_t definitions, use ptrdiff_t for
231         index_type, change cshift0* prototypes.
232         * config.h.in: Regenerated.
233         * configure: Regenerated.
234         * intrinsics/cshift0.c (cshift0): Use ptrdiff_t instead of ssize_t.
235         * io/io.h (array_loop_spec): Use index_type instead of ssize_t.
236         * io/list_read.c (nml_parse_qualifier): Likewise.
237         * io/write.c (nml_write_obj): Likewise.
238         * m4/cshift0.c (cshift0_'rtype_code`): Likewise.
239         * generated/cshift0_*.c: Regenerated.
240
241 2011-04-12  Janne Blomqvist  <jb@gcc.gnu.org>
242
243         * Makefile.am: Remove _GNU_SOURCE from AM_CPPFLAGS.
244         * Makefile.in: Regenerated.
245
246 2011-04-06  Tobias Burnus  <burnus@net-b.de>
247
248         PR fortran/18918
249         * caf/mpi.c (_gfortran_caf_init, _gfortran_caf_finalize):
250         Add global variable caf_mpi_initialized and use it for when
251         finalizing.
252
253 2011-04-04  Tobias Burnus  <burnus@net-b.de>
254
255         * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
256         (fallback_access, open_internal4, compare_file_filename,
257         find_file, file_size, inquire_sequential, inquire_direct,
258         inquire_formatted): Use "struct stat" instead of gfstat_t.
259
260 2011-03-27  Tobias Burnus  <burnus@net-b.de>
261
262         PR fortran/18918
263         * caf/libcaf.h: New - coarray communication library.
264         * caf/mpi.c: New.
265         * caf/single.c: New.
266
267 2011-03-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
268
269         PR libgfortran/48030
270         * io/read.c (read_x): Re-implement using fbuf_getc.
271
272 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
273
274         PR bootstrap/48135
275         * configure.ac (gfortran_use_symver): Handle --disable-symvers.
276         * configure: Regenerate.
277
278 2011-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
279
280         PR fortran/35667
281         * io/io.h (convert_infnan): Declare.
282         * io/read.c (convert_infnan): New.
283         (read_f): Use convert_infnan to convert INFs and NANs.
284         * list_read.c (parse_real, read_real): Likewise.
285
286 2011-03-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
287
288         PR libfortran/47439
289         * io/unix.c (tempfile): Work around poor mktemp() implementations.
290
291 2011-03-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
292
293         PR libfortran/47883
294         * acinclude.m4: Don't use AC_TRY_ macros.
295         * configure.ac: Likewise.
296         * configure: Regenerate.
297
298 2011-03-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
299
300         PR libfortran/48066
301         * m4/ifunction.m4:  If return array is empty, return.
302         * m4/ifunction_logical.m4:  Likewise.
303         * generated/all_l16.c: Regenerated.
304         * generated/all_l1.c: Regenerated.
305         * generated/all_l2.c: Regenerated.
306         * generated/all_l4.c: Regenerated.
307         * generated/all_l8.c: Regenerated.
308         * generated/any_l16.c: Regenerated.
309         * generated/any_l1.c: Regenerated.
310         * generated/any_l2.c: Regenerated.
311         * generated/any_l4.c: Regenerated.
312         * generated/any_l8.c: Regenerated.
313         * generated/count_16_l.c: Regenerated.
314         * generated/count_1_l.c: Regenerated.
315         * generated/count_2_l.c: Regenerated.
316         * generated/count_4_l.c: Regenerated.
317         * generated/count_8_l.c: Regenerated.
318         * generated/maxloc1_16_i16.c: Regenerated.
319         * generated/maxloc1_16_i1.c: Regenerated.
320         * generated/maxloc1_16_i2.c: Regenerated.
321         * generated/maxloc1_16_i4.c: Regenerated.
322         * generated/maxloc1_16_i8.c: Regenerated.
323         * generated/maxloc1_16_r10.c: Regenerated.
324         * generated/maxloc1_16_r16.c: Regenerated.
325         * generated/maxloc1_16_r4.c: Regenerated.
326         * generated/maxloc1_16_r8.c: Regenerated.
327         * generated/maxloc1_4_i16.c: Regenerated.
328         * generated/maxloc1_4_i1.c: Regenerated.
329         * generated/maxloc1_4_i2.c: Regenerated.
330         * generated/maxloc1_4_i4.c: Regenerated.
331         * generated/maxloc1_4_i8.c: Regenerated.
332         * generated/maxloc1_4_r10.c: Regenerated.
333         * generated/maxloc1_4_r16.c: Regenerated.
334         * generated/maxloc1_4_r4.c: Regenerated.
335         * generated/maxloc1_4_r8.c: Regenerated.
336         * generated/maxloc1_8_i16.c: Regenerated.
337         * generated/maxloc1_8_i1.c: Regenerated.
338         * generated/maxloc1_8_i2.c: Regenerated.
339         * generated/maxloc1_8_i4.c: Regenerated.
340         * generated/maxloc1_8_i8.c: Regenerated.
341         * generated/maxloc1_8_r10.c: Regenerated.
342         * generated/maxloc1_8_r16.c: Regenerated.
343         * generated/maxloc1_8_r4.c: Regenerated.
344         * generated/maxloc1_8_r8.c: Regenerated.
345         * generated/maxval_i16.c: Regenerated.
346         * generated/maxval_i1.c: Regenerated.
347         * generated/maxval_i2.c: Regenerated.
348         * generated/maxval_i4.c: Regenerated.
349         * generated/maxval_i8.c: Regenerated.
350         * generated/maxval_r10.c: Regenerated.
351         * generated/maxval_r16.c: Regenerated.
352         * generated/maxval_r4.c: Regenerated.
353         * generated/maxval_r8.c: Regenerated.
354         * generated/minloc1_16_i16.c: Regenerated.
355         * generated/minloc1_16_i1.c: Regenerated.
356         * generated/minloc1_16_i2.c: Regenerated.
357         * generated/minloc1_16_i4.c: Regenerated.
358         * generated/minloc1_16_i8.c: Regenerated.
359         * generated/minloc1_16_r10.c: Regenerated.
360         * generated/minloc1_16_r16.c: Regenerated.
361         * generated/minloc1_16_r4.c: Regenerated.
362         * generated/minloc1_16_r8.c: Regenerated.
363         * generated/minloc1_4_i16.c: Regenerated.
364         * generated/minloc1_4_i1.c: Regenerated.
365         * generated/minloc1_4_i2.c: Regenerated.
366         * generated/minloc1_4_i4.c: Regenerated.
367         * generated/minloc1_4_i8.c: Regenerated.
368         * generated/minloc1_4_r10.c: Regenerated.
369         * generated/minloc1_4_r16.c: Regenerated.
370         * generated/minloc1_4_r4.c: Regenerated.
371         * generated/minloc1_4_r8.c: Regenerated.
372         * generated/minloc1_8_i16.c: Regenerated.
373         * generated/minloc1_8_i1.c: Regenerated.
374         * generated/minloc1_8_i2.c: Regenerated.
375         * generated/minloc1_8_i4.c: Regenerated.
376         * generated/minloc1_8_i8.c: Regenerated.
377         * generated/minloc1_8_r10.c: Regenerated.
378         * generated/minloc1_8_r16.c: Regenerated.
379         * generated/minloc1_8_r4.c: Regenerated.
380         * generated/minloc1_8_r8.c: Regenerated.
381         * generated/minval_i16.c: Regenerated.
382         * generated/minval_i1.c: Regenerated.
383         * generated/minval_i2.c: Regenerated.
384         * generated/minval_i4.c: Regenerated.
385         * generated/minval_i8.c: Regenerated.
386         * generated/minval_r10.c: Regenerated.
387         * generated/minval_r16.c: Regenerated.
388         * generated/minval_r4.c: Regenerated.
389         * generated/minval_r8.c: Regenerated.
390         * generated/product_c10.c: Regenerated.
391         * generated/product_c16.c: Regenerated.
392         * generated/product_c4.c: Regenerated.
393         * generated/product_c8.c: Regenerated.
394         * generated/product_i16.c: Regenerated.
395         * generated/product_i1.c: Regenerated.
396         * generated/product_i2.c: Regenerated.
397         * generated/product_i4.c: Regenerated.
398         * generated/product_i8.c: Regenerated.
399         * generated/product_r10.c: Regenerated.
400         * generated/product_r16.c: Regenerated.
401         * generated/product_r4.c: Regenerated.
402         * generated/product_r8.c: Regenerated.
403         * generated/sum_c10.c: Regenerated.
404         * generated/sum_c16.c: Regenerated.
405         * generated/sum_c4.c: Regenerated.
406         * generated/sum_c8.c: Regenerated.
407         * generated/sum_i16.c: Regenerated.
408         * generated/sum_i1.c: Regenerated.
409         * generated/sum_i2.c: Regenerated.
410         * generated/sum_i4.c: Regenerated.
411         * generated/sum_i8.c: Regenerated.
412         * generated/sum_r10.c: Regenerated.
413         * generated/sum_r16.c: Regenerated.
414         * generated/sum_r4.c: Regenerated.
415         * generated/sum_r8.c: Regenerated.
416
417 2011-03-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
418
419         PR libgfortran/48047
420         * io/write_float.def (write_float): Change MIN_FIELD_WIDTH to 48.
421
422 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
423
424         PR libfortran/47802
425         * intrinsics/ctime.c (strctime): Use builtins to check localtime_r
426         return type.
427
428 2011-03-04  Janne Blomqvist  <jb@gcc.gnu.org>
429
430         PR libfortran/47802
431         * intrinsics/ctime.c (strctime): Don't use return value of
432         localtime_r.
433
434 2011-02-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
435
436         PR libgfortran/47567
437         * io/write_float.def (output_float): Move handling of w = 0 to after
438         output rounding. Check for zero and set zero_flag accordingly. Set
439         width according to zero_flag. Add better comments.
440
441 2011-02-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
442
443         PR libgfortran/47778
444         * io/list_read.c (namelist_read): Intialize the error string buffere.
445         If pprev_nl was used during the previous namelist read and the rank
446         was zero, reset the pointer to NULL for the next namelist read.
447
448 2011-02-26  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
449
450         PR libfortran/45165
451         * unix.c (fallback_access): Fix file descriptor leaks.
452
453 2011-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
454
455         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): Set shell variable
456         tested in configure.host.
457         * configure: Regenerate.
458
459 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
460
461         PR libfortran/47802
462         * config.h.in: Regenerated.
463         * configure: Regenerated.
464         * configure.ac: Remove checks for ctime and ctime_r, add check for
465         strftime.
466         * intrinsics/date_and_time.c (localtime_r): Move fallback
467         implementation to time_1.h.
468         * intrinsics/time_1.h (localtime_r): Fallback implementation.
469         * intrinsics/ctime.c: Include time_1.h.
470         (ctime_r): Remove fallback implementation.
471         (strctime): New function.
472         (fdate): Use strctime instead of ctime_r.
473         (fdate_sub): Likewise.
474         (ctime): Likewise.
475         (ctime_sub): Likewise.
476
477 2011-02-24  Jakub Jelinek  <jakub@redhat.com>
478
479         PR fortran/47878
480         * io/transfer.c (read_sf): Call fbuf_getptr only at the end,
481         and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it.
482
483 2011-02-24  Janne Blomqvist  <jb@gcc.gnu.org>
484
485         PR libfortran/47802
486         * configure.ac: Add test for POSIX getpwuid_r.
487         * intrinsics/getlog.c (getlog): CPP test for
488         HAVE_POSIX_GETPWUID_R.
489         * config.h.in: Regenerated.
490         * configure: Regenerated.
491
492 2011-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
493
494         PR libgfortran/47567
495         * io/write_float.def (output_float): Remove special case handling of
496         zero with width 1.
497
498 2011-02-23  Janne Blomqvist  <jb@gcc.gnu.org>
499             Jerry DeLisle    <jvdelisle@gcc.gnu.org>
500
501         PR libfortran/47694
502         * io/fbuf.h (fbuf_getptr): New inline function.
503         * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan
504         through the string instead of fbuf_read.
505
506 2011-02-22  Tobias Burnus  <burnus@net-b.de>
507             Kai-Uwe Eckhardt  <kuehro@gmx.de>
508
509         PR libfortran/47830
510         * intrinsics/c99_functions.c (roundl): Make C valid for
511         HAVE_NEXTAFTERL.
512
513 2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
514
515         PR libgfortran/47567
516         * io/write_float.def (output_float): Adjust width for F0.d to
517         allow space for negative signs on zero.
518
519 2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
520
521         PR libgfortran/47667
522         * io/list_read.c (read_logical): Check for end of line before calling
523         eat_line. (read_integer): Likewise. (parse_real): Don't unget the
524         separator. Check for end of line before calling eat_line.
525         (read_complex): Allow line-end before and after parenthesis and comma.
526         Check for end of line before calling eat_line. (read_real): Check for
527         end of line before calling eat_line.
528
529 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
530
531         PR libfortran/47757
532         * gfortran.map (GFORTRAN_1.4): Export
533         _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
534         _gfortran_{cshift0,eoshift{0,2}}_16_char4.
535
536 2011-02-15  Tobias Burnus  <burnus@net-b.de>
537
538         PR fortran/47716
539         PR fortran/47648
540         * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
541         libquadmath, which uses more features.
542         * configure: Regenerate.
543
544 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
545
546         PR fortran/47642
547         * io/write_float.def (DTOAQ): Use quadmath_snprintf instead of
548         quadmath_flt128tostr.
549         * io/transfer128.c (tmp2): Initialize to quadmath_snprintf instead
550         of quadmath_flt128tostr.
551
552 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
553
554         * Makefile.in: Regenerate.
555         * aclocal.m4: Likewise.
556         * configure: Likewise.
557
558 2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
559
560         PR libgfortran/47567
561         * io/write_float.def (output_float): Eliminate some redundant code.
562         Adjust width for case of F0.X for values of zero and all other values.
563         Expand cases where '*' is set to give cleaner results.
564
565 2011-02-05  Janne Blomqvist  <jb@gcc.gnu.org>
566
567         PR libfortran/47571
568         * intrinsics/time_1.h (GF_CLOCK_MONOTONIC): Move to system_clock.c.
569         (weak_gettime): Likewise.
570         (gf_gettime): Change API, move weak_gettime() usage to
571         system_clock.c
572         * intrinsics/system_clock.c (GTHREAD_USE_WEAK): Define.
573         (gf_gettime_mono): New function.
574         (system_clock_4): Use gf_gettime_mono().
575         (system_clock_8): Likewise.
576         * intrinsics/date_and_time.c (date_and_time): Update gf_gettime()
577         usage.
578
579 2011-02-02  Janne Blomqvist  <jb@gcc.gnu.org>
580
581         PR libfortran/47571
582         * configure: Regenerated.
583         * configure.ac: Don't add librt to LIBS.
584         * intrinsics/time_1.h (weak_gettime): Weakref trickery for
585         clock_gettime().
586         (gf_gettime): Use weak_gettime() instead of clock_gettime().
587
588 2011-02-01  Janne Blomqvist  <jb@gcc.gnu.org>
589
590         * intrinsics/time_1.h: Include errno.h needed by fallbacks.
591
592 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
593
594         * intrinsics/time_1.h: Fix definition of GF_CLOCK_MONOTONIC macro.
595
596 2011-01-31  Janne Blomqvist  <jb@gcc.gnu.org>
597
598         * configure.ac: Check for clock_gettime().
599         * configure: Regenerated.
600         * config.h.in: Regenerated.
601         * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
602         times() fallback.
603         (gf_gettime): New function.
604         * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
605         * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
606         * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
607         * intrinsics/etime.c (etime_sub): Use gf_cputime.
608         * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
609         (system_clock_8): Use gf_gettime, increase count rate to allow
610         nanosecond precision, remove overflow prone branch.
611
612 2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
613
614         PR libgfortran/47434
615         * io/write_float.def (write_infnan): Use calculate_sign to determine
616         if the sign should be given and check field widths accordingly.
617
618 2011-01-29  Kai Tietz  <kai.tietz@onevision.com>
619
620         * intrinsics/ctime.c (ctime_r): Improve implementation.
621
622 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
623
624         PR libfortran/47431
625         * config.h.in: Regenerated.
626         * configure: Regenerated.
627         * configure.ac: Add check for ctime_r().
628         * intrinsics/ctime.c (ctime_r): Fallback implementation.
629         (fdate): Use ctime_r() instead of ctime().
630         (fdate_sub): Likewise.
631         (ctime): Likewise.
632         (ctime_sub): Likewise.
633
634 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
635
636         PR libfortran/47432
637         * config.h.in: Regenerated.
638         * configure: Regenerated.
639         * configure.ac: Add check for ttyname_r.
640         * io/unix.h: Add TTY_NAME_MAX, change stream_ttyname prototype.
641         * io/unix.c (stream_ttyname): Use ttyname_r if available, conform
642         to new prototype.
643         * io/inquire.c (inquire_via_unit): Use changed stream_ttyname.
644         * io/intrinsics.c (ttynam_sub): Likewise.
645         (ttynam): Likewise.
646
647 2011-01-27  Janne Blomqvist  <jb@gcc.gnu.org>
648
649         PR libfortran/47491
650         * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS to enable common
651         extensions.
652         * config.h.in: Regenerate.
653         * configure: Regenerate.
654
655 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
656
657         PR libgfortran/47285
658         * io/write_float.def (write_infnan): Adjust processor selected width
659         to 3 if NaN.
660
661 2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
662
663         PR libgfortran/47285
664         * io/write_float.def (output_float): Return SUCCESS or FAILURE and use
665         the result to set the padding.
666
667 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
668
669         * intrinsics/getlog.c (getlog): Fix label/statement issue.
670
671 2011-01-25  Janne Blomqvist  <jb@gcc.gnu.org>
672
673         PR libfortran/47375
674         * config.h.in: Regenerated.
675         * configure: Regenerated.
676         * configure.ac: Add check for getpwuid_r.
677         * intrinsics/getlog.c (getlog): Use getpwuid_r() if available.
678
679 2011-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
680
681         PR libfortran/46267
682         * config.h.in: Regenerated.
683         * configure: Regenerated.
684         * configure.ac: Check presence of strerror_r.
685         * intrinsics/gerror.c (gerror): Use gf_strerror, modify logic.
686         * io/unix.c (get_oserror): Remove.
687         * libgfortran.h (gf_strerror): Add prototype.
688         (get_oserror): Remove prototype.
689         * runtime/error.c (gf_strerror): New function.
690         (os_error): Use gf_strerror instead of get_oserror.
691         (generate_errror): Likewise.
692
693 2011-01-17  Janne Blomqvist  <jb@gcc.gnu.org>
694
695         PR libfortran/47296
696         * io/unix.c (tempfile): Set opp->file and opp->file_len also if an
697         error occurs.
698
699 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
700
701         PR fortran/46625
702         * io/write_float.def (DTOAQ): Use quadmath_flt128tostr
703         instead of quadmath_dtoa.
704         * io/transfer128.c (tmp1, tmp2): New variables, bring in
705         strtoflt128 and quadmath_flt128tostr.
706         (transfer_real128, transfer_real128_write, transfer_complex128,
707         transfer_complex128_write): Remove tmp1/tmp2 variables.
708         * io/read.c (convert_real): Use strtoflt128 instead of
709         quadmath_strtopQ, adjust for the changed arguments and return
710         value.
711
712 2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
713
714         PR libgfortran/47296
715         * io/unix.c (unpack_filename): Return non-zero if the filename passed
716         in is NULL.
717
718 2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
719
720         PR libgfortran/47154
721         * io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
722         duplicate calls via next_record.
723
724 \f
725 Copyright (C) 2011 Free Software Foundation, Inc.
726
727 Copying and distribution of this file, with or without modification,
728 are permitted in any medium without royalty provided the copyright
729 notice and this notice are preserved.