OSDN Git Service

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