OSDN Git Service

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