OSDN Git Service

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