OSDN Git Service

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