OSDN Git Service

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