OSDN Git Service

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