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