* config/m32c/predicates.md (m32c_psi_scale): New.
[official-gcc.git] / libgfortran / ChangeLog
blob2e9914e40ceb7e25251a25bdf87e1bde76b34f1e
1 2005-12-13  Richard Sandiford  <richard@codesourcery.com>
2             Victor Leikehman  <LEI@il.ibm.com>
4         * m4/matmul.m4: Use a different order in the special case of a
5         transposed first argument.
6         * generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c,
7         * generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c,
8         * generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c
9         * generated/matmul_r10.c, generated/matmul_r16.c: Regenerated.
11 2005-12-10  Janne Blomqvist  <jb@gcc.gnu.org>
13         * Makefile.am: Enable loop unrolling for matmul.
14         * configure: Regenerated.
15         * Makefile.in: Regenerated.
16         * aclocal.m4: Regenerated.
18 2005-12-10  Thomas Koenig  <Thomas.Koenig@online.de>
20         PR fortran/23815
21         * io/file_pos.c (unformatted_backspace):  If flags.convert
22         does not equal CONVERT_NATIVE, reverse the record marker.
23         * io/open.c:  Add convert_opt[].
24         (st_open):  If no convert option is given, set CONVERT_NATIVE.
25         If CONVERT_BIG or CONVERT_LITTLE are given, set flags.convert to
26         CONVERT_NATIVE or CONVERT_SWAP (depending on wether we have
27         a big- or little-endian system).
28         * io/transfer.c (unformatted_read):  Remove unused attribute
29         from arguments.
30         If we need to reverse
31         bytes, break up large transfers into a loop.  Split complex
32         numbers into its two parts.
33         (unformatted_write):  Likewise.
34         (us_read):  If flags.convert does not equal CONVERT_NATIVE,
35         reverse the record marker.
36         (next_record_w): Likewise.
37         (reverse_memcpy):  New function.
38         * io/inquire.c (inquire_via_unit):  Implement convert.
39         * io/io.h (top level):  Add enum unit_convert.
40         Add convert to st_parameter_open and st_parameter_inquire.
41         Define IOPARM_OPEN_HAS_CONVERT and IOPARM_INQUIRE_HAS_CONVERT.
42         Increase padding for st_parameter_dt.
43         Declare reverse_memcpy().
45 2005-12-09  Jakub Jelinek  <jakub@redhat.com>
47         PR libfortran/24991
48         * acinclude.m4: Include acx.m4 and no-executables.m4.
49         * configure.ac: Add GCC_TOPLEVEL_SUBDIRS.
50         * configure: Rebuilt.
51         * Makefile.am (AM_CPPFLAGS): Use $(host_subdir) in build dir
52         path.
53         * Makefile.in: Rebuilt.
55 2005-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
57         PR libgfortran/25039
58         * io/io.h: Create a new flag sf_read_comma to control comma
59         separators in numeric reads.
60         * io/transfer.c (formatted_transfer_scalar): Initialize the flag.
61         (read_sf): Check for commas coming in and if the flag is set,
62         shortcut the read.
63         * io/read.c (read_a) (read_x): Clear the flag for character reads and
64         reset it after the reads.
66 2005-12-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
68         * io/format.c: Removing unused code.
69         * intrinsics/random.c: Likewise.
71 2005-12-02  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
73         PR libfortran/25116
74         * io/transfer.c (data_transfer_init): Don't set the default for
75         namelist I/O on preconnected files to UNFORMATTED.
77 2005-11-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
79         * libgfortran.h (ILP32 typedefs): Define _UINT8_T, _UINT32_T and
80         _UINT64_T on Solaris.
82 2005-11-28  Steven G. Kargl  <kargls@comcast.net>
84         PR libgfortran/25149
85         * intrinsics/abort.c: Add external abort_ to allow linking when 
86         invoking -std=f95 in testsuite.
88 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
90         PR libfortran/24991
91         * acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to...
92         (LIBGFOR_GTHREAD_WEAK): ... this.  Define SUPPORTS_WEAK rather
93         than HAVE_PRAGMA_WEAK.  Define GTHREAD_USE_WEAK to 0 on hosts
94         that shouldn't use weak in gthr.h.
95         * configure.ac: Use LIBGFOR_GTHREAD_WEAK instead of
96         LIBGFOR_CHECK_PRAGMA_WEAK.
97         * config.h.in: Regenerated.
98         * configure: Regenerated.
99         * io/io.h (SUPPORTS_WEAK): Don't define here.
101         * intrinsics/ftell.c (ftell, FTELL_SUB): Add unlock_unit call.
102         * intrinsics/fget.c (fgetc, fputs): Likewise.
103         * intrinsics/tty.c (ttynam): Likewise.
105 2005-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
107         PR libgfortran/25109
108         * io/unit.c (init_units): Set default flag to BLANK_NULL per
109         requirement of F95 standard.  Set PAD_YES for stdin.
111 2005-11-27  David Edelsohn  <edelsohn@gnu.org>
113         * intrinsics/random.c: Include config.h
114         * io/size_from_kind.c: Include config.h and libgfortran.h
115         * io/io.h: Revert 2005-11-21 change.
117 2005-11-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
119         * io/write.c (namelist_write): Correct type in previous
120         commit.
122 2005-11-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
124         PR libfortran/24919
125         * io/list_read.c (eat_separator, finish_separator,
126         read_character): Handle CRLF separators correctly during reads.
127         (nml_query): Use the HAVE_CRLF macro to print adequate newlines.
128         * io/io.h (st_parameter_dt): Add comment about the possible
129         values for sf_seen_eor.
130         * io/unix.c (tempfile, regular_file): HAVE_CRLF doesn't imply
131         that O_BINARY is defined, so we add that condition.
132         (stream_at_bof): Fix typo in comment.
133         * io/transfer.c (read_sf): Handle correctly CRLF, setting
134         sf_seen_eor value to 2 instead of 1.
135         (formatted_transfer_scalar): Use the sf_seen_eor value to
136         handle CRLF the right way.
137         * io/write.c (nml_write_obj, namelist_write): Use CRLF as newline
138         when HAVE_CRLF is defined.
140 2005-11-27  Janne Blomqvist  <jb@gcc.gnu.org>
142         * m4/ifunction.m4: Add const restrict to function arguments.
143         * m4/iforeach.m4: Likewise.
144         * m4/eoshift1.m4: Likewise.
145         * m4/eoshift3.m4: Likewise.
146         * m4/dotprod.m4: Likewise.
147         * m4/dotprodc.m4: Likewise.
148         * m4/dotprodl.m4: Likewise.
149         * m4/shape.m4: Likewise.
150         * m4/cshift1.m4: Likewise.
151         * m4/reshape.m4: Likewise.
152         * m4/transpose.m4: Likewise.
153         * generated/eoshift*: Regenerated
154         * generated/dotprod*: Likewise.
155         * generated/shape*: Likewise.
156         * generated/cshift1*: Likewise.
157         * generated/reshape*: Likewise.
158         * generated/transpose*: Likewise.
160 2005-11-26  Richard Henderson  <rth@redhat.com>
162         * io/list_read.c (nml_parse_qualifier): Use ssize_t instead of int
163         in dtp->u.p.value.
165 2005-11-26  Janne Blomqvist  <jb@gcc.gnu.org>
167         PR libgfortran/24945
168         * io/open.c (edit_modes): Check for STATUS_UNKNOWN flag.
169         
170 2005-11-25  Richard Henderson  <rth@redhat.com>
172         * io/list_read.c (nml_parse_qualifier): Use memcpy to extract
173         values from dtp->u.p.value.
174         * io/io.h (struct st_parameter_dt): Change reversion_flag, first_item,
175         seen_dollar, sf_seen_eor, eor_condition, no_leading_blank, char_flag,
176         input_complete, at_eol, comma_flag, namelist_mode, nml_read_error to
177         single-bit fields.  Move value to where it'll be at least pointer
178         aligned.
180 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
182         * io/open.c (new_unit): Use the right unit number when checking
183         for stdin, stdout, stderr.
185 2005-11-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
187         PR libgfortran/24794
188         * io/list_read.c (read_character): Add auto completion on short
189         namelist reads.
191 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
193         * io/io.h (_LARGE_FILES): Undefine for AIX.
194         (_LARGE_FILE_API): Define for AIX.
196 2005-11-21  Jakub Jelinek  <jakub@redhat.com>
198         PR fortran/24774
199         PR fortran/14943
200         PR fortran/21647
201         * Makefile.am (AM_CPPFLAGS): Add gcc directories as -I paths,
202         add -D_GNU_SOURCE.
203         * Makefile.in: Regenerated.
204         * acinclude.m4 (LIBGFOR_CHECK_SYNC_FETCH_AND_ADD,
205         LIBGFOR_CHECK_GTHR_DEFAULT, LIBGFOR_CHECK_PRAGMA_WEAK): New macros.
206         * configure.ac: Add them.
207         * configure: Rebuilt.
208         * config.h.in: Rebuilt.
209         * libtool-version: Bump libgfortran.so SONAME to libgfortran.so.1.
210         * libgfortran.h (library_start, show_locus, internal_error,
211         generate_error, find_option): Add st_parameter_common * argument.
212         (library_end): Change into a dummy macro.
213         * io/io.h: Include gthr.h.
214         (SUPPORTS_WEAK): Define if HAVE_PRAGMA_WEAK.
215         (CHARACTER): Remove define.
216         (st_parameter, global_t): Remove typedef.
217         (ioparm, g, ionml, current_unit): Remove variables.
218         (init_error_stream): Remove prototype.
219         (CHARACTER1, CHARACTER2): Define.
220         (st_parameter_common, st_parameter_open, st_parameter_close,
221         st_parameter_filepos, st_parameter_inquire, st_parameter_dt): New
222         typedefs.
223         (IOPARM_LIBRETURN_MASK, IOPARM_LIBRETURN_OK, IOPARM_LIBRETURN_ERROR,
224         IOPARM_LIBRETURN_END, IOPARM_LIBRETURN_EOR, IOPARM_ERR, IOPARM_END,
225         IOPARM_EOR, IOPARM_HAS_IOSTAT, IOPARM_HAS_IOMSG, IOPARM_COMMON_MASK,
226         IOPARM_OPEN_HAS_RECL_IN, IOPARM_OPEN_HAS_FILE, IOPARM_OPEN_HAS_STATUS,
227         IOPARM_OPEN_HAS_ACCESS, IOPARM_OPEN_HAS_FORM, IOPARM_OPEN_HAS_BLANK,
228         IOPARM_OPEN_HAS_POSITION, IOPARM_OPEN_HAS_ACTION,
229         IOPARM_OPEN_HAS_DELIM, IOPARM_OPEN_HAS_PAD, IOPARM_CLOSE_HAS_STATUS,
230         IOPARM_INQUIRE_HAS_EXIST, IOPARM_INQUIRE_HAS_OPENED,
231         IOPARM_INQUIRE_HAS_NUMBER, IOPARM_INQUIRE_HAS_NAMED,
232         IOPARM_INQUIRE_HAS_NEXTREC, IOPARM_INQUIRE_HAS_RECL_OUT,
233         IOPARM_INQUIRE_HAS_FILE, IOPARM_INQUIRE_HAS_ACCESS,
234         IOPARM_INQUIRE_HAS_FORM, IOPARM_INQUIRE_HAS_BLANK,
235         IOPARM_INQUIRE_HAS_POSITION, IOPARM_INQUIRE_HAS_ACTION,
236         IOPARM_INQUIRE_HAS_DELIM, IOPARM_INQUIRE_HAS_PAD,
237         IOPARM_INQUIRE_HAS_NAME, IOPARM_INQUIRE_HAS_SEQUENTIAL,
238         IOPARM_INQUIRE_HAS_DIRECT, IOPARM_INQUIRE_HAS_FORMATTED,
239         IOPARM_INQUIRE_HAS_UNFORMATTED, IOPARM_INQUIRE_HAS_READ,
240         IOPARM_INQUIRE_HAS_WRITE, IOPARM_INQUIRE_HAS_READWRITE,
241         IOPARM_DT_LIST_FORMAT, IOPARM_DT_NAMELIST_READ_MODE,
242         IOPARM_DT_HAS_REC, IOPARM_DT_HAS_SIZE, IOPARM_DT_HAS_IOLENGTH,
243         IOPARM_DT_HAS_FORMAT, IOPARM_DT_HAS_ADVANCE,
244         IOPARM_DT_HAS_INTERNAL_UNIT, IOPARM_DT_HAS_NAMELIST_NAME,
245         IOPARM_DT_IONML_SET): Define.
246         (gfc_unit): Add lock, waiting and close fields.  Change file
247         from flexible array member into pointer to char.
248         (open_external): Add st_parameter_open * argument.
249         (find_file, file_exists): Add file and file_len arguments.
250         (flush_all_units): New prototype.
251         (max_offset, unit_root, unit_lock): New variable.
252         (is_internal_unit, is_array_io, next_array_record,
253         parse_format, next_format, unget_format, format_error,
254         read_block, write_block, next_record, convert_real,
255         read_a, read_f, read_l, read_x, read_radix, read_decimal,
256         list_formatted_read, finish_list_read, namelist_read,
257         namelist_write, write_a, write_b, write_d, write_e, write_en,
258         write_es, write_f, write_i, write_l, write_o, write_x, write_z,
259         list_formatted_write, get_unit): Add st_parameter_dt * argument.
260         (insert_unit): Remove prototype.
261         (find_or_create_unit, unlock_unit): New prototype.
262         (new_unit): Return gfc_unit *.  Add st_parameter_open *
263         and gfc_unit * arguments.
264         (free_fnodes): Remove prototype.
265         (free_format_data): New prototype.
266         (scratch): Remove.
267         (init_at_eol): Remove prototype.
268         (free_ionml): New prototype.
269         (inc_waiting_locked, predec_waiting_locked, dec_waiting_unlocked):
270         New inline functions.
271         * io/unit.c (max_offset, unit_root, unit_lock): New variables.
272         (insert): Adjust os_error caller.
273         (insert_unit): Made static.  Allocate memory here, initialize
274         lock and after inserting it return it, locked.
275         (delete_unit): Adjust for deletion of g.
276         (find_unit_1): New function.
277         (find_unit): Use it.
278         (find_or_create_unit): New function.
279         (get_unit): Add dtp argument, change meaning of the int argument
280         as creation request flag.  Adjust for different st_* calling
281         conventions, lock internal unit's lock before returning it
282         and removal of g.  Call find_unit_1 instead of find_unit.
283         (is_internal_unit, is_array_io): Add dtp argument, adjust for
284         removal of most of global variables.
285         (init_units): Initialize unit_lock.  Adjust insert_unit callers
286         and adjust for g removal.
287         (close_unit_1): New function.
288         (close_unit): Use it.
289         (unlock_unit): New function.
290         (close_units): Lock unit_lock, use close_unit_1 rather than
291         close_unit.
292         * io/close.c (st_close): Add clp argument.  Adjust for new
293         st_* calling conventions and internal function API changes.
294         * io/file_pos.c (st_backspace, st_endfile, st_rewind, st_flush):
295         Add fpp argument.  Adjust for new st_* calling conventions and
296         internal function API changes.
297         (formatted_backspace, unformatted_backspace): Likewise.  Add
298         u argument.
299         * io/open.c (edit_modes, st_open): Add opp argument.  Adjust for
300         new st_* calling conventions and internal function API changes.
301         (already_open): Likewise.  If not HAVE_UNLINK_OPEN_FILE, unlink
302         scratch file.  Instead of calling close_unit just call sclose,
303         free u->file if any and clear a few u fields before calling
304         new_unit.
305         (new_unit): Return gfc_unit *.  Add opp and u arguments.
306         Adjust for new st_* calling conventions and internal function
307         API changes.  Don't allocate unit here, rather than work with
308         already created unit u already locked on entry.  In case
309         of failure, close_unit it.
310         * io/unix.c: Include unix.h.
311         (BUFFER_SIZE, unix_stream): Moved to unix.h.
312         (unit_to_fd): Add unlock_unit call.
313         (tempfile): Add opp argument, use its fields rather than ioparm.
314         (regular_file): Likewise.
315         (open_external): Likewise.  Only unlink file if fd >= 0.
316         (init_error_stream): Add error argument, set structure it points
317         to rather than filling static variable and returning its address.
318         (FIND_FILE0_DECL, FIND_FILE0_ARGS): Define.
319         (find_file0): Use them.  Don't crash if u->s == NULL.
320         (find_file): Add file and file_len arguments, use them instead
321         of ioparm.  Add locking.  Pass either an array of 2 struct stat
322         or file and file_len pair to find_file0.
323         (flush_all_units_1, flush_all_units): New functions.
324         (file_exists): Add file and file_len arguments, use them instead
325         of ioparm.
326         * io/unix.h: New file.
327         * io/lock.c (ioparm, g, ionml): Remove variables.
328         (library_start): Add cmp argument, adjust for new st_* calling
329         conventions.
330         (library_end): Remove.
331         (free_ionml): New function.
332         * io/inquire.c (inquire_via_unit, inquire_via_filename,
333         st_inquire): Add iqp argument, adjust for new st_* calling
334         conventions and internal function API changes.
335         * io/format.c (FARRAY_SIZE): Decrease to 64.
336         (fnode_array, format_data): New typedefs.
337         (avail, array, format_string, string, error, saved_token, value,
338         format_string_len, reversion_ok, saved_format): Remove variables.
339         (colon_node): Add const.
340         (free_fnode, free_fnodes): Remove.
341         (free_format_data): New function.
342         (next_char, unget_char, get_fnode, format_lex, parse_format_list,
343         format_error, parse_format, revert, unget_format, next_test): Add
344         fmt or dtp arguments, pass it all around, adjust for internal
345         function API changes and adjust for removal of global variables.
346         (next_format): Likewise.  Constify return type.
347         (next_format0): Constify return type.
348         * io/transfer.c (current_unit, sf_seen_eor, eor_condition, max_pos,
349         skips, pending_spaces, scratch, line_buffer, advance_status,
350         transfer): Remove variables.
351         (transfer_integer, transfer_real, transfer_logical,
352         transfer_character, transfer_complex, transfer_array, current_mode,
353         read_sf, read_block, read_block_direct, write_block,
354         write_block_direct, unformatted_read, unformatted_write,
355         type_name, write_constant_string, require_type,
356         formatted_transfer_scalar, us_read, us_write, pre_position,
357         data_transfer_init, next_record_r, next_record_w, next_record,
358         finalize_transfer, iolength_transfer, iolength_transfer_init,
359         st_iolength, st_iolength_done, st_read, st_read_done, st_write,
360         st_write_done, st_set_nml_var, st_set_nml_var_dim,
361         next_array_record): Add dtp argument, pass it all around, adjust for
362         internal function API changes and removal of global variables.
363         * io/list_read.c (repeat_count, saved_length, saved_used,
364         input_complete, at_eol, comma_flag, last_char, saved_string,
365         saved_type, namelist_mode, nml_read_error, value, parse_err_msg,
366         nml_err_msg, prev_nl): Remove variables.
367         (push_char, free_saved, next_char, unget_char, eat_spaces,
368         eat_separator, finish_separator, nml_bad_return, convert_integer,
369         parse_repeat, read_logical, read_integer, read_character,
370         parse_real, read_complex, read_real, check_type,
371         list_formatted_read_scalar, list_formatted_read, finish_list_read,
372         find_nml_node, nml_untouch_nodes, nml_match_name, nml_query,
373         namelist_read): Add dtp argument, pass it all around, adjust for
374         internal function API changes and removal of global variables.
375         (nml_parse_qualifier): Likewise.  Add parse_err_msg argument.
376         (nml_read_obj): Likewise.  Add pprev_nl, nml_err_msg, clow and
377         chigh arguments.
378         (nml_get_obj_data): Likewise.  Add pprev_nl and nml_err_msg
379         arguments.
380         (init_at_eol): Removed.
381         * io/read.c (convert_real, read_l, read_a, next_char, read_decimal,
382         read_radix, read_f, read_x): Add dtp argument, pass it all around,
383         adjust for internal function API changes and removal of global
384         variables.
385         (set_integer): Adjust internal_error caller.
386         * io/write.c (no_leading_blank, nml_delim): Remove variables.
387         (write_a, calculate_sign, calculate_G_format, output_float,
388         write_l, write_float, write_int, write_decimal, write_i, write_b,
389         write_o, write_z, write_d, write_e, write_f, write_en, write_es,
390         write_x, write_char, write_logical, write_integer, write_character,
391         write_real, write_complex, write_separator,
392         list_formatted_write_scalar, list_formatted_write, nml_write_obj,
393         namelist_write): Add dtp argument, pass it all around, adjust for
394         internal function API changes and removal of global variables.
395         (extract_int, extract_uint, extract_real): Adjust internal_error
396         callers.
397         * runtime/fpu.c (_GNU_SOURCE): Don't define here.
398         * runtime/error.c: Include ../io/unix.h.
399         (filename, line): Remove variables.
400         (st_printf): Pass address of a local variable to init_error_stream.
401         (show_locus): Add cmp argument.  Use fields it points to rather than
402         filename and line variables.
403         (os_error, runtime_error): Remove show_locus calls.
404         (internal_error): Add cmp argument.  Pass it down to show_locus.
405         (generate_error): Likewise.  Use flags bitmask instead of non-NULL
406         check for iostat and iomsg parameter presence, adjust for st_*
407         calling convention changes.
408         * runtime/stop.c (stop_numeric, stop_string): Remove show_locus
409         calls.
410         * runtime/pause.c (pause_numeric, pause_string): Likewise.
411         * runtime/string.c: Include ../io/io.h.
412         (find_option): Add cmp argument.  Pass it down to generate_error.
413         * intrinsics/flush.c (recursive_flush): Remove.
414         (flush_i4, flush_i8): Use flush_all_units.  Add unlock_unit
415         call.
416         * intrinsics/rand.c: Include ../io/io.h.
417         (rand_seed_lock): New variable.
418         (srand, irand): Add locking.
419         (init): New constructor function.
420         * intrinsics/random.c: Include ../io/io.h.
421         (random_lock): New variable.
422         (random_r4, random_r8, arandom_r4, arandom_r8): Add locking.
423         (random_seed): Likewise.  open failed if fd < 0.  Set i correctly.
424         (init): New constructor function.
425         * intrinsics/system_clock.c (tp0, t0): Remove.
426         (system_clock_4, system_clock_8): Don't subtract tp0/t0 from current
427         time, use just integer arithmetics.
428         * intrinsics/tty.c (isatty_l4, isatty_l8, ttynam_sub): Add
429         unlock_unit calls.
431 2005-11-20  Richard Henderson  <rth@redhat.com>
433         * Makefile.am: Revert 2005-11-14 change.  Enable -free-vectorize
434         via gmake per-target variables.
435         * Makefile.in, aclocal.m4: Regenerate.
437 2005-11-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
439         * configure.ac: Add "-I ." to the AM_FCFLAGS.
440         * configure: Regenerate.
442 2005-11-18  Hans-Peter Nilsson  <hp@axis.com>
444         * config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
445         nonzero FE_ALL_EXCEPT.
447 2005-11-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
449         PR fortran/24892
450         * io/io.h (unit_access): Add ACCESS_APPEND.
451         * io/open.c (access_opt): Add APPEND value for ACCESS keyword.
452         (st_open): Use that new value to set the POSITION accordingly.
454 2005-11-14  Janne Blomqvist  <jb@gcc.gnu.org>
456         PR fortran/21468
457         * Makefile.am: Add -ftree-vectorize for compiling matmul.
458         * m4/matmul.m4: Add const and restrict to type declarations as
459         appropriate.
460         * m4/matmull.m4: Likewise.
461         * Makefile.in: Regenerated.
462         * generated/matmul_*.c: Likewise.
463         
464 2005-11-13  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
466         * intrinsics/fget.c: New file.
467         * intrinsics/ftell.c: New file.
468         * io/unix.c (stream_offset): New function.
469         * io/io.h: Add prototype for stream_offset.
470         * Makefile.am: Add intrinsics/fget.c and intrinsics/ftell.c.
471         * Makefile.in: Regenerate.
473 2005-11-12  Steven G. Kargl  <kargls@comcast.net>
475         PR libgfortran/24787
476         *  intrinsics/string_intrinsics.c (string_scan): Off by one; Fix typos
477         in nearby comment.
479 2005-11-10  Andreas Jaeger  <aj@suse.de>
481         * libgfortran.h: Add proper defines where needed.
483 2005-11-10  Andreas Jaeger  <aj@suse.de>
485         * libgfortran.h: Add missing prototypes for internal_pack
486         functions.
488 2005-11-06  Janne Blomqvist <jb@gcc.gnu.org>
490         PR fortran/24174
491         PR fortran/24305
492         * io/io.h: Add argument to prototypes, add prototypes for
493         size_from_*_kind functions.
494         * io/list_read.c (read_complex): Add size argument, use
495         it.
496         (list_formatted_read): Add size argument, cleanup.
497         (list_formatted_read_scalar): Add size argument.
498         (nml_read_obj): Fix for padding.
499         * io/transfer.c: Add argument to transfer function pointer.
500         (unformatted_read): Add size argument.
501         (unformatted_write): Likewise.
502         (formatted_transfer_scalar): Fix for padding with complex(10).
503         (formatted_transfer): Add size argument, cleanup.
504         (transfer_integer): Add size argument to transfer call.
505         (transfer_real): Likewise.
506         (transfer_logical): Likewise.
507         (transfer_character): Likewise.
508         (transfer_complex): Likewise.
509         (transfer_array): New kind argument, use it.
510         (data_transfer_init): Add size argument to formatted_transfer
511         call.
512         (iolength_transfer): Add size argument, cleanup.
513         * io/write.c (write_complex): Add size argument, fix for padding
514         with complex(10).
515         (list_formatted_write): Add size argument, cleanup.
516         (list_formatted_write_scalar): Add size argument, use it.
517         (nml_write_obj): Fix for size vs. kind issue.
518         * io/size_from_kind.c: New file.
519         * Makefile.am: Add io/size_from_kind.c.
520         * configure: Regenerate.
521         * Makefile.in: Regenerate.
523 2005-11-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
525         * intrinsics/ctime.c: New file.
526         * configure.ac: Add check for ctime.
527         * Makefile.am: Add ctime.c
528         * configure: Regenerate.
529         * config.h.in: Regenerate.
530         * Makefile.in: Regenerate.
532 2005-11-05  Richard Guenther  <rguenther@suse.de>
534         * configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
535         * configure: Regenerate.
537 2005-11-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
539         * intrinsics/tty.c (ttynam): New function.
541 2005-11-04  Steven G. Kargl <kargls@comcast.net>
543         PR fortran/24636
544         * runtime/stop.c (stop_numeric): Use stop_code = -1.
546 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
548         PR libfortran/22298
549         * runtime/main.c (stupid_function_name_for_static_linking): New
550         function.
551         * runtime/error.c (internal_error): Call
552         stupid_function_name_for_static_linking.
553         * libgfortran.h: Add prototype for
554         stupid_function_name_for_static_linking.
556 2005-11-01  Paul Thomas  <pault@gcc.gnu.org>
558         PR fortran/14994
559         * libgfortran/intrinsics/date_and_time.c: Add interface to
560         the functions date_and_time for the intrinsic function secnds.
562 2005-10-31  Jerry DeLisle  <jvdelisle@verizon.net>
564         PR libgfortran/24584
565         * io/list_read.c (free_saved): Set saved_used to zero.
567 2005-10-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
569         PR libfortran/20179
570         * io/unix.c (flush_if_preconnected): New function.
571         * io/io.h: Add prototype for flush_if_preconnected.
572         * io/transfer.c (data_transfer_init): Use flush_if_preconnected
573         to workaround buggy mixed C-Fortran code.
575 2005-10-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
577         * Makefile.am: Add intrinsics/malloc.c file.
578         * Makefile.in: Regenerate.
579         * intrinsics/malloc.c: New file, with implementations for free
580         and malloc library functions.
582 2005-10-29  Mike Stump  <mrs@apple.com>
584         * Makefile.am (kinds.h): Remove target, if command fails.
585         (selected_int_kind.inc): Likewise.
586         (selected_real_kind.inc): Likewise.
587         * Makefile.in: Regenerate.
589 2005-10-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
592         * Makefile.am (intrinsics): Add signal.c.
593         * Makefile.in: Regenerate.
594         * configure.ac: Checks for signal and alarm.
595         * config.h.in: Regenerate.
596         * configure: Regenerate.
597         * intrinsics/signal.c: New file for SIGNAL and ALARM intrinsics.
599 2005-10-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
601         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
602         * configure.ac: Check for floatingpoint.h, fptrap.h and float.h
603         headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and
604         fp_enable functions.
605         * configure.host: Add case for systems with fpsetmask and systems
606         with fp_trap/fp_enable.
607         * config/fpu-sysv.h: New file, FPU code using fpsetmask.
608         * config/fpu-aix.h: New file, FPU code for AIX using fp_trap and
609         fp_enable.
610         * aclocal.m4: Regenerate.
611         * configure: Regenerate.
612         * config.h.in: Regenerate.
614 2005-10-24  Jerry DeLisle  <jvdelisle@verizon.net>
616         PR libgfortran/24224
617         * libgfortran.h: Remove array stride error code.
618         * runtime/error.c: Remove array stride error.
619         * io/io.h: Change name of 'nml_loop_spec' to 'array_loop_spec' to be
620         generic.  Add pointer to array_loop_spec and rank to gfc_unit
621         structure.
622         * io/list_read.c: Revise nml_loop_spec references to array_loop_spec.
623         * io/transfer.c (init_loop_spec): New function to initialize
624         an array_loop_spec.
625         (next_array_record): New function to return the index to the next array
626         record by incrementing through the array_loop_spec.
627         (next_record_r): Use new function.
628         (next_record_w): Use new function.
629         (finalize_transfer): Free memory allocated for array_loop_spec.
630         * io/unit.c (get_array_unit_len): Delete this function. Use new
631         function init_loop_spec to initialize the array_loop_spec.
633 2005-10-24  Paul Thomas  <pault@gcc.gnu.org>
635         PR fortran/24416
636         * libgfortran/io/list_read.c (namelist_read): Exit with call to
637         free_saved () so that character strings do not accumulate.
639 2005-10-23  Jerry DeLisle  <jvdelisle@verizon.net>
641         PR libgfortran/24489
642         * io/transfer.c (read_block): Change the order of execution to not read
643         past end-of-record.
644         (read_block_direct): Same change.
646 2005-10-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
648         PR libfortran/23272
649         * acinclude.m4 (LIBGFOR_CHECK_WORKING_STAT): New check.
650         * configure.ac: Use LIBGFOR_CHECK_WORKING_STAT.
651         * Makefile.in: Regenerate.
652         * configure: Regenerate.
653         * config.h.in: Regenerate.
654         * aclocal.m4: Regenerate.
655         * io/unix.c (compare_file_filename): Add fallback case for
656         systems without working stat.
657         * io/open.c (already_open): Correct call to
658         compare_file_filename.
659         * io/io.h: Correct proto for compare_file_filename.
661 2005-10-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
663         * runtime/fpu.c: Add _GNU_SOURCE definition.
664         * config/fpu-glibc.h: Remove __USE_GNU definition.
666 2005-10-23  Paul Thomas  <pault@gcc.gnu.org>
668         PR fortran/24384
669         * intrinsics/spread_generic.c (spread_internal_scalar): New
670         function that handles the special case of spread with a scalar
671         source. This has new interface functions -
672         (spread_scalar, spread_char_scalar): New functions to interface
673         with the calls specified in gfc_resolve_spread.
675 2005-10-21  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
677         PR libfortran/24383
678         * io/unix.c: Add fallback definition for SSIZE_MAX.
680 2005-10-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
682         * c99_protos.h: Define preprocessor HAVE_ macros with value 1
683         instead of empty value.
684         * intrinsics/c99_functions.c: Likewise.
685         * intrinsics/getXid.c: Define HAVE_GETPID with value 1 instead of
686         empty value.
687         * intrinsics/sleep.c: Define HAVE_SLEEP with value 1 instead of
688         empty value.
690 2005-10-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
692         PR libfortran/24432
693         * c99_protos.h: Define HAVE_ macros for all provided functions.
695 2005-10-14  Uros Bizjak  <uros@kss-loka.si>
697         * config/fpu-387.h (set_fpu): Remove extra ":" in stmxcsr.
698         Change cw and cw_sse variables to unsigned.
699         (SSE): New definition.
700         (has_sse): Use it.
702 2005-10-13  Thomas Koenig  <Thomas.Koenig@online.de>
704         * io/unix.c(fd_alloc_r_at):  Use read() instead of do_read()
705         only in case of special files (e.g. terminals).
707 2005-10-13  Uros Bizjak  <uros@kss-loka.si>
709         * config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
711 2005-10-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
713         * Makefile.am: Add fpu.c to the build process, and
714         target-dependent code as fpu-target.h.
715         * Makefile.in: Regenerate.
716         * configure.ac: Add call to configure.host to set
717         FPU_HOST_HEADER.
718         * configure: Regenerate.
719         * configure.host: New script to determine which host-dependent
720         code should go in.
721         * libgfortran.h: Add fpe option, remove previous fpu_ options.
722         Add bitmasks for different FPE traps. Add prototype for set_fpu.
723         * runtime/environ.c: Remove environment variables to control
724         fpu behaviour.
725         * runtime/fpu.c (set_fpe): New function for the front-end.
726         * runtime/main.c (init): Set FPU state.
727         * config: New directory to store host-dependent code.
728         * config/fpu-387.h: New file with code handling the i387 FPU.
729         * config/fpu-glibc.h: New file with code for glibc systems.
730         * config/fpu-generic.h: Fallback for the most generic host. Issue
731         warnings.
733 2005-10-12  Janne Blomqvist <jblomqvi@cc.hut.fi>
735         * io/unix.c(fd_alloc_r_at): Remove parts of patch of 2005/10/07 that
736         cause input from the terminal to hang.
738 2005-10-11  Steven G. Kargl  <kargls@comcast.net>
740         PR libgfortran/24313
741         *  c99_functions.c (csqrtf, csqrt): Fix choice of branch cut.  Note
742         csqrt{f} were imported from glibc, and this bug is still present
743         there. glibc PR is 1146.
745 2005-10-07  Janne Blomqvist <jblomqvi@cc.hut.fi>
747         PR fortran/16339
748         PR fortran/23363
749         * io/io.h: Add read and write members to stream, define access
750         macros.
751         * io/transfer.c (read_block_direct): New function.
752         (write_block_direct): New function.
753         (unformatted_read): Change to use read_block_direct.
754         (unformatted_write): Change to use write_block_direct.
755         * io/unix.c: Remove mmap includes and defines.
756         (writen): Remove.
757         (readn): Remove.
758         (reset_stream): New function.
759         (do_read): New function.
760         (do_write): New function.
761         (fd_flush): Change to use do_write() instead of writen().
762         (fd_alloc_r_at): Change to use do_read().
763         (fd_seek): Change return type to try, as the prototype. Add check
764         to avoid syscall overhead if possible.
765         (fd_read): New function.
766         (fd_write): New function.
767         (fd_open): Set pointers for new functions.
768         (mem_read): New function.
769         (mem_write): New function.
770         (open_internal): Set pointers for new functions.
771         (is_seekable): Clean up comment.
773 2005-10-07  Jerry DeLisle  <jvdelisle@verizon.net>
775         * io/transfer.c (write_block): Add test for end-of-file condition,
776         removed from mem_alloc_w_at. (next_record_w): Clean up checks for
777         NULL pointer returns from s_alloc_w.
778         * io/unix.c (mem_alloc_w_at): Remove call to generate_error end-of-file.
779         * io/write.c (write_float): Add checks for NULL pointer returns from
780         write_block calls. (write_integer): Same.
782 2005-10-03  Jakub Jelinek  <jakub@redhat.com>
784         * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
786 2005-10-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
788         PR libfortran/19308
789         PR libfortran/22437
790         * Makefile.am: Add generated files for large real and integers
791         kinds. Add a rule to create the kinds.inc c99_protos.inc files.
792         Use kinds.inc to preprocess Fortran generated files.
793         * libgfortran.h: Add macro definitions for GFC_INTEGER_16_HUGE,
794         GFC_REAL_10_HUGE and GFC_REAL_16_HUGE. Add types gfc_array_i16,
795         gfc_array_r10, gfc_array_r16, gfc_array_c10, gfc_array_c16,
796         gfc_array_l16.
797         * mk-kinds-h.sh: Define macros HAVE_GFC_LOGICAL_* and
798         HAVE_GFC_COMPLEX_* when these types are available.
799         * intrinsics/ishftc.c (ishftc16): New function for GFC_INTEGER_16.
800         * m4/all.m4, m4/any.m4, m4/count.m4, m4/cshift1.m4, m4/dotprod.m4,
801         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
802         m4/exponent.m4, m4/fraction.m4, m4/in_pack.m4, m4/in_unpack.m4,
803         m4/matmul.m4, m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4,
804         m4/maxval.m4, m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/mtype.m4,
805         m4/nearest.m4, m4/pow.m4, m4/product.m4, m4/reshape.m4,
806         m4/set_exponent.m4, m4/shape.m4, m4/specific.m4, m4/specific2.m4,
807         m4/sum.m4, m4/transpose.m4: Protect generated functions with
808         appropriate "#if defined (HAVE_GFC_type_kind)" preprocessor directives.
809         * Makefile.in: Regenerate.
810         * all files in generated/: Regenerate.
812 2005-10-01  Jakub Jelinek  <jakub@redhat.com>
814         * runtime/memory.c (malloc_t): Remove.
815         (GFC_MALLOC_MAGIC, HEADER_SIZE, DATA_POINTER, DATA_HEADER): Remove.
816         (mem_root, runtime_cleanup, malloc_with_header): Remove.
817         (internal_malloc_size): Use just get_mem if size != 0, return NULL
818         otherwise.
819         (internal_free): Just free if non-NULL.
820         (internal_realloc_size): Remove debugging stuff.
821         (allocate_size): Use malloc directly, remove debugging stuff.
822         (deallocate): Use free directly, fix error message wording.
824         * libgfortran.h (GFC_ITOA_BUF_SIZE, GFC_XTOA_BUF_SIZE,
825         GFC_OTOA_BUF_SIZE, GFC_BTOA_BUF_SIZE): Define.
826         (gfc_itoa, xtoa): Add 2 extra arguments.
827         * runtime/environ.c: Include stdio.h.
828         (check_buffered): Use sprintf.
829         * runtime/error.c: Include assert.h.
830         (gfc_itoa, xtoa): Add 2 extra arguments, avoid using static
831         buffers.
832         (st_printf, st_sprintf): Adjust callers.
833         * io/write.c (otoa, btoa): Add 2 extra arguments, avoid using
834         static buffers.
835         (write_int, write_decimal): Add 2 extra arguments to conv
836         function pointer, adjust caller.
837         (write_integer): Adjust gfc_itoa caller.
839         * io/unit.c (get_array_unit_len): Return 0 rather than NULL.
841         * io/read.c (read_f): Remove spurious pointer dereference.
843 2005-09-30  Janne Blomqvist <jblomqvi@cc.hut.fi>
845         PR 24112
846         * io/open.c (edit_modes): Check for correct flag.
848 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
850         * runtime/string.c (find_option): Change 3rd argument to
851         const st_option *.
852         * libgfortran.h (find_option): Likewise.
853         * runtime/environ.c (rounding, precision, signal_choices): Constify.
854         (init_choice, show_choice): Change 2nd argument to const choice *.
855         * io/open.c (access_opt, action_opt, blank_opt, delim_opt, form_opt,
856         position_opt, status_opt, pad_opt): Constify.
857         * io/transfer.c (advance_opt): Likewise.
858         * io/inquire.c (undefined): Likewise.
859         * io/close.c (status_opt): Likewise.
860         * io/format.c (posint_required, period_required, nonneg_required,
861         unexpected_element, unexpected_end, bad_string, bad_hollerith,
862         reversion_error): Likewise.
863         * io/unix.c (yes, no, unknown): Change from const char *
864         into const char [].
866 2005-09-27  Steve Ellcey  <sje@cup.hp.com>
868         PR target/23552
869         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE): New.
870         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN): New.
871         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): New.
872         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE): Add use.
873         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN): Add use.
874         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): Add use.
875         * configure: Regenerate.
876         * config.h.in: Regenerate.
877         * libgfortan.h (isfinite): undef if broken, set if needed.
878         (isnan): undef if broken, set if needed.
879         (fpclassify): undef if broken, set if needed.
880         * io/write.c: Remove TODO comment about working isfinite.
881         * intrinsics/c99_functions.c (round): Use isfinite instead
882         of fpclassify.
883         * intrinsics/c99_functions.c (roundf): Ditto.
885 2005-09-24  Janne Blomqvist <jblomqvi@cc.hut.fi>
887         * io.h: Changed prototypes of list_formatted_{read|write}.
888         * list_read.c (list_formatted_read): Renamed to
889         list_formatted_read_scalar and made static.
890         (list_formatted_read): New function.
891         * transfer.c: Prototype for transfer_array. Changed transfer
892         function pointer.
893         (unformatted_read): Add nelems argument, use it.
894         (unformatted_write): Likewise.
895         (formatted_transfer): Changed name to formatted_transfer_scalar.
896         (formatted_transfer): New function.
897         (transfer_integer): Add nelems argument to transfer call, move
898         updating item count to transfer functions.
899         (transfer_real): Likewise.
900         (transfer_logical): Likewise.
901         (transfer_character): Likewise.
902         (transfer_complex): Likewise.
903         (transfer_array): New function.
904         (data_transfer_init): Call formatted_transfer with new argument.
905         (iolength_transfer): New argument, use it.
906         * write.c (list_formatted_write): Renamed to
907         list_formatted_write_scalar, made static.
908         (list_formatted_write): New function.
910 2005-09-26  David Edelsohn  <edelsohn@gnu.org>
912         * configure.ac: Add check for __clog.
913         * configure: Regenerate.
915 2005-09-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
917         * c99_protos.h: Add prototypes for C99 complex functions.
918         * libgfortran.h: Include complex.h before c99_protos.h.
919         * intrinsics/c99_functions.c: Define HAVE_ macros for the
920         fallback functions we provide.
921         (cabsf, cabs, cabsl, cargf, carg, cargl, cexpf, cexp, cexpl,
922         clogf, clog, clogl, clog10f, clog10, clog10l, cpowf, cpow, cpowl,
923         cqsrtf, csqrt, csqrtl, csinhf, csinh, csinhl, ccoshf, ccosh,
924         ccoshl, ctanhf, ctanh, ctanhl, csinf, csin, csinl, ccosf, ccos,
925         ccosl, ctanf, ctan, ctanl): New fallback functions.
926         * Makefile.am (gfor_math_trig_c, gfor_math_trig_obj,
927         gfor_specific_c, gfor_cmath_src, gfor_cmath_obj): Remove.
928         * Makefile.in: Regenerate.
929         * configure.ac: Remove checks for csin. Add checks for all C99
930         complex functions.
931         * config.h.in: Regenerate.
932         * configure: Regenerate.
933         * aclocal.m4: Regenerate.
935 2005-09-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
936             Danny Smith  <dannysmith@users.sourceforge.net>
938         PR libfortran/23803
939         * intrinsics/getXid.c: Add getpid wrapper for MinGW.
940         * intrinsics/getlog.c: Add getlogin wrapper for MinGW.
941         * intrinsics/hostnm.c: Add gethostname wrapper for MinGW.
943 2005-09-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
945         PR libfortran/23802
946         * intrinsics/sleep.c: Add correct sleep macro for MinGW.
948 2005-09-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
950         PR libfortran/23380
951         * intrinsics/cpu_time.c (__cpu_time_1): Provide a MS Windows
952         version.
954 2005-09-14  Jerry DeLisle  <jvdelisle@verizon.net
956         PR fortran/21875 Internal Unit Array I/O, NIST
957         * libgfortran.h: Add run time error code for array stride.
958         * runtime/error.c (translate_error): Add error message for
959         array stride.
960         * io/io.h: Add array descriptor pointer to IOPARM structure.
961         Add prtotypes for two new functions.
962         * io/transfer.c (data_transfer_init): Removed initialization and
963         moved to unit.c (get_unit)
964         * io/transfer.c (next_record_r): Include internal unit read
965         functionality.
966         * io/transfer.c (next_record_w): Include internal unit write
967         functionality, including padding of character array records.
968         * io/unit.c (get_array_unit_len): New function to return the number
969         of records in the character array 'file' from the array descriptor.
970         * io/unit.c (get_unit): Gathered initialization code from
971         init_data_transfer for internal units and added initialization of
972         character array unit.
973         * io/unit.c (is_array_io): New function to determine if internal unit
974         is an array.
975         * io/unix.c (mem_alloc_w_at): Add error checks for bad record length
976         and end of file.
978 2005-09-13  Richard Sandiford  <richard@codesourcery.com>
980         PR target/19269
981         * intrinsics/cshift0.c (cshift0): Add an extra size argument.
982         (cshift0_1, cshift0_2, cshift0_4, cshift0_8): Replace explicit
983         implementations with...
984         (DEFINE_CSHIFT): ...this new macro.  Define character versions too.
985         * intrinsics/eoshift0.c (zeros): Delete.
986         (eoshift0): Add extra size and filler arguments.  Use memset if no
987         bound is provided.
988         (eoshift0_1, eoshift0_2, eoshift0_4, eoshift0_8): Replace explicit
989         implementations with...
990         (DEFINE_EOSHIFT): ...this new macro.  Define character versions too.
991         * intrinsics/eoshift2.c (zeros): Delete.
992         (eoshift2): Add extra size and filler arguments.  Use memset if no
993         bound is provided.
994         (eoshift2_1, eoshift2_2, eoshift2_4, eoshift2_8): Replace explicit
995         implementations with...
996         (DEFINE_EOSHIFT): ...this new macro.  Define character versions too.
997         * intrinsics/pack.c (pack_internal): New static function, reusing
998         the contents of pack and adding an extra size argument.  Change
999         "mptr" rather than "m" when calculating the array size.
1000         (pack): Redefine as a forwarder to pack_internal.
1001         (pack_s_internal): New static function, reusing the contents of
1002         pack_s and adding an extra size argument.
1003         (pack_s): Redefine as a forwarder to pack_s_internal.
1004         (pack_char, pack_s_char): New functions.
1005         * intrinsics/reshape.c (reshape_internal): New static function,
1006         reusing the contents of reshape and adding an extra size argument.
1007         (reshape): Redefine as a forwarder to reshape_internal.
1008         (reshape_char): New function.
1009         * intrinsics/spread.c (spread_internal): New static function,
1010         reusing the contents of spread and adding an extra size argument.
1011         (spread): Redefine as a forwarder to spread_internal.
1012         (spread_char): New function.
1013         * intrinsics/transpose.c (transpose_internal): New static function,
1014         reusing the contents of transpose and adding an extra size argument.
1015         (transpose): Redefine as a forwarder to transpose_internal.
1016         (transpose_char): New function.
1017         * intrinsics/unpack.c (unpack_internal): New static function, reusing
1018         the contents of unpack1 and adding extra size and fsize arguments.
1019         (unpack1): Redefine as a forwarder to unpack_internal.
1020         (unpack0): Call unpack_internal instead of unpack1.
1021         (unpack1_char, unpack0_char): New functions.
1022         * m4/cshift1.m4 (cshift1): New static function, reusing the contents
1023         of cshift1_<kind> and adding an extra size argument.
1024         (cshift1_<kind>): Redefine as a forwarder to cshift1.
1025         (cshift1_<kind>_char): New function.
1026         * m4/eoshift1.m4 (zeros): Delete.
1027         (eoshift1): New static function, reusing the contents of
1028         eoshift1_<kind> and adding extra size and filler arguments.
1029         Fix calculation of hstride.  Use memset if no bound is provided.
1030         (eoshift1_<kind>): Redefine as a forwarder to eoshift1.
1031         (eoshift1_<kind>_char): New function.
1032         * m4/eoshift3.m4 (zeros): Delete.
1033         (eoshift3): New static function, reusing the contents of
1034         eoshift3_<kind> and adding extra size and filler arguments.
1035         Use memset if no bound is provided.
1036         (eoshift3_<kind>): Redefine as a forwarder to eoshift3.
1037         (eoshift3_<kind>_char): New function.
1038         * generated/cshift1_4.c, generated/cshift1_8.c,
1039         * generated/eoshift1_4.c, generated/eoshift1_8.c,
1040         * generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerate.
1042 2005-09-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1044         PR libfortran/20179
1045         * io/unix.c (is_preconnected): Add function to test if a stream
1046         corresponds to a preconnected unit.
1047         * io/io.h: Add prototype for is_preconnected.
1048         * io/transfer.c (data_transfer_init): Do not truncate
1049         preconnected units.
1051 2005-09-10  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1053         * io/unix.c: Remove mmap code.
1055 2005-09-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1057         PR libfortran/23784
1058         * io/close.c (st_close): Call library_end even in case of error.
1060 2005-09-09  Thomas Koenig  <Thomas.Koenig@online.de>
1062         * io/io.h:  Add iomsg as last field of st_parameter.
1063         * runtime/error.c (generate_error):  If iomsg is present, copy
1064         the message there.
1066 2005-09-09  Richard Sandiford  <richard@codesourcery.com>
1068         PR fortran/12840
1069         * runtime/memory.c (internal_malloc_size): Return a null pointer
1070         if the size is zero.
1071         (internal_free): Do nothing if the pointer is null.
1072         (internal_realloc_size, internal_realloc, internal_realloc64): New.
1074 2005-09-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1076         PR libfortran/23262
1077         * acinclude.m4 (LIBGFOR_CHECK_CRLF): New check.
1078         * configure.ac: Use new check.
1079         * configure.in: Regenerate.
1080         * config.h.in: Regenerate.
1081         * configure: Regenerate.
1082         * io/transfer.c (next_record_w): Add case for CRLF as line
1083         terminator.
1084         * io/unix.c (tempfile, regular_file): Open files with
1085         O_BINARY on systems with CRLF.
1087 2005-09-07  Steve Ellcey  <sje@cup.hp.com>
1089         PR libfortran/23419
1090         * io/write.c (extract_int): Use memcpy to access buffer.
1091         (extract_uint): Ditto.
1092         (extract_real): Ditto.
1094 2005-09-05  Thomas Koenig  <Thomas.Koenig@online.de>
1096         * io/list_read.c:  Adjust size of of value to 32 (to hold
1097         kind=16 complex values).
1099 2005-09-04  Thomas Koenig  <Thomas.Koenig@online.de>
1101         PR libfortran/23321
1102         * io/transfer.c(data_transfer_init):  Check for a too-large
1103         record number.  Return if sseek failed.
1105 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
1107         * io/read.c (read_x): Take int argument instead of fnode * and
1108         digging the N from F->u.n.
1109         * io/io.h (read_x): Adjust prototype.
1110         * io/transfer.c (formatted_transfer): Adjust callers.  Don't clobber
1111         f->u.n for FMT_T.
1113 2005-09-02  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1115         * io/unix.c (stream_ttyname): Protect use of ttyname by
1116         HAVE_TTYNAME macro.
1117         * configure.ac: Add check for ttyname.
1118         * config.h.in: Regenerate.
1119         * configure: Regenerate.
1121 2005-09-02  Andreas Jaeger  <aj@suse.de>
1123         * libgfortran.h: Add prototype for init_compile_options.
1125         * io/io.h: Add prototype for notify_std.
1127 2005-08-31  Steve Ellcey  <sje@cup.hp.com>
1129         * io/read.c (set_integer): Use memcpy to fill buffer.
1131 2005-08-31  Steve Ellcey  <sje@cup.hp.com>
1133         PR target/23556
1134         * io/read.c (convert_real): Use memcpy to fill buffer.
1136 2005-08-29  Thomas Koenig  <Thomas.Koenig@online.de>
1138         PR libfortran/23598
1139         * io/lock.c(library_start):  If ioparm.iostat is present, clear
1140         it unconditionally.
1142 2005-08-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1144         * acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see
1145         if target can unlink open files.
1146         * configure.ac: Use this new test.
1147         * config.h.in: Regenerate.
1148         * configure: Regenerate.
1149         * Makefile.in: Regenerate.
1150         * aclocal.ac: Regenerate.
1151         * io/io.h: Add prototype for unpack_filename.
1152         * io/close.c (st_close): Delete file after closing unit if
1153         HAVE_UNLINK_OPEN_FILE is not defined.
1154         * io/unix.c (unpack_filename): Unlink scratch file after opening
1155         it only if HAVE_UNLINK_OPEN_FILE is defined.
1157 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
1159         * All files: Update FSF address.
1161 2005-08-16  Thomas Koenig  <Thomas.Koenig@online.de>
1163         PR libfortran/23428
1164         * io/transfer.c (iolength_transfer):  Remove __attribute__ ((unused))
1165         from type.  Return correct length for inquire(iolength=)
1166         for complex variables.
1168 2005-08-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1169             Steven Bosscher  <stevenb@suse.de>
1171         PR libfortran/20006
1172         * Makefile.am: Add file runtime/compile_options.c.
1173         * Makefile.in: Regenerate.
1174         * libgfortran.h: Create structure compile_options_t. Define the
1175         compile_options variable and GFC_STD_ macros.
1176         * runtime/compile_options.c: New file.
1177         * runtime/error.c (notify_std): New function.
1178         * runtime/main.c (init): Call init_compile_options during
1179         initialization.
1180         * io/format.c: Use the new notify_std function for the $
1181         descriptor extension.
1183 2005-08-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1184         * Makefile.am: Add file intrinsics/tty.c to Makefile process.
1185         * Makefile.in: Regenerate.
1186         * io/io.h: Prototypes for new functions stream_isatty and
1187         stream_ttyname.
1188         * io/unix (stream_isatty, stream_ttyname): New functions to call
1189         isatty() and ttyname() on a given unit.
1190         * intrinsics/tty.c: New file to implement g77 intrinsics TTYNAM
1191         and ISATTY.
1193 2005-08-08  Jerry DeLisle  <jvdelisle@verizon.net>
1195         PR libfortran/23154
1196         * io/transfer.c (data_transfer_init): Initialize
1197         current_unit->bytes_left for a read.
1199 2005-08-07  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1201         PR fortran/22390
1202         * io/backspace.c: File removed, contents moved to ...
1203         * io/endfile.c: Ditto.
1204         * io/rewind.c: Ditto.
1205         * io/file_pos.c: New file, ... here.
1206         * Makefile.am: Add file_pos.c to list, remove obsolete files.
1207         * Makefile.in: Regenerated.
1209 2005-08-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1211         * io/io.h: Change DEFAULT_TEMPDIR to /tmp instead of /var/tmp.
1212         * io/unix.c (tempfile): Look at the TEMP environment variable
1213         to find the temporary files directory. Whitespace correction.
1215 2005-08-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1217         * io/unix.c: Add O_RDWR to open() call.
1219 2005-08-04 Paul Thomas  <pault@gcc.gnu.org>
1221         * transfer.c (data_transfer_init): Truncate file in
1222         sequential WRITE when last_record == 0, rather than
1223         current_record.  Cures problem on RH9.
1225 2005-08-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1227         * libgfortran.h: When isfinite is not provided by the system,
1228         define it as a macro, so that it can accept any floating point
1229         type.
1231 2005-08-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1233         PR libfortran/23178
1234         * intrinsics/flush.c (flush_i8): Add function flush_i8. Update
1235         copyright years.
1237 2005-07-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1239         PR libfortran/21787
1240         * intrinsics/abort.c (abort): Close units before aborting.
1241         Updated copyright years.
1243 2005-07-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1245         PR libfortran/22436
1246         * io/write.c (write_real): Add default formats for real(10) and
1247         real(16).
1249 2005-07-30 Paul Thomas  <pault@gcc.gnu.org>
1251         PR fortran/22570 and related issues.
1252         * transfer.c (formatted_transfer): Make sure that there
1253         really is data present before X- or T- editing. Move all
1254         treatment of tabbing during writes to start of next data
1255         producing format. Suppress incorrect zeroing of bytes_left
1256         in slash formating. Insert int cast for assignment of a
1257         difference of two gfc_offsets.
1259 2005-07-23  Jerry DeLisle  <jvdelisle@verizon.net>
1261         * io/write.c (write_float): Revise output of IEEE exceptional
1262         values to comply with F95 and F2003 standards.
1264 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
1266         PR libfortran/22570
1267         * io/unit.c (init_units): Replace BLANK_ZERO with
1268         BLANK_UNSPECIFIED.
1270 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
1272         PR libfortran/21875  (FM111.f)
1273         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO
1274         or BLANK_NULL are active.
1275         (read_decimal): Interpret ' ' character correctly for BZ or BN.
1276         (read_radix): Interpret ' ' character correctly for BZ or BN.
1277         (read_f): Interpret ' ' character correctly for BZ or BN.
1279 2005-07-22 Paul Thomas  <pault@gcc.gnu.org>
1281         PR libfortran/22570
1282         * read.c (read_x): Correct the condition for doing the
1283         x-editing during formatted input.
1284         * transfer.c (formatted_transfer): Cast offset difference
1285         as int, clean-up arithmetic with new variable, bytes_used,
1286         zero counters for FMT_SLASH,
1287         (data_transfer_init) Zero X- and T-editing counters
1288         unconditionally.
1289         (next_record_w) Zero X- and T-editing counters.
1290         unconditionally.
1292 2005-07-17  Jerry DeLisle  <jvdelisle@verizon.net>
1294         * io/write.c (write_float): Fix field width checks for
1295         printing 'Infinity' or 'Inf'.
1296         (output_float): Fix typo in comment.
1298 2005-07-12 Paul Thomas  <pault@gcc.gnu.org>
1300         PR libfortran/16435
1301         * transfer.c (formatted_transfer): Correct the problems
1302         with X- and T-editting that caused TLs followed by TRs
1303         to overwrite data, which caused NIST FM908.FOR to fail
1304         on many tests.
1305         (data_transfer_init): Zero X- and T-editting counters at
1306         the start of formatted IO.
1307         * write.c (write_x): Write specified number of skips with
1308         specified number of spaces at the end.
1310 2005-07-13 Paul Thomas  <pault@gcc.gnu.org>
1312         * io/read.c (read_complex): Prevent X formatting during reads
1313         from going beyond EOR to fix NIST fm908.FOR failure.
1314         * io/list_read.c (read_complex): Allow complex data in list-
1315         directed reads to have eols either side of the comma to
1316         fix NIST FM906.FOR failure.
1318 2005-07-12  Thomas Koenig  <Thomas.Koenig@online.de>
1320         PR libfortran/21593
1321         * io/unix.c:  Add member special_file to type unix_stream.
1322         (fd_truncate):  Don't call ftruncate or chsize if
1323         s refers to a special file.
1324         (fd_to_stream):  initialize s->special_file.
1326 2005-07-11  David Edelsohn  <edelsohn@gnu.org>
1328         PR libgfortran/22412
1329         * io/write.c (otoa): Bias p by SCRATCH_SIZE, not
1330         sizeof (SCRATCH_SIZE).
1331         (btoa): Same.
1333 2005-07-09  Jerry DeLisle  <jvdelisle@verizon.net>
1335         PR libfortran/21875  (FM111.f)
1336         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO or
1337         BLANK_NULL are active.
1338         (read_decimal): Interpret ' ' character correctly for BZ or BN.
1339         (read_radix): Interpret ' ' character correctly for BZ or BN.
1340         (read_f): Interpret ' ' character correctly for BZ or BN.
1341         * gfortran.dg/test (fmt_read_bz_bn.f90): New test case.
1343 2005-07-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1344             Thomas Koenig  <Thomas.Koenig@online.de>
1346         PR libfortran/22217
1347         * io/write.c (extract_unit):  New function; extract
1348         ints as unsigned signed int of the correct size.
1349         (write_int):  Use it.
1350         * runtime/error.c:  Adjust copyright years.
1351         Adjust size of buffer to maximum that can occur.
1353 2005-07-07  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1355         * libgfortran.h (GFC_ARRAY_DESCRIPTOR): Replace 'type *base' by
1356         'size_t offset'.
1357         * intrinsics/cshift0.c, intrinsics/eoshift0.c,
1358         intrinsics/eoshift2.c,intrinsics/pack_generic.c,
1359         intrinsics/reshape_generic.c, intrinsics/spread_generic.c,
1360         intrinsics/transpose_generic.c, intrinsics/unpack_generic,
1361         m4/cshift1.m4, m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4,
1362         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/reshape.m4,
1363         m4,transpose.m4: Set renamed field 'offset' to zero instead of
1364         'base'.
1365         * generated/all_l4.c, generated/all_l8.c,
1366         generated/any_l4.c, generated/any_l8.c, generated/count_4_l4.c,
1367         generated/count_4_l8.c, generated/count_8_l4.c,
1368         generated/count_8_l8.c, generated/chift1_4.c,
1369         generated/cshift1_8.c, generated/eoshift1_4.c,
1370         generated/eoshift1_8.c, generated/eoshift3_4.c,
1371         generated/eoshift3_8.c, generated/matmul_c4.c,
1372         generated/matmul_c8.c, generated/matmul_i4.c, matmul_i8.c,
1373         generated/matmul_l4.c, generated/matmul_l8.c,
1374         generated/matmul_r4.c, generated/matmul_r8.c,
1375         generated/maxloc0_4_i4.c, generated/maxloc0_4_i8.c,
1376         generated/maxloc0_4_r4.c, generated/maxloc0_4_r8.c,
1377         generated/maxloc0_8_i4.c, generated/maxloc0_8_i8.c,
1378         generated/maxloc0_8_r4.c, generated/maxloc0_8_r8.c,
1379         generated/maxloc1_4_i4.c, generated/maxloc1_4_i8.c,
1380         generated/maxloc1_4_r4.c, generated/maxloc1_4_r8.c,
1381         generated/maxloc1_8_i4.c, generated/maxloc1_8_i8.c,
1382         generated/maxloc1_8_r4.c, generated/maxloc1_8_r8.c,
1383         generated/maxval_i4.c, generated/maxval_i8.c,
1384         generated/maxval_r4.c, generated/maxval_r8.c,
1385         generated/minloc0_4_i4.c, generated/minloc0_4_i8.c,
1386         generated/minloc0_4_r4.c, generated/minloc0_4_r8.c,
1387         generated/minloc0_8_i4.c, generated/minloc0_8_i8.c,
1388         generated/minloc0_8_r4.c, generated/minloc0_8_r8.c,
1389         generated/minloc1_4_i4.c, generated/minloc1_4_i8.c,
1390         generated/minloc1_4_r4.c, generated/minloc1_4_r8.c,
1391         generated/minloc1_8_i4.c, generated/minloc1_8_i8.c,
1392         generated/minloc1_8_r4.c, generated/minloc1_8_r8.c,
1393         generated/minval_i4.c, generated/minval_i8.c,
1394         generated/minval_r4.c, generated/minval_r8.c,
1395         generated/product_c4.c, generated/product_c8.c,
1396         generated/product_i4.c, generated/product_i8.c,
1397         generated/product_r4.c, generated/product_r8.c,
1398         generated/reshape_c4.c, generated/reshape_c8.c,
1399         generated/reshape_i4.c, generated/reshape_i8.c,
1400         generated/sum_c4.c, generated/sum_c8.c, generated/sum_i4.c,
1401         generated/sum_i8.c, generated/sum_r4.c, generated/sum_r8.c,
1402         generated/transpose_c4.c, generated/transpose_c8.c,
1403         generated/transpose_i4.c, generated/transpose_i8.c: Regenerate:
1405 2005-07-07  Thomas Koenig  <Thomas.Koenig@online.de>
1407         PR libfortran/21594
1408         * intrinsics/eoshift0.c:  If abs(shift) > len, fill the
1409         the whole array with the boundary value, but don't overrun it.
1410         * intrinsics/eoshift2.c:  Likewise.
1411         * m4/eoshift1.m4:  Likewise.
1412         * m4/eoshift3.m4:  Likewise.
1413         * generated/eoshift1_4.c:  Regenerated.
1414         * generated/eoshift1_8.c:  Regenerated.
1415         * generated/eoshift3_4.c:  Regenerated.
1416         * generated/eoshift3_8.c:  Regenerated.
1418 2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
1420         PR fortran/16531
1421         * io/transfer.c (formatted_transfer): Enable FMT_A on other types to
1422         support Hollerith constants.
1424 2005-07-01  Andreas Jaeger  <aj@suse.de>
1426         * intrinsics/unpack_generic.c: Remove const from parameter.
1428         * io/transfer.c (formatted_transfer): Remove unused variable.
1430 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
1432         PR libfortran/22142
1433         * m4/eoshift1.m4:  Correct bstride (it needs to be multiplied
1434         by size since it's a char pointer).
1435         * m4/eoshift1_4.c:  Regenerated.
1436         * m4/eoshift1_8.c:  Regenerated.
1438 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
1440         PR libfortran/22142
1441         * m4/eoshift3.m4:  Correct bstride (it needs to be multiplied
1442         by size since it's a char pointer).
1443         * m4/eoshift3_4.c:  Regenerated.
1444         * m4/eoshift3_8.c:  Regenerated.
1446 2005-06-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1448         PR libfortran/22170
1449         * io/transfer.c (formatted_transfer): Do not iterate on the
1450         repeat count of a FMT_SLASH, since this is already done in
1451         next_format().
1453 2005-06-25  Thomas Koenig  <Thomas.Koenig@online.de>
1455         PR libfortran/22144
1456         * m4/cshift1.m4: Remove const from argument ret.
1457         Populate return array descriptor if ret->data is NULL.
1458         * m4/eoshift1.m4: Likewise.
1459         * m4/eoshift3.m4: Likewise.
1460         * generated/cshift1_4.c:  Regenerated.
1461         * generated/cshift1_8.c:  Regenerated.
1462         * generated/eoshift1_4.c:  Regenerated.
1463         * generated/eoshift1_8.c:  Regenerated.
1464         * generated/eoshift3_4.c:  Regenerated.
1465         * generated/eoshift3_8.c:  Regenerated.
1467 2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>
1469         PR libfortran/21915
1470         * Makefile.am: Include intrinsics/hyper.c.
1471         * c99_protos.h: Add prototypes for single precision versions of
1472         acosh, asinh, and atanh for platforms that do not have these.
1473         * config.h.in: Add #undef for wrappers.
1474         * configure.ac: Add checks for single precision versions.
1475         * aclocal.m4: Regenerated.
1476         * Makefile.in: Regenerated.
1477         * configure: Regenerated.
1478         * intrinsics/hyper.c: New file, adds new wrapper functions.
1480 2005-06-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1482         * intrinsics/c99_functions.c (log10l): New log10l function for
1483         systems where this is not available.
1484         * c99_protos.h: Prototype for log10l function.
1485         * libgfortran.h: Use generated kinds.h to define GFC_INTEGER_*,
1486         GFC_UINTEGER_*, GFC_LOGICAL_*, GFC_REAL_*, GFC_COMPLEX_*. Update
1487         prototypes for gfc_itoa and xtoa.
1488         * io/io.h: Update prototypes for set_integer and max_value.
1489         * io/list_read.c (convert_integer): Use new
1490         GFC_(INTEGER|REAL)_LARGEST type.
1491         * io/read.c (set_integer): Likewise.
1492         (max_value): Likewise.
1493         (convert_real): Likewise.
1494         (real_l): Likewise.
1495         (next_char): Likewise.
1496         (read_decimal): Likewise.
1497         (read_radix): Likewise.
1498         (read_f): Likewise.
1499         * io/write.c (extract_int): Use new GFC_INTEGER_LARGEST type.
1500         (extract_real): Use new GFC_REAL_LARGEST type.
1501         (calculate_exp): Likewise.
1502         (calculate_G_format): Likewise.
1503         (output_float): Likewise. Use log10l for long double values.
1504         Add comment for sprintf format. Use GFC_REAL_LARGEST_FORMAT.
1505         (write_l): Use new GFC_INTEGER_LARGEST type.
1506         (write_float): Use new GFC_REAL_LARGEST type.
1507         (write_int): Remove useless special case for (len < 8).
1508         (write_decimal): Use GFC_INTEGER_LARGEST.
1509         (otoa): Use GFC_UINTEGER_LARGEST as argument.
1510         (btoa): Use GFC_UINTEGER_LARGEST as argument.
1511         * runtime/error.c (gfc_itoa): Use GFC_INTEGER_LARGEST as
1512         argument.
1513         (xtoa): Use GFC_UINTEGER_LARGEST as argument.
1514         * Makefile.am: Use mk-kinds-h.sh to generate header kinds.h
1515         with all Fortran kinds available.
1516         * configure.ac: Check for strtold and log10l.
1517         * Makefile.in: Regenerate.
1518         * aclocal.m4: Regenerate.
1519         * configure: Regenerate.
1520         * config.h.in: Regenerate.
1521         * mk-kinds-h.sh: Configuration script for available integer
1522         and real kinds.
1525 2005-06-18  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1527         * unix.c (stream_at_bof): Don't assume that all non-mmapped files
1528         are non-seekable.
1529         (stream_at_eof): Likewise.
1531 2005-06-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1533         PR libfortran/19155
1534         * io/read.c (convert_real): strtod can set errno to EINVAL on an
1535         empty string, but we shouldn't have an error in that case.
1537 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1539         PR libfortran/19216
1540         * io/list_read.c (eat_separator): No need to call next_record,
1541         even in non-namelist_mode.
1543 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1545         * io/transfer.c (formatted_transfer): Fix typo in error message.
1547 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1549         PR libfortran/16436
1550         * io/transfer.c (read_sf): Correct updating of bytes_left field.
1551         (formatted_transfer): Correct updating of bytes_left field and
1552         reformatting code (comments and whitespace).
1553         * io/unix.c (move_pos_offset): "active" field should not be
1554         changed here. Whitespace corrections.
1556 2005-06-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1558         PR libfortran/21950
1559         * intrinsics/c99_functions.c (scalbn): Provide fallback
1560         implementation for scalbn.
1561         * c99_protos.h: Prototype for scalbn.
1562         * configure.ac: Add check for scalbn.
1563         * configure: Regenerate.
1564         * config.h.in: Regenerate.
1566 2005-06-14  Thomas Koenig  <Thomas.Koenig@online.de>
1568         * intrinsics/eoshift0.c:  Removed prototype for eoshift0.
1569         * intrinsics/eoshift2.c:  Removed prototype for eoshift2.
1571 2005-06-14  Tom Tromey  <tromey@redhat.com>
1573         PR libgcj/19877:
1574         * configure, aclocal.m4, Makefile.in: Rebuilt.
1576 2005-06-12  Thomas Koenig  <Thomas.Koenig@online.de>
1578         PR libfortran/21594
1579         * intrinsics/eoshift0.c:  Add prototype for eoshift0.
1580         * intrinsics/eoshift2.c:  Add prototype for eoshift2.
1582 2005-06-12  Steven G. Kargl <kargls@comcast.net>
1583             Thomas Koenig  <Thomas.Koenig@online.de>
1585         PR libfortran/PR21797
1586         * m4/cexp.m4 (csqrt`'q):  Add type qualifyer to
1587         sqrt and fabs.
1588         * generated/exp_c4.c:  Regenerated.
1590 2005-06-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1592         PR libfortran/19155
1593         * io/read.c (read_f): Take care of spaces after initial sign.
1595 2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>
1597         PR libfortran/21333
1598         * Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
1599         and in_unpack_c8.c.
1600         * Makefile.in: Regenerate.
1601         * libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
1602         internal_unpack_c4 and internal_unpack_c8.
1603         * m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
1604         in function name.
1605         Use sizeof (rtype_name) as size for memory allocation.
1606         * m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
1607         in function name.
1608         Use sizeof (rtype_name) for calculation of sizes for memcpy.
1609         * runtime/in_pack_generic.c:  For real, integer and logical
1610         call internal_pack_4 if size==4 and internal_pack_8 if
1611         size==8.
1612         For complex, call internal_pack_c4 if size==8 and
1613         internal_pack_c8 if size==16.
1614         * runtime/in_unpack_generic.c: For real, integer and logical
1615         call internal_unpack_4 if size==4 and internal_unpack_8 if
1616         size==8.
1617         For complex, call internal_unpack_c4 if size==8 and
1618         internal_unpack_c8 if size==16.
1619         * generated/in_pack_i4.c:  Regenerated.
1620         * generated/in_pack_i8.c:  Regenerated.
1621         * generated/in_unpack_i4.c:  Regenerated.
1622         * generated/in_unpack_i8.c:  Regenerated.
1623         * generated/in_pack_c4.c:  New file.
1624         * generated/in_pack_c8.c:  New file.
1625         * generated/in_unpack_c4.c:  New file.
1626         * generated/in_unpack_c8.c:  New file.
1628 2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>
1630         PR libfortran/21480
1631         * m4/reshape.m4:  Use sizeof (rtype_name) for sizes to be passed
1632         to reshape_packed.
1633         * generated/reshape_c4.c:  Regenerated.
1634         * generated/reshape_c8.c:  Regenerated.
1635         * generated/reshape_i4.c:  Regenerated.
1636         * generated/reshape_i8.c:  Regenerated.
1638 2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
1640         PR libfortran/21926
1641         * m4/matmul.m4:  Correct zeroing of result for non-packed
1642         arrays with lowest stride is one.
1643         * generated/matmul_c4.c:  Regenerated.
1644         * generated/matmul_c8.c:  Regenerated.
1645         * generated/matmul_i4.c:  Regenerated.
1646         * generated/matmul_i8.c:  Regenerated.
1647         * generated/matmul_r4.c:  Regenerated.
1648         * generated/matmul_r8.c:  Regenerated.
1650 2005-05-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1652         PR libfortran/20179
1653         * io/unix.c (fd_close): Add test so that we don't close()
1654         stdout and stderr.
1656 2005-05-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1658         PR libfortran/20006
1659         * io/format.c (parse_format_list): Set repeat count of $ format
1660         node to 1.
1661         * io/transfer.c (read_sf): Add g.seen_dollar to the test
1662         concerning advancing I/O.
1663         (data_transfer_init): Likewise.
1664         (finalize_transfer): Likewise.
1666 2005-05-27  Thomas Koenig  <Thomas.Koenig@online.de>
1668         * runtime/in_pack_generic.c:  Adjust copyright years.
1669         (in_pack_generic):  Change dimension of auxiliary arrays from
1670         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1671         * runtime/in_unpack_generic.c:  Adjust copyright years.
1672         (in_unpack_generic):  Change dimension of auxiliary arrays from
1673         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1675 2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>
1677         PR libfortran/17283
1678         * intrinsics/unpack_generic.c:  Fix name of routine
1679         on top.  Update copyright years.
1680         (unpack1):  Remove const from return array descriptor.
1681         rs:  New variable, for calculating return sizes.
1682         Populate return array descriptor if ret->data is NULL.
1684 2005-05-22  Peter Wainwright  <prw@ceiriog1.demon.co.uk>
1686         PR libfortran/21376
1687         * io/write.c (output_float): Rework logic to avoid call to log10
1688         with argument equal to zero.
1690 2005-05-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1692         * configure.ac: Check for trunc and truncf in libm.
1693         * configure: Regenerate.
1694         * config.h.in: Likewise.
1695         * intrinsics/c99_functions.c (trunc, truncf): New functions.
1696         * c99_protos.h (trunc, truncf): Declare them.
1698 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
1700         PR libfortran/21127
1701         * Makefile.am:  Really commit.
1702         * Makefile.in:  Really commit.
1704 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
1706         PR libfortran/21127
1707         * Makefile.am:  Add generated/reshape_c4.c and
1708         generated/reshape_c8.c.
1709         * Makefile.in:  Regenerated.
1710         * m4/iparm.m4:  Define rtype_ccode to be c4 or c8 for
1711         complex types, 4 or 8 otherwise.
1712         * m4/reshape.m4:  Use rtype_ccode instead of rtype_kind
1713         in function name.
1714         * generated/reshape_c4.c: New file.
1715         * generated/reshape_c8.c: New file.
1717 2005-05-16  Andreas Jaeger  <aj@suse.de>
1719         * configure.ac: Add additional warning flags.
1720         * configure: Regenerate.
1722         * io/write.c (calculate_G_format): Remove unused parameter.
1723         (output_float): Remove unused parameter.
1724         (write_float): Change callers.
1725         (nml_write_obj): Avoid signed warning.
1726         Make variable const to support -Wwrite-strings.
1728         * io/unix.c (fd_alloc, mmap_open, mmap_sfree, mem_sfree,
1729         mem_truncate): Mark argument as unused.
1731         * io/unit.c (get_unit): Mark argument as unused.
1732         (init_units): Avoid warning about signed comparision.
1734         * io/transfer.c (next_record_r): Remove unused parameter.
1735         (next_record_w): Remove unused parameter.
1736         (next_record): Change callers.
1737         (iolength_transfer): Mark arguments as unused.
1739         * io/open.c: Add initializer.
1741         * io/list_read.c (read_character): Mark argument as unused.
1742         (nml_match_name): Add const to make compile with -Wwrite-strings.
1744         * io/format.c: Add initializer.
1746 2005-05-15  Andreas Jaeger  <aj@suse.de>
1748         * m4/eoshift1.m4: Initialize variables to avoid warnings.
1749         * m4/eoshift3.m4: Initialize variables to avoid warnings.
1750         * generated/eoshift1_4.c, generated/eoshift1_8.c,
1751         generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.
1753         * intrinsics/spread_generic.c (spread): Initialize variables to
1754         avoid warnings.
1756         * intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
1757         warnings.
1758         * intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
1759         warnings.
1761         * io/list_read.c (nml_get_obj_data): Initialize variables to avoid
1762         warnings.
1764         * intrinsics/pack_generic.c (pack): Remove unneeded calculation.
1766         * m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
1767         pointer cast to avoid warning.
1768         * generated/matmul_l4.c: Regenerated.
1769         * generated/matmul_l8.c: Regenerated.
1771         * Makefile.am: Remove AM_CFLAGS here.
1772         * configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
1773         are set.  Set additionally -Wstrict-prototypes for CFLAGS.
1774         * Makefile.in: Regenerated.
1775         * aclocal.m4: Regenerated.
1776         * configure: Regenerated.
1778         * intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
1779         missing returns, reformat a bit.
1781         * io/write.c (nml_write_obj): Use %d again - and cast to int,
1782         st_sprintf does not handle %ld.
1784         * io/unit.c (is_internal_unit): Add void as parameter list.
1786         * io/transfer.c: Move prototype declarations before the functions.
1788         * runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
1789         list.
1791         * intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.
1793         * io/transfer.c: Do not use empty initializers for global objects.
1794         Add missing initializers.
1796         * io/lock.c: Do not use empty initializers for global objects.
1798         * io/close.c: Add missing initializers.
1800         * runtime/environ.c: Add missing initializers. Do not use empty
1801         initializers for global object.
1802         (init_string): Mark argument as unused.
1804         * runtime/main.c (cleanup): Fix parameter list.
1806         * io/io.h: Fix parameter lists.
1808         * m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
1809         warning.
1811         * generated/transpose_c4.c, generated/transpose_c8.c,
1812         generated/transpose_i4.c, generated/transpose_i8.c,
1813         generated/matmul_c4.c, generated/matmul_c8.c,
1814         generated/matmul_i4.c, generated/matmul_i8.c,
1815         generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.
1817         * io/write.c (nml_write_obj): Fix 64-bit problem.
1819         * io/list_read.c (nml_get_obj_data): Add missing braces around
1820         initializer to avoid warnings.
1822         * intrinsics/etime.c (etime_sub): Remove unused variable.
1824         * intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
1825         intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
1826         prototypes.
1828         * runtime/string.c (compare0): Remove unused variable.
1829         * io/unit.c (init_units): Remove unused variables.
1830         * intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
1831         * intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
1832         * intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
1833         stat_i8_sub): Remove unused variable.
1835 2005-05-12  Thomas Koenig  <Thomas.Koenig@online.de>
1837         PR libfortran/21324
1838         * runtime/memory.c:  Don't define GFC_CLEAR_MEMORY (it's a
1839         performance hog).
1840         * io/open.c (new_unit): Zero freshly allocated memory for
1841         unit structure.
1842         * io/unit.c (init_units):  Zero freshly allocated memory for
1843         STDIN, STDOUT and STDERR.
1844         * io/unix.c (open_internal):  Zero freshly allocated memory
1845         for unix_stream.
1846         (fd_to_stream):  Likewise.
1848 2005-05-11  Bud Davis  <bdavis@gfortran.org>
1850         PR fortran/19478
1851         * io/unix.c (fd_truncate): update positions when ftruncate
1852         fails (like writing to /dev/null).
1854 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1856         PR libfortran/21471
1857         * open.c (new_unit): Take care of the case where POSITION_APPEND
1858         is specified (sseek to the end, and set u>-endfile).
1860 2005-05-10  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1862         PR fortran/20178
1863         * Makefile.am (gfor_specific_src): Add 'intrinsics/f2c_intrinsics.F90'
1864         to dependencies.
1865         * Makefile.in: Regenerate.
1866         * intrinsics/f2c_specific.F90: New file.
1868 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1870         PR libfortran/20788
1871         * io/unix.c (fd_to_stream): Add an avoid_mmap argument indicating
1872         we don't we to mmap this stream. Use fd_open instead of mmap_open
1873         in that case.
1874         (open_external): Call fd_to_stream with avoid_mmap = 0.
1875         (input_stream): Call fd_to_stream with avoid_mmap = 1.
1876         (output_stream): Likewise.
1877         (error_stream): Likewise.
1879 2005-05-09  Mike Stump  <mrs@apple.com>
1881         * configure: Regenerate.
1883 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1885         PR libfortran/19155
1886         * io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
1887         non-blank characters of a real number.
1889 2005-05-04  Thomas Koenig  <Thomas.Koenig@online.de>
1891         PR libfortran/21354
1892         * m4/cshift1.m4: Change dimension of auxiliary arrays from
1893         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1894         * m4/eoshift1.m4: Likewise.
1895         * m4/eoshift3.m4: Likewise.
1896         * m4/ifunction.m4: Likewise.
1897         * m4/in_pack.m4: Likewise.
1898         * m4/in_unpack.m4: Likewise.
1899         * intrinsics/cshift0.c: Likewise.
1900         * intrinsics/eoshift0.c: Likewise.
1901         * intrinsics/eoshift2.c: Likewise.
1902         * intrinsics/random.c: Likewise.
1903         * intrinsics/spread_generic.c: Likewise.
1904         * intrinsics/stat.c: Likewise.
1905         * generated/all_l4.c: Regenerated.
1906         * generated/all_l8.c: Regenerated.
1907         * generated/any_l4.c: Regenerated.
1908         * generated/any_l8.c: Regenerated.
1909         * generated/count_4_l4.c: Regenerated.
1910         * generated/count_4_l8.c: Regenerated.
1911         * generated/count_8_l4.c: Regenerated.
1912         * generated/count_8_l8.c: Regenerated.
1913         * generated/cshift1_4.c: Regenerated.
1914         * generated/cshift1_8.c: Regenerated.
1915         * generated/eoshift1_4.c: Regenerated.
1916         * generated/eoshift1_8.c: Regenerated.
1917         * generated/eoshift3_4.c: Regenerated.
1918         * generated/eoshift3_8.c: Regenerated.
1919         * generated/in_pack_i4.c: Regenerated.
1920         * generated/in_pack_i8.c: Regenerated.
1921         * generated/in_unpack_i4.c: Regenerated.
1922         * generated/in_unpack_i8.c: Regenerated.
1923         * generated/maxloc0_4_i4.c: Regenerated.
1924         * generated/maxloc0_4_i8.c: Regenerated.
1925         * generated/maxloc0_4_r4.c: Regenerated.
1926         * generated/maxloc0_4_r8.c: Regenerated.
1927         * generated/maxloc0_8_i4.c: Regenerated.
1928         * generated/maxloc0_8_i8.c: Regenerated.
1929         * generated/maxloc0_8_r4.c: Regenerated.
1930         * generated/maxloc0_8_r8.c: Regenerated.
1931         * generated/maxloc1_4_i4.c: Regenerated.
1932         * generated/maxloc1_4_i8.c: Regenerated.
1933         * generated/maxloc1_4_r4.c: Regenerated.
1934         * generated/maxloc1_4_r8.c: Regenerated.
1935         * generated/maxloc1_8_i4.c: Regenerated.
1936         * generated/maxloc1_8_i8.c: Regenerated.
1937         * generated/maxloc1_8_r4.c: Regenerated.
1938         * generated/maxloc1_8_r8.c: Regenerated.
1939         * generated/maxval_i4.c: Regenerated.
1940         * generated/maxval_i8.c: Regenerated.
1941         * generated/maxval_r4.c: Regenerated.
1942         * generated/maxval_r8.c: Regenerated.
1943         * generated/minloc0_4_i4.c: Regenerated.
1944         * generated/minloc0_4_i8.c: Regenerated.
1945         * generated/minloc0_4_r4.c: Regenerated.
1946         * generated/minloc0_4_r8.c: Regenerated.
1947         * generated/minloc0_8_i4.c: Regenerated.
1948         * generated/minloc0_8_i8.c: Regenerated.
1949         * generated/minloc0_8_r4.c: Regenerated.
1950         * generated/minloc0_8_r8.c: Regenerated.
1951         * generated/minloc1_4_i4.c: Regenerated.
1952         * generated/minloc1_4_i8.c: Regenerated.
1953         * generated/minloc1_4_r4.c: Regenerated.
1954         * generated/minloc1_4_r8.c: Regenerated.
1955         * generated/minloc1_8_i4.c: Regenerated.
1956         * generated/minloc1_8_i8.c: Regenerated.
1957         * generated/minloc1_8_r4.c: Regenerated.
1958         * generated/minloc1_8_r8.c: Regenerated.
1959         * generated/minval_i4.c: Regenerated.
1960         * generated/minval_i8.c: Regenerated.
1961         * generated/minval_r4.c: Regenerated.
1962         * generated/minval_r8.c: Regenerated.
1963         * generated/product_c4.c: Regenerated.
1964         * generated/product_c8.c: Regenerated.
1965         * generated/product_i4.c: Regenerated.
1966         * generated/product_i8.c: Regenerated.
1967         * generated/product_r4.c: Regenerated.
1968         * generated/product_r8.c: Regenerated.
1969         * generated/sum_c4.c: Regenerated.
1970         * generated/sum_c8.c: Regenerated.
1971         * generated/sum_i4.c: Regenerated.
1972         * generated/sum_i8.c: Regenerated.
1973         * generated/sum_r4.c: Regenerated.
1974         * generated/sum_r8.c: Regenerated.
1976 2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>
1978         PR libfortran/18958
1979         libgfortran.h:  Change typedef of index_type from size_t
1980         to ssize_t.
1982 2005-04-30  Paul Thomas  <pault@gcc.gnu.org>
1984         PR libfortran/18857
1985         * generated/matmul_r8.c: Remove incorrect assertions.
1986         * generated/matmul_c4.c: Regenerate
1987         * generated/matmul_c8.c: Regenerate
1988         * generated/matmul_i4.c: Regenerate
1989         * generated/matmul_i8.c: Regenerate
1990         * generated/matmul_r4.c: Regenerate
1991         * generated/matmul_r8.c: Regenerate
1993 2005-04-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1995         * configure.ac: Check for ftruncate and chsize.
1996         * io/unix.c (fd_truncate): Provide chsize as alternative to
1997         ftruncate.
1998         * config.h.in: Regenerate.
1999         * configure: Regenerate.
2001 2004-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2003         * intrinsics/rename.c: Add missing #includes.
2005 2004-04-28  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2007         * AUTHORS, COPYING, INSTALL, NEWS, README: Remove.
2009 2005-04-26  David Edelsohn  <edelsohn@gnu.org>
2011         PR libfortran/20930
2012         * io/rewind.c (st_rewind): Flush the stream when resetting the mode
2013         from WRITING to READING.
2015 2005-04-22  Paul Thomas  <pault@gcc.gnu.org>
2016             Jerry DeLisle  <jvdelisle@verizon.net>
2018         * io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
2019         * io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
2020         call for ext_name.  These fix the bug reported by Jerry DeLisle to
2021         the fortran list and are based on his suggested fix.
2023 2005-04-22  Thomas Koenig  <Thomas.Koenig@online.de>
2025         PR libfortran/20074
2026         PR libfortran/20436
2027         PR libfortran/21108
2028         * m4/reshape.m4 (reshape_`'rtype_kind):  rs, rex:  New
2029         variables, to be used in calculation of return array sizes.
2030         Populate return array descriptor if ret->data is NULL.
2031         Fix condition for early return (it used to test something
2032         undefined if order was used).
2033         Remove duplicate check wether pad is used.
2034         * intrinsics/reshape_generic.c (reshape_generic): Likewise.
2035         Fix a few places where the wrong variables were set.
2036         * generated/reshape_i4.c: Regenerated.
2037         * generated/reshape_i8.c: Regenerated.
2039 2005-04-18  Paul  Thomas <pault@gcc.gnu.org>
2041         * io/list_read.c (nml_touch_nodes, nml_read_obj,
2042         nml_get_obj_data): Fix memory leaks in code for derived types.
2044 2005-04-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2046         PR libfortran/20950
2047         * io/inquire.c (inquire_via_unit): Check for the gfc_unit being
2048         NULL when setting ioparm.sequential.
2050 2005-04-17  Thomas Koenig  <Thomas.Koenig@online.de>
2052         PR libfortran/21075
2053         * m4/reshape.m4 (reshape_`'rtype_kind):  Change dimension
2054         of auxiliary arrays from GFC_MAX_DIMENSIONS - 1 to
2055         GFC_MAX_DIMENSIONS.
2056         * intrinsics/reshape_generic.c (reshape_generic):  Likewise.
2057         * generated/reshape_i4.c:  Regenerated.
2058         * generated/reshape_i8.c:  Regenerated.
2060 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
2062         * io/list_read.c (eat_separator): at_eol = 1 replaced
2063         (zapped at some time?).
2065 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
2067         PR libgfortran/12884
2068         PR libgfortran/17285
2069         PR libgfortran/18122
2070         PR libgfortran/18210
2071         PR libgfortran/18392
2072         PR libgfortran/18591
2073         PR libgfortran/18879
2074         * io/io.h (nml_ls): Declare.
2075         (namelist_info): Modify for arrays.
2076         * io/list_read.c (namelist_read): Reduced to call to new functions.
2077         (match_namelist_name): Simplified.
2078         (nml_query): Handles stdin queries ? and =?. New function.
2079         (nml_get_obj_data): Parses object name. New function.
2080         (touch_nml_nodes): Marks objects for read. New function.
2081         (untouch_nml_nodes): Resets objects. New function.
2082         (parse_qualifier): Parses and checks qualifiers. New function
2083         (nml_read_object): Reads and stores object data. New function.
2084         (eat_separator): No new_record on '/' in namelist.
2085         (finish_separator): No new_record on '/' in namelist.
2086         (read_logical): Error return for namelist.
2087         (read_integer): Error return for namelist.
2088         (read_complex): Error return for namelist.
2089         (read_real): Error return for namelist.
2090         * io/lock.c (library_end): Free extended namelist_info types.
2091         * io/transfer.c (st_set_nml_var): Modified for arrays.
2092         (st_set_nml_var_dim): Dimension descriptors. New function.
2093         * io/write.c (namelist_write): Reduced to call to new functions.
2094         (nml_write_obj): Writes output for object. New function.
2095         (write_integer): Suppress leading blanks for repeat counts.
2096         (write_int): Suppress leading blanks for repeat counts.
2097         (write_float): Suppress leading blanks for repeat counts.
2098         (output_float): Suppress leading blanks for repeat counts.
2100 2005-04-15  Thomas Koenig  <Thomas.Koenig@online.de>
2102         PR libfortran/18495
2103         * intrinsics/spread_generic.c (spread):  Remove const from
2104         return array descriptor.
2105         New variables: rrank (rank of return array),  rs (for
2106         calculating the size of the return array), srank (rank
2107         of the source array).
2108         Generate runtime error if the dim= argument is larger than
2109         the rank of the return array.
2110         Generate runtime error if the needed rank of the return
2111         array is larger than 7.
2112         If ret->data is null, populate the return array descriptor
2113         and initialize the variables for the actual operation.
2114         Otherwise, set ret->dim[0].stride to one if it is zero.
2115         Change second, independent use of variable dim to srank.
2117 2005-04-12  Mike Stump  <mrs@apple.com>
2119         * configure: Regenerate.
2121 2005-04-13  Thomas Koenig  <Thomas.Koenig@online.de>
2123         PR libfortran/19106
2124         * m4/iforeach.c (name`'rtype_qual`_'atype_code):  Add TODO
2125         that setting correct strides is a front end job.
2126         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
2127         a lowest stride of 0, adjust to 1.
2128         * m4/ifunction.c (name`'rtype_qual`_'atype_code):  Add TODO
2129         that setting correct strides is a front end job.
2130         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
2131         a lowest stride of 0, adjust to 1.
2132         * maxloc0_4_i4.c: Regenerated
2133         * maxloc0_4_i8.c: Regenerated
2134         * maxloc0_4_r4.c: Regenerated
2135         * maxloc0_4_r8.c: Regenerated
2136         * maxloc0_8_i4.c: Regenerated
2137         * maxloc0_8_i8.c: Regenerated
2138         * maxloc0_8_r4.c: Regenerated
2139         * maxloc0_8_r8.c: Regenerated
2140         * maxloc1_4_i4.c: Regenerated
2141         * maxloc1_4_i8.c: Regenerated
2142         * maxloc1_4_r4.c: Regenerated
2143         * maxloc1_4_r8.c: Regenerated
2144         * maxloc1_8_i4.c: Regenerated
2145         * maxloc1_8_i8.c: Regenerated
2146         * maxloc1_8_r4.c: Regenerated
2147         * maxloc1_8_r8.c: Regenerated
2148         * maxval_i4.c: Regenerated
2149         * maxval_i8.c: Regenerated
2150         * maxval_r4.c: Regenerated
2151         * maxval_r8.c: Regenerated
2152         * minloc0_4_i4.c: Regenerated
2153         * minloc0_4_i8.c: Regenerated
2154         * minloc0_4_r4.c: Regenerated
2155         * minloc0_4_r8.c: Regenerated
2156         * minloc0_8_i4.c: Regenerated
2157         * minloc0_8_i8.c: Regenerated
2158         * minloc0_8_r4.c: Regenerated
2159         * minloc0_8_r8.c: Regenerated
2160         * minloc1_4_i4.c: Regenerated
2161         * minloc1_4_i8.c: Regenerated
2162         * minloc1_4_r4.c: Regenerated
2163         * minloc1_4_r8.c: Regenerated
2164         * minloc1_8_i4.c: Regenerated
2165         * minloc1_8_i8.c: Regenerated
2166         * minloc1_8_r4.c: Regenerated
2167         * minloc1_8_r8.c: Regenerated
2168         * minval_i4.c: Regenerated
2169         * minval_i8.c: Regenerated
2170         * minval_r4.c: Regenerated
2171         * minval_r8.c: Regenerated
2172         * product_c4.c: Regenerated
2173         * product_c8.c: Regenerated
2174         * product_i4.c: Regenerated
2175         * product_i8.c: Regenerated
2176         * product_r4.c: Regenerated
2177         * product_r8.c: Regenerated
2178         * sum_c4.c: Regenerated
2179         * sum_c8.c: Regenerated
2180         * sum_i4.c: Regenerated
2181         * sum_i8.c: Regenerated
2182         * sum_r4.c: Regenerated
2183         * sum_r8.c: Regenerated
2185 2005-04-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2187         PR libfortran/20788
2188         * runtime/environ.c (init_unsigned_integer): Function for
2189         environment variables we want to be positive.
2190         (init_integer): Function to allow negative environment
2191         variables (e.g. for GFORTRAN_STDIN_UNIT).
2193 2005-04-10  Thomas Koenig <Thomas.Koenig@online.de>
2195         PR libfortran/17992
2196         PR libfortran/19568
2197         PR libfortran/19595
2198         PR libfortran/20005
2199         PR libfortran/20092
2200         PR libfortran/20131
2201         PR libfortran/20661
2202         PR libfortran/20744
2203         * io/transfer.c (top level): eor_condition: New static variable.
2204         (read_sf): Remove unnecessary zeroing of buffer (there is enough
2205         information in its length).
2206         Return a string of length 0 (to be padded by caller) if EOR was
2207         seen previously.
2208         Remove erroneous special casing of EOR for standard input.
2209         Set eor_condition for non-advancing I/O if an end of line was
2210         detected.
2211         Increment ioparm.size if necessary.
2212         (formatted_transfer):  Skip the function if there is an EOR condition.
2213         (data_transfer_init):  Initialize eor_condition to zero (false).
2214         (next_record_r):  Clear sf_seen_eor if a \n has been seen already.
2215         (finalize_transfer):  If there is an EOR condition, raise the error.
2217 2005-04-09  Bud Davis  <bdavis@gfortran.org>
2218             Steven G. Kargl <kargls@comcast.net>
2220         PR fortran/19872
2221         * io/transfer.c (data_transfer_init): truncate an existing
2222         file on the first write.
2224 2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
2226         PR libfortran/19106
2227         PR libfortran/19014
2228         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): ditto.
2229         If retarray->data is NULL (i.e. the front end does not
2230         know the rank and dimenson of the array), fill in its
2231         properties and allocate memory.
2232         Change the assertions about rank and dimension of retarray into
2233         runtime errors and only check them for retarray->data != NULL.
2234         Do the same for correcting the stride from 0 to 1 in retarray.
2235         (`m'name`'rtype_qual`_'atype_code): Likewise.
2236         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
2237         Change assertion about rank of array to runtime error.
2238         (`m'name`'rtype_qual`_'atype_code): Likewise.
2239         * generated/all_l4.c: Regenerated.
2240         * generated/all_l8.c: Regenerated.
2241         * generated/any_l4.c: Regenerated.
2242         * generated/any_l8.c: Regenerated.
2243         * generated/count_4_l4.c: Regenerated.
2244         * generated/count_4_l8.c: Regenerated.
2245         * generated/count_8_l4.c: Regenerated.
2246         * generated/count_8_l8.c: Regenerated.
2247         * generated/maxloc0_4_i4.c: Regenerated.
2248         * generated/maxloc0_4_i8.c: Regenerated.
2249         * generated/maxloc0_4_r4.c: Regenerated.
2250         * generated/maxloc0_4_r8.c: Regenerated.
2251         * generated/maxloc0_8_i4.c: Regenerated.
2252         * generated/maxloc0_8_i8.c: Regenerated.
2253         * generated/maxloc0_8_r4.c: Regenerated.
2254         * generated/maxloc0_8_r8.c: Regenerated.
2255         * generated/maxloc1_4_i4.c: Regenerated.
2256         * generated/maxloc1_4_i8.c: Regenerated.
2257         * generated/maxloc1_4_r4.c: Regenerated.
2258         * generated/maxloc1_4_r8.c: Regenerated.
2259         * generated/maxloc1_8_i4.c: Regenerated.
2260         * generated/maxloc1_8_i8.c: Regenerated.
2261         * generated/maxloc1_8_r4.c: Regenerated.
2262         * generated/maxloc1_8_r8.c: Regenerated.
2263         * generated/maxval_i4.c: Regenerated.
2264         * generated/maxval_i8.c: Regenerated.
2265         * generated/maxval_r4.c: Regenerated.
2266         * generated/maxval_r8.c: Regenerated.
2267         * generated/minloc0_4_i4.c: Regenerated.
2268         * generated/minloc0_4_i8.c: Regenerated.
2269         * generated/minloc0_4_r4.c: Regenerated.
2270         * generated/minloc0_4_r8.c: Regenerated.
2271         * generated/minloc0_8_i4.c: Regenerated.
2272         * generated/minloc0_8_i8.c: Regenerated.
2273         * generated/minloc0_8_r4.c: Regenerated.
2274         * generated/minloc0_8_r8.c: Regenerated.
2275         * generated/minloc1_4_i4.c: Regenerated.
2276         * generated/minloc1_4_i8.c: Regenerated.
2277         * generated/minloc1_4_r4.c: Regenerated.
2278         * generated/minloc1_4_r8.c: Regenerated.
2279         * generated/minloc1_8_i4.c: Regenerated.
2280         * generated/minloc1_8_i8.c: Regenerated.
2281         * generated/minloc1_8_r4.c: Regenerated.
2282         * generated/minloc1_8_r8.c: Regenerated.
2283         * generated/minval_i4.c: Regenerated.
2284         * generated/minval_i8.c: Regenerated.
2285         * generated/minval_r4.c: Regenerated.
2286         * generated/minval_r8.c: Regenerated.
2287         * generated/product_c4.c: Regenerated.
2288         * generated/product_c8.c: Regenerated.
2289         * generated/product_i4.c: Regenerated.
2290         * generated/product_i8.c: Regenerated.
2291         * generated/product_r4.c: Regenerated.
2292         * generated/product_r8.c: Regenerated.
2293         * generated/sum_c4.c: Regenerated.
2294         * generated/sum_c8.c: Regenerated.
2295         * generated/sum_i4.c: Regenerated.
2296         * generated/sum_i8.c: Regenerated.
2297         * generated/sum_r4.c: Regenerated.
2298         * generated/sum_r8.c: Regenerated.
2300 2005-04-09  Thomas Koenig <Thomas.Koenig@online.de>
2302         PR libfortran/20163
2303         * runtime/string.c (compare0): Use fstrlen() to
2304         strip trailing blanks from option string.
2306 2005-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
2308         PR fortran/13257
2309         * format.c (parse_format_list): Allow an optional comma
2310         between descriptors.
2312 2005-04-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2314         * io/backspace.c (unformatted_backspace): Do not dereference
2315         the pointer to the stream.
2317 2005-04-07  Andrew Pinski  <pinskia@physics.uc.edu>
2319         PR libfortran/20766
2320         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2321         "-Wl,-single_module".
2322         * configure: Regenerate.
2323         * Makefile.am (libgfortran_la_LDFLAGS): Add extra_ldflags_libgfortran.
2324         * Makefile.in: Regenerate.
2326 2005-04-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2328         PR libfortran/20755
2329         * write.c (write_float): A G edit descriptor may locally change
2330         the scale factor, but it needs to be restored afterwards.
2332 2005-04-03  Dale Ranta  <dir@lanl.gov>
2333             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2335         PR libfortran/20068
2336         PR libfortran/20125
2337         PR libfortran/20156
2338         PR libfortran/20471
2339         * io/backspace.c (unformatted_backspace): Fix error in arithmetic.
2340         (st_backspace): When in WRITING mode, we flush and falling back
2341         into READING mode. In all cases, correctly position the stream.
2343 2005-03-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2345         PR libfortran/20660
2346         * io/inquire.c (inquire_via_unit): Non-opened units should still be
2347         reported by an INQUIRE statement as existing.
2348         * io/transfer.c (data_transfer_init): Never accept negative units.
2350 2005-03-29  Dale Ranta  <dir@lanl.gov>
2351             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2353         PR libfortran/20163
2354         * io/open.c (st_open): call library_end() before returning even if
2355         an error arises.
2357 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2359         PR libfortran/19678
2360         * list_read.c (next_char, eat_separator, finish_separator, read_real)
2361         (namelist_read): Add support for '\r' as well as '\n' as EOL
2362         character.
2364         PR libfortran/19679
2365         * list_read.c (read_sf): Add a '\r' in a test to support DOS
2366         line-endings when line length is exceeded.
2368 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2370         PR libfortran/15332
2371         * io/format.c (parse_format_list): format node for colon edit
2372         descriptor needs a repeat counter set to 1.
2374 2005-02-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2376         * config.h.in: Regenerate.
2378 2005-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2380         PR libfortran/18025
2381         * write.c (output_float): Handling the "F0.d" format similarly as
2382         commercial compilers.
2384 2005-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2386         * Makefile.am: Added new files.
2387         * Makefile.in: Regenerate.
2388         * aclocal.m4: Regenerate.
2389         * configure.ac: add checks for signal.h headers file, as well as
2390         following functions: chdir, strerror, getlogin, gethostname, kill,
2391         link, symlink, perror, sleep, time.
2392         * configure: Regenerate.
2393         * intrinsics/chdir.c, intrinsics/gerror.c, intrinsics/getlog.c,
2394         intrinsics/hostnm.c, intrinsics/ierrno.c, intrinsics/kill.c,
2395         intrinsics/link.c, intrinsics/perror.c, intrinsics/rename.c,
2396         intrinsics/sleep.c, intrinsics/symlnk.c, intrinsics/time.c: Newly
2397         implementend g77 intrinsics.
2399 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
2401         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2402         In all substitutions, leave gcc_version to be expanded by the Makefile.
2403         * aclocal.m4, configure: Regenerate.
2404         * Makefile.am: Set gcc_version.
2405         * Makefile.in: Regenerate.
2407 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2409         PR libfortran/20257
2410         * open.c (new_unit): set record length to max_offset rather than
2411           using a hard-coded limit (which was too low).
2413 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2415         PR libfortran/20480
2416         * write.c (output_float): special check when writing 0.0 with
2417           EN and ES formats.
2419 2005-03-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2421         PR libfortran/20124
2422         * write.c (output_float): Adds a nzero_real variable to store
2423         the number of leading zeros whatever the format width is. Corrects
2424         the rounding of numbers less than 10^(-width). Fixes typo in an
2425         error message. Updates copyright years
2427 2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>
2429         * runtime/environ.c: Update copyright years.
2431 2005-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2433         * io/write.c: Update copyright years.
2435 2005-02-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2437         PR libfortran/20101
2438         * io/write.c (output_float): Added special check for value 0.0 in
2439         PE format.
2441 2004-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2443         * io/write.c (output_float): Fix typo in condition.
2445 2005-02-25  Peter O'Gorman  <peter@pogma.com>
2446             Toon Moene  <toon@moene.indiv.nluug.nl>
2448         PR libgfortran/17748
2449         * runtime/environ.c: Remove references to environ.
2450         (show_variables): remove GFORTRAN_UNBUFFERED_* and
2451         GFORTRAN_NAME_* because they require environ.
2452         (pattern_scan): Remove function.
2454 2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
2455             Bud Davis  <bdavis@gfortran.org>
2457         * io/list_read.c (read_real): Handle separators properly
2458         in list directed read.
2460 2004-02-21  Bud Davis  <bdavis@gfortran.org>
2462         PR fortran/20086
2463         * io/transfer.c (write_constant_string): accept an 'h' as
2464         the start of a hollerith format string.
2466 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2468         PR libfortran/19302
2469         * intrinsics/c99_functions.c (nextafterf): Special-case infinite
2470         numbers.
2472 2005-02-21  Steven G. Kargl  <kargls@comcast.net>
2474         * io/write.c (output_float):  Typo in error meesage.
2476 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
2478         PR 20085
2479         * intrinsic/args.c (iargc): Off by 1.
2481 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
2483         *  intrinsic/date_and_time.c: Fix conformance problems.
2485 2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
2487         PR libgfortran/19363
2488         PR libgfortran/19691
2489         * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
2491 2005-01-30  Bud Davis  <bdavis@gfortran.org>
2493         PR fortran/19647
2494         * io/inquire.c (inquire_via_unit): Use correct variable for
2495         pad.
2497 2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
2499         PR libfortran/19595
2500         * io/transfer.c (data_transfer_init): eor requires advance="NO".
2502 2005-01-25  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2504         PR libfortran/19524
2505         * io/read.c (read_f): Don't free uninitialized pointer.
2507 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
2508         Paul Brook  <paul@codesourcery.com>
2510         PR fortran/19294
2511         * Makefile.am: Add transpose_c4.c and transpose_c8.c.
2512         * intrinsics/cshift0.c: Use separate optimized loops for complex types.
2513         * m4/transpose.m4: Include type letter in function name.
2514         * Makefile.in: Regenerate.
2515         * generated/transpose_*.c: Regenerate.
2517 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
2519         PR libfortran/19451
2520         * io/transfer.c (finalize_transfer):  Don't do anything if
2521         there is an error condition.
2523 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
2525         PR libgfortran/19052
2526         * libgfortran.h (options_t): Add stderr_unit.
2527         * io/io.h (error_stream): Declare.
2528         * io/open.c (new_unit): Do not terminate abnormally if opening
2529         file preconnected to stdin, stdout, or stderr.
2530         * io/unit.c (init_units): Initialize stderr_unit.
2531         * io/unix.c (error_stream): New function.
2532         * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.
2534 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
2536         PR libfortran/18982
2537         * io/unix.c (regular_file):  No need to change flags->action
2538         if an error occurs.  Document this.
2539         No need to call stat() for STATUS_OLD, open() will
2540         fail anyway.
2541         For ACTION_UNSPECIFIED, try open for read-write, then for
2542         read-only if open fails with EACCES, then for write-only
2543         if that fails with EACCES again.
2544         * io/unix.c (open_external): Document changed behavior of
2545         regular_file.
2547 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2549         PR fortran/19194
2550         * io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
2551         use CHARACTER macro for definition of string valued paramters.
2553 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
2555         PR fortran/19314
2556         * io/inquire.c(inquire_via_unit): implement POSITION=.
2557         * io/transfer.c(next_record): update position for
2558         INQUIRE.
2559         * io/rewind.c(st_rewind): update position for
2560         INQUIRE.
2562 2005-01-16  Bud Davis  <bdavis9659@comcast.net>
2564         PR fortran/18778
2565         * io/transfer.c (us_read): no bytes available is not a
2566         runtime error.
2568 2005-01-15  Bud Davis  <bdavis9659@comcast.net>
2570         PR fortran/18983
2571         * io/transfer.c (st_write_done): only truncate when it
2572         is required.
2574 2005-01-12  Toon Moene  <toon@moene.indiv.nluug.nl>
2576         PR libfortran/19280
2577         c99_protos.h: License changed to GPL+exception.
2578         libgfortran.h: Ditto.
2579         intrinsics/abort.c: Ditto.
2580         intrinsics/args.c: Ditto.
2581         intrinsics/associated.c: Ditto.
2582         intrinsics/bessel.c: Ditto.
2583         intrinsics/c99_functions.c: Ditto.
2584         intrinsics/cpu_time.c: Ditto.
2585         intrinsics/cshift0.c: Ditto.
2586         intrinsics/date_and_time.c: Ditto.
2587         intrinsics/env.c: Ditto.
2588         intrinsics/eoshift0.c: Ditto.
2589         intrinsics/eoshift2.c: Ditto.
2590         intrinsics/erf.c: Ditto.
2591         intrinsics/etime.c: Ditto.
2592         intrinsics/exit.c: Ditto.
2593         intrinsics/flush.c: Ditto.
2594         intrinsics/fnum.c: Ditto.
2595         intrinsics/getXid.c: Ditto.
2596         intrinsics/getcwd.c: Ditto.
2597         intrinsics/ishftc.c: Ditto.
2598         intrinsics/mvbits.c: Ditto.
2599         intrinsics/pack_generic.c: Ditto.
2600         intrinsics/rand.c: Ditto.
2601         intrinsics/random.c: Ditto.
2602         intrinsics/reshape_generic.c: Ditto.
2603         intrinsics/reshape_packed.c: Ditto.
2604         intrinsics/size.c: Ditto.
2605         intrinsics/spread_generic.c: Ditto.
2606         intrinsics/stat.c: Ditto.
2607         intrinsics/string_intrinsics.c: Ditto.
2608         intrinsics/system.c: Ditto.
2609         intrinsics/system_clock.c: Ditto.
2610         intrinsics/transpose_generic.c: Ditto.
2611         intrinsics/umask.c: Ditto.
2612         intrinsics/unlink.c: Ditto.
2613         intrinsics/unpack_generic.c: Ditto.
2614         io/backspace.c: Ditto.
2615         io/close.c: Ditto.
2616         io/endfile.c: Ditto.
2617         io/format.c: Ditto.
2618         io/inquire.c: Ditto.
2619         io/io.h: Ditto.
2620         io/list_read.c: Ditto.
2621         io/lock.c: Ditto.
2622         io/open.c: Ditto.
2623         io/read.c: Ditto.
2624         io/rewind.c: Ditto.
2625         io/transfer.c: Ditto.
2626         io/unit.c: Ditto.
2627         io/unix.c: Ditto.
2628         io/write.c: Ditto.
2629         m4/all.m4: Ditto.
2630         m4/any.m4: Ditto.
2631         m4/cexp.m4: Ditto.
2632         m4/chyp.m4: Ditto.
2633         m4/count.m4: Ditto.
2634         m4/cshift1.m4: Ditto.
2635         m4/ctrig.m4: Ditto.
2636         m4/dotprod.m4: Ditto.
2637         m4/dotprodc.m4: Ditto.
2638         m4/dotprodl.m4: Ditto.
2639         m4/eoshift1.m4: Ditto.
2640         m4/eoshift3.m4: Ditto.
2641         m4/exponent.m4: Ditto.
2642         m4/fraction.m4: Ditto.
2643         m4/head.m4: Ditto.
2644         m4/iforeach.m4: Ditto.
2645         m4/ifunction.m4: Ditto.
2646         m4/in_pack.m4: Ditto.
2647         m4/in_unpack.m4: Ditto.
2648         m4/iparm.m4: Ditto.
2649         m4/matmul.m4: Ditto.
2650         m4/matmull.m4: Ditto.
2651         m4/maxloc0.m4: Ditto.
2652         m4/maxloc1.m4: Ditto.
2653         m4/maxval.m4: Ditto.
2654         m4/minloc0.m4: Ditto.
2655         m4/minloc1.m4: Ditto.
2656         m4/minval.m4: Ditto.
2657         m4/mtype.m4: Ditto.
2658         m4/nearest.m4: Ditto.
2659         m4/pow.m4: Ditto.
2660         m4/product.m4: Ditto.
2661         m4/reshape.m4: Ditto.
2662         m4/set_exponent.m4: Ditto.
2663         m4/shape.m4: Ditto.
2664         m4/specific.m4: Ditto.
2665         m4/specific2.m4: Ditto.
2666         m4/sum.m4: Ditto.
2667         m4/transpose.m4: Ditto.
2668         m4/types.m4: Ditto.
2669         runtime/environ.c: Ditto.
2670         runtime/error.c: Ditto.
2671         runtime/in_pack_generic.c: Ditto.
2672         runtime/in_unpack_generic.c: Ditto.
2673         runtime/main.c: Ditto.
2674         runtime/memory.c: Ditto.
2675         runtime/normalize.c: Ditto.
2676         runtime/pause.c: Ditto.
2677         runtime/select.c: Ditto.
2678         runtime/stop.c: Ditto.
2679         runtime/string.c: Ditto.
2680         generated/_abs_c4.f90: Regenerated.
2681         generated/_abs_c8.f90: Regenerated.
2682         generated/_abs_i4.f90: Regenerated.
2683         generated/_abs_i8.f90: Regenerated.
2684         generated/_abs_r4.f90: Regenerated.
2685         generated/_abs_r8.f90: Regenerated.
2686         generated/_acos_r4.f90: Regenerated.
2687         generated/_acos_r8.f90: Regenerated.
2688         generated/_aint_r4.f90: Regenerated.
2689         generated/_aint_r8.f90: Regenerated.
2690         generated/_anint_r4.f90: Regenerated.
2691         generated/_anint_r8.f90: Regenerated.
2692         generated/_asin_r4.f90: Regenerated.
2693         generated/_asin_r8.f90: Regenerated.
2694         generated/_atan2_r4.f90: Regenerated.
2695         generated/_atan2_r8.f90: Regenerated.
2696         generated/_atan_r4.f90: Regenerated.
2697         generated/_atan_r8.f90: Regenerated.
2698         generated/_conjg_c4.f90: Regenerated.
2699         generated/_conjg_c8.f90: Regenerated.
2700         generated/_cos_c4.f90: Regenerated.
2701         generated/_cos_c8.f90: Regenerated.
2702         generated/_cos_r4.f90: Regenerated.
2703         generated/_cos_r8.f90: Regenerated.
2704         generated/_cosh_r4.f90: Regenerated.
2705         generated/_cosh_r8.f90: Regenerated.
2706         generated/_dim_i4.f90: Regenerated.
2707         generated/_dim_i8.f90: Regenerated.
2708         generated/_dim_r4.f90: Regenerated.
2709         generated/_dim_r8.f90: Regenerated.
2710         generated/_exp_c4.f90: Regenerated.
2711         generated/_exp_c8.f90: Regenerated.
2712         generated/_exp_r4.f90: Regenerated.
2713         generated/_exp_r8.f90: Regenerated.
2714         generated/_log10_r4.f90: Regenerated.
2715         generated/_log10_r8.f90: Regenerated.
2716         generated/_log_c4.f90: Regenerated.
2717         generated/_log_c8.f90: Regenerated.
2718         generated/_log_r4.f90: Regenerated.
2719         generated/_log_r8.f90: Regenerated.
2720         generated/_mod_i4.f90: Regenerated.
2721         generated/_mod_i8.f90: Regenerated.
2722         generated/_mod_r4.f90: Regenerated.
2723         generated/_mod_r8.f90: Regenerated.
2724         generated/_sign_i4.f90: Regenerated.
2725         generated/_sign_i8.f90: Regenerated.
2726         generated/_sign_r4.f90: Regenerated.
2727         generated/_sign_r8.f90: Regenerated.
2728         generated/_sin_c4.f90: Regenerated.
2729         generated/_sin_c8.f90: Regenerated.
2730         generated/_sin_r4.f90: Regenerated.
2731         generated/_sin_r8.f90: Regenerated.
2732         generated/_sinh_r4.f90: Regenerated.
2733         generated/_sinh_r8.f90: Regenerated.
2734         generated/_sqrt_c4.f90: Regenerated.
2735         generated/_sqrt_c8.f90: Regenerated.
2736         generated/_sqrt_r4.f90: Regenerated.
2737         generated/_sqrt_r8.f90: Regenerated.
2738         generated/_tan_r4.f90: Regenerated.
2739         generated/_tan_r8.f90: Regenerated.
2740         generated/_tanh_r4.f90: Regenerated.
2741         generated/_tanh_r8.f90: Regenerated.
2742         generated/all_l4.c: Regenerated.
2743         generated/all_l8.c: Regenerated.
2744         generated/any_l4.c: Regenerated.
2745         generated/any_l8.c: Regenerated.
2746         generated/count_4_l4.c: Regenerated.
2747         generated/count_4_l8.c: Regenerated.
2748         generated/count_8_l4.c: Regenerated.
2749         generated/count_8_l8.c: Regenerated.
2750         generated/cshift1_4.c: Regenerated.
2751         generated/cshift1_8.c: Regenerated.
2752         generated/dotprod_c4.c: Regenerated.
2753         generated/dotprod_c8.c: Regenerated.
2754         generated/dotprod_i4.c: Regenerated.
2755         generated/dotprod_i8.c: Regenerated.
2756         generated/dotprod_l4.c: Regenerated.
2757         generated/dotprod_l8.c: Regenerated.
2758         generated/dotprod_r4.c: Regenerated.
2759         generated/dotprod_r8.c: Regenerated.
2760         generated/eoshift1_4.c: Regenerated.
2761         generated/eoshift1_8.c: Regenerated.
2762         generated/eoshift3_4.c: Regenerated.
2763         generated/eoshift3_8.c: Regenerated.
2764         generated/exp_c4.c: Regenerated.
2765         generated/exp_c8.c: Regenerated.
2766         generated/exponent_r4.c: Regenerated.
2767         generated/exponent_r8.c: Regenerated.
2768         generated/fraction_r4.c: Regenerated.
2769         generated/fraction_r8.c: Regenerated.
2770         generated/hyp_c4.c: Regenerated.
2771         generated/hyp_c8.c: Regenerated.
2772         generated/in_pack_i4.c: Regenerated.
2773         generated/in_pack_i8.c: Regenerated.
2774         generated/in_unpack_i4.c: Regenerated.
2775         generated/in_unpack_i8.c: Regenerated.
2776         generated/matmul_c4.c: Regenerated.
2777         generated/matmul_c8.c: Regenerated.
2778         generated/matmul_i4.c: Regenerated.
2779         generated/matmul_i8.c: Regenerated.
2780         generated/matmul_l4.c: Regenerated.
2781         generated/matmul_l8.c: Regenerated.
2782         generated/matmul_r4.c: Regenerated.
2783         generated/matmul_r8.c: Regenerated.
2784         generated/maxloc0_4_i4.c: Regenerated.
2785         generated/maxloc0_4_i8.c: Regenerated.
2786         generated/maxloc0_4_r4.c: Regenerated.
2787         generated/maxloc0_4_r8.c: Regenerated.
2788         generated/maxloc0_8_i4.c: Regenerated.
2789         generated/maxloc0_8_i8.c: Regenerated.
2790         generated/maxloc0_8_r4.c: Regenerated.
2791         generated/maxloc0_8_r8.c: Regenerated.
2792         generated/maxloc1_4_i4.c: Regenerated.
2793         generated/maxloc1_4_i8.c: Regenerated.
2794         generated/maxloc1_4_r4.c: Regenerated.
2795         generated/maxloc1_4_r8.c: Regenerated.
2796         generated/maxloc1_8_i4.c: Regenerated.
2797         generated/maxloc1_8_i8.c: Regenerated.
2798         generated/maxloc1_8_r4.c: Regenerated.
2799         generated/maxloc1_8_r8.c: Regenerated.
2800         generated/maxval_i4.c: Regenerated.
2801         generated/maxval_i8.c: Regenerated.
2802         generated/maxval_r4.c: Regenerated.
2803         generated/maxval_r8.c: Regenerated.
2804         generated/minloc0_4_i4.c: Regenerated.
2805         generated/minloc0_4_i8.c: Regenerated.
2806         generated/minloc0_4_r4.c: Regenerated.
2807         generated/minloc0_4_r8.c: Regenerated.
2808         generated/minloc0_8_i4.c: Regenerated.
2809         generated/minloc0_8_i8.c: Regenerated.
2810         generated/minloc0_8_r4.c: Regenerated.
2811         generated/minloc0_8_r8.c: Regenerated.
2812         generated/minloc1_4_i4.c: Regenerated.
2813         generated/minloc1_4_i8.c: Regenerated.
2814         generated/minloc1_4_r4.c: Regenerated.
2815         generated/minloc1_4_r8.c: Regenerated.
2816         generated/minloc1_8_i4.c: Regenerated.
2817         generated/minloc1_8_i8.c: Regenerated.
2818         generated/minloc1_8_r4.c: Regenerated.
2819         generated/minloc1_8_r8.c: Regenerated.
2820         generated/minval_i4.c: Regenerated.
2821         generated/minval_i8.c: Regenerated.
2822         generated/minval_r4.c: Regenerated.
2823         generated/minval_r8.c: Regenerated.
2824         generated/nearest_r4.c: Regenerated.
2825         generated/nearest_r8.c: Regenerated.
2826         generated/pow_c4_i4.c: Regenerated.
2827         generated/pow_c4_i8.c: Regenerated.
2828         generated/pow_c8_i4.c: Regenerated.
2829         generated/pow_c8_i8.c: Regenerated.
2830         generated/pow_i4_i4.c: Regenerated.
2831         generated/pow_i4_i8.c: Regenerated.
2832         generated/pow_i8_i4.c: Regenerated.
2833         generated/pow_i8_i8.c: Regenerated.
2834         generated/pow_r4_i4.c: Regenerated.
2835         generated/pow_r4_i8.c: Regenerated.
2836         generated/pow_r8_i4.c: Regenerated.
2837         generated/pow_r8_i8.c: Regenerated.
2838         generated/product_c4.c: Regenerated.
2839         generated/product_c8.c: Regenerated.
2840         generated/product_i4.c: Regenerated.
2841         generated/product_i8.c: Regenerated.
2842         generated/product_r4.c: Regenerated.
2843         generated/product_r8.c: Regenerated.
2844         generated/reshape_i4.c: Regenerated.
2845         generated/reshape_i8.c: Regenerated.
2846         generated/set_exponent_r4.c: Regenerated.
2847         generated/set_exponent_r8.c: Regenerated.
2848         generated/shape_i4.c: Regenerated.
2849         generated/shape_i8.c: Regenerated.
2850         generated/sum_c4.c: Regenerated.
2851         generated/sum_c8.c: Regenerated.
2852         generated/sum_i4.c: Regenerated.
2853         generated/sum_i8.c: Regenerated.
2854         generated/sum_r4.c: Regenerated.
2855         generated/sum_r8.c: Regenerated.
2856         generated/transpose_i4.c: Regenerated.
2857         generated/transpose_i8.c: Regenerated.
2858         generated/trig_c4.c: Regenerated.
2859         generated/trig_c8.c: Regenerated.
2861 2005-01-07  Bud Davis  <bdavis9659@comcast.net>
2863         PR fortran/18398
2864         * transfer.c (next_record_r): always skip the
2865         eol search if it was found during sf_read.
2867 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2869         * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
2870         Define.
2871         * intrinsics/ishftc.c: Update copyright years.
2872         (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
2873         * intrinsics/mvbits.c: Correct non-ASCII character in my name.
2874         Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
2876 2004-12-23  Bud Davis  <bdavis9659@comcast.net>
2878         PR fortran/19071
2879         * io/tranfer.c (formatted_transfer): moved check for
2880         format reversion inside the processing loop.
2882 2004-12-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2884         PR libfortran/19074
2885         * libgfortran.h (itoa): Rename to gfc_itoa.
2886         * io/write.c (itoa): Same.
2887         * runtime/environ.c (itoa): Same.
2888         * runtime/error.c (itoa): Same.
2890 2004-12-15  Bud Davis  <bdavis9659@comcast.net>
2891             Steven G. Kargl  <kargls@comcast.net>
2893         PR fortran/17597
2894         * io/list_read.c (read_real): do not push back a comma when
2895         it delimits a real value without a decimal point
2897 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
2899         * libgfortran/io/transfer.c (us_read): Use memcpy/memset
2900         instead of assignment to fill unaligned buffer.
2901         (us_write): Ditto.
2902         (next_record_w): Ditto.
2904 2004-12-14  Steven G. Kargl  <kargls@comcast.net>
2906         PR libfortran/18966
2907         * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
2908         * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
2909         * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
2910         * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
2912 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
2914         * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
2916 2004-12-12  Richard Henderson  <rth@redhat.com>
2918         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
2919         intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
2920         intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
2921         intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
2922         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
2923         m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
2924         m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
2925         instead of "__".
2926         * generated/*: Rebuild.
2928 2004-12-12  Richard Henderson  <rth@redhat.com>
2930         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
2931         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
2932         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
2933         * configure.ac: Use them.
2934         * configure, config.h.in, aclocal.m4: Rebuild.
2935         * libgfortran.h (prefix): Remove.
2936         (PREFIX, IPREFIX): New.
2937         (sym_rename, sym_rename1, sym_rename2): New.
2938         (internal_proto, export_proto, export_proto_np): New.
2939         (iexport_proto, iexport): New.
2940         (iexport_data_proto, iexport_data): New.
2941         * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
2942         intrinsics/cpu_time.c, intrinsics/cshift0.c,
2943         intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
2944         intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
2945         intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
2946         intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
2947         intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
2948         intrinsics/reshape_generic.c, intrinsics/size.c,
2949         intrinsics/spread_generic.c, intrinsics/stat.c,
2950         intrinsics/string_intrinsics.c, intrinsics/system.c,
2951         intrinsics/system_clock.c, intrinsics/transpose_generic.c,
2952         intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
2953         io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
2954         io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
2955         m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
2956         m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
2957         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
2958         m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
2959         m4/transpose.m4, runtime/environ.c, runtime/error.c,
2960         runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
2961         runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
2962         runtime/stop.c: Use them to mark symbols internal or external.
2963         * generated/*: Rebuild.
2965 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
2967         PR bootstrap/18895
2968         Revert 2004-12-07 change.
2969         * Makefile.am (AM_MAKEFLAGS): Delete.
2970         * Makefile.in: Regenerate.
2972 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
2974         * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
2975         * libgfortran/Makefile.in: Regenerate
2977 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
2979         * io/io.h (open_external): Change prototype.
2980         * io/unix.c (regular_file): Change prototype and set flags->action if
2981         needed.
2982         (open_external): Ditto.
2983         * io/open.c (new_unit): Let open_external set flags->action.
2985 2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2987         * configure.ac: Check for ieeefp.h.  Check for fabsf in libm.
2988         * configure: Regenerate.
2989         * config.h.in: Likewise.
2990         * c99_protos.h: New file.
2991         * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
2992         * intrinsics/c99_functions.c (fabsf): New function.
2994 2004-12-06  Richard Henderson  <rth@redhat.com>
2996         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
2997         intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
2998         intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
2999         m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
3000         of internal_malloc.
3001         * generated/*: Rebuild.
3003 2004-12-06  Richard Henderson  <rth@redhat.com>
3005         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
3006         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
3007         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
3008         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
3009         intrinsics/spread_generic.c, intrinsics/stat.c,
3010         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
3011         intrinsics/transpose_generic.c, intrinsics/unlink.c,
3012         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
3013         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
3014         io/write.c, runtime/environ.c, runtime/error.c,
3015         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
3016         runtime/memory.c, runtime/pause.c, runtime/stop.c,
3017         runtime/string.c: Whitespace fixes.
3019 2004-12-06  Richard Henderson  <rth@redhat.com>
3021         * Makefile.am: Generate all m4 output under $(srcdir).
3022         * Makefile.in: Regenerate.
3024 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3026         PR fortran/18710
3027         * io/transfer.c (unformatted_read, unformatted_write): width of
3028         a COMPLEX is twice its kind.
3030 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
3032         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
3033         * configure, aclocal.m4, Makefile.in: Regenerate.
3035 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
3037         PR libfortran/18284
3038         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
3039         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
3041 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
3043         * io/inquire.c (inquire_via_unit): do not allow a direct access
3044         file to be opened for sequential I/O.
3046 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
3047         Paul Brook  <paul@codesourcery.com>
3049         * intrinsics/flush.c: New file.
3050         * intrinsics/fnum.c: ditto
3051         * intrinsics/stat.c: ditto
3052         * io/io.h (unit_to_fd): Add prototype.
3053         * io/unix.c (unit_to_fd): New function.
3054         * configure.ac: Add test for members of struct stat.  Check for
3055         sys/types.h and sys/stat.h
3056         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
3057         * configure.in: Regenerate.
3058         * config.h.in: Regenerate.
3059         * Makefile.in: Regenerate.
3061 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3063         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
3065 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
3067         * io/unix.c (mmap_alloc_w_a): check for a write to a location
3068         less than the mapped area.
3070 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
3072         PR fortran/18364
3073         *  io/endfile.c (st_endfile): flush the stream before truncating.
3075 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
3077         * configure: Regenerate for libtool change.
3079 2004-11-22  Steven Bosscher  <stevenb@suse.de>
3081         PR libfortran/15960
3082         * configure.ac: Check for finite in libm.
3083         * libgfortran.h: Define isfinite macro if not defined.
3084         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
3085         HAVE_FPCLASSIFY.
3086         * io/write.c (write_float): Use isfinite instead of finite.
3087         * configure, config.h.in: Rebuilt.
3089 2004-11-20  Roger Sayle  <roger@eyesopen.com>
3091         * io/write.c (write_float, list_formatted_write): Fix indentation.
3093 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3095         PR target/16135
3096         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
3097         * configure.ac: Include LIBGFOR_TARGET_ILP32.
3098         * configure: Regenerate.
3099         * config.h.in: Likewise.
3100         * libgfortran.h: Provide default definitions for C99 types
3101         on ILP32 targets that don't have them.
3103         PR target/17999
3104         * configure.ac: Check for snprintf.
3105         * configure: Regenerate.
3106         * config.h.in: Likewise.
3107         * intrinsics/date_and_time.c (date_and_time): Do not
3108         use snprinf if it is not available.
3109         * io/write.c (output_float): Likewise.
3111 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
3113         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
3114         * Makefile.in: Regenerated
3115         * intrinsics/umask.c: New file
3116         * intrinsics/unlink.c: ditto
3117         * intrinsics/exit.c: ditto
3119 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
3121         * m4/matmul.m4: Loops reordered to improve cache behavior.
3122         * generated/matmul_??.c: Regenerated.
3124 2004-11-10  Paul Brook  <paul@codesourcery.com>
3126         PR fortran/18218
3127         * configure.ac: Check for strtof.
3128         * configure: Regenerate.
3129         * config.h.in: Regenerate.
3130         * io/read.c (convert_real): Use strtof if available.
3131         (convert_precision_real): Remove.
3132         (read_f): Avoid poor exponentiation algorithm.
3134 2004-11-05  Andreas Schwab  <schwab@suse.de>
3136         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
3137         AC_PROG_F77, F77 and FFLAGS.
3138         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
3139         FCCOMPILE instead of F77COMPILE.
3140         * configure, Makefile.in: Regenerate.
3142 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
3144         * acinclude.m4: Properly quote AC_CACHE_CHECK.
3145         * Makefile.am: Add in ACLOCAL_AMFLAGS.
3146         * aclocal.m4, configure, Makefile.in: Regenerate.
3148 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3150         * config.h.in: Regenerate.
3151         * configure: Regenerate.
3152         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
3153         * io/unix.c (S_IRGRP): Define if undefined.
3154         (S_IWGRP): Same.
3155         (S_IROTH): Same.
3156         (S_IWOTH): Same.
3157         (tempfile): Use mktemp if mkstemp missing, fix typos.
3159 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3161         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
3163 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
3165         * intrinsics/rand.c (irand): Handle NULL argument.
3167 2004-10-07  Paul Brook  <paul@codesourcery.com>
3169         * io/transfer.c (finalize_transfer): Free internal streams.
3170         * io/unix.c (mem_close): Free stream object.
3172 2004-10-07  Paul Brook  <paul@codesourcery.com>
3174         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
3175         error.
3177 2004-10-06  Paul Brook  <paul@codesourcery.com>
3179         PR libfortran/17709
3180         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
3182 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
3184         * intrinsics/mvbits.c: Commit the file.
3186 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3188         PR fortran/17283
3189         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
3190         if not done by caller.
3191         (__pack_s): New function.
3192         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
3193         allocating zero memory.
3195         PR fortran/17631
3196         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
3197         * Makefile.in: Regenerate.
3198         * intrinsics/mvbits.h: New file.
3200         PR fortran/17776
3201         * intrinsics/system.c: New file.
3202         * Makefile.am: Add dependency for the new file.
3203         * Makefile.in: Regenerate.
3205 2004-10-04  Paul Brook  <paul@codesourcery.com>
3206         Bud Davis  <bdavis9659@comcast.net>
3208         PR fortran/17706
3209         PR fortran/16434
3210         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
3211         BN and BZ formats.
3212         * io/write.c (output_float): Don't output minus zero.
3214 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3216         * intrinsics/abort.c ("libgfortran.h"): Move.
3217         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
3218         * intrinsics/write.c ("libgfortran.h"): Same.
3220 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
3222         PR libfortran/16137
3223         * config.h.in (HAVE_POWF): Undefine.
3224         * configure.ac: Check for 'powf' in library.
3225         * configure: Regenerate.
3226         * intrinsics/c99_functions.c (powf): New function.
3228 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
3230         * intrinsics/etime.c (etime_): New function.
3232 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
3234         * libgfortran.h: define gfc_alloca()
3235         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
3237 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
3239         PR fortran/17286
3240         * io/list_read.c (namelist_read): ignore spaces after
3241         the '=' for namelist reads.
3243 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3245         * config.h.in: Regenerate.
3246         * configure: Regenerate.
3247         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
3248         * unix.c: Include stdio.h.
3249         (HAVE_SYS_MMAN_H): Check.
3250         (PROT_READ, PROT_WRITE): Provide default definitions.
3252 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
3254         * intrincics/getcwd.c: New file.
3255         * Makefile.am: Add getcwd.c.
3256         * Makefile.in: Regenerated.
3258 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
3259         Paul Brook  <paul@codesourcery.com>
3261         * intrinsics/env.c (getenv, get_environmental_variable): Remove
3262         trailing white space.  Use alloca.  Honour trim_name.
3264 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
3266         PR fortran/17090
3268         * io/list_read.c (list_formatted_read): Handle trailing spaces
3269         at end of line.
3271 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
3273         * io/write.c (output_float): Typo in comment.  Remove debugging
3274         printf.  Fix format for FP of form 1e10.
3276 2004-09-03  Richard Henderson  <rth@redhat.com>
3278         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
3279         copy_loop_double, copy_loop_ldouble): New.
3280         (__cshift0): Make shift type ssize_t.  Use % operator instead of
3281         div.  Use specialized versions of copy loop depending on the shape.
3283 2004-09-02  Paul Brook  <paul@codesourcery.com>
3285         * io/format.c (parse_format_list): Set repeat count for P descriptors.
3286         * write.c (output_float): Fix condition.  Correctly handle nonzero
3287         scale factor.
3289 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
3291         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
3292         * mk-srk-inc.sh: Likewise.
3294 2004-09-01  Paul Brook  <paul@codesourcery.com>
3296         * runtime/error.c (generate_error): Set both iostat and
3297         library_return.
3299 2004-08-31  Paul Brook  <paul@codesourcery.com>
3301         PR libfortran/16805
3302         * io/list_read.c (next_char): Don't signal EOF for internal files.
3303         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
3305 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3307         * io/unit.c: Separate copyright years by ','.
3308         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
3309         Remove blank line in beginning of function.
3310         (get_unit): Simplify code.
3312 2004-08-31  Paul Brook  <paul@codesourcery.com>
3314         * io/unit.c (get_unit): Remove superfluous if.
3316 2004-08-31  Paul Brook  <paul@codesourcery.com>
3318         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
3319         (finalize_transfer): Move setjmp after namlist IO.
3320         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
3322 2004-08-31  Paul Brook  <paul@codesourcery.com>
3324         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
3326 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3328         * libgfortran.h: Replace 'gfc_strlen_type' by
3329         'gfc_charlen_type'. Update comment accordingly.
3330         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
3331         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
3333 2004-08-31  Paul Brook  <paul@codesourcery.com>
3335         * libgfortran.h: Add comments.
3337 2004-08-30  Richard Henderson  <rth@redhat.com>
3339         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
3340         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
3341         (selected_int_kind.inc selected_real_kind.inc): New rules.
3342         * Makefile.in: Regenerate.
3343         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
3344         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
3345         include table of detected kinds.
3346         * intrinsics/selected_real_kind.f90: Similarly.
3348 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
3349         Paul Brook  <paul@codesourcery.com>
3351         * intrinsics/bessel.c: New file.
3352         * intrinsics/erf.c: New file.
3353         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
3354         * configure.ac: Test for C99 Bessel and Error functions.
3355         * Makefile.in: Regenerate.
3356         * config.h.in: Regenerate.
3357         * configure: Regenerate.
3359 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
3360         Paul Brook  <paul@codesourcery.com>
3362         * Makefile.am: Add intrinsics/getXid.c.
3363         * configure.ac: Add tests for get{g,p,u}id.
3364         * config.h.in: Regenerate.
3365         * Makefile.in: Regenerate.
3366         * configure: Regenerate.
3368 2004-08-28  Paul Brook  <paul@codesourcery.com>
3370         PR libfortran/17195
3371         * libgfortran.h (rtoa): Remove prototype.
3372         * runtime/error.c (rtoa): Remove.
3373         * io/write.c (calculate_G_format): Don't add blanks if E format is
3374         used.  Add correct number of blanks when exponent width is specified.
3375         (output_float): Rewrite.
3377 2004-08-27  Paul Brook  <paul@codesourcery.com>
3379         * io/rewind.c (st_rewind): Reset unit to read mode.
3381 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
3383         PR fortran/16597
3384         * io/io.h: created typedef for unit_mode.
3385         * io/io.h (gfc_unit): added mode to unit structure.
3386         * io/transfer.c (data_transfer_init): flush if a write then
3387         read is done on a unit (direct access files).
3388         * io/rewind.c (st_rewind): Used unit mode instead of global.
3390 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
3392         PR fortran/17143
3393         * runtime/error.c (itoa): keep from overflowing during
3394         mod operation by using unsigned variable.
3396 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
3398         PR fortran/17164
3399         * runtime/string_intrinsics.c (string_index):check for
3400         substring longer than string.
3402 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
3404         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
3405         * Makefile.in: Rebuilt.
3407 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3409         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
3410         Fix formatting issues, update copyright years.
3412 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
3414         PR 16908
3415         * io/transfer.c (next_record_w): Do not blank pad.
3416         * io/transfer.c (next_record): Take into account partial records.
3418 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
3420         PR fortran/13278
3421         * io/transfer.c (st_set_nml_var)
3422         * io/write.c (namelist_write): Allow var_name and var_name_len to be
3423         null. For strings, use string_length field instead of len.
3424         * io/io.h (struct namelist_type): New field string_length.
3425         (st_set_nml_var_char): New argument string_length.
3427 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
3429         PR gfortran/16935
3430         * io/open.c (st_open): use flags instead of the unit structure.
3432 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
3434         * io/list_read.c (namelist_read): Convert variable names
3435         to lower case, so that mixed-case names are recognized.
3436         Don't read beyond terminating slash.
3438 2004-08-09  Richard Henderson  <rth@redhat.com>
3439             Roger Sayle  <roger@eyesopen.com>
3441         * intrinsics/c99_functions.c (nextafterf): New implementation that
3442         works correctly with denormalized numbers.
3444 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
3446         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
3447         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
3448         Allocate space if return value has NULL in its data field.
3449         * generated/*.c: Regenerate.
3451 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3453         * intrinsics/env.c: New file.
3454         * Makefile.am: Add env.c to build.
3455         * Makefile.in: Regenerate.
3457 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
3459         PR libgfortran/16704
3460         * io/read.c (read_radix): Understand letters f and F as hex digits.
3462 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
3464         * libgfortran.h (array_t, size0) New declarations.
3465         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
3466         space if return value descriptor has NULL in its data field,
3467         and initialize bounds and stride.
3468         * intrinsics/size.c (array_t, size0): Declarations moved to
3469         libgfortran.h.
3470         * generated/*.c: Regenerate.
3472 2004-08-03  Roger Sayle  <roger@eyesopen.com>
3474         PR libgfortran/16137
3475         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
3476         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
3477         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
3478         * config.h.in: Regenerate.
3479         * configure: Regenerate.
3481         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
3482         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
3483         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
3484         implementations for targets that don't support C99 float functions.
3486 2004-08-01  Roger Sayle  <roger@eyesopen.com>
3488         * io/write.c (write_float): Use the slightly more portable isnan
3489         in preference to isinf.
3491 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
3493         * configure.ac: Add check for LFS support.
3494         * configure: Regenerate
3496 2004-07-11  Paul Brook  <paul@codesourcery.com>
3498         PR fortran/16303
3499         * m4/cexp.m4 (carg): Return -pi to pi.
3500         * generated/exp_c?.c: Regenerate.
3502 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
3504         PR fortran/16291
3505         * libgfortran/io/write.c: (write_float): Added length check.
3506         Remove pointless memset calls.
3508 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
3509             Paul Brook  <paul@codesourcery.com>
3511         PR fortran/15472
3512         * io/transfer.c(us_write): set recl for seq unform writes to max size.
3513         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
3514         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
3515         right time.
3516         * io/unix.c(is_seekable): set based upon the file/device, not the
3517         method being used to access it (fd or mmap).
3518         * io/unix.c(fd_flush): don't set file_size if !seekable.
3519         * io/unix.c(fd_truncate: ditto.
3521 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3522         Paul Brook  <paul@codesourcery.com>
3524         PR fortran/15280
3525         PR fortran/15665
3526         * libgfortran.h (gfc_strlen_type): Define.
3527         * intrinsics/args.c (getarg): Rename ...
3528         (getarg_i4): ... to this.
3529         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
3530         get_command_i4, get_command_i8): New functions.
3532 2004-07-04  Matthias Klose  <doko@debian.org>
3534         * libtool-version: New.
3535         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
3536         * Makefile.in: Regenerate.
3537         * configure.ac: Remove libtool_VERSION macro
3538         * configure: Regenerate
3540 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
3541             Steven Bosscher  <stevenb@suse.de>
3543         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
3544         commit in prefix.
3546 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3547         Paul Brook  <paul@codesourcery.com>
3549         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
3550         comments.
3551         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
3553 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
3555         PR gfortran/12839
3556         * io/write.c (write_float): check signbit for Infinity.
3558 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
3560         PR gfortran/16196
3561         * unix.c(regular_file): create file if it does not exist.
3563 2004-06-24  Andrew Pinski  <apinski@apple.com>
3565         * configure.ac: Remove check for libmx.
3566         * configure: Regenerate.
3568 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3570         PR fortran/15750
3571         * inquire.c (st_inquire): Add comment
3572         * io.h (st_parameter): Add iolength.
3573         (st_iolength, st_iolength_done): Declare.
3574         * transfer.c (iolength_transfer, iolength_transfer_init,
3575         st_iolength, st_iolength_done): New functions.
3577 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
3579         * etime.c (etime_sub): Remove array rank check;
3580         Add check for sufficient space.
3582 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
3584         PR gfortran/16080
3585         * io/list_read.c(set_value): fixed spelling.
3587 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
3589         PR gfortran/16080
3590         * io/list_read.c(set_value): don't copy if the string is null.
3592 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
3594         PR gfortran/15292
3595         * intrinsics/c99_functions.c: Use fpclassify if it exists.
3597 2004-06-13  Paul Brook  <paul@codesourcery.com>
3599         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
3600         * configure.ac: Add checks for nextafter and nextafterf.
3601         * Makefile.in, config.h.in, configure: Regenerate.
3602         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
3603         * intrinsics/rand.c (rand): Use normalize_r4_i4.
3604         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
3605         (random_r8): Use normalize_r8_i8.
3606         * runtime/normalize.c: New file.
3608 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
3609             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3611         * random.c: Fix several spelling and formatting mistakes in
3612         comments.
3613         (random_r8): Fix loop to make random numbers range in [0,1(.
3616 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
3618         * random.c (random_r4): Burn a random number.
3619         (random_r8): fix infinite loop.
3621 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3622             Steve Kargl  <sgk@troutmask.apl.washington.edu>
3624         PR gfortran/15292
3625         * intrinsics/c99_functions.c: New file.
3626         * Makefile.am: Add new file.
3627         * configure.ac: Added test for round/roundf.
3628         * Makefile.in: Regenerate.
3629         * configure: Regenerate.
3630         * configure.h.in: Regenerate.
3632 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
3634         * Makefile.am: Add rand.c and etime.c
3635         * Makefile.in: Regenerated.
3636         * aclocal.in: Regenerated.
3637         * cpu_time.c (second_sub, second): New functions.
3638         * rand.c (irand, rand, srand): New file.
3639         * etime.c (etime_sub, etime): New file.
3641 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3642             Steven Bosscher  <stevenb@suse.de>
3644         PR fortran/14923
3645         * intrinsics/date_and_time.c: New file.
3646         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
3647         * Makefile.in, aclocal.m4: Regenerate.
3648         * libgfortran.h: Prototype date_and_time().
3650 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3652         PR fortran/15665
3653         * intrinsics/args.c: Implement GETARG and IARGC.
3654         * Makefile.am: Add it.
3655         * Makefile.in: Regenerate.
3657 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3659         PR gfortran/12839
3660         * io/write.c(write_float): Format inf and nan IAW F2003.
3662 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
3664         PR gfortran/14897
3665         * io/transfer.c (formatted_transfer): position is unique
3666          for T and TL edit descriptors.
3667         (data_transfer_init): set record length to size of internal
3668          file.
3670 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
3672         PR gfortran/15755
3673         * io/backspace.c(st_backspace): call correct routine for
3674         formatted and un-formatted units.
3676 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
3678         PR gfortran/11800
3679         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
3680         (lib_LTLIBRARIES): Rename to ...
3681         (toolexeclib_LTLIBRARIES): this for multilib support.
3682         * configure.in: Rename to ...
3683         * configure.ac: this.  Update to modern autoconf style, enable
3684         multilibs, support --enable-version-specific-runtime-libs.
3685         * Makefile.in: Regenerated.
3686         * configure: Regenerated.
3687         * aclocal.m4: Regenerated.
3689 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
3691         * libgfortran.h (random_seed): Update prototype.
3692         * intrinsics/random.c: Disable old implementation and add new one.
3694 2004-05-30  Andreas Jaeger  <aj@suse.de>
3696         * intrinsics/random.c: Include unistd.h for close and read
3697         prototypes, remove unneeded inclusion of assert.h.
3699         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
3700         unneeded inclusion of assert.h.
3702 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
3704         PR fortran/15234
3705         * intrinsics/associated.c: Remove enum.
3706         (associated): Replace TRUE/FALSE by 1/0.
3708 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
3710         * random.c (random_seed): Use correct variable.
3712 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
3714         * intrinsics/system_clock: New file.
3715         * Makefile.am: Add intrinsics/system_clock.c.
3716         * Makefile.in: Regenerate.
3718 2004-05-21  Roger Sayle  <roger@eyesopen.com>
3720         * io/format.c (parse_format_list): Allow the comma after a string
3721         literal to be optional.
3723 2004-05-18  Paul Brook  <paul@codesourcery.com>
3724         Feng Wang  <fengwang@nudt.edu.cn>
3726         * Makefile.am (i_pow_c): Set it. Add build rule.
3727         (gfor_built_src): Use it.
3728         (m4_files): add m4/pow.m4.
3729         * Makefile.in: Regenerate.
3730         * m4/pow.m4: New file.
3731         * generated/pow_*.c: Regenerate.
3733 2004-05-18  Paul Brook  <paul@codesourcery.com>
3735         * Makefile.am: Remove references to types.m4.
3736         * m4/iparm.m4: Merge with types.m4.
3737         * m4/types.m4: Remove.
3738         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
3739         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
3740         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
3741         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
3742         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
3743         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
3744         Update to use new iparm.m4.
3745         * generated/*.c: Regenerate.
3747 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3749         PR fortran/15235
3750         * gfortran.h (offset_t): Rename to ...
3751         (gfc_offset): ... this.
3752         * io/backspace.c (formatted_backspace, unformatted_backspace),
3753         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
3754         transfer.c (us_read, us_write, next_record_r, next_record_w),
3755         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
3756         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
3757         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
3758         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
3759         occurences of offset_t by gfc_offset.
3761 2004-05-16  Paul Brook  <paul@codesourcery.com>
3763         * io/format.c (write_real): Don't include padding in format.
3765 2004-05-16  Paul Brook  <paul@codesourcery.com>
3767         * io/format.c (format_lex): Make c an int.
3769 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3770         Paul Brook  <paul@codesourcery.com>
3772         * io/write.c (write_logical): Don't print extra blank.
3773         (write_integer): Base field width on kind.
3774         (list_formatted_write): Output initial blank.
3776 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3778         * io/io.h (flush): Add prototype.
3779         * io/transfer.c (finalize_transfer): Flush partial records.
3780         * io/unix.c (flush): New function.
3782 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3784         PR fortran/15234
3785         * io/io.h (unit_t): Rename to ...
3786         (gfc_unit) ... this.
3787         (unit_root, current_unit, find_file, find_unit, get_unit): Now
3788         of type gfc_unit.
3789         (delete_file, insert_unit, close_unit): Argument now of type
3790         gfc_unit.
3791         * backspace.c (st_backspace), close.c (st_close), endfile.c
3792         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
3793         (test_endfile, edit_modes, new_unit, already_open, st_open),
3794         rewind.c (st_rewind), transfer.c (current_unit), unit.c
3795         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
3796         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
3797         get_unit, init_units, close_unit), unix.c (find_file0,
3798         find_file, delete_file): Replace all occurences of unit_t by
3799         gfc_unit.
3801 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
3803         PR fortran/15311
3804         * io/write.c (write_a): right justify A edit output.
3806 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
3808         PR fortran/15149
3809         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
3810         * runtime/main.c(init): Call random_seed as part of MAIN init.
3812 2004-05-13  Tobias Schlter  <tobias.schlueter@physik.uni-muenchen.de>
3814         * io/format.c: (parse_format_list): No comma is required after
3815         P descriptor.
3817 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
3819         PR fortran/15204
3820         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
3822 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3823             Steven Bosscher  <stevenb@suse.de>
3825         PR libfortran/15234
3826         * libgfortran.h: Include <inttypes.h> if available.
3828 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3830         * io/unix.c (MAP_FAILED): Define if missing.
3831         (mmap_alloc): Cast MAP_FAILED to char *.
3832         (mmap_open): Likewise.
3834 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
3836         * generated/_abs_i8.f90: New file.
3837         * generated/_abs_c4.f90: New file.
3838         * generated/_abs_c8.f90: New file.
3839         * Makefile.am: Add them.
3840         * Makefile.in: Regenerate.
3842 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
3844         PR fortran/14056
3845         * generated/_abs_i4.f90: New file.
3846         * Makefile.am: Add it.
3847         * Makefile.in: Regenerate.
3849 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
3851         PR fortran/14942
3852         * io/list_read.c(list_formatted_read): finish consuming the
3853         spaces and seperators at eoln to get ready for next item.
3855 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
3857         PR fortran/15113
3858         * io/read.c(read_a): Handle field width > destination and no field width.
3860 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
3862         PR fortran/14906
3863         * io/format.c (format_item): gracefully handle a ')'
3864         when it is the first character encountered in the string.
3866 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3868         PR fortran/14904
3869         * io/transfer.c (next_record): Update last_record when
3870         more than one record is written to a direct access file
3871         with one write statement.
3873 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3875         PR fortran/14901
3876         * io/transfer.c (next_record_w) : No '\n' if internal.
3877         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
3879 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3881         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
3882         Will need to change this later to support direct access files > 2gb.
3884 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3886         PR gfortran/14762
3887         * io/transfer.c (next_record_r) : Skip to next record.
3889 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3891         PR gfortran/14836
3892         * io/transfer.c (next_record): Update last_record for DIRECT
3894 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3896         PR gfortran/14837
3897         * io/unix.c (find_file0): Use fd field of struct
3899 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3901         PR 14831
3902         * io/inquire.c (inquire_via_unit): Changed return string for
3903         BLANK=NULL. Use correct variable for ACTION.
3905 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
3907         PR 14746
3908         * io/read.c (read_f): Allow a decimal without a leading digit.
3909         * io/write.c (output_float): remove a leading '0' to keep from
3910         overflowing the field (F edit descriptor).
3912 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
3914         PR gfortran/14565
3915         * io/open.c (new_unit),
3916         * io/io.h : new_unit is now visible
3917         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
3918         * io/transfer.c (data_transfer_init): remove compile warnings.
3919         * io/rewind.c (st_rewind): ftruncate if writing.
3921 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3923         * write.c (write_l): Use extract_int for 'L' edit descriptor.
3925 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3927         PR 13919
3928         * io/io.h (global_t):
3929         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
3930           Move eof_jmp to a global structure.
3931         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
3933 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3935         * m4/cexp.m4 (csqrt): Actually use the passed value.
3936         * generated/exp_c?.c: Regenerate.
3938 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3940         PR 12921
3941         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
3942         * open.c (new_unit): Moved test for positioned direct access error.
3943         (init_units): Corrected calculation of max records.
3945 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
3947         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
3948         * Makefile.in: Regenerate.
3949         * m4/dotprodc.m4: New file. Implement complex dot_product.
3950         * m4/dotprod.m4: Delete the complex implementation.
3951         * generated/dotprod_*: Update.
3953 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
3955         * transfer.c (write_constant_string): Do not delete H's in hollerith
3956         formats.
3958 2004-01-05  Andrew Pinski  <apinski@apple.com>
3960         * configure.in: Check for csin in -lmx also.
3961         * configure: Regenerate.
3963 2004-01-01  Paul Brook  <paul@codesourcery.com>
3965         * io/list_read.c (find_nml_node): Make static.
3966         (match_namelist_name): Ditto.
3967         * io/read.c (convert_precision_real): Make static, fix spelling.
3968         * io/transfer.c (extract_real): Remove unused prototype.
3969         (st_set_nml_var): Make static.
3970         * io/write.c (extract_real): Make static.
3972 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
3974         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
3976 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
3978         * io/transfer.c (data_transfer_init): Give a runtime error for list
3979         formatted reads and writes from/to files opened for unformatted IO.
3981 2003-11-30  Paul Brook  <paul@nowt.org>
3983         * runtime/memory.c (push_context): Remove.
3984         (pop_context): Remove.
3985         * libgfortran.h: Remove prototypes.
3987 2003-11-27  Paul Brook  <paul@nowt.org>
3989         * runtime/memory.c (deallocate): Nullify pointer after freeing.
3991 2003-11-27  Paul Brook  <paul@nowt.org>
3993         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
3994         * libgfortran.h: Ditto.
3995         * m4/in_pack.m4: Ditto.
3996         * runtime/in_pack_generic.c: Ditto.
3997         * runtime/memory.c: Ditto.
3999 2003-11-26  Richard Henderson  <rth@redhat.com>
4001         * m4/exponent.m4, m4/fraction.m4: New.
4002         * m4/nearest.m4, m4/set_exponent.m4: New.
4003         * generated/*: Update.
4004         * Makefile.am: Add them.
4005         (AM_CFLAGS): New.  Use -std=gnu99.
4006         * Makefile.in: Regenerate.
4008 2003-11-08  Paul Brook  <paul@nowt.org>
4010         PR fortran/12704
4011         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
4012         * m4/maxloc1.m4: Ditto.
4013         * m4/minloc0.m4: Ditto.
4014         * m4/minloc1.m4: Ditto.
4015         * m4/ifunction.m4: Set return value for zero sized arrays.
4016         * m4/iforeach.m4: Ditto.
4017         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
4018         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
4019         * generated/*: Update.
4021 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
4023         PR fortran/12702
4024         * io/list_read.c (eat_spaces): Treat tab as space.
4026 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
4028         * intrinsics/random.c: Add reference to paper containing algorithm.
4029         (random_seed): Extra error checking and proper handling of arrays.
4030         (arandom_r4, arandom_r8): Implement.
4032 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
4034         PR fortran/12703
4035         * runtime/memory.c (allocate_size): Allow allocation
4036         of zero-sized objects.
4038 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
4040         PR fortran/12701
4041         * open.c (new_unit): Open without a file name opens
4042         a file with name fort.<unit>.
4044 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
4046         * intrinsics/cshift0.c: New file.
4047         * m4/cshift1.m4: New file
4048         * generated/cshift*.c: New files.
4049         * Makefile.am: Add them.
4050         * Makefile.in: Regenerate.
4052 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
4054         * io/list_read.c (read_character): Remove unwanted call to free_saved.
4056 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
4058         * intrinsics/string_intrinsics.c (string_trim): New function.
4059         (string_repeat): New function.
4061 2003-10-11  Paul Brook  <paul@nowt.org>
4063         * intrinsics/dprod_r8.f90: New file.
4064         * Makefile.am (gfor_specific_src): Add it.
4065         (gfor_built_specific_src): Rename from gfor_build_specific_c.
4066         Add new intrinsics.
4067         (gfor_specific2_src): Rename from gfor_built_specific2_c.
4068         Add new intrinsics.
4069         * Makefile.in: Regenerate.
4070         * generated/_aint_*.f90: New files.
4071         * generated/_anint*.f90: New files.
4072         * generated/_atan2*.f90: New files.
4073         * generated/_mod*.f90: New files.
4075 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4077         * intrinsics/selected_kind.f90: New file.
4078         * Makefile.am: Add it.
4079         * Makefile.in: regenerate.
4081 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
4082         Paul Brook  <paul@nowt.org>
4084         * intrinsics/random.c: New file.
4085         * Makefile.am (gfor_hemper_src): Add it.
4086         (gfor_specific_c): Fix typo.
4088 2003-09-19  Paul Brook  <paul@nowt.org>
4090         * All: rename g95->gfc.
4092 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
4094         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
4096 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
4098         * io/write.c (write_float): Dectection of positive infinite number,
4099         Not a Number(NaN) and negative infinite number.
4100         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
4101         output a very_very small number ( < 0.1e-100 ).
4103 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
4105         * libgfortran.h (xtoa, itoa): Parameter modified.
4106         * io/io.h (namelist_info): Declaration to support namelist I/O
4107         (st_parameter): Add namelist related component
4108         (ionml, empty_internal_buffer, st_set_nml_var_int,
4109         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
4110         st_set_nml_var_log): Declaration
4111         (set_integer, set_integer): Parameter changed
4112         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
4113          fnodes
4114         (parse_format_list): Fix bug about FMT_SLASH
4115         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
4116         newly allocated saved_string
4117         (next_char): Add detection of End_Of_Line support
4118         (convert_integer): Now can process 64 bits interger
4119         (read_real): Bug fixed
4120         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
4121         (match_namelist_name): New implemention
4122         * io/lock.c (ionml): New global variable
4123         (library_end): Free memory in ionml
4124         * io/open.c (st_open): Variable initializtion
4125         * io/read.c (max_value): 64 bits interger support
4126         (convert_precsion_real): New procedure to replace "strtod" with more
4127          features
4128         (read_f, read_radix): Input bug fix
4129         * io/transfer.c: (sf_seen_eor): New static variable
4130         (read_sf): Zeroize base buffer; fix bugs: single read statement can
4131         not get input in mutli line when read from stdin
4132         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
4133          request
4134         (data_transfer_init): Clear internal buffer for Internel File I/O.
4135         Internal File now worked. Detect some error condition for namelist.
4136         Some minor bug fix
4137         (next_record_w): Internal file and Namelist I/O support.
4138         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
4139         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
4140         * io/unit.c (implicit_unit): Deletion
4141         (get_unit): Now cannot open a unit implicitly.
4142         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
4143         mapped buffer.
4144         (mem_alloc_r_at): Internal file I/O support added
4145         (empty_internal_buffer): New function
4146         * io/write.c (extract_int): Support 64 bits interger processing
4147         (output_float): Varibale initialization
4148         (write_float): Infinite real number detection.
4149         (write_int): 64 bits integer I/O support
4150         (write_decimal): New function to output decimal number
4151         (otoa, btoa): Better implemention and 64 bits interger support
4152         (namelist_write): New function
4153         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
4154         interger support
4156 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4158         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
4159         get_mem ): Add attribute.
4160         * intrinsics/spread_generic.c (__spread): Fix spelling.
4161         * io/inquire.c (inquire_via_filename): Add const.
4162         * io/io.h (sys_exit): Add attribute.
4163         * io/io.h (move_pos_offset): Add move_pos_offset.
4164         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
4165         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
4166         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
4167         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
4168         write_z): Add const.
4169         * io/read.c (convert_real): Add const.
4170         * io/transfer.c (type_name): Add const.
4171         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
4172         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
4173         inquire_read, inquire_write, inquire_readwrite): Add const.
4174         * io/write.c (output_float): Remove unused variable.
4175         * io/write.c (write_a, extract_int, extract_real, output_float,
4176         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
4177         write_e, write_f, write_en, write_es, write_logical, write_integer,
4178         write_character, write_real, write_complex): Add const.
4179         * runtime/error.c (rtoa): Remove unused variable.
4180         * runtime/select.c (select_string): Add const.
4181         * runtime/stop.c (stop_string): Add const.
4183 2003-08-10  Paul Brook  <paul@nowt.org>
4185         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
4186         (FFLAGS): Add -fno-underscoring.
4187         * Makefile.in: Regenerate.
4188         * intrinsics/abort.c: New file.
4190 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
4192         * fmain.c (main): Do not call init and cleanup; call set_args instead.
4193         * libgfortran.h (init, cleanup): Remove declarations.
4194         (set_args): Add declaration.
4195         * runtime/main.c (init, cleanup): Make them static, and give them
4196         the constructor and destructor attributes.
4197         (set_args): New function.
4199 2003-08-10  Paul Brook  <paul@nowt.org>
4201         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
4202         on which string is longest.
4204 2003-08-10  Paul Brook  <paul@nowt.org>
4206         * Makefile.am (EXTRA_DIST): Remove old files.
4207         * Makefile.in: Regenerate.
4209 2003-07-26  Paul Brook  <paul@nowt.org>
4211         Rename library to libgfortran.
4212         * libgfortran.h: Change prefix to _libgfortran_.
4214 2003-07-24  Paul Brook  <paul@nowt.org>
4216         * configure.in: Don't pull in system libtool.  Use toplevel
4217         auxiliary files.
4219 2003-07-22  Paul Brook  <paul@nowt.org>
4221         Regenerate all configury files.
4223 2003-07-09  Chun Huang  <compiler@sohu.com>
4225         * intrinsics/string_intrinsic.c (string_scan): New function.
4226         (string_verify): New function.
4228 2003-06-25  Paul Brook  <paul@nowt.org>
4230         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
4231         (mem_seek): Don't bother setting physical_offset.
4233 2003-06-20  Paul Brook  <paul@nowt.org>
4235         * libgfor.h (stop_numeric): Declare.
4236         * runtime/pause.c: New file.
4237         * Makefile.am: Add it.
4239 2003-06-08  Paul Brook  <paul@nowt.org>
4241         * m4/cexp.m4 (cabs): Use correct typed version.
4242         (csqrt): New function.
4244 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
4246         Spotted by Benjamin and Tobias:
4247         * io/list_read.c: Add Separator '\t'.
4248         (parse_real, read_real): Accept real values starting with an optional
4249         sign follows a decimal point.
4251 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
4253         * Makefile.am: Don't put cmath objects in subdir.
4254         * configure.in: Rename MATHOBJ to MATH_OBJ.
4256 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
4258         * intrinsics/associated.c: New file.
4259         * Makefile.am: Add it. Regenerate Makefile.in.
4260         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
4261         G95_DESCRIPTOR_DTYPE.
4263 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
4265         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
4266         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
4267         the scale_factor to 0 for F editing.
4269 2003-05-11  Tobias Schlter  <innenminister@gmx.de>
4271         * libgfor.h: Only include stdint.h if it exists.
4273 2003-05-07  Paul Brook  <paul@nowt.org>
4275         * libgfor.h: Use stdint.h types.
4276         * intrinsics/ishift.c: Ditto.
4277         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
4279 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4281         * libgfor.h (offsetof): Define if nobody else does.
4282         * runtime/memory.c (HEADER_SIZE): Use it.
4284 2003-05-01  Tobias Schlter  <innenminister@gmx.de>
4286         * configure.in: Require autoconf 2.54.
4288 2003-04-28  Tobias Schlter  <innenminister@gmx.de>
4289         Paul Brook  <paul@nowt.org>
4291         * intrinsics/reshape_generic.c: Copy the whole element, not just the
4292         first byte.
4293         * m4/transpose.m4: New file.
4294         * Makefile.am: Add them.
4295         Regenerate generated files.
4297 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4299         * io/format.c (parse_format_list): Allow 'X' without integer
4300         prefix.  This is an extension.  Interpretation is '1X'.
4302 2003-04-18  Tobias Schlter  <Tobias.Schlueter@physik.uni-muenchen.de>
4304         * io/format.c (parse_format_list): Allow '0P'.
4306 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4308         * Makefile.in: Re-regenerate for automake 1.7.3.
4310 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
4312         Port implementation for CHARACTER SELECT from Andy's tree.
4313         * runtime/select.c: New file
4314         * Makefile.am: Add it.
4315         * Makefile.in: Regenerate.
4317 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
4319         * io/transfer.c (formatted_transfer): Modified
4320         * io/unix.c (move_pos_offset): New Function.
4321         * io/format.c (parse_format_list): Modified.
4323 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
4325         * io/write.c (write_float,write_real): New implemention of
4326         FMT_G and default float editing.
4327         (calculate_exp,calculate_G_format,output_float): New Function.
4328         (write_float,write_real,write_logical): Modified
4329         * libgfor.h (default_rtoa): Remove Declaration.
4330         * runtime/error.c (default_rtoa): Remove Function.
4332 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
4334         Spotted by Yang:
4335         * io/write.c (extract_real): Add missing break statement.
4337 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
4339         * cpu_time.c: Make sure we have a definition of HZ.  Don't
4340         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
4342 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
4343             Paul Brook  <paul@nowt.org>
4345         * configure.in: Check for process time headers and GETTIMEOFDAY.
4346         * makefile.am: Add intrinsics/cpu_time.c.
4347         * acinclude.m4: New file.
4348         * intrinsics/cpu_time.c: New file.
4349         * m4/dotprodl.m4: Fix typo.
4350         Regenerate generated files.
4352 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
4354         * io/write.c (extract_real): Ouput floating point value.
4355         (write_float): New Function.
4356         (write_e, write_f, write_en, write_es): Modified
4357         * io/transfer.c (formatted_transfer): Modified.
4358         * libgfor.h (default_rtoa): Declaration.
4359         (rtoa): Declaration.
4360         * runtime/error.c (default_rtoa): New Function.
4361         (rtoa): New Function.
4363 2003-04-05  Paul Brook  <paul@nowt.org>
4365         * intrinsics/spread_generic.c: New file.
4366         * Makefile.am: Add it. Regenerate Makefile.in.
4368 2003-03-29  Paul Brook  <paul@nowt.org>
4370         * intrinsics/pack_generic.c: New file.
4371         * intrinsics/unpack_generic.c: New file.
4372         * Makefile.am: Add them. Regenerate Makefile.in.
4374 2003-03-25  Paul Brook  <paul@nowt.org>
4376         * intrinsics/eoshift0.c: New file.
4377         * intrinsics/eoshift2.c: New file.
4378         * m4/eoshift1.m4: New file.
4379         * m4/eoshift3.m4: New file.
4380         * Makefile.am: Add them.
4381         * in_unpack_generic.c: Initialize src.
4382         Regenerate generated files.
4384 2003-03-14  Paul Brook  <paul@nowt.org>
4386         * m4/shape.m4: Work properly with array temporaries.
4387         * m4/in_pack.m4: Skip redundant checks for array temporaries.
4388         * runtime/in_pack_generic.c: Ditto.
4390 2003-03-12  Paul Brook  <paul@nowt.org>
4392         * m4/shape.m4: Work properly with noncontiguous arrays.
4394 2003-03-08  Paul Brook  <paul@nowt.org>
4396         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
4397         * runtime/in_pack_generic.c: Ditto.
4399 2003-02-08  Paul Brook  <paul@nowt.org>
4401         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
4402         * io/close.c (st_close): Return void.
4403         * io/open.c (st_open): Return void.
4404         * libgfor.h (g95_array_char): Declare.
4405         (internal_malloc_size): Ditto.
4406         (internal_pack*, internal_unpack*): Ditto.
4407         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
4408         arrays.
4409         * m4/in_unpack.m4: Include file fixes.
4410         * m4/reshape.m4: Increment the correct source pointer.
4411         * Makefile.am (maxloc): Fix typo.
4412         * runtime/in_pack_generic.c: Call optimized functions. Allocate
4413         storage if neccessary. Fix logic for packed arrays.
4414         * runtime/in_unpack_generic.c: Call optimized functions.
4415         * runtime/main.c: Use runtime_error to report errors.
4416         * memory.c (internal_malloc_size): Make non-static.
4418 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4420         * reshape_packed.c, lock.c: Add #include <string.h>.
4421         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
4422         environ.c, error.c, memory.c, string.c: Add const.
4423         * error.c (show_locus): Add void.
4425 2003-02-21  Paul Brook  <paul@nowt.org>
4427         * m4/in_pack.m4: Avoid returning const * parameter.
4428         * Makefile.am: Only regenerate files in maintainer mode.
4430 2003-02-20  Paul Brook  <paul@nowt.org>
4432         Add array repacking support functions.
4433         * m4/in_pack.m4, m4/in_unpack.m4: New files.
4434         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
4435         * Makefile.am: Build them.  Regenerate configury files.
4436         * generated/: New directory for generated files (need to move
4437         everything else there).
4439 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
4441         * m4/cexp.m4: Fix typo.
4443 2003-01-26  Paul Brook  <paul@nowt.org>
4445         * intrinsics/: Add missing generated files.
4447 2003-01-26  Paul Brook  <paul@nowt.org>
4449         * Makefile.am: Put -I before the filename.
4451 2003-01-24  Paul Brook  <paul@nowt.org>
4453         * configure.in: Add AM_MAINTAINER_MODE.
4455 2003-01-23  Paul Brook  <paul@nowt.org>
4457         * configure.in, Makefile.am: Modify to work with unmodified autoconf
4458         and auotmake.
4459         Also regenerate other configury files.
4461 2003-01-21  Paul Brook  <paul@nowt.org>
4463         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
4465 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4467         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
4468         Don't include "alloca.h".
4470 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4472         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
4473         * Makefile.am: Adjust file name.
4474         * Makefile.in: Regenerate.
4475         * gfortypes.h: Kill, include everything in...
4476         * libgfor.h: ...here.  Include config.h
4477         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
4478         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
4479         intrinsics/reshape_packed.c, intrinsics/size.c,
4480         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
4481         for prefix for all functions instead of hardcoded.
4483 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4485         * io/lock.c (library_end): Propagate library return
4486         code.
4488 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4490         Port fixes from Andy's tree:
4491         * io/read.c (read_decimal): Reverse sense of overflow
4492         comparison during integer reads.
4493         * io/format.c (revert): Fix comment.
4494         (next_format): Fix format revision.
4495         * io/unix.c: Fix and simplify mmap version of stream
4496         functions.
4498 2003-01-11  Paul Brook  <paul@nowt.org>
4500         * configure, Makefile.in: Regenerate.
4502 2003-01-11  Paul Brook  <paul@nowt.org>
4504         * runtime/stop.c: Rewrite.
4506 2003-01-08  Paul Brook  <paul@nowt.org>
4508         * configure, Makefile.in: Regenerate.
4510 2003-01-05  Paul Brook  <paul@nowt.org>
4512         * (*.m4) Move to m4/.
4513         * intrinsics/string.c (_gfor_string_index): New Function.
4515 2002-12-29  Paul Brook  <paul@nowt.org>
4517         * intrinsics/reshape.*: New files.
4518         * gcc_config.patch: Update to new GCC configure system.
4520 2002-10-10  Paul Brook  <paul@nowt.org>
4522         * intrinsics/size.c: New file.
4523         * intrinsics/shape.m4: New file.
4524         * Makefile.am: Add above files.
4526 2002-10-02  Paul Brook  <paul@nowt.org>
4528         * fmain.c (main): Move here.
4529         * libgfor.c: From here.
4530         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
4531         * Makefile.am: Build libgforbegin.
4532         * gcc_config.patch: Remove stray -march=athlon.
4533         * dotprodl.m4: Fix use of L8_TO_L4 macro.
4534         * ifunction.m4: Move variable declarations to allow compilation with
4535         gcc < 3.0
4536         * specific.m4, specific4.m4: Fix typo typecode->type_code.
4537         * README: Document use of patch -p1.
4539 2002-09-12  Paul Brook  <paul@nowt.org>
4541         * math/*: Add complex math library functions.
4542         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
4543         * Makefile.am: Add details for above.
4544         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
4546 2002-09-09  Paul Brook  <paul@nowt.org>
4548         * libgfor.c (determine_endianness): Use an array rather than a struct.
4549         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
4551 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4553         * libgfor.c: Add fatal signal handler.
4554         Romove superfluous abort() calls.
4556 2002-09-07  Paul Brook <paul@nowt.org>
4558         * Makefile.am, intrinsics: Major rewrite.
4560 2002-09-02  Paul Brook <paul@nowt.org>
4562         * Makefile.am: Added -I$(srcdir) to m4 rule.
4564 2002-08-30  Paul Brook <paul@nowt.org>
4566         * io/*: Integrated libgforio.
4567         * Makefile.am, configure.in: Make compatable with GCC. Build code for
4568         intrinsics in the intrisics directory.
4569         * intrinsics/intrinsics.m4: Move here. Strip directories from the
4570         filename. Add 'and' and 'all' intrinsics.
4572 2002-08-17  Paul Brook <paul@nowt.org>
4574         * ALL: First release as more than just a single file