OSDN Git Service

25bb24bfb1951a6d91c1ab3fb527b319232e7bb8
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2007-07-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2
3         PR libgfortran/32752
4         * io/unix.c (unix_stream): Move buffer pointer adjacent to small_buffer.
5         * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
6         bytes_used to zero. Fix off by one error in calculation of pos and
7         skips. Eliminate duplicate pending_spaces check.
8
9 2007-07-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10
11         PR fortran/32357
12         * intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
13         TOPOS arguments are C int.
14
15 2007-07-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16
17         PR libgfortran/32702
18         * io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
19         (fd_alloc): If the number of bytes needed is greater than the default
20         BUFFER_SIZE, allocate a new buffer large enough.  Free the old buffer if
21         necessary. (fd_sfree): Restore use of buffer pointer.
22         (fd_close): Likewise. (fd_open): Likewise.
23         (init_error_stream): Likewise.
24         
25 2007-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
26
27         PR libfortran/32336
28         * m4/matmul.m4:  When the dimension of b is incorrect,
29         raise a runtime error instead of a failed assertion.
30         * generated/matmul_i1.c:  Regenerated.
31         * generated/matmul_i2.c:  Regenerated.
32         * generated/matmul_i4.c:  Regenerated.
33         * generated/matmul_i8.c:  Regenerated.
34         * generated/matmul_i16.c:  Regenerated.
35         * generated/matmul_r4.c:  Regenerated.
36         * generated/matmul_r8.c:  Regenerated.
37         * generated/matmul_r10.c:  Regenerated.
38         * generated/matmul_r16.c:  Regenerated.
39
40 2007-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
41
42         PR libgfortran/32678
43         * io/transfer.c (formatted_transfer_scalar): Don't allow pending_spaces
44         to go negative.
45
46 2007-07-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
47
48         PR libfortran/32217
49         * intrinsics/unpack_generic.c:  If the destination array is
50         empty, return early.
51
52 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
53
54         * aclocal.m4: Regenerated.
55
56 2007-07-04  David Edelsohn  <edelsohn@gnu.org>
57
58         * configure.ac: SUBST CFLAGS.
59         * configure: Regenerate.
60
61 2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
62
63         * libgfortran.h: Mark internal_malloc_size as a malloc function.
64         * runtime/memory.c (internal_realloc_size): Remove.
65         (internal_realloc): Call realloc directly instead of
66         internal_realloc_size.
67         (allocate_size): Remove.
68         (allocate): Call malloc directly instead of allocate_size, mark as
69         malloc function.
70
71 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
72
73         Restore collateral damage from ISO C Binding merge.
74
75         2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
76
77         PR libgfortran/32456
78         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
79         for unit directly.
80
81
82 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
83
84         * Makefile.in:  Regenerated with automake 1.9.6.
85
86 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
87
88         * Makefile.in:  Remove extraneous kill.lo rule.
89
90 2007-07-02  Janne Blomqvist  <jb@gcc.gnu.org>
91
92         PR fortran/32239
93         * generated/pow_r*_i4.c: Removed.
94
95 2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
96
97         * Makefile.in: Add support for iso_c_generated_procs.c and
98         iso_c_binding.c.
99         * Makefile.am: Ditto.
100         * intrinsics/iso_c_generated_procs.c: New file containing helper
101         functions.
102         * intrinsics/iso_c_binding.c: Ditto.
103         * intrinsics/iso_c_binding.h: New file
104         * gfortran.map: Include the __iso_c_binding_c_* functions.
105         * libgfortran.h: define GFC_NUM_RANK_BITS.
106
107 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
108
109         PR fortran/32239
110         * Makefile.am: Don't generate real**int4 pow functions.
111         * gfortran.map: Remove real**int4 pow symbols.
112         * Makefile.in: Regenerated.
113
114 2007-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
115
116         PR libgfortran/32554
117         * io/write.c (output_float): Set edigits to a fixed size, avoiding
118         variation in field width calculation and eliminate buffer overrun.
119
120 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
121
122         * runtime/memory.c (internal_realloc): Use index_type for size
123         argument instead of GFC_INTEGER_4.
124         (allocate_array): Likewise.
125         (allocate): Likewise, add ifdef around unnecessary check.
126         (internal_reallo64): Remove.
127         (allocate_array64): Remove.
128         (allocate64): Remove.
129         * gfortran.map: Remove symbols for 64-bit allocation functions.
130
131 2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
132
133         PR libgfortran/32456
134         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
135         for unit directly.
136
137 2007-06-24  Adam Nemet  <anemet@caviumnetworks.com>
138
139         PR libfortran/32495
140         * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
141         (show_backtrace): Rename strcasestr to local_strcasestr.
142
143 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
144
145         PR libgfortran/32456
146         * runtime/error.c (show_locus): Update to emit the unit number
147         and file name involved with the error.  Use new function
148         filename_from_unit.
149         * libgfortran.h (filename_from_unit): Declare new function.
150         * io/unit.c (init_units): Set the unit file name for stdin, stdout,
151         and stderr for use later in error reporting.
152         (filename_from_unit): Add this new function.
153
154 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
155
156         PR libgfortran/32446
157         * io/write.c (output_float): Calculate ndigits correctly for large
158         numbered formats that must pad zeros before the decimal point.
159
160 2007-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
161
162         PR libfortran/32345
163         * runtime/backtrace.c (show_backtrace): Only use snprintf if
164         available.
165
166 2007-06-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
167
168         PR libgfortran/32235
169         * io/transfer.c (st_read): Remove test for end of file condition.
170         (next_record_r): Add test for end of file condition.
171
172 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
173
174         * configure: Regenerate.
175
176 2007-05-28  Tobias Burnus  <burnus@net-b.de>
177
178         PR fortran/32124
179         * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
180         (allocate,allocate64): Use stat variable if present.
181
182 2007-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
183
184         * runtime/string.c (compare0): Use gfc_charlen_type instead of
185         int.
186         (fstrlen): Likewise.
187         (find_option): Likewise.
188         (fstrcpy): Use gfc_charlen_type instead of int, return length.
189         (cf_strcpy): Likewise.
190         * libgfortran.h: Change string prototypes to use gfc_charlen_type.
191         * io/open.c (new_unit): Use snprintf if available.
192         * io/list_read.c (nml_touch_nodes): Use memcpy instead of
193         strcpy/strcat.
194         (nml_read_obj): Likewise.
195         * io/transfer.c (st_set_nml_var): Likewise.
196         * io/write.c (output_float): Use snprintf if available.
197         (nml_write_obj) Use memcpy instead of strcpy/strcat.
198
199 2007-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
200
201         * io/unix.c (unix_stream): Rearrange struct members, remove
202         small_buffer.
203         (int_stream): New struct.
204         (fd_alloc): Always use existing buffer, never reallocate.
205         (fd_sfree): Remove check for buffer != small_buffer.
206         (fd_close): Likewise.
207         (mem_alloc_r_at): Change to use int_stream.
208         (mem_alloc_w_at): Likewise.
209         (mem_read): Likewise.
210         (mem_write): Likewise.
211         (mem_set): Likewise.
212         (mem_truncate): Likewise.
213         (mem_close): Likewise.
214         (mem_sfree): Likewise.
215         (empty_internal_buffer): Likewise.
216         (open_internal): Likewise.
217         
218 2007-05-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
219
220         * io/transfer.c (unformatted_read): Use size from front end eliminating
221         use of size_from_real_kind. (unformatted_write): Ditto.
222
223 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
224
225         * Makefile.in: Regenerate.
226         * configure: Regenerate.
227         * aclocal.m4: Regenerate.
228
229 2007-05-22  Tobias Burnus  <burnus@net-b.de>
230
231         * libgfortran.h: Mark stop_numeric as noreturn.
232
233 2007-05-22  Tobias Burnus  <burnus@net-b.de>
234
235         PR libgfortran/31295
236         * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
237         * intrinsics/eoshift2.c (eoshift2): Ditto.
238
239 2007-05-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
240
241         PR libfortran/31964
242         * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
243         shift of bit-size number of bits.
244
245 2007-05-17  Tobias Burnus <burnus@net-b.de>
246
247         PR fortran/31917
248         * runtime/environ.c (mark_range): Fix setting default convert unit.
249
250 2007-05-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
251
252         PR libfortran/31922
253         * intrinsics/string_intrinsics.c (string_trim): Set result to null if
254         string length is zero.
255
256 2007-05-15  Tobias Burnus  <burnus@net-b.de>
257
258         PR libfortran/31915
259         * io/transfer.c (unformatted_read): Use proper size for real(10).
260           (unformatted_write): Ditto.
261
262 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
263
264         PR fortran/30723
265         * runtime/memory.c (internal_malloc, internal_malloc64,
266         internal_free): Remove.
267         * runtime/error.c (os_error): Export function.
268         * intrinsics/move_alloc.c: Include stdlib.h.
269         (move_alloc): Call free instead of internal_free.
270         (move_alloc_c): Wrap long lines.
271         * libgfortran.h (os_error): Export prototype.
272         (internal_free): Remove prototype.
273         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
274         _gfortran_internal_malloc and _gfortran_internal_malloc64.
275         Add _gfortran_os_error.
276
277 2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
278
279         PR libfortran/31880
280         * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
281
282 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
283
284         PR libfortran/31607
285         * intrinsics/system.c (system_sub): Call flush_all_units.
286         * io/io.h (flush_all_units): Move prototype to libgfortran.h.
287         * libgfortran.h (flush_all_units): Add prototype.
288
289 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
290
291         PR libfortran/31201
292         * runtime/error.c (runtime_error_at): New function.
293         (generate_error): Export this function.
294         * gfortran.map: Add _gfortran_generate_error and
295         _gfortran_runtime_error_at.
296         * libgfortran.h: Add comment to reference error codes in front end.
297         (library_start): Locate prototype with library_end macro and add
298         a new comment.  Add prototype for runtime_error_at. Export prototype for
299         generate_error.
300         * io/lock.c (library_start): Fix check for error condition.
301         * io/transfer.c (data_transfer_init): Add library check.
302
303 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
304
305         PR fortran/22359
306         * io/intrinsics.c (fseek_sub): New.
307         * io/unix.c (fd_fseek): Change logical and physical offsets only
308         if seek succeeds.
309         * gfortran.map (fseek_sub): New.
310
311 2007-05-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
312
313         PR libfortran/31210
314         * io/transfer.c (transfer_character): Avoid passing a NULL
315         pointer as source to the transfer routines, if the string length
316         is zero.
317
318 2007-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
319
320         PR libfortran/31501
321         * io/list_read.c (next_char): Fix whitespace.
322         * io/io.h: Remove prototypes and define macros for is_array_io,
323         is_stream_io, and is_internal_unit.
324         * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
325         these functions.
326         * io/transfer.c (read_sf): Change handling of internal_unit to make a
327         single call to salloc_r and use memcpy to transfer the data. 
328
329 2007-04-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
330
331         PR libfortran/31532
332         * io/file_pos.c (st_backspace): Set flags.position for end of file
333         condition and use new function update_position.
334         (st_endfile): Use new function update_position.
335         * io/io.h: Add prototype for new function.
336         * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
337         to zero.
338         * io/unit.c (update_position): New function to update position info
339         used by inquire.
340         * io/transfer.c (next_record): Fix typo and use new function.
341
342 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
343
344         PR libfortran/31299
345         * intrinsics/getlog.c: Use getpwuid and geteuid instead of
346         getlogin if they are available.
347         * configure.ac: Add checks for getpwuid and geteuid.
348         * configure: Regenerate.
349         * config.h.in: Regenerate.
350
351 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
352
353         * configure: Regenerate using autoconf 2.59.
354         * Makefile.in: Likewise.  
355         * config.h.in: Likewise.
356
357 2007-04-24  Janne Blomqvist  <jb@gcc.gnu.org>
358
359         PR libfortran/27740
360         * configure.ac: New test to determine if symbol versioning is
361         supported.
362         * Makefile.am: Use result of above test to add appropriate linker
363         flags.
364         * gfortran.map: New file.
365         * configure: Regenerated.
366         * Makefile.in: Regenerated.
367         * config.h.in: Regenerated.
368
369 2007-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
370
371         PR fortran/31618
372         * io/transfer.c (read_block_direct):  Instead of calling us_read,
373         set dtp->u.p.current_unit->current_record = 0 so that pre_position
374         will read the record marker.
375         (data_transfer_init):  For different error conditions, call
376         generate_error, then return.
377
378 2007-04-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
379
380         * runtime/main.c (please_free_exe_path_when_done): New variable.
381         (store_exe_path): Initialize character buffer, and mark whether
382         exe_path should be free'd by the library destructor function.
383         (cleanup): Only free exe_path if needed.
384
385 2007-04-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
386             Tobias Burnus  <burnus@net-b.de>
387
388         PR libfortran/31286
389         PR libfortran/31296
390         * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
391         * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
392         array structures we pass to unpack_internal.
393
394 2007-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
395
396         * io/open.c (test_endfile): Revert changes for 31052, restoring this
397         function. 
398
399 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
400
401         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.  Add libgfortran_la_LINK.
402         * Makefile.in: Regenerate.
403
404 2007-04-11  Kai Tietz  <kai.tietz@onevision.com>
405
406         * configure: Regenerate.
407
408 2007-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
409
410         * intrinsics/cpu_time.c: Don't include headers already included
411         by libgfortran.h. Protect inclusion of sys/times.h.
412         * configure.ac: Remove unneeded checks for finit, stdio.h,
413         stddef.h, math.h and sys/params.h.
414         * config/fpu-aix.h: Don't include headers already included by
415         libgfortran.h.
416         * config/fpu-sysv.h: Likewise.
417         * io/write.c: Likewise.
418         * m4/minloc1.m4: Likewise.
419         * m4/maxloc1.m4: Likewise.
420         * m4/fraction.m4: Likewise.
421         * m4/set_exponent.m4: Likewise.
422         * m4/spacing.m4: Likewise.
423         * m4/minval.m4: Likewise.
424         * m4/maxval.m4: Likewise.
425         * m4/exponent.m4: Likewise.
426         * m4/nearest.m4: Likewise.
427         * m4/minloc0.m4: Likewise.
428         * m4/maxloc0.m4: Likewise.
429         * m4/rrspacing.m4: Likewise.
430         * runtime/main.c: Likewise.
431         * runtime/error.c: Likewise.
432         * intrinsics/system_clock.c: Likewise.
433         * intrinsics/etime.c: Likewise.
434         * intrinsics/stat.c: Likewise.
435         * intrinsics/date_and_time.c: Likewise.
436         * intrinsics/env.c: Likewise.
437         * intrinsics/kill.c: Likewise.
438         * intrinsics/getXid.c: Likewise.
439         * intrinsics/chmod.c: Likewise.
440         * intrinsics/args.c: Likewise.
441         * intrinsics/c99_functions.c: Likewise.
442         * generated/minval_r8.c: Regenerate.
443         * generated/maxloc1_4_r8.c: Regenerate.
444         * generated/minloc1_16_r16.c: Regenerate.
445         * generated/maxval_i2.c: Regenerate.
446         * generated/maxloc1_8_i4.c: Regenerate.
447         * generated/exponent_r16.c: Regenerate.
448         * generated/maxloc0_4_r4.c: Regenerate.
449         * generated/fraction_r16.c: Regenerate.
450         * generated/fraction_r4.c: Regenerate.
451         * generated/minloc0_4_r16.c: Regenerate.
452         * generated/minloc0_4_i1.c: Regenerate.
453         * generated/maxloc0_4_r16.c: Regenerate.
454         * generated/maxloc0_4_i2.c: Regenerate.
455         * generated/minloc1_8_r16.c: Regenerate.
456         * generated/maxloc1_8_r16.c: Regenerate.
457         * generated/set_exponent_r8.c: Regenerate.
458         * generated/maxloc0_8_i8.c: Regenerate.
459         * generated/minloc1_4_r8.c: Regenerate.
460         * generated/maxloc1_16_r16.c: Regenerate.
461         * generated/minloc1_16_i4.c: Regenerate.
462         * generated/maxloc1_16_i4.c: Regenerate.
463         * generated/minloc0_16_i8.c: Regenerate.
464         * generated/maxloc0_16_i8.c: Regenerate.
465         * generated/nearest_r8.c: Regenerate.
466         * generated/spacing_r16.c: Regenerate.
467         * generated/maxval_r16.c: Regenerate.
468         * generated/minloc1_8_i4.c: Regenerate.
469         * generated/minloc0_16_i16.c: Regenerate.
470         * generated/minloc0_4_r4.c: Regenerate.
471         * generated/set_exponent_r10.c: Regenerate.
472         * generated/rrspacing_r10.c: Regenerate.
473         * generated/minloc0_4_i2.c: Regenerate.
474         * generated/maxloc0_8_i1.c: Regenerate.
475         * generated/minloc0_8_i8.c: Regenerate.
476         * generated/spacing_r4.c: Regenerate.
477         * generated/minloc1_16_r10.c: Regenerate.
478         * generated/minloc0_16_i1.c: Regenerate.
479         * generated/maxloc0_16_i1.c: Regenerate.
480         * generated/maxloc1_8_r8.c: Regenerate.
481         * generated/minval_i16.c: Regenerate.
482         * generated/exponent_r10.c: Regenerate.
483         * generated/maxval_i4.c: Regenerate.
484         * generated/minval_i8.c: Regenerate.
485         * generated/maxloc1_4_i8.c: Regenerate.
486         * generated/fraction_r10.c: Regenerate.
487         * generated/maxloc0_16_i16.c: Regenerate.
488         * generated/maxloc0_8_r4.c: Regenerate.
489         * generated/rrspacing_r8.c: Regenerate.
490         * generated/minloc1_4_i16.c: Regenerate.
491         * generated/minloc0_4_r10.c: Regenerate.
492         * generated/maxloc1_4_i16.c: Regenerate.
493         * generated/minloc0_8_i16.c: Regenerate.
494         * generated/maxloc0_4_r10.c: Regenerate.
495         * generated/maxloc0_8_i16.c: Regenerate.
496         * generated/minloc1_8_r10.c: Regenerate.
497         * generated/minloc0_16_r4.c: Regenerate.
498         * generated/maxloc1_8_r10.c: Regenerate.
499         * generated/maxloc0_16_r4.c: Regenerate.
500         * generated/minloc1_16_r8.c: Regenerate.
501         * generated/minloc0_8_i1.c: Regenerate.
502         * generated/maxloc0_4_i4.c: Regenerate.
503         * generated/maxloc1_16_r8.c: Regenerate.
504         * generated/maxloc0_8_i2.c: Regenerate.
505         * generated/nearest_r16.c: Regenerate.
506         * generated/maxloc1_16_r10.c: Regenerate.
507         * generated/minloc0_16_i2.c: Regenerate.
508         * generated/minloc1_8_r8.c: Regenerate.
509         * generated/maxloc0_16_i2.c: Regenerate.
510         * generated/exponent_r4.c: Regenerate.
511         * generated/spacing_r10.c: Regenerate.
512         * generated/maxval_r10.c: Regenerate.
513         * generated/minval_i1.c: Regenerate.
514         * generated/maxloc1_4_i1.c: Regenerate.
515         * generated/minloc1_4_i8.c: Regenerate.
516         * generated/minloc0_8_r4.c: Regenerate.
517         * generated/minloc0_16_r16.c: Regenerate.
518         * generated/minloc0_4_i4.c: Regenerate.
519         * generated/minloc0_8_i2.c: Regenerate.
520         * generated/minval_r4.c: Regenerate.
521         * generated/maxloc1_4_r4.c: Regenerate.
522         * generated/maxval_r8.c: Regenerate.
523         * generated/minval_r16.c: Regenerate.
524         * generated/minloc1_4_i1.c: Regenerate.
525         * generated/minval_i2.c: Regenerate.
526         * generated/maxloc1_4_i2.c: Regenerate.
527         * generated/maxloc1_8_i8.c: Regenerate.
528         * generated/maxloc0_4_r8.c: Regenerate.
529         * generated/maxloc0_16_r16.c: Regenerate.
530         * generated/minloc1_4_r16.c: Regenerate.
531         * generated/fraction_r8.c: Regenerate.
532         * generated/maxloc1_4_r16.c: Regenerate.
533         * generated/set_exponent_r4.c: Regenerate.
534         * generated/minloc0_8_r16.c: Regenerate.
535         * generated/maxloc0_8_r16.c: Regenerate.
536         * generated/nearest_r10.c: Regenerate.
537         * generated/maxloc0_8_i4.c: Regenerate.
538         * generated/minloc1_4_r4.c: Regenerate.
539         * generated/minloc0_16_i4.c: Regenerate.
540         * generated/maxloc0_16_i4.c: Regenerate.
541         * generated/nearest_r4.c: Regenerate.
542         * generated/minloc1_16_i8.c: Regenerate.
543         * generated/maxloc1_16_i8.c: Regenerate.
544         * generated/minloc1_4_i2.c: Regenerate.
545         * generated/maxloc1_8_i1.c: Regenerate.
546         * generated/minloc0_16_r10.c: Regenerate.
547         * generated/minloc1_8_i8.c: Regenerate.
548         * generated/minloc0_4_r8.c: Regenerate.
549         * generated/minloc0_8_i4.c: Regenerate.
550         * generated/minloc1_16_i16.c: Regenerate.
551         * generated/spacing_r8.c: Regenerate.
552         * generated/maxloc1_8_r4.c: Regenerate.
553         * generated/minloc1_16_i1.c: Regenerate.
554         * generated/maxloc1_16_i1.c: Regenerate.
555         * generated/minval_r10.c: Regenerate.
556         * generated/minval_i4.c: Regenerate.
557         * generated/minloc1_8_i1.c: Regenerate.
558         * generated/maxloc1_4_i4.c: Regenerate.
559         * generated/maxloc1_8_i2.c: Regenerate.
560         * generated/maxval_i8.c: Regenerate.
561         * generated/maxloc0_16_r10.c: Regenerate.
562         * generated/rrspacing_r4.c: Regenerate.
563         * generated/minloc0_4_i16.c: Regenerate.
564         * generated/maxloc0_8_r8.c: Regenerate.
565         * generated/maxloc0_4_i16.c: Regenerate.
566         * generated/minloc1_4_r10.c: Regenerate.
567         * generated/minloc1_8_i16.c: Regenerate.
568         * generated/maxloc1_4_r10.c: Regenerate.
569         * generated/minloc0_8_r10.c: Regenerate.
570         * generated/maxloc1_8_i16.c: Regenerate.
571         * generated/maxloc0_8_r10.c: Regenerate.
572         * generated/minloc1_16_r4.c: Regenerate.
573         * generated/maxloc1_16_r4.c: Regenerate.
574         * generated/minloc0_16_r8.c: Regenerate.
575         * generated/maxloc0_16_r8.c: Regenerate.
576         * generated/maxloc0_4_i8.c: Regenerate.
577         * generated/maxloc1_16_i16.c: Regenerate.
578         * generated/minloc1_8_r4.c: Regenerate.
579         * generated/minloc1_16_i2.c: Regenerate.
580         * generated/maxloc1_16_i2.c: Regenerate.
581         * generated/maxval_i16.c: Regenerate.
582         * generated/exponent_r8.c: Regenerate.
583         * generated/minloc1_4_i4.c: Regenerate.
584         * generated/maxval_i1.c: Regenerate.
585         * generated/minloc1_8_i2.c: Regenerate.
586         * generated/minloc0_8_r8.c: Regenerate.
587         * generated/set_exponent_r16.c: Regenerate.
588         * generated/maxloc0_4_i1.c: Regenerate.
589         * generated/rrspacing_r16.c: Regenerate.
590         * generated/minloc0_4_i8.c: Regenerate.
591         * generated/maxval_r4.c: Regenerate.
592         * configure: Regenerate.
593         * config.h.in: Regenerate.
594
595 2007-04-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
596
597         PR libfortran/31395
598         * io/format.c (parse_format_list): Fix parsing.
599
600 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
601
602         PR fortran/31304
603         intrinsics/string_intrinsics.c (string_repeat): Remove.
604
605 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
606
607         PR libfortran/31052
608         * io/open.c (test_endfile): Delete this function.
609         (edit_modes): Delete call to test_endfile.
610         (new_unit): Likewise.
611         * io/io.h: Delete prototype for test_endfile.
612         * io/transfer.c (next_record_r): Remove use of test_endfile.
613         (st_read):  Add test for end file condition and adjust status. 
614
615 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
616
617         PR libfortran/31366
618         * io/transfer.c (read_block_direct): Do not generate error when reading
619         past EOF on a short record that is less than the RECL= specified.
620         
621 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
622
623         PR libfortran/31207
624         * io/unit.c (close_unit_1): If there are bytes previously written from
625         ADVANCE="no", move to the end before closing.
626
627 2007-03-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
628
629         PR libfortran/31335
630         * intrinsics/stat.c: Only provide STAT and FSTAT library routines
631         if stat() and fstat() library functions are available. When lstat()
632         is not available, use stat() instead.
633         * configure.ac: Add checks for stat, fstat and lstat.
634         * configure: Regenerate.
635         * config.h.in: Regenerate.
636
637 2007-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
638
639         PR libfortran/31052
640         * io/transfer.c (next_record_r): Do not call test_endfile if in namelist
641         mode.
642
643 2007-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
644
645         PR libfortran/31199
646         * io/io.h: Add saved_pos to gfc_unit structure.
647         * io/open.c (new_unit): Initialize saved_pos.
648         * io/transfer.c (data_transfer_init): Set max_pos to value in saved_pos.
649         (next_record_w): Fix whitespace.
650         (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
651         later use.  If not ADVANCE="no" set saved_pos to zero.
652
653 2007-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
654
655         PR libfortran/31196
656         * intrinsics/reshape_generic.c (reshape_internal):  Increment
657         correct variable.
658
659 2007-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
660
661         PR libfortran/31052
662         * file_pos.c: Update Copyright year.
663         * io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
664         Update Copyright year.
665         * io/io.h: Same.
666         * io/unix.c (is_special): Add missing type for this function.
667         Update Copyright year.
668         * io/transfer.c (next_record_r): Restore test_endfile.
669         (st_read): Fix whitespace.  Update Copyright year
670
671 2007-03-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
672
673         * configure.ac: Add missing check for gettimeofday.
674         * config.h.in: Renegerate.
675         * configure: Regenerate.
676
677 2007-03-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
678
679         PR libfortran/31052
680         * io/file_position (st_rewind): Fix comments. Remove use of
681         test_endfile. Don't seek if already at 0 position.  Use new is_special
682         function to set endfile state.
683         * io/open.c (test_endfile): Delete this function.
684         * io/io.h: Delete prototype for test_endfile.  Add prototype
685         for is_special.
686         * io/unix.c (is_special): New function. Fix whitespace.
687         * io/transfer.c (next_record_r): Remove use of test_endfile.
688
689 2007-03-16  David Edelsohn  <edelsohn@gnu.org>
690
691         * runtime/main.c: Include "config.h" first.
692
693 2007-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
694
695         PR libfortran/31099
696         * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
697
698 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
699
700         * runtime/backtrace.c: New file.
701         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
702         environment variable.
703         * runtime/compile_options.c (set_std): Add new argument.
704         * runtime/main.c (store_exe_path, full_exe_path): New functions.
705         * runtime/error.c (sys_exit): Add call to show_backtrace.
706         * libgfortran.h (options_t): New backtrace field.
707         (store_exe_path, full_exe_path, show_backtrace): New prototypes.
708         * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
709         close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
710         and getppid.
711         * Makefile.am: Add runtime/backtrace.c.
712         * fmain.c (main): Add call to store_exe_path.
713         * Makefile.in: Renegerate.
714         * config.h.in: Renegerate.
715         * configure: Regenerate.
716
717 2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
718
719         PR libfortran/31051
720         * io/transfer.c (formatted_transfer_scalar): Adjust position for pending
721         spaces when in writing mode.  Clean up some formatting.
722
723 2007-03-14  Thomas Koenig  <Thomas.Koenig@online.de>
724
725         PR libfortran/30690
726         * all.m4: Quote everything, except for m4 macros.
727         * any.m4: Likewise.
728         * count.m4: Likewise.
729         * cshift1.m4: Likewise.
730         * eoshift1.m4: Likewise.
731         * eoshift3.m4: Likewise.
732         * exponent.m4: Likewise.
733         * fraction.m4: Likewise.
734         * in_pack.m4: Likewise.
735         * in_unpack.m4: Likewise.
736         * matmul.m4: Likewise.
737         * matmull.m4: Likewise.
738         * nearest.m4: Likewise.
739         * pow.m4: Likewise.
740         * product.m4: Likewise.
741         * reshape.m4: Likewise.
742         * rrspacing.m4: Likewise.
743         * set_exponent.m4: Likewise.
744         * shape.m4: Likewise.
745         * spacing.m4: Likewise.
746         * transpose.m4: Likewise.
747
748 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
749
750         * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
751         O_RDONLY even if errno is EROFS.
752
753 2007-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
754
755         PR libfortran/31099
756         * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
757         * io/transfer.c (next_record_w): Set bytes left to record length for
758         sequential unformatted I/O.
759         (next_record_r): Ditto.
760         (read_block_direct): Fix test for exceeding bytes_left.
761
762 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
763
764         PR fortran/30947
765         * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with 
766         integer arguments.
767
768 2007-03-04  Thomas Koenig  <Thomas.Koenig@online.de>
769
770         PR libfortran/30981
771         * m4/pow_m4: Use appropriate unsigned int type for u.
772         * generated/pow_c10_i16.c: Regenerated.
773         * generated/pow_c10_i4.c: Regenerated.
774         * generated/pow_c10_i8.c: Regenerated.
775         * generated/pow_c16_i16.c: Regenerated.
776         * generated/pow_c16_i4.c: Regenerated.
777         * generated/pow_c16_i8.c: Regenerated.
778         * generated/pow_c4_i16.c: Regenerated.
779         * generated/pow_c4_i4.c: Regenerated.
780         * generated/pow_c4_i8.c: Regenerated.
781         * generated/pow_c8_i16.c: Regenerated.
782         * generated/pow_c8_i4.c: Regenerated.
783         * generated/pow_c8_i8.c: Regenerated.
784         * generated/pow_i16_i16.c: Regenerated.
785         * generated/pow_i16_i4.c: Regenerated.
786         * generated/pow_i16_i8.c: Regenerated.
787         * generated/pow_i4_i16.c: Regenerated.
788         * generated/pow_i4_i4.c: Regenerated.
789         * generated/pow_i4_i8.c: Regenerated.
790         * generated/pow_i8_i16.c: Regenerated.
791         * generated/pow_i8_i4.c: Regenerated.
792         * generated/pow_i8_i8.c: Regenerated.
793         * generated/pow_r10_i16.c: Regenerated.
794         * generated/pow_r10_i4.c: Regenerated.
795         * generated/pow_r10_i8.c: Regenerated.
796         * generated/pow_r16_i16.c: Regenerated.
797         * generated/pow_r16_i4.c: Regenerated.
798         * generated/pow_r16_i8.c: Regenerated.
799         * generated/pow_r4_i16.c: Regenerated.
800         * generated/pow_r4_i4.c: Regenerated.
801         * generated/pow_r4_i8.c: Regenerated.
802         * generated/pow_r8_i16.c: Regenerated.
803         * generated/pow_r8_i4.c: Regenerated.
804         * generated/pow_r8_i8.c: Regenerated.
805
806 2007-03-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
807
808         PR libfortran/31001
809         * intrinsics/pack_generic.c (pack_internal): Add special checks
810         for zero-sized arrays.
811
812 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
813
814         * Makefile.am: Add dummy install-pdf target.
815         * Makefile.in: Regenerate
816
817 2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
818
819         PR libfortran/30918
820         * io/listread.c (namelist_read): Eat comment line.
821
822 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
823
824         PR libfortran/30910
825         * io/write.c (output_float): Add condition of format F only for
826         special case rounding with zero precision.
827
828 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
829
830         PR libfortran/30533
831         PR libfortran/30765
832         * Makefile.am: Add $(srcdir) too all files in generated/.
833         (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
834         maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
835         maxloc0_16_i2.c.
836         (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
837         maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
838         maxloc1_16_i2.c.
839         (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
840         (i_minloc0_c):  Add minloc0_4_i1.c, minloc0_8_i1.c,
841         minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
842         minloc0_16_i2.c.
843         (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
844         minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
845         minloc1_16_i2.c.
846         (i_minval_c):  Add minval_i1.c and minval_i2.c.
847         (i_sum_c):  Add sum_i1.c and sum_i2.c.
848         (i_product_c):  Add product_i1.c and product_i2.c.
849         (i_matmul_c):  Add matmul_i1.c and matmul_i2.c.
850         (gfor_built_specific_src):  Remove $(srcdir) from target.
851         (gfor_bulit_specific2_src):  Likewise.
852         Makefile.in:  Regenerated.
853         libgfortran.h:  Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
854         Add gfc_array_i1 and gfc_array_i2.
855         * generated/matmul_i1.c: New file.
856         * generated/matmul_i2.c: New file.
857         * generated/maxloc0_16_i1.c: New file.
858         * generated/maxloc0_16_i2.c: New file.
859         * generated/maxloc0_4_i1.c: New file.
860         * generated/maxloc0_4_i2.c: New file.
861         * generated/maxloc0_8_i1.c: New file.
862         * generated/maxloc0_8_i2.c: New file.
863         * generated/maxloc1_16_i1.c: New file.
864         * generated/maxloc1_16_i2.c: New file.
865         * generated/maxloc1_4_i1.c: New file.
866         * generated/maxloc1_4_i2.c: New file.
867         * generated/maxloc1_8_i1.c: New file.
868         * generated/maxloc1_8_i2.c: New file.
869         * generated/maxval_i1.c: New file.
870         * generated/maxval_i2.c: New file.
871         * generated/minloc0_16_i1.c: New file.
872         * generated/minloc0_16_i2.c: New file.
873         * generated/minloc0_4_i1.c: New file.
874         * generated/minloc0_4_i2.c: New file.
875         * generated/minloc0_8_i1.c: New file.
876         * generated/minloc0_8_i2.c: New file.
877         * generated/minloc1_16_i1.c: New file.
878         * generated/minloc1_16_i2.c: New file.
879         * generated/minloc1_4_i1.c: New file.
880         * generated/minloc1_4_i2.c: New file.
881         * generated/minloc1_8_i1.c: New file.
882         * generated/minloc1_8_i2.c: New file.
883         * generated/minval_i1.c: New file.
884         * generated/minval_i2.c: New file.
885         * generated/product_i1.c: New file.
886         * generated/product_i2.c: New file.
887         * generated/sum_i1.c: New file.
888         * generated/sum_i2.c: New file.
889
890 2007-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
891
892         * runtime/memory.c (deallocate): Correct comment.
893
894 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
895
896         * Makefile.am:  Use $(M4) instead of m4.
897         * Makefile.in:  Regenerate.
898
899 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
900
901         * Makefile.am: Remove $(srcdir) from assorted targets
902         in maintainer mode.
903         * Makefile.in: Regenerate.
904
905 2007-02-09  Thomas Koenig  <Thomas.Koenig@online.de>
906             Tobias Burnus  <burnus@net-b.de>
907
908         PR fortran/30512
909         * m4/iparm.m4: Use HUGE-1 for most negative integer.
910         * generated/maxloc1_8_i4.c: Regenerate.
911         * generated/maxloc0_8_i8.c: Regenerate.
912         * generated/maxloc1_16_i4.c: Regenerate.
913         * generated/maxloc0_16_i8.c: Regenerate.
914         * generated/maxval_i4.c: Regenerate.
915         * generated/maxloc1_4_i8.c: Regenerate.
916         * generated/maxloc0_16_i16.c: Regenerate.
917         * generated/maxloc1_4_i16.c: Regenerate.
918         * generated/maxloc0_8_i16.c: Regenerate.
919         * generated/maxloc0_4_i4.c: Regenerate.
920         * generated/maxloc1_8_i8.c: Regenerate.
921         * generated/maxloc0_8_i4.c: Regenerate.
922         * generated/maxloc0_16_i4.c: Regenerate.
923         * generated/maxloc1_16_i8.c: Regenerate.
924         * generated/maxloc1_4_i4.c: Regenerate.
925         * generated/maxval_i8.c: Regenerate.
926         * generated/maxloc0_4_i16.c: Regenerate.
927         * generated/maxloc1_8_i16.c: Regenerate.
928         * generated/maxloc0_4_i8.c: Regenerate.
929         * generated/maxloc1_16_i16.c: Regenerate.
930         * generated/maxval_i16.c: Regenerate.
931
932 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
933
934         PR fortran/30611
935         * intrinsics/string_intrinsics.c (string_repeat): Don't check
936         if ncopies is negative.
937
938 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
939
940         PR libfortran/30007
941         * libgfortran.h: Do not prefix symbol name with
942         __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
943
944 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
945
946         PR fortran/30284
947         PR fortran/30626
948         * io/transfer.c (init_loop_spec, next_array_record): Change to
949         lbound rather than unity base.
950
951 2007-01-21  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
952
953         * runtime/error.c: Include sys/time.h before sys/resource.h.
954
955 2007-01-21  Thomas Koenig  <Thomas.Koenig@online.de>
956
957         PR libfortran/30525
958         * intrinsics/string_intrinsics.c(compare_string):  Make
959         sure that comparisons are done unsigned.
960
961 2007-01-21  Tobias Burnus  <burnus@net-b.de>
962
963         PR libfortran/30015
964         * intrinsics/date_and_time.c (date_and_time): Fix case where time
965           can go backwards.
966         * configure.ac: Remove AC_TRY_RUN test for timezone in
967           gettimeofday.
968         * acinclude.m4: Ditto.
969         * configure: Regenerate.
970         * config.h.in: Regenerate.
971
972 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
973
974         * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
975         * m4/specific2.m4: Likewise.
976         * m4/specific.m4: Likewise.
977         * intrinsics/f2c_specifics.F90: Likewise.
978         * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
979         * intrinsics/selected_real_kind.f90: Likewise.
980         * intrinsics/dprod_r8.f90: Likewise.
981         * Makefile.am: Add -fallow-leading-underscore to the
982         gfor_specific_src files, as well as selected_real_kind.F90
983         and selected_int_kind.F90
984         * Makefile.in: Regenerate.
985         * generated/_sqrt_c8.F90: Regenerate.
986         * generated/_sign_r16.F90: Regenerate.
987         * generated/_log_c16.F90: Regenerate.
988         * generated/_sin_c10.F90: Regenerate.
989         * generated/_tanh_r4.F90: Regenerate.
990         * generated/_tanh_r8.F90: Regenerate.
991         * generated/_log10_r10.F90: Regenerate.
992         * generated/_aimag_c4.F90: Regenerate.
993         * generated/_sign_r4.F90: Regenerate.
994         * generated/_aimag_c8.F90: Regenerate.
995         * generated/_sign_r8.F90: Regenerate.
996         * generated/_mod_i4.F90: Regenerate.
997         * generated/_cos_r16.F90: Regenerate.
998         * generated/_aint_r10.F90: Regenerate.
999         * generated/_mod_i8.F90: Regenerate.
1000         * generated/_abs_i16.F90: Regenerate.
1001         * generated/_sqrt_c10.F90: Regenerate.
1002         * generated/_atan2_r4.F90: Regenerate.
1003         * generated/_cos_c4.F90: Regenerate.
1004         * generated/_atan_r16.F90: Regenerate.
1005         * generated/_tanh_r10.F90: Regenerate.
1006         * generated/_atan2_r8.F90: Regenerate.
1007         * generated/_cos_c8.F90: Regenerate.
1008         * generated/_exp_r4.F90: Regenerate.
1009         * generated/_log_r10.F90: Regenerate.
1010         * generated/_exp_r8.F90: Regenerate.
1011         * generated/_abs_r4.F90: Regenerate.
1012         * generated/_abs_r8.F90: Regenerate.
1013         * generated/_sin_r16.F90: Regenerate.
1014         * generated/_tan_r4.F90: Regenerate.
1015         * generated/_tan_r8.F90: Regenerate.
1016         * generated/_sign_i4.F90: Regenerate.
1017         * generated/_sign_i8.F90: Regenerate.
1018         * generated/_exp_c16.F90: Regenerate.
1019         * generated/_sqrt_r16.F90: Regenerate.
1020         * generated/_conjg_c4.F90: Regenerate.
1021         * generated/_conjg_c8.F90: Regenerate.
1022         * generated/_dim_r16.F90: Regenerate.
1023         * generated/_mod_r10.F90: Regenerate.
1024         * generated/_abs_c10.F90: Regenerate.
1025         * generated/_conjg_c16.F90: Regenerate.
1026         * generated/_tan_r16.F90: Regenerate.
1027         * generated/_asinh_r10.F90: Regenerate.
1028         * generated/_abs_i4.F90: Regenerate.
1029         * generated/_abs_i8.F90: Regenerate.
1030         * generated/_acos_r10.F90: Regenerate.
1031         * generated/_exp_r10.F90: Regenerate.
1032         * generated/_acosh_r16.F90: Regenerate.
1033         * generated/_atan2_r16.F90: Regenerate.
1034         * generated/_cos_c16.F90: Regenerate.
1035         * generated/_mod_i16.F90: Regenerate.
1036         * generated/_asin_r4.F90: Regenerate.
1037         * generated/_anint_r16.F90: Regenerate.
1038         * generated/_asin_r8.F90: Regenerate.
1039         * generated/_aimag_c10.F90: Regenerate.
1040         * generated/_exp_c4.F90: Regenerate.
1041         * generated/_sinh_r10.F90: Regenerate.
1042         * generated/_exp_c8.F90: Regenerate.
1043         * generated/_log10_r4.F90: Regenerate.
1044         * generated/_log10_r8.F90: Regenerate.
1045         * generated/_abs_c4.F90: Regenerate.
1046         * generated/_abs_r16.F90: Regenerate.
1047         * generated/_abs_c8.F90: Regenerate.
1048         * generated/_asin_r10.F90: Regenerate.
1049         * generated/_sign_r10.F90: Regenerate.
1050         * generated/_atanh_r16.F90: Regenerate.
1051         * generated/_log_c10.F90: Regenerate.
1052         * generated/_cosh_r16.F90: Regenerate.
1053         * generated/_sin_c16.F90: Regenerate.
1054         * generated/_cos_r10.F90: Regenerate.
1055         * generated/_log10_r16.F90: Regenerate.
1056         * generated/_aint_r16.F90: Regenerate.
1057         * generated/_acos_r4.F90: Regenerate.
1058         * generated/_acos_r8.F90: Regenerate.
1059         * generated/_sqrt_c16.F90: Regenerate.
1060         * generated/_acosh_r4.F90: Regenerate.
1061         * generated/_atan_r10.F90: Regenerate.
1062         * generated/_acosh_r8.F90: Regenerate.
1063         * generated/_sign_i16.F90: Regenerate.
1064         * generated/_tanh_r16.F90: Regenerate.
1065         * generated/_log_r4.F90: Regenerate.
1066         * generated/_log_r8.F90: Regenerate.
1067         * generated/_sin_r4.F90: Regenerate.
1068         * generated/_sin_r8.F90: Regenerate.
1069         * generated/_log_r16.F90: Regenerate.
1070         * generated/_sin_r10.F90: Regenerate.
1071         * generated/_sqrt_r4.F90: Regenerate.
1072         * generated/_exp_c10.F90: Regenerate.
1073         * generated/_sqrt_r8.F90: Regenerate.
1074         * generated/_asinh_r4.F90: Regenerate.
1075         * generated/_sqrt_r10.F90: Regenerate.
1076         * generated/_asinh_r8.F90: Regenerate.
1077         * generated/_dim_r4.F90: Regenerate.
1078         * generated/_dim_r8.F90: Regenerate.
1079         * generated/_dim_r10.F90: Regenerate.
1080         * generated/_cosh_r4.F90: Regenerate.
1081         * generated/_conjg_c10.F90: Regenerate.
1082         * generated/_tan_r10.F90: Regenerate.
1083         * generated/_cosh_r8.F90: Regenerate.
1084         * generated/_mod_r16.F90: Regenerate.
1085         * generated/_abs_c16.F90: Regenerate.
1086         * generated/_cos_r4.F90: Regenerate.
1087         * generated/_asinh_r16.F90: Regenerate.
1088         * generated/_cos_r8.F90: Regenerate.
1089         * generated/_atanh_r4.F90: Regenerate.
1090         * generated/_atanh_r8.F90: Regenerate.
1091         * generated/_acos_r16.F90: Regenerate.
1092         * generated/_anint_r4.F90: Regenerate.
1093         * generated/_acosh_r10.F90: Regenerate.
1094         * generated/_anint_r8.F90: Regenerate.
1095         * generated/_exp_r16.F90: Regenerate.
1096         * generated/_mod_r4.F90: Regenerate.
1097         * generated/_cos_c10.F90: Regenerate.
1098         * generated/_atan2_r10.F90: Regenerate.
1099         * generated/_dim_i16.F90: Regenerate.
1100         * generated/_mod_r8.F90: Regenerate.
1101         * generated/_anint_r10.F90: Regenerate.
1102         * generated/_aint_r4.F90: Regenerate.
1103         * generated/_aint_r8.F90: Regenerate.
1104         * generated/_dim_i4.F90: Regenerate.
1105         * generated/_sinh_r4.F90: Regenerate.
1106         * generated/_log_c4.F90: Regenerate.
1107         * generated/_dim_i8.F90: Regenerate.
1108         * generated/_sinh_r8.F90: Regenerate.
1109         * generated/_log_c8.F90: Regenerate.
1110         * generated/_sin_c4.F90: Regenerate.
1111         * generated/_sin_c8.F90: Regenerate.
1112         * generated/misc_specifics.F90: Regenerate.
1113         * generated/_abs_r10.F90: Regenerate.
1114         * generated/_aimag_c16.F90: Regenerate.
1115         * generated/_atan_r4.F90: Regenerate.
1116         * generated/_sinh_r16.F90: Regenerate.
1117         * generated/_atan_r8.F90: Regenerate.
1118         * generated/_atanh_r10.F90: Regenerate.
1119         * generated/_cosh_r10.F90: Regenerate.
1120         * generated/_sqrt_c4.F90: Regenerate.
1121         * generated/_asin_r16.F90: Regenerate.
1122
1123 2007-01-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1124
1125         PR libfortran/26893
1126         * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
1127         * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
1128         * configure: Regenerate.
1129         * config.h.in: Regenerate because it was forgottent in the last
1130         commit.
1131
1132 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1133             Tobias Burnus  <burnus@net-b.de>
1134
1135         PR libfortran/29649
1136         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
1137         environment variable.
1138         * runtime/compile_options.c (set_std): Add new argument.
1139         * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
1140         functionality.
1141         * libgfortran.h (options_t): New dump_core and backtrace members.
1142         (sys_exit): Move prototype.
1143         * io/unix.c (sys_exit): Move to runtime/error.c.
1144         * configure.ac: Add check for getrlimit.
1145         * configure: Regenerate.
1146
1147 2007-01-17  Tom Tromey  <tromey@redhat.com>
1148
1149         PR libfortran/27107:
1150         * aclocal.m4, configure, Makefile.in: Rebuilt.
1151         * configure.ac: Enable automake dependency tracking.  Update
1152         minimum automake version.
1153
1154 2007-01-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1155
1156         PR libfortran/27107
1157         * runtime/environ.c: Don't include io/io.h.
1158         * runtime/string.c: Don't include io/io.h.
1159         (compare0): Add cast to avoid warning.
1160         * runtime/error.c: Don't include io/io.h.
1161         (st_printf): Move to io/unix.c.
1162         * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
1163         * intrinsics/fget.c: Likewise.
1164         * intrinsics/ftell.c: Likewise.
1165         * intrinsics/tty.c: Likewise.
1166         * libgfortran.h (DEFAULT_RECL, notification_std,
1167         get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
1168         DEFAULT_TEMPDIR): New declarations.
1169         * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
1170         IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
1171         Move to libgfortran.h.
1172         * io/unix.c: Add io/unix.h content.
1173         (st_printf): New function.
1174         * io/intrinsics.c: New file.
1175         * io/unix.h: Remove, contents moved into unix.c.
1176         * libtool-version: Update library version to 3.0.0.
1177         * configure.ac: Update library version to 0.3.
1178         * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
1179         intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
1180         * Makefile.in: Regenerate.
1181         * configure: Regenerate.
1182
1183 2007-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1184
1185         PR libfortran/30435
1186         * io/list_read.c (finish_separator): Don't call next_record.
1187         (list_formatted_read_scalar): Clean up some comments and whitespace.
1188         (nml_read_obj): Whitespace fix.
1189
1190 2007-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1191
1192         PR libfortran/30162
1193         * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
1194         s->file_length == -1.
1195         (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
1196         (fd_seek): If not seekable, just return success.
1197         (fd_truncate): If not seekable, no need to truncate.  Return failure if
1198         seek fails and the stream is not a pipe.
1199         (fd_to_stream): Make test for non-seekable file more robust.
1200
1201 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
1202
1203         * ChangeLog: Copied to ...
1204         * ChangeLog-2006: here.