OSDN Git Service

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