* io/list_read.c (nml_parse_qualifier): Use ssize_t instead of int
[official-gcc.git] / libgfortran / ChangeLog
blobd0bae6e2c90b45257eebbe56263d0535a0dc6f36
1 2005-11-26  Richard Henderson  <rth@redhat.com>
3         * io/list_read.c (nml_parse_qualifier): Use ssize_t instead of int
4         in dtp->u.p.value.
6 2005-11-26  Janne Blomqvist  <jb@gcc.gnu.org>
8         PR libgfortran/24945
9         * io/open.c (edit_modes): Check for STATUS_UNKNOWN flag.
10         
11 2005-11-25  Richard Henderson  <rth@redhat.com>
13         * io/list_read.c (nml_parse_qualifier): Use memcpy to extract
14         values from dtp->u.p.value.
15         * io/io.h (struct st_parameter_dt): Change reversion_flag, first_item,
16         seen_dollar, sf_seen_eor, eor_condition, no_leading_blank, char_flag,
17         input_complete, at_eol, comma_flag, namelist_mode, nml_read_error to
18         single-bit fields.  Move value to where it'll be at least pointer
19         aligned.
21 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
23         * io/open.c (new_unit): Use the right unit number when checking
24         for stdin, stdout, stderr.
26 2005-11-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
28         PR libgfortran/24794
29         * io/list_read.c (read_character): Add auto completion on short
30         namelist reads.
32 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
34         * io/io.h (_LARGE_FILES): Undefine for AIX.
35         (_LARGE_FILE_API): Define for AIX.
37 2005-11-21  Jakub Jelinek  <jakub@redhat.com>
39         PR fortran/24774
40         PR fortran/14943
41         PR fortran/21647
42         * Makefile.am (AM_CPPFLAGS): Add gcc directories as -I paths,
43         add -D_GNU_SOURCE.
44         * Makefile.in: Regenerated.
45         * acinclude.m4 (LIBGFOR_CHECK_SYNC_FETCH_AND_ADD,
46         LIBGFOR_CHECK_GTHR_DEFAULT, LIBGFOR_CHECK_PRAGMA_WEAK): New macros.
47         * configure.ac: Add them.
48         * configure: Rebuilt.
49         * config.h.in: Rebuilt.
50         * libtool-version: Bump libgfortran.so SONAME to libgfortran.so.1.
51         * libgfortran.h (library_start, show_locus, internal_error,
52         generate_error, find_option): Add st_parameter_common * argument.
53         (library_end): Change into a dummy macro.
54         * io/io.h: Include gthr.h.
55         (SUPPORTS_WEAK): Define if HAVE_PRAGMA_WEAK.
56         (CHARACTER): Remove define.
57         (st_parameter, global_t): Remove typedef.
58         (ioparm, g, ionml, current_unit): Remove variables.
59         (init_error_stream): Remove prototype.
60         (CHARACTER1, CHARACTER2): Define.
61         (st_parameter_common, st_parameter_open, st_parameter_close,
62         st_parameter_filepos, st_parameter_inquire, st_parameter_dt): New
63         typedefs.
64         (IOPARM_LIBRETURN_MASK, IOPARM_LIBRETURN_OK, IOPARM_LIBRETURN_ERROR,
65         IOPARM_LIBRETURN_END, IOPARM_LIBRETURN_EOR, IOPARM_ERR, IOPARM_END,
66         IOPARM_EOR, IOPARM_HAS_IOSTAT, IOPARM_HAS_IOMSG, IOPARM_COMMON_MASK,
67         IOPARM_OPEN_HAS_RECL_IN, IOPARM_OPEN_HAS_FILE, IOPARM_OPEN_HAS_STATUS,
68         IOPARM_OPEN_HAS_ACCESS, IOPARM_OPEN_HAS_FORM, IOPARM_OPEN_HAS_BLANK,
69         IOPARM_OPEN_HAS_POSITION, IOPARM_OPEN_HAS_ACTION,
70         IOPARM_OPEN_HAS_DELIM, IOPARM_OPEN_HAS_PAD, IOPARM_CLOSE_HAS_STATUS,
71         IOPARM_INQUIRE_HAS_EXIST, IOPARM_INQUIRE_HAS_OPENED,
72         IOPARM_INQUIRE_HAS_NUMBER, IOPARM_INQUIRE_HAS_NAMED,
73         IOPARM_INQUIRE_HAS_NEXTREC, IOPARM_INQUIRE_HAS_RECL_OUT,
74         IOPARM_INQUIRE_HAS_FILE, IOPARM_INQUIRE_HAS_ACCESS,
75         IOPARM_INQUIRE_HAS_FORM, IOPARM_INQUIRE_HAS_BLANK,
76         IOPARM_INQUIRE_HAS_POSITION, IOPARM_INQUIRE_HAS_ACTION,
77         IOPARM_INQUIRE_HAS_DELIM, IOPARM_INQUIRE_HAS_PAD,
78         IOPARM_INQUIRE_HAS_NAME, IOPARM_INQUIRE_HAS_SEQUENTIAL,
79         IOPARM_INQUIRE_HAS_DIRECT, IOPARM_INQUIRE_HAS_FORMATTED,
80         IOPARM_INQUIRE_HAS_UNFORMATTED, IOPARM_INQUIRE_HAS_READ,
81         IOPARM_INQUIRE_HAS_WRITE, IOPARM_INQUIRE_HAS_READWRITE,
82         IOPARM_DT_LIST_FORMAT, IOPARM_DT_NAMELIST_READ_MODE,
83         IOPARM_DT_HAS_REC, IOPARM_DT_HAS_SIZE, IOPARM_DT_HAS_IOLENGTH,
84         IOPARM_DT_HAS_FORMAT, IOPARM_DT_HAS_ADVANCE,
85         IOPARM_DT_HAS_INTERNAL_UNIT, IOPARM_DT_HAS_NAMELIST_NAME,
86         IOPARM_DT_IONML_SET): Define.
87         (gfc_unit): Add lock, waiting and close fields.  Change file
88         from flexible array member into pointer to char.
89         (open_external): Add st_parameter_open * argument.
90         (find_file, file_exists): Add file and file_len arguments.
91         (flush_all_units): New prototype.
92         (max_offset, unit_root, unit_lock): New variable.
93         (is_internal_unit, is_array_io, next_array_record,
94         parse_format, next_format, unget_format, format_error,
95         read_block, write_block, next_record, convert_real,
96         read_a, read_f, read_l, read_x, read_radix, read_decimal,
97         list_formatted_read, finish_list_read, namelist_read,
98         namelist_write, write_a, write_b, write_d, write_e, write_en,
99         write_es, write_f, write_i, write_l, write_o, write_x, write_z,
100         list_formatted_write, get_unit): Add st_parameter_dt * argument.
101         (insert_unit): Remove prototype.
102         (find_or_create_unit, unlock_unit): New prototype.
103         (new_unit): Return gfc_unit *.  Add st_parameter_open *
104         and gfc_unit * arguments.
105         (free_fnodes): Remove prototype.
106         (free_format_data): New prototype.
107         (scratch): Remove.
108         (init_at_eol): Remove prototype.
109         (free_ionml): New prototype.
110         (inc_waiting_locked, predec_waiting_locked, dec_waiting_unlocked):
111         New inline functions.
112         * io/unit.c (max_offset, unit_root, unit_lock): New variables.
113         (insert): Adjust os_error caller.
114         (insert_unit): Made static.  Allocate memory here, initialize
115         lock and after inserting it return it, locked.
116         (delete_unit): Adjust for deletion of g.
117         (find_unit_1): New function.
118         (find_unit): Use it.
119         (find_or_create_unit): New function.
120         (get_unit): Add dtp argument, change meaning of the int argument
121         as creation request flag.  Adjust for different st_* calling
122         conventions, lock internal unit's lock before returning it
123         and removal of g.  Call find_unit_1 instead of find_unit.
124         (is_internal_unit, is_array_io): Add dtp argument, adjust for
125         removal of most of global variables.
126         (init_units): Initialize unit_lock.  Adjust insert_unit callers
127         and adjust for g removal.
128         (close_unit_1): New function.
129         (close_unit): Use it.
130         (unlock_unit): New function.
131         (close_units): Lock unit_lock, use close_unit_1 rather than
132         close_unit.
133         * io/close.c (st_close): Add clp argument.  Adjust for new
134         st_* calling conventions and internal function API changes.
135         * io/file_pos.c (st_backspace, st_endfile, st_rewind, st_flush):
136         Add fpp argument.  Adjust for new st_* calling conventions and
137         internal function API changes.
138         (formatted_backspace, unformatted_backspace): Likewise.  Add
139         u argument.
140         * io/open.c (edit_modes, st_open): Add opp argument.  Adjust for
141         new st_* calling conventions and internal function API changes.
142         (already_open): Likewise.  If not HAVE_UNLINK_OPEN_FILE, unlink
143         scratch file.  Instead of calling close_unit just call sclose,
144         free u->file if any and clear a few u fields before calling
145         new_unit.
146         (new_unit): Return gfc_unit *.  Add opp and u arguments.
147         Adjust for new st_* calling conventions and internal function
148         API changes.  Don't allocate unit here, rather than work with
149         already created unit u already locked on entry.  In case
150         of failure, close_unit it.
151         * io/unix.c: Include unix.h.
152         (BUFFER_SIZE, unix_stream): Moved to unix.h.
153         (unit_to_fd): Add unlock_unit call.
154         (tempfile): Add opp argument, use its fields rather than ioparm.
155         (regular_file): Likewise.
156         (open_external): Likewise.  Only unlink file if fd >= 0.
157         (init_error_stream): Add error argument, set structure it points
158         to rather than filling static variable and returning its address.
159         (FIND_FILE0_DECL, FIND_FILE0_ARGS): Define.
160         (find_file0): Use them.  Don't crash if u->s == NULL.
161         (find_file): Add file and file_len arguments, use them instead
162         of ioparm.  Add locking.  Pass either an array of 2 struct stat
163         or file and file_len pair to find_file0.
164         (flush_all_units_1, flush_all_units): New functions.
165         (file_exists): Add file and file_len arguments, use them instead
166         of ioparm.
167         * io/unix.h: New file.
168         * io/lock.c (ioparm, g, ionml): Remove variables.
169         (library_start): Add cmp argument, adjust for new st_* calling
170         conventions.
171         (library_end): Remove.
172         (free_ionml): New function.
173         * io/inquire.c (inquire_via_unit, inquire_via_filename,
174         st_inquire): Add iqp argument, adjust for new st_* calling
175         conventions and internal function API changes.
176         * io/format.c (FARRAY_SIZE): Decrease to 64.
177         (fnode_array, format_data): New typedefs.
178         (avail, array, format_string, string, error, saved_token, value,
179         format_string_len, reversion_ok, saved_format): Remove variables.
180         (colon_node): Add const.
181         (free_fnode, free_fnodes): Remove.
182         (free_format_data): New function.
183         (next_char, unget_char, get_fnode, format_lex, parse_format_list,
184         format_error, parse_format, revert, unget_format, next_test): Add
185         fmt or dtp arguments, pass it all around, adjust for internal
186         function API changes and adjust for removal of global variables.
187         (next_format): Likewise.  Constify return type.
188         (next_format0): Constify return type.
189         * io/transfer.c (current_unit, sf_seen_eor, eor_condition, max_pos,
190         skips, pending_spaces, scratch, line_buffer, advance_status,
191         transfer): Remove variables.
192         (transfer_integer, transfer_real, transfer_logical,
193         transfer_character, transfer_complex, transfer_array, current_mode,
194         read_sf, read_block, read_block_direct, write_block,
195         write_block_direct, unformatted_read, unformatted_write,
196         type_name, write_constant_string, require_type,
197         formatted_transfer_scalar, us_read, us_write, pre_position,
198         data_transfer_init, next_record_r, next_record_w, next_record,
199         finalize_transfer, iolength_transfer, iolength_transfer_init,
200         st_iolength, st_iolength_done, st_read, st_read_done, st_write,
201         st_write_done, st_set_nml_var, st_set_nml_var_dim,
202         next_array_record): Add dtp argument, pass it all around, adjust for
203         internal function API changes and removal of global variables.
204         * io/list_read.c (repeat_count, saved_length, saved_used,
205         input_complete, at_eol, comma_flag, last_char, saved_string,
206         saved_type, namelist_mode, nml_read_error, value, parse_err_msg,
207         nml_err_msg, prev_nl): Remove variables.
208         (push_char, free_saved, next_char, unget_char, eat_spaces,
209         eat_separator, finish_separator, nml_bad_return, convert_integer,
210         parse_repeat, read_logical, read_integer, read_character,
211         parse_real, read_complex, read_real, check_type,
212         list_formatted_read_scalar, list_formatted_read, finish_list_read,
213         find_nml_node, nml_untouch_nodes, nml_match_name, nml_query,
214         namelist_read): Add dtp argument, pass it all around, adjust for
215         internal function API changes and removal of global variables.
216         (nml_parse_qualifier): Likewise.  Add parse_err_msg argument.
217         (nml_read_obj): Likewise.  Add pprev_nl, nml_err_msg, clow and
218         chigh arguments.
219         (nml_get_obj_data): Likewise.  Add pprev_nl and nml_err_msg
220         arguments.
221         (init_at_eol): Removed.
222         * io/read.c (convert_real, read_l, read_a, next_char, read_decimal,
223         read_radix, read_f, read_x): Add dtp argument, pass it all around,
224         adjust for internal function API changes and removal of global
225         variables.
226         (set_integer): Adjust internal_error caller.
227         * io/write.c (no_leading_blank, nml_delim): Remove variables.
228         (write_a, calculate_sign, calculate_G_format, output_float,
229         write_l, write_float, write_int, write_decimal, write_i, write_b,
230         write_o, write_z, write_d, write_e, write_f, write_en, write_es,
231         write_x, write_char, write_logical, write_integer, write_character,
232         write_real, write_complex, write_separator,
233         list_formatted_write_scalar, list_formatted_write, nml_write_obj,
234         namelist_write): Add dtp argument, pass it all around, adjust for
235         internal function API changes and removal of global variables.
236         (extract_int, extract_uint, extract_real): Adjust internal_error
237         callers.
238         * runtime/fpu.c (_GNU_SOURCE): Don't define here.
239         * runtime/error.c: Include ../io/unix.h.
240         (filename, line): Remove variables.
241         (st_printf): Pass address of a local variable to init_error_stream.
242         (show_locus): Add cmp argument.  Use fields it points to rather than
243         filename and line variables.
244         (os_error, runtime_error): Remove show_locus calls.
245         (internal_error): Add cmp argument.  Pass it down to show_locus.
246         (generate_error): Likewise.  Use flags bitmask instead of non-NULL
247         check for iostat and iomsg parameter presence, adjust for st_*
248         calling convention changes.
249         * runtime/stop.c (stop_numeric, stop_string): Remove show_locus
250         calls.
251         * runtime/pause.c (pause_numeric, pause_string): Likewise.
252         * runtime/string.c: Include ../io/io.h.
253         (find_option): Add cmp argument.  Pass it down to generate_error.
254         * intrinsics/flush.c (recursive_flush): Remove.
255         (flush_i4, flush_i8): Use flush_all_units.  Add unlock_unit
256         call.
257         * intrinsics/rand.c: Include ../io/io.h.
258         (rand_seed_lock): New variable.
259         (srand, irand): Add locking.
260         (init): New constructor function.
261         * intrinsics/random.c: Include ../io/io.h.
262         (random_lock): New variable.
263         (random_r4, random_r8, arandom_r4, arandom_r8): Add locking.
264         (random_seed): Likewise.  open failed if fd < 0.  Set i correctly.
265         (init): New constructor function.
266         * intrinsics/system_clock.c (tp0, t0): Remove.
267         (system_clock_4, system_clock_8): Don't subtract tp0/t0 from current
268         time, use just integer arithmetics.
269         * intrinsics/tty.c (isatty_l4, isatty_l8, ttynam_sub): Add
270         unlock_unit calls.
272 2005-11-20  Richard Henderson  <rth@redhat.com>
274         * Makefile.am: Revert 2005-11-14 change.  Enable -free-vectorize
275         via gmake per-target variables.
276         * Makefile.in, aclocal.m4: Regenerate.
278 2005-11-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
280         * configure.ac: Add "-I ." to the AM_FCFLAGS.
281         * configure: Regenerate.
283 2005-11-18  Hans-Peter Nilsson  <hp@axis.com>
285         * config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
286         nonzero FE_ALL_EXCEPT.
288 2005-11-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
290         PR fortran/24892
291         * io/io.h (unit_access): Add ACCESS_APPEND.
292         * io/open.c (access_opt): Add APPEND value for ACCESS keyword.
293         (st_open): Use that new value to set the POSITION accordingly.
295 2005-11-14  Janne Blomqvist  <jb@gcc.gnu.org>
297         PR fortran/21468
298         * Makefile.am: Add -ftree-vectorize for compiling matmul.
299         * m4/matmul.m4: Add const and restrict to type declarations as
300         appropriate.
301         * m4/matmull.m4: Likewise.
302         * Makefile.in: Regenerated.
303         * generated/matmul_*.c: Likewise.
304         
305 2005-11-13  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
307         * intrinsics/fget.c: New file.
308         * intrinsics/ftell.c: New file.
309         * io/unix.c (stream_offset): New function.
310         * io/io.h: Add prototype for stream_offset.
311         * Makefile.am: Add intrinsics/fget.c and intrinsics/ftell.c.
312         * Makefile.in: Regenerate.
314 2005-11-12  Steven G. Kargl  <kargls@comcast.net>
316         PR libgfortran/24787
317         *  intrinsics/string_intrinsics.c (string_scan): Off by one; Fix typos
318         in nearby comment.
320 2005-11-10  Andreas Jaeger  <aj@suse.de>
322         * libgfortran.h: Add proper defines where needed.
324 2005-11-10  Andreas Jaeger  <aj@suse.de>
326         * libgfortran.h: Add missing prototypes for internal_pack
327         functions.
329 2005-11-06  Janne Blomqvist <jb@gcc.gnu.org>
331         PR fortran/24174
332         PR fortran/24305
333         * io/io.h: Add argument to prototypes, add prototypes for
334         size_from_*_kind functions.
335         * io/list_read.c (read_complex): Add size argument, use
336         it.
337         (list_formatted_read): Add size argument, cleanup.
338         (list_formatted_read_scalar): Add size argument.
339         (nml_read_obj): Fix for padding.
340         * io/transfer.c: Add argument to transfer function pointer.
341         (unformatted_read): Add size argument.
342         (unformatted_write): Likewise.
343         (formatted_transfer_scalar): Fix for padding with complex(10).
344         (formatted_transfer): Add size argument, cleanup.
345         (transfer_integer): Add size argument to transfer call.
346         (transfer_real): Likewise.
347         (transfer_logical): Likewise.
348         (transfer_character): Likewise.
349         (transfer_complex): Likewise.
350         (transfer_array): New kind argument, use it.
351         (data_transfer_init): Add size argument to formatted_transfer
352         call.
353         (iolength_transfer): Add size argument, cleanup.
354         * io/write.c (write_complex): Add size argument, fix for padding
355         with complex(10).
356         (list_formatted_write): Add size argument, cleanup.
357         (list_formatted_write_scalar): Add size argument, use it.
358         (nml_write_obj): Fix for size vs. kind issue.
359         * io/size_from_kind.c: New file.
360         * Makefile.am: Add io/size_from_kind.c.
361         * configure: Regenerate.
362         * Makefile.in: Regenerate.
364 2005-11-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
366         * intrinsics/ctime.c: New file.
367         * configure.ac: Add check for ctime.
368         * Makefile.am: Add ctime.c
369         * configure: Regenerate.
370         * config.h.in: Regenerate.
371         * Makefile.in: Regenerate.
373 2005-11-05  Richard Guenther  <rguenther@suse.de>
375         * configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
376         * configure: Regenerate.
378 2005-11-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
380         * intrinsics/tty.c (ttynam): New function.
382 2005-11-04  Steven G. Kargl <kargls@comcast.net>
384         PR fortran/24636
385         * runtime/stop.c (stop_numeric): Use stop_code = -1.
387 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
389         PR libfortran/22298
390         * runtime/main.c (stupid_function_name_for_static_linking): New
391         function.
392         * runtime/error.c (internal_error): Call
393         stupid_function_name_for_static_linking.
394         * libgfortran.h: Add prototype for
395         stupid_function_name_for_static_linking.
397 2005-11-01  Paul Thomas  <pault@gcc.gnu.org>
399         PR fortran/14994
400         * libgfortran/intrinsics/date_and_time.c: Add interface to
401         the functions date_and_time for the intrinsic function secnds.
403 2005-10-31  Jerry DeLisle  <jvdelisle@verizon.net>
405         PR libgfortran/24584
406         * io/list_read.c (free_saved): Set saved_used to zero.
408 2005-10-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
410         PR libfortran/20179
411         * io/unix.c (flush_if_preconnected): New function.
412         * io/io.h: Add prototype for flush_if_preconnected.
413         * io/transfer.c (data_transfer_init): Use flush_if_preconnected
414         to workaround buggy mixed C-Fortran code.
416 2005-10-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
418         * Makefile.am: Add intrinsics/malloc.c file.
419         * Makefile.in: Regenerate.
420         * intrinsics/malloc.c: New file, with implementations for free
421         and malloc library functions.
423 2005-10-29  Mike Stump  <mrs@apple.com>
425         * Makefile.am (kinds.h): Remove target, if command fails.
426         (selected_int_kind.inc): Likewise.
427         (selected_real_kind.inc): Likewise.
428         * Makefile.in: Regenerate.
430 2005-10-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
433         * Makefile.am (intrinsics): Add signal.c.
434         * Makefile.in: Regenerate.
435         * configure.ac: Checks for signal and alarm.
436         * config.h.in: Regenerate.
437         * configure: Regenerate.
438         * intrinsics/signal.c: New file for SIGNAL and ALARM intrinsics.
440 2005-10-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
442         * acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
443         * configure.ac: Check for floatingpoint.h, fptrap.h and float.h
444         headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and
445         fp_enable functions.
446         * configure.host: Add case for systems with fpsetmask and systems
447         with fp_trap/fp_enable.
448         * config/fpu-sysv.h: New file, FPU code using fpsetmask.
449         * config/fpu-aix.h: New file, FPU code for AIX using fp_trap and
450         fp_enable.
451         * aclocal.m4: Regenerate.
452         * configure: Regenerate.
453         * config.h.in: Regenerate.
455 2005-10-24  Jerry DeLisle  <jvdelisle@verizon.net>
457         PR libgfortran/24224
458         * libgfortran.h: Remove array stride error code.
459         * runtime/error.c: Remove array stride error.
460         * io/io.h: Change name of 'nml_loop_spec' to 'array_loop_spec' to be
461         generic.  Add pointer to array_loop_spec and rank to gfc_unit
462         structure.
463         * io/list_read.c: Revise nml_loop_spec references to array_loop_spec.
464         * io/transfer.c (init_loop_spec): New function to initialize
465         an array_loop_spec.
466         (next_array_record): New function to return the index to the next array
467         record by incrementing through the array_loop_spec.
468         (next_record_r): Use new function.
469         (next_record_w): Use new function.
470         (finalize_transfer): Free memory allocated for array_loop_spec.
471         * io/unit.c (get_array_unit_len): Delete this function. Use new
472         function init_loop_spec to initialize the array_loop_spec.
474 2005-10-24  Paul Thomas  <pault@gcc.gnu.org>
476         PR fortran/24416
477         * libgfortran/io/list_read.c (namelist_read): Exit with call to
478         free_saved () so that character strings do not accumulate.
480 2005-10-23  Jerry DeLisle  <jvdelisle@verizon.net>
482         PR libgfortran/24489
483         * io/transfer.c (read_block): Change the order of execution to not read
484         past end-of-record.
485         (read_block_direct): Same change.
487 2005-10-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
489         PR libfortran/23272
490         * acinclude.m4 (LIBGFOR_CHECK_WORKING_STAT): New check.
491         * configure.ac: Use LIBGFOR_CHECK_WORKING_STAT.
492         * Makefile.in: Regenerate.
493         * configure: Regenerate.
494         * config.h.in: Regenerate.
495         * aclocal.m4: Regenerate.
496         * io/unix.c (compare_file_filename): Add fallback case for
497         systems without working stat.
498         * io/open.c (already_open): Correct call to
499         compare_file_filename.
500         * io/io.h: Correct proto for compare_file_filename.
502 2005-10-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
504         * runtime/fpu.c: Add _GNU_SOURCE definition.
505         * config/fpu-glibc.h: Remove __USE_GNU definition.
507 2005-10-23  Paul Thomas  <pault@gcc.gnu.org>
509         PR fortran/24384
510         * intrinsics/spread_generic.c (spread_internal_scalar): New
511         function that handles the special case of spread with a scalar
512         source. This has new interface functions -
513         (spread_scalar, spread_char_scalar): New functions to interface
514         with the calls specified in gfc_resolve_spread.
516 2005-10-21  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
518         PR libfortran/24383
519         * io/unix.c: Add fallback definition for SSIZE_MAX.
521 2005-10-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
523         * c99_protos.h: Define preprocessor HAVE_ macros with value 1
524         instead of empty value.
525         * intrinsics/c99_functions.c: Likewise.
526         * intrinsics/getXid.c: Define HAVE_GETPID with value 1 instead of
527         empty value.
528         * intrinsics/sleep.c: Define HAVE_SLEEP with value 1 instead of
529         empty value.
531 2005-10-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
533         PR libfortran/24432
534         * c99_protos.h: Define HAVE_ macros for all provided functions.
536 2005-10-14  Uros Bizjak  <uros@kss-loka.si>
538         * config/fpu-387.h (set_fpu): Remove extra ":" in stmxcsr.
539         Change cw and cw_sse variables to unsigned.
540         (SSE): New definition.
541         (has_sse): Use it.
543 2005-10-13  Thomas Koenig  <Thomas.Koenig@online.de>
545         * io/unix.c(fd_alloc_r_at):  Use read() instead of do_read()
546         only in case of special files (e.g. terminals).
548 2005-10-13  Uros Bizjak  <uros@kss-loka.si>
550         * config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
552 2005-10-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
554         * Makefile.am: Add fpu.c to the build process, and
555         target-dependent code as fpu-target.h.
556         * Makefile.in: Regenerate.
557         * configure.ac: Add call to configure.host to set
558         FPU_HOST_HEADER.
559         * configure: Regenerate.
560         * configure.host: New script to determine which host-dependent
561         code should go in.
562         * libgfortran.h: Add fpe option, remove previous fpu_ options.
563         Add bitmasks for different FPE traps. Add prototype for set_fpu.
564         * runtime/environ.c: Remove environment variables to control
565         fpu behaviour.
566         * runtime/fpu.c (set_fpe): New function for the front-end.
567         * runtime/main.c (init): Set FPU state.
568         * config: New directory to store host-dependent code.
569         * config/fpu-387.h: New file with code handling the i387 FPU.
570         * config/fpu-glibc.h: New file with code for glibc systems.
571         * config/fpu-generic.h: Fallback for the most generic host. Issue
572         warnings.
574 2005-10-12  Janne Blomqvist <jblomqvi@cc.hut.fi>
576         * io/unix.c(fd_alloc_r_at): Remove parts of patch of 2005/10/07 that
577         cause input from the terminal to hang.
579 2005-10-11  Steven G. Kargl  <kargls@comcast.net>
581         PR libgfortran/24313
582         *  c99_functions.c (csqrtf, csqrt): Fix choice of branch cut.  Note
583         csqrt{f} were imported from glibc, and this bug is still present
584         there. glibc PR is 1146.
586 2005-10-07  Janne Blomqvist <jblomqvi@cc.hut.fi>
588         PR fortran/16339
589         PR fortran/23363
590         * io/io.h: Add read and write members to stream, define access
591         macros.
592         * io/transfer.c (read_block_direct): New function.
593         (write_block_direct): New function.
594         (unformatted_read): Change to use read_block_direct.
595         (unformatted_write): Change to use write_block_direct.
596         * io/unix.c: Remove mmap includes and defines.
597         (writen): Remove.
598         (readn): Remove.
599         (reset_stream): New function.
600         (do_read): New function.
601         (do_write): New function.
602         (fd_flush): Change to use do_write() instead of writen().
603         (fd_alloc_r_at): Change to use do_read().
604         (fd_seek): Change return type to try, as the prototype. Add check
605         to avoid syscall overhead if possible.
606         (fd_read): New function.
607         (fd_write): New function.
608         (fd_open): Set pointers for new functions.
609         (mem_read): New function.
610         (mem_write): New function.
611         (open_internal): Set pointers for new functions.
612         (is_seekable): Clean up comment.
614 2005-10-07  Jerry DeLisle  <jvdelisle@verizon.net>
616         * io/transfer.c (write_block): Add test for end-of-file condition,
617         removed from mem_alloc_w_at. (next_record_w): Clean up checks for
618         NULL pointer returns from s_alloc_w.
619         * io/unix.c (mem_alloc_w_at): Remove call to generate_error end-of-file.
620         * io/write.c (write_float): Add checks for NULL pointer returns from
621         write_block calls. (write_integer): Same.
623 2005-10-03  Jakub Jelinek  <jakub@redhat.com>
625         * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
627 2005-10-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
629         PR libfortran/19308
630         PR libfortran/22437
631         * Makefile.am: Add generated files for large real and integers
632         kinds. Add a rule to create the kinds.inc c99_protos.inc files.
633         Use kinds.inc to preprocess Fortran generated files.
634         * libgfortran.h: Add macro definitions for GFC_INTEGER_16_HUGE,
635         GFC_REAL_10_HUGE and GFC_REAL_16_HUGE. Add types gfc_array_i16,
636         gfc_array_r10, gfc_array_r16, gfc_array_c10, gfc_array_c16,
637         gfc_array_l16.
638         * mk-kinds-h.sh: Define macros HAVE_GFC_LOGICAL_* and
639         HAVE_GFC_COMPLEX_* when these types are available.
640         * intrinsics/ishftc.c (ishftc16): New function for GFC_INTEGER_16.
641         * m4/all.m4, m4/any.m4, m4/count.m4, m4/cshift1.m4, m4/dotprod.m4,
642         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
643         m4/exponent.m4, m4/fraction.m4, m4/in_pack.m4, m4/in_unpack.m4,
644         m4/matmul.m4, m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4,
645         m4/maxval.m4, m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/mtype.m4,
646         m4/nearest.m4, m4/pow.m4, m4/product.m4, m4/reshape.m4,
647         m4/set_exponent.m4, m4/shape.m4, m4/specific.m4, m4/specific2.m4,
648         m4/sum.m4, m4/transpose.m4: Protect generated functions with
649         appropriate "#if defined (HAVE_GFC_type_kind)" preprocessor directives.
650         * Makefile.in: Regenerate.
651         * all files in generated/: Regenerate.
653 2005-10-01  Jakub Jelinek  <jakub@redhat.com>
655         * runtime/memory.c (malloc_t): Remove.
656         (GFC_MALLOC_MAGIC, HEADER_SIZE, DATA_POINTER, DATA_HEADER): Remove.
657         (mem_root, runtime_cleanup, malloc_with_header): Remove.
658         (internal_malloc_size): Use just get_mem if size != 0, return NULL
659         otherwise.
660         (internal_free): Just free if non-NULL.
661         (internal_realloc_size): Remove debugging stuff.
662         (allocate_size): Use malloc directly, remove debugging stuff.
663         (deallocate): Use free directly, fix error message wording.
665         * libgfortran.h (GFC_ITOA_BUF_SIZE, GFC_XTOA_BUF_SIZE,
666         GFC_OTOA_BUF_SIZE, GFC_BTOA_BUF_SIZE): Define.
667         (gfc_itoa, xtoa): Add 2 extra arguments.
668         * runtime/environ.c: Include stdio.h.
669         (check_buffered): Use sprintf.
670         * runtime/error.c: Include assert.h.
671         (gfc_itoa, xtoa): Add 2 extra arguments, avoid using static
672         buffers.
673         (st_printf, st_sprintf): Adjust callers.
674         * io/write.c (otoa, btoa): Add 2 extra arguments, avoid using
675         static buffers.
676         (write_int, write_decimal): Add 2 extra arguments to conv
677         function pointer, adjust caller.
678         (write_integer): Adjust gfc_itoa caller.
680         * io/unit.c (get_array_unit_len): Return 0 rather than NULL.
682         * io/read.c (read_f): Remove spurious pointer dereference.
684 2005-09-30  Janne Blomqvist <jblomqvi@cc.hut.fi>
686         PR 24112
687         * io/open.c (edit_modes): Check for correct flag.
689 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
691         * runtime/string.c (find_option): Change 3rd argument to
692         const st_option *.
693         * libgfortran.h (find_option): Likewise.
694         * runtime/environ.c (rounding, precision, signal_choices): Constify.
695         (init_choice, show_choice): Change 2nd argument to const choice *.
696         * io/open.c (access_opt, action_opt, blank_opt, delim_opt, form_opt,
697         position_opt, status_opt, pad_opt): Constify.
698         * io/transfer.c (advance_opt): Likewise.
699         * io/inquire.c (undefined): Likewise.
700         * io/close.c (status_opt): Likewise.
701         * io/format.c (posint_required, period_required, nonneg_required,
702         unexpected_element, unexpected_end, bad_string, bad_hollerith,
703         reversion_error): Likewise.
704         * io/unix.c (yes, no, unknown): Change from const char *
705         into const char [].
707 2005-09-27  Steve Ellcey  <sje@cup.hp.com>
709         PR target/23552
710         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE): New.
711         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN): New.
712         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): New.
713         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_ISFINITE): Add use.
714         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN): Add use.
715         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY): Add use.
716         * configure: Regenerate.
717         * config.h.in: Regenerate.
718         * libgfortan.h (isfinite): undef if broken, set if needed.
719         (isnan): undef if broken, set if needed.
720         (fpclassify): undef if broken, set if needed.
721         * io/write.c: Remove TODO comment about working isfinite.
722         * intrinsics/c99_functions.c (round): Use isfinite instead
723         of fpclassify.
724         * intrinsics/c99_functions.c (roundf): Ditto.
726 2005-09-24  Janne Blomqvist <jblomqvi@cc.hut.fi>
728         * io.h: Changed prototypes of list_formatted_{read|write}.
729         * list_read.c (list_formatted_read): Renamed to
730         list_formatted_read_scalar and made static.
731         (list_formatted_read): New function.
732         * transfer.c: Prototype for transfer_array. Changed transfer
733         function pointer.
734         (unformatted_read): Add nelems argument, use it.
735         (unformatted_write): Likewise.
736         (formatted_transfer): Changed name to formatted_transfer_scalar.
737         (formatted_transfer): New function.
738         (transfer_integer): Add nelems argument to transfer call, move
739         updating item count to transfer functions.
740         (transfer_real): Likewise.
741         (transfer_logical): Likewise.
742         (transfer_character): Likewise.
743         (transfer_complex): Likewise.
744         (transfer_array): New function.
745         (data_transfer_init): Call formatted_transfer with new argument.
746         (iolength_transfer): New argument, use it.
747         * write.c (list_formatted_write): Renamed to
748         list_formatted_write_scalar, made static.
749         (list_formatted_write): New function.
751 2005-09-26  David Edelsohn  <edelsohn@gnu.org>
753         * configure.ac: Add check for __clog.
754         * configure: Regenerate.
756 2005-09-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
758         * c99_protos.h: Add prototypes for C99 complex functions.
759         * libgfortran.h: Include complex.h before c99_protos.h.
760         * intrinsics/c99_functions.c: Define HAVE_ macros for the
761         fallback functions we provide.
762         (cabsf, cabs, cabsl, cargf, carg, cargl, cexpf, cexp, cexpl,
763         clogf, clog, clogl, clog10f, clog10, clog10l, cpowf, cpow, cpowl,
764         cqsrtf, csqrt, csqrtl, csinhf, csinh, csinhl, ccoshf, ccosh,
765         ccoshl, ctanhf, ctanh, ctanhl, csinf, csin, csinl, ccosf, ccos,
766         ccosl, ctanf, ctan, ctanl): New fallback functions.
767         * Makefile.am (gfor_math_trig_c, gfor_math_trig_obj,
768         gfor_specific_c, gfor_cmath_src, gfor_cmath_obj): Remove.
769         * Makefile.in: Regenerate.
770         * configure.ac: Remove checks for csin. Add checks for all C99
771         complex functions.
772         * config.h.in: Regenerate.
773         * configure: Regenerate.
774         * aclocal.m4: Regenerate.
776 2005-09-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
777             Danny Smith  <dannysmith@users.sourceforge.net>
779         PR libfortran/23803
780         * intrinsics/getXid.c: Add getpid wrapper for MinGW.
781         * intrinsics/getlog.c: Add getlogin wrapper for MinGW.
782         * intrinsics/hostnm.c: Add gethostname wrapper for MinGW.
784 2005-09-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
786         PR libfortran/23802
787         * intrinsics/sleep.c: Add correct sleep macro for MinGW.
789 2005-09-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
791         PR libfortran/23380
792         * intrinsics/cpu_time.c (__cpu_time_1): Provide a MS Windows
793         version.
795 2005-09-14  Jerry DeLisle  <jvdelisle@verizon.net
797         PR fortran/21875 Internal Unit Array I/O, NIST
798         * libgfortran.h: Add run time error code for array stride.
799         * runtime/error.c (translate_error): Add error message for
800         array stride.
801         * io/io.h: Add array descriptor pointer to IOPARM structure.
802         Add prtotypes for two new functions.
803         * io/transfer.c (data_transfer_init): Removed initialization and
804         moved to unit.c (get_unit)
805         * io/transfer.c (next_record_r): Include internal unit read
806         functionality.
807         * io/transfer.c (next_record_w): Include internal unit write
808         functionality, including padding of character array records.
809         * io/unit.c (get_array_unit_len): New function to return the number
810         of records in the character array 'file' from the array descriptor.
811         * io/unit.c (get_unit): Gathered initialization code from
812         init_data_transfer for internal units and added initialization of
813         character array unit.
814         * io/unit.c (is_array_io): New function to determine if internal unit
815         is an array.
816         * io/unix.c (mem_alloc_w_at): Add error checks for bad record length
817         and end of file.
819 2005-09-13  Richard Sandiford  <richard@codesourcery.com>
821         PR target/19269
822         * intrinsics/cshift0.c (cshift0): Add an extra size argument.
823         (cshift0_1, cshift0_2, cshift0_4, cshift0_8): Replace explicit
824         implementations with...
825         (DEFINE_CSHIFT): ...this new macro.  Define character versions too.
826         * intrinsics/eoshift0.c (zeros): Delete.
827         (eoshift0): Add extra size and filler arguments.  Use memset if no
828         bound is provided.
829         (eoshift0_1, eoshift0_2, eoshift0_4, eoshift0_8): Replace explicit
830         implementations with...
831         (DEFINE_EOSHIFT): ...this new macro.  Define character versions too.
832         * intrinsics/eoshift2.c (zeros): Delete.
833         (eoshift2): Add extra size and filler arguments.  Use memset if no
834         bound is provided.
835         (eoshift2_1, eoshift2_2, eoshift2_4, eoshift2_8): Replace explicit
836         implementations with...
837         (DEFINE_EOSHIFT): ...this new macro.  Define character versions too.
838         * intrinsics/pack.c (pack_internal): New static function, reusing
839         the contents of pack and adding an extra size argument.  Change
840         "mptr" rather than "m" when calculating the array size.
841         (pack): Redefine as a forwarder to pack_internal.
842         (pack_s_internal): New static function, reusing the contents of
843         pack_s and adding an extra size argument.
844         (pack_s): Redefine as a forwarder to pack_s_internal.
845         (pack_char, pack_s_char): New functions.
846         * intrinsics/reshape.c (reshape_internal): New static function,
847         reusing the contents of reshape and adding an extra size argument.
848         (reshape): Redefine as a forwarder to reshape_internal.
849         (reshape_char): New function.
850         * intrinsics/spread.c (spread_internal): New static function,
851         reusing the contents of spread and adding an extra size argument.
852         (spread): Redefine as a forwarder to spread_internal.
853         (spread_char): New function.
854         * intrinsics/transpose.c (transpose_internal): New static function,
855         reusing the contents of transpose and adding an extra size argument.
856         (transpose): Redefine as a forwarder to transpose_internal.
857         (transpose_char): New function.
858         * intrinsics/unpack.c (unpack_internal): New static function, reusing
859         the contents of unpack1 and adding extra size and fsize arguments.
860         (unpack1): Redefine as a forwarder to unpack_internal.
861         (unpack0): Call unpack_internal instead of unpack1.
862         (unpack1_char, unpack0_char): New functions.
863         * m4/cshift1.m4 (cshift1): New static function, reusing the contents
864         of cshift1_<kind> and adding an extra size argument.
865         (cshift1_<kind>): Redefine as a forwarder to cshift1.
866         (cshift1_<kind>_char): New function.
867         * m4/eoshift1.m4 (zeros): Delete.
868         (eoshift1): New static function, reusing the contents of
869         eoshift1_<kind> and adding extra size and filler arguments.
870         Fix calculation of hstride.  Use memset if no bound is provided.
871         (eoshift1_<kind>): Redefine as a forwarder to eoshift1.
872         (eoshift1_<kind>_char): New function.
873         * m4/eoshift3.m4 (zeros): Delete.
874         (eoshift3): New static function, reusing the contents of
875         eoshift3_<kind> and adding extra size and filler arguments.
876         Use memset if no bound is provided.
877         (eoshift3_<kind>): Redefine as a forwarder to eoshift3.
878         (eoshift3_<kind>_char): New function.
879         * generated/cshift1_4.c, generated/cshift1_8.c,
880         * generated/eoshift1_4.c, generated/eoshift1_8.c,
881         * generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerate.
883 2005-09-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
885         PR libfortran/20179
886         * io/unix.c (is_preconnected): Add function to test if a stream
887         corresponds to a preconnected unit.
888         * io/io.h: Add prototype for is_preconnected.
889         * io/transfer.c (data_transfer_init): Do not truncate
890         preconnected units.
892 2005-09-10  Janne Blomqvist  <jblomqvi@cc.hut.fi>
894         * io/unix.c: Remove mmap code.
896 2005-09-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
898         PR libfortran/23784
899         * io/close.c (st_close): Call library_end even in case of error.
901 2005-09-09  Thomas Koenig  <Thomas.Koenig@online.de>
903         * io/io.h:  Add iomsg as last field of st_parameter.
904         * runtime/error.c (generate_error):  If iomsg is present, copy
905         the message there.
907 2005-09-09  Richard Sandiford  <richard@codesourcery.com>
909         PR fortran/12840
910         * runtime/memory.c (internal_malloc_size): Return a null pointer
911         if the size is zero.
912         (internal_free): Do nothing if the pointer is null.
913         (internal_realloc_size, internal_realloc, internal_realloc64): New.
915 2005-09-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
917         PR libfortran/23262
918         * acinclude.m4 (LIBGFOR_CHECK_CRLF): New check.
919         * configure.ac: Use new check.
920         * configure.in: Regenerate.
921         * config.h.in: Regenerate.
922         * configure: Regenerate.
923         * io/transfer.c (next_record_w): Add case for CRLF as line
924         terminator.
925         * io/unix.c (tempfile, regular_file): Open files with
926         O_BINARY on systems with CRLF.
928 2005-09-07  Steve Ellcey  <sje@cup.hp.com>
930         PR libfortran/23419
931         * io/write.c (extract_int): Use memcpy to access buffer.
932         (extract_uint): Ditto.
933         (extract_real): Ditto.
935 2005-09-05  Thomas Koenig  <Thomas.Koenig@online.de>
937         * io/list_read.c:  Adjust size of of value to 32 (to hold
938         kind=16 complex values).
940 2005-09-04  Thomas Koenig  <Thomas.Koenig@online.de>
942         PR libfortran/23321
943         * io/transfer.c(data_transfer_init):  Check for a too-large
944         record number.  Return if sseek failed.
946 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
948         * io/read.c (read_x): Take int argument instead of fnode * and
949         digging the N from F->u.n.
950         * io/io.h (read_x): Adjust prototype.
951         * io/transfer.c (formatted_transfer): Adjust callers.  Don't clobber
952         f->u.n for FMT_T.
954 2005-09-02  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
956         * io/unix.c (stream_ttyname): Protect use of ttyname by
957         HAVE_TTYNAME macro.
958         * configure.ac: Add check for ttyname.
959         * config.h.in: Regenerate.
960         * configure: Regenerate.
962 2005-09-02  Andreas Jaeger  <aj@suse.de>
964         * libgfortran.h: Add prototype for init_compile_options.
966         * io/io.h: Add prototype for notify_std.
968 2005-08-31  Steve Ellcey  <sje@cup.hp.com>
970         * io/read.c (set_integer): Use memcpy to fill buffer.
972 2005-08-31  Steve Ellcey  <sje@cup.hp.com>
974         PR target/23556
975         * io/read.c (convert_real): Use memcpy to fill buffer.
977 2005-08-29  Thomas Koenig  <Thomas.Koenig@online.de>
979         PR libfortran/23598
980         * io/lock.c(library_start):  If ioparm.iostat is present, clear
981         it unconditionally.
983 2005-08-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
985         * acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see
986         if target can unlink open files.
987         * configure.ac: Use this new test.
988         * config.h.in: Regenerate.
989         * configure: Regenerate.
990         * Makefile.in: Regenerate.
991         * aclocal.ac: Regenerate.
992         * io/io.h: Add prototype for unpack_filename.
993         * io/close.c (st_close): Delete file after closing unit if
994         HAVE_UNLINK_OPEN_FILE is not defined.
995         * io/unix.c (unpack_filename): Unlink scratch file after opening
996         it only if HAVE_UNLINK_OPEN_FILE is defined.
998 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
1000         * All files: Update FSF address.
1002 2005-08-16  Thomas Koenig  <Thomas.Koenig@online.de>
1004         PR libfortran/23428
1005         * io/transfer.c (iolength_transfer):  Remove __attribute__ ((unused))
1006         from type.  Return correct length for inquire(iolength=)
1007         for complex variables.
1009 2005-08-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1010             Steven Bosscher  <stevenb@suse.de>
1012         PR libfortran/20006
1013         * Makefile.am: Add file runtime/compile_options.c.
1014         * Makefile.in: Regenerate.
1015         * libgfortran.h: Create structure compile_options_t. Define the
1016         compile_options variable and GFC_STD_ macros.
1017         * runtime/compile_options.c: New file.
1018         * runtime/error.c (notify_std): New function.
1019         * runtime/main.c (init): Call init_compile_options during
1020         initialization.
1021         * io/format.c: Use the new notify_std function for the $
1022         descriptor extension.
1024 2005-08-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1025         * Makefile.am: Add file intrinsics/tty.c to Makefile process.
1026         * Makefile.in: Regenerate.
1027         * io/io.h: Prototypes for new functions stream_isatty and
1028         stream_ttyname.
1029         * io/unix (stream_isatty, stream_ttyname): New functions to call
1030         isatty() and ttyname() on a given unit.
1031         * intrinsics/tty.c: New file to implement g77 intrinsics TTYNAM
1032         and ISATTY.
1034 2005-08-08  Jerry DeLisle  <jvdelisle@verizon.net>
1036         PR libfortran/23154
1037         * io/transfer.c (data_transfer_init): Initialize
1038         current_unit->bytes_left for a read.
1040 2005-08-07  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1042         PR fortran/22390
1043         * io/backspace.c: File removed, contents moved to ...
1044         * io/endfile.c: Ditto.
1045         * io/rewind.c: Ditto.
1046         * io/file_pos.c: New file, ... here.
1047         * Makefile.am: Add file_pos.c to list, remove obsolete files.
1048         * Makefile.in: Regenerated.
1050 2005-08-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1052         * io/io.h: Change DEFAULT_TEMPDIR to /tmp instead of /var/tmp.
1053         * io/unix.c (tempfile): Look at the TEMP environment variable
1054         to find the temporary files directory. Whitespace correction.
1056 2005-08-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1058         * io/unix.c: Add O_RDWR to open() call.
1060 2005-08-04 Paul Thomas  <pault@gcc.gnu.org>
1062         * transfer.c (data_transfer_init): Truncate file in
1063         sequential WRITE when last_record == 0, rather than
1064         current_record.  Cures problem on RH9.
1066 2005-08-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1068         * libgfortran.h: When isfinite is not provided by the system,
1069         define it as a macro, so that it can accept any floating point
1070         type.
1072 2005-08-01  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1074         PR libfortran/23178
1075         * intrinsics/flush.c (flush_i8): Add function flush_i8. Update
1076         copyright years.
1078 2005-07-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1080         PR libfortran/21787
1081         * intrinsics/abort.c (abort): Close units before aborting.
1082         Updated copyright years.
1084 2005-07-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1086         PR libfortran/22436
1087         * io/write.c (write_real): Add default formats for real(10) and
1088         real(16).
1090 2005-07-30 Paul Thomas  <pault@gcc.gnu.org>
1092         PR fortran/22570 and related issues.
1093         * transfer.c (formatted_transfer): Make sure that there
1094         really is data present before X- or T- editing. Move all
1095         treatment of tabbing during writes to start of next data
1096         producing format. Suppress incorrect zeroing of bytes_left
1097         in slash formating. Insert int cast for assignment of a
1098         difference of two gfc_offsets.
1100 2005-07-23  Jerry DeLisle  <jvdelisle@verizon.net>
1102         * io/write.c (write_float): Revise output of IEEE exceptional
1103         values to comply with F95 and F2003 standards.
1105 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
1107         PR libfortran/22570
1108         * io/unit.c (init_units): Replace BLANK_ZERO with
1109         BLANK_UNSPECIFIED.
1111 2005-07-22 Jerry DeLisle <jvdelisle@verizon.net>
1113         PR libfortran/21875  (FM111.f)
1114         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO
1115         or BLANK_NULL are active.
1116         (read_decimal): Interpret ' ' character correctly for BZ or BN.
1117         (read_radix): Interpret ' ' character correctly for BZ or BN.
1118         (read_f): Interpret ' ' character correctly for BZ or BN.
1120 2005-07-22 Paul Thomas  <pault@gcc.gnu.org>
1122         PR libfortran/22570
1123         * read.c (read_x): Correct the condition for doing the
1124         x-editing during formatted input.
1125         * transfer.c (formatted_transfer): Cast offset difference
1126         as int, clean-up arithmetic with new variable, bytes_used,
1127         zero counters for FMT_SLASH,
1128         (data_transfer_init) Zero X- and T-editing counters
1129         unconditionally.
1130         (next_record_w) Zero X- and T-editing counters.
1131         unconditionally.
1133 2005-07-17  Jerry DeLisle  <jvdelisle@verizon.net>
1135         * io/write.c (write_float): Fix field width checks for
1136         printing 'Infinity' or 'Inf'.
1137         (output_float): Fix typo in comment.
1139 2005-07-12 Paul Thomas  <pault@gcc.gnu.org>
1141         PR libfortran/16435
1142         * transfer.c (formatted_transfer): Correct the problems
1143         with X- and T-editting that caused TLs followed by TRs
1144         to overwrite data, which caused NIST FM908.FOR to fail
1145         on many tests.
1146         (data_transfer_init): Zero X- and T-editting counters at
1147         the start of formatted IO.
1148         * write.c (write_x): Write specified number of skips with
1149         specified number of spaces at the end.
1151 2005-07-13 Paul Thomas  <pault@gcc.gnu.org>
1153         * io/read.c (read_complex): Prevent X formatting during reads
1154         from going beyond EOR to fix NIST fm908.FOR failure.
1155         * io/list_read.c (read_complex): Allow complex data in list-
1156         directed reads to have eols either side of the comma to
1157         fix NIST FM906.FOR failure.
1159 2005-07-12  Thomas Koenig  <Thomas.Koenig@online.de>
1161         PR libfortran/21593
1162         * io/unix.c:  Add member special_file to type unix_stream.
1163         (fd_truncate):  Don't call ftruncate or chsize if
1164         s refers to a special file.
1165         (fd_to_stream):  initialize s->special_file.
1167 2005-07-11  David Edelsohn  <edelsohn@gnu.org>
1169         PR libgfortran/22412
1170         * io/write.c (otoa): Bias p by SCRATCH_SIZE, not
1171         sizeof (SCRATCH_SIZE).
1172         (btoa): Same.
1174 2005-07-09  Jerry DeLisle  <jvdelisle@verizon.net>
1176         PR libfortran/21875  (FM111.f)
1177         * io/read.c (next_char): Return a ' ' character when BLANK_ZERO or
1178         BLANK_NULL are active.
1179         (read_decimal): Interpret ' ' character correctly for BZ or BN.
1180         (read_radix): Interpret ' ' character correctly for BZ or BN.
1181         (read_f): Interpret ' ' character correctly for BZ or BN.
1182         * gfortran.dg/test (fmt_read_bz_bn.f90): New test case.
1184 2005-07-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1185             Thomas Koenig  <Thomas.Koenig@online.de>
1187         PR libfortran/22217
1188         * io/write.c (extract_unit):  New function; extract
1189         ints as unsigned signed int of the correct size.
1190         (write_int):  Use it.
1191         * runtime/error.c:  Adjust copyright years.
1192         Adjust size of buffer to maximum that can occur.
1194 2005-07-07  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1196         * libgfortran.h (GFC_ARRAY_DESCRIPTOR): Replace 'type *base' by
1197         'size_t offset'.
1198         * intrinsics/cshift0.c, intrinsics/eoshift0.c,
1199         intrinsics/eoshift2.c,intrinsics/pack_generic.c,
1200         intrinsics/reshape_generic.c, intrinsics/spread_generic.c,
1201         intrinsics/transpose_generic.c, intrinsics/unpack_generic,
1202         m4/cshift1.m4, m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4,
1203         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/reshape.m4,
1204         m4,transpose.m4: Set renamed field 'offset' to zero instead of
1205         'base'.
1206         * generated/all_l4.c, generated/all_l8.c,
1207         generated/any_l4.c, generated/any_l8.c, generated/count_4_l4.c,
1208         generated/count_4_l8.c, generated/count_8_l4.c,
1209         generated/count_8_l8.c, generated/chift1_4.c,
1210         generated/cshift1_8.c, generated/eoshift1_4.c,
1211         generated/eoshift1_8.c, generated/eoshift3_4.c,
1212         generated/eoshift3_8.c, generated/matmul_c4.c,
1213         generated/matmul_c8.c, generated/matmul_i4.c, matmul_i8.c,
1214         generated/matmul_l4.c, generated/matmul_l8.c,
1215         generated/matmul_r4.c, generated/matmul_r8.c,
1216         generated/maxloc0_4_i4.c, generated/maxloc0_4_i8.c,
1217         generated/maxloc0_4_r4.c, generated/maxloc0_4_r8.c,
1218         generated/maxloc0_8_i4.c, generated/maxloc0_8_i8.c,
1219         generated/maxloc0_8_r4.c, generated/maxloc0_8_r8.c,
1220         generated/maxloc1_4_i4.c, generated/maxloc1_4_i8.c,
1221         generated/maxloc1_4_r4.c, generated/maxloc1_4_r8.c,
1222         generated/maxloc1_8_i4.c, generated/maxloc1_8_i8.c,
1223         generated/maxloc1_8_r4.c, generated/maxloc1_8_r8.c,
1224         generated/maxval_i4.c, generated/maxval_i8.c,
1225         generated/maxval_r4.c, generated/maxval_r8.c,
1226         generated/minloc0_4_i4.c, generated/minloc0_4_i8.c,
1227         generated/minloc0_4_r4.c, generated/minloc0_4_r8.c,
1228         generated/minloc0_8_i4.c, generated/minloc0_8_i8.c,
1229         generated/minloc0_8_r4.c, generated/minloc0_8_r8.c,
1230         generated/minloc1_4_i4.c, generated/minloc1_4_i8.c,
1231         generated/minloc1_4_r4.c, generated/minloc1_4_r8.c,
1232         generated/minloc1_8_i4.c, generated/minloc1_8_i8.c,
1233         generated/minloc1_8_r4.c, generated/minloc1_8_r8.c,
1234         generated/minval_i4.c, generated/minval_i8.c,
1235         generated/minval_r4.c, generated/minval_r8.c,
1236         generated/product_c4.c, generated/product_c8.c,
1237         generated/product_i4.c, generated/product_i8.c,
1238         generated/product_r4.c, generated/product_r8.c,
1239         generated/reshape_c4.c, generated/reshape_c8.c,
1240         generated/reshape_i4.c, generated/reshape_i8.c,
1241         generated/sum_c4.c, generated/sum_c8.c, generated/sum_i4.c,
1242         generated/sum_i8.c, generated/sum_r4.c, generated/sum_r8.c,
1243         generated/transpose_c4.c, generated/transpose_c8.c,
1244         generated/transpose_i4.c, generated/transpose_i8.c: Regenerate:
1246 2005-07-07  Thomas Koenig  <Thomas.Koenig@online.de>
1248         PR libfortran/21594
1249         * intrinsics/eoshift0.c:  If abs(shift) > len, fill the
1250         the whole array with the boundary value, but don't overrun it.
1251         * intrinsics/eoshift2.c:  Likewise.
1252         * m4/eoshift1.m4:  Likewise.
1253         * m4/eoshift3.m4:  Likewise.
1254         * generated/eoshift1_4.c:  Regenerated.
1255         * generated/eoshift1_8.c:  Regenerated.
1256         * generated/eoshift3_4.c:  Regenerated.
1257         * generated/eoshift3_8.c:  Regenerated.
1259 2005-07-07  Feng Wang  <fengwang@nudt.edu.cn>
1261         PR fortran/16531
1262         * io/transfer.c (formatted_transfer): Enable FMT_A on other types to
1263         support Hollerith constants.
1265 2005-07-01  Andreas Jaeger  <aj@suse.de>
1267         * intrinsics/unpack_generic.c: Remove const from parameter.
1269         * io/transfer.c (formatted_transfer): Remove unused variable.
1271 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
1273         PR libfortran/22142
1274         * m4/eoshift1.m4:  Correct bstride (it needs to be multiplied
1275         by size since it's a char pointer).
1276         * m4/eoshift1_4.c:  Regenerated.
1277         * m4/eoshift1_8.c:  Regenerated.
1279 2005-06-28  Thomas Koenig  <Thomas.Koenig@online.de>
1281         PR libfortran/22142
1282         * m4/eoshift3.m4:  Correct bstride (it needs to be multiplied
1283         by size since it's a char pointer).
1284         * m4/eoshift3_4.c:  Regenerated.
1285         * m4/eoshift3_8.c:  Regenerated.
1287 2005-06-28  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1289         PR libfortran/22170
1290         * io/transfer.c (formatted_transfer): Do not iterate on the
1291         repeat count of a FMT_SLASH, since this is already done in
1292         next_format().
1294 2005-06-25  Thomas Koenig  <Thomas.Koenig@online.de>
1296         PR libfortran/22144
1297         * m4/cshift1.m4: Remove const from argument ret.
1298         Populate return array descriptor if ret->data is NULL.
1299         * m4/eoshift1.m4: Likewise.
1300         * m4/eoshift3.m4: Likewise.
1301         * generated/cshift1_4.c:  Regenerated.
1302         * generated/cshift1_8.c:  Regenerated.
1303         * generated/eoshift1_4.c:  Regenerated.
1304         * generated/eoshift1_8.c:  Regenerated.
1305         * generated/eoshift3_4.c:  Regenerated.
1306         * generated/eoshift3_8.c:  Regenerated.
1308 2005-06-24  Jerry DeLisle <jvdelisle@verizon.net>
1310         PR libfortran/21915
1311         * Makefile.am: Include intrinsics/hyper.c.
1312         * c99_protos.h: Add prototypes for single precision versions of
1313         acosh, asinh, and atanh for platforms that do not have these.
1314         * config.h.in: Add #undef for wrappers.
1315         * configure.ac: Add checks for single precision versions.
1316         * aclocal.m4: Regenerated.
1317         * Makefile.in: Regenerated.
1318         * configure: Regenerated.
1319         * intrinsics/hyper.c: New file, adds new wrapper functions.
1321 2005-06-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1323         * intrinsics/c99_functions.c (log10l): New log10l function for
1324         systems where this is not available.
1325         * c99_protos.h: Prototype for log10l function.
1326         * libgfortran.h: Use generated kinds.h to define GFC_INTEGER_*,
1327         GFC_UINTEGER_*, GFC_LOGICAL_*, GFC_REAL_*, GFC_COMPLEX_*. Update
1328         prototypes for gfc_itoa and xtoa.
1329         * io/io.h: Update prototypes for set_integer and max_value.
1330         * io/list_read.c (convert_integer): Use new
1331         GFC_(INTEGER|REAL)_LARGEST type.
1332         * io/read.c (set_integer): Likewise.
1333         (max_value): Likewise.
1334         (convert_real): Likewise.
1335         (real_l): Likewise.
1336         (next_char): Likewise.
1337         (read_decimal): Likewise.
1338         (read_radix): Likewise.
1339         (read_f): Likewise.
1340         * io/write.c (extract_int): Use new GFC_INTEGER_LARGEST type.
1341         (extract_real): Use new GFC_REAL_LARGEST type.
1342         (calculate_exp): Likewise.
1343         (calculate_G_format): Likewise.
1344         (output_float): Likewise. Use log10l for long double values.
1345         Add comment for sprintf format. Use GFC_REAL_LARGEST_FORMAT.
1346         (write_l): Use new GFC_INTEGER_LARGEST type.
1347         (write_float): Use new GFC_REAL_LARGEST type.
1348         (write_int): Remove useless special case for (len < 8).
1349         (write_decimal): Use GFC_INTEGER_LARGEST.
1350         (otoa): Use GFC_UINTEGER_LARGEST as argument.
1351         (btoa): Use GFC_UINTEGER_LARGEST as argument.
1352         * runtime/error.c (gfc_itoa): Use GFC_INTEGER_LARGEST as
1353         argument.
1354         (xtoa): Use GFC_UINTEGER_LARGEST as argument.
1355         * Makefile.am: Use mk-kinds-h.sh to generate header kinds.h
1356         with all Fortran kinds available.
1357         * configure.ac: Check for strtold and log10l.
1358         * Makefile.in: Regenerate.
1359         * aclocal.m4: Regenerate.
1360         * configure: Regenerate.
1361         * config.h.in: Regenerate.
1362         * mk-kinds-h.sh: Configuration script for available integer
1363         and real kinds.
1366 2005-06-18  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1368         * unix.c (stream_at_bof): Don't assume that all non-mmapped files
1369         are non-seekable.
1370         (stream_at_eof): Likewise.
1372 2005-06-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1374         PR libfortran/19155
1375         * io/read.c (convert_real): strtod can set errno to EINVAL on an
1376         empty string, but we shouldn't have an error in that case.
1378 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1380         PR libfortran/19216
1381         * io/list_read.c (eat_separator): No need to call next_record,
1382         even in non-namelist_mode.
1384 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1386         * io/transfer.c (formatted_transfer): Fix typo in error message.
1388 2005-06-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1390         PR libfortran/16436
1391         * io/transfer.c (read_sf): Correct updating of bytes_left field.
1392         (formatted_transfer): Correct updating of bytes_left field and
1393         reformatting code (comments and whitespace).
1394         * io/unix.c (move_pos_offset): "active" field should not be
1395         changed here. Whitespace corrections.
1397 2005-06-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1399         PR libfortran/21950
1400         * intrinsics/c99_functions.c (scalbn): Provide fallback
1401         implementation for scalbn.
1402         * c99_protos.h: Prototype for scalbn.
1403         * configure.ac: Add check for scalbn.
1404         * configure: Regenerate.
1405         * config.h.in: Regenerate.
1407 2005-06-14  Thomas Koenig  <Thomas.Koenig@online.de>
1409         * intrinsics/eoshift0.c:  Removed prototype for eoshift0.
1410         * intrinsics/eoshift2.c:  Removed prototype for eoshift2.
1412 2005-06-14  Tom Tromey  <tromey@redhat.com>
1414         PR libgcj/19877:
1415         * configure, aclocal.m4, Makefile.in: Rebuilt.
1417 2005-06-12  Thomas Koenig  <Thomas.Koenig@online.de>
1419         PR libfortran/21594
1420         * intrinsics/eoshift0.c:  Add prototype for eoshift0.
1421         * intrinsics/eoshift2.c:  Add prototype for eoshift2.
1423 2005-06-12  Steven G. Kargl <kargls@comcast.net>
1424             Thomas Koenig  <Thomas.Koenig@online.de>
1426         PR libfortran/PR21797
1427         * m4/cexp.m4 (csqrt`'q):  Add type qualifyer to
1428         sqrt and fabs.
1429         * generated/exp_c4.c:  Regenerated.
1431 2005-06-12  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1433         PR libfortran/19155
1434         * io/read.c (read_f): Take care of spaces after initial sign.
1436 2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>
1438         PR libfortran/21333
1439         * Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
1440         and in_unpack_c8.c.
1441         * Makefile.in: Regenerate.
1442         * libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
1443         internal_unpack_c4 and internal_unpack_c8.
1444         * m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
1445         in function name.
1446         Use sizeof (rtype_name) as size for memory allocation.
1447         * m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
1448         in function name.
1449         Use sizeof (rtype_name) for calculation of sizes for memcpy.
1450         * runtime/in_pack_generic.c:  For real, integer and logical
1451         call internal_pack_4 if size==4 and internal_pack_8 if
1452         size==8.
1453         For complex, call internal_pack_c4 if size==8 and
1454         internal_pack_c8 if size==16.
1455         * runtime/in_unpack_generic.c: For real, integer and logical
1456         call internal_unpack_4 if size==4 and internal_unpack_8 if
1457         size==8.
1458         For complex, call internal_unpack_c4 if size==8 and
1459         internal_unpack_c8 if size==16.
1460         * generated/in_pack_i4.c:  Regenerated.
1461         * generated/in_pack_i8.c:  Regenerated.
1462         * generated/in_unpack_i4.c:  Regenerated.
1463         * generated/in_unpack_i8.c:  Regenerated.
1464         * generated/in_pack_c4.c:  New file.
1465         * generated/in_pack_c8.c:  New file.
1466         * generated/in_unpack_c4.c:  New file.
1467         * generated/in_unpack_c8.c:  New file.
1469 2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>
1471         PR libfortran/21480
1472         * m4/reshape.m4:  Use sizeof (rtype_name) for sizes to be passed
1473         to reshape_packed.
1474         * generated/reshape_c4.c:  Regenerated.
1475         * generated/reshape_c8.c:  Regenerated.
1476         * generated/reshape_i4.c:  Regenerated.
1477         * generated/reshape_i8.c:  Regenerated.
1479 2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>
1481         PR libfortran/21926
1482         * m4/matmul.m4:  Correct zeroing of result for non-packed
1483         arrays with lowest stride is one.
1484         * generated/matmul_c4.c:  Regenerated.
1485         * generated/matmul_c8.c:  Regenerated.
1486         * generated/matmul_i4.c:  Regenerated.
1487         * generated/matmul_i8.c:  Regenerated.
1488         * generated/matmul_r4.c:  Regenerated.
1489         * generated/matmul_r8.c:  Regenerated.
1491 2005-05-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1493         PR libfortran/20179
1494         * io/unix.c (fd_close): Add test so that we don't close()
1495         stdout and stderr.
1497 2005-05-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1499         PR libfortran/20006
1500         * io/format.c (parse_format_list): Set repeat count of $ format
1501         node to 1.
1502         * io/transfer.c (read_sf): Add g.seen_dollar to the test
1503         concerning advancing I/O.
1504         (data_transfer_init): Likewise.
1505         (finalize_transfer): Likewise.
1507 2005-05-27  Thomas Koenig  <Thomas.Koenig@online.de>
1509         * runtime/in_pack_generic.c:  Adjust copyright years.
1510         (in_pack_generic):  Change dimension of auxiliary arrays from
1511         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1512         * runtime/in_unpack_generic.c:  Adjust copyright years.
1513         (in_unpack_generic):  Change dimension of auxiliary arrays from
1514         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1516 2005-05-26  Thomas Koenig  <Thomas.Koenig@online.de>
1518         PR libfortran/17283
1519         * intrinsics/unpack_generic.c:  Fix name of routine
1520         on top.  Update copyright years.
1521         (unpack1):  Remove const from return array descriptor.
1522         rs:  New variable, for calculating return sizes.
1523         Populate return array descriptor if ret->data is NULL.
1525 2005-05-22  Peter Wainwright  <prw@ceiriog1.demon.co.uk>
1527         PR libfortran/21376
1528         * io/write.c (output_float): Rework logic to avoid call to log10
1529         with argument equal to zero.
1531 2005-05-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1533         * configure.ac: Check for trunc and truncf in libm.
1534         * configure: Regenerate.
1535         * config.h.in: Likewise.
1536         * intrinsics/c99_functions.c (trunc, truncf): New functions.
1537         * c99_protos.h (trunc, truncf): Declare them.
1539 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
1541         PR libfortran/21127
1542         * Makefile.am:  Really commit.
1543         * Makefile.in:  Really commit.
1545 2005-05-18  Thomas Koenig  <Thomas.Koenig@online.de>
1547         PR libfortran/21127
1548         * Makefile.am:  Add generated/reshape_c4.c and
1549         generated/reshape_c8.c.
1550         * Makefile.in:  Regenerated.
1551         * m4/iparm.m4:  Define rtype_ccode to be c4 or c8 for
1552         complex types, 4 or 8 otherwise.
1553         * m4/reshape.m4:  Use rtype_ccode instead of rtype_kind
1554         in function name.
1555         * generated/reshape_c4.c: New file.
1556         * generated/reshape_c8.c: New file.
1558 2005-05-16  Andreas Jaeger  <aj@suse.de>
1560         * configure.ac: Add additional warning flags.
1561         * configure: Regenerate.
1563         * io/write.c (calculate_G_format): Remove unused parameter.
1564         (output_float): Remove unused parameter.
1565         (write_float): Change callers.
1566         (nml_write_obj): Avoid signed warning.
1567         Make variable const to support -Wwrite-strings.
1569         * io/unix.c (fd_alloc, mmap_open, mmap_sfree, mem_sfree,
1570         mem_truncate): Mark argument as unused.
1572         * io/unit.c (get_unit): Mark argument as unused.
1573         (init_units): Avoid warning about signed comparision.
1575         * io/transfer.c (next_record_r): Remove unused parameter.
1576         (next_record_w): Remove unused parameter.
1577         (next_record): Change callers.
1578         (iolength_transfer): Mark arguments as unused.
1580         * io/open.c: Add initializer.
1582         * io/list_read.c (read_character): Mark argument as unused.
1583         (nml_match_name): Add const to make compile with -Wwrite-strings.
1585         * io/format.c: Add initializer.
1587 2005-05-15  Andreas Jaeger  <aj@suse.de>
1589         * m4/eoshift1.m4: Initialize variables to avoid warnings.
1590         * m4/eoshift3.m4: Initialize variables to avoid warnings.
1591         * generated/eoshift1_4.c, generated/eoshift1_8.c,
1592         generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.
1594         * intrinsics/spread_generic.c (spread): Initialize variables to
1595         avoid warnings.
1597         * intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
1598         warnings.
1599         * intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
1600         warnings.
1602         * io/list_read.c (nml_get_obj_data): Initialize variables to avoid
1603         warnings.
1605         * intrinsics/pack_generic.c (pack): Remove unneeded calculation.
1607         * m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
1608         pointer cast to avoid warning.
1609         * generated/matmul_l4.c: Regenerated.
1610         * generated/matmul_l8.c: Regenerated.
1612         * Makefile.am: Remove AM_CFLAGS here.
1613         * configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
1614         are set.  Set additionally -Wstrict-prototypes for CFLAGS.
1615         * Makefile.in: Regenerated.
1616         * aclocal.m4: Regenerated.
1617         * configure: Regenerated.
1619         * intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
1620         missing returns, reformat a bit.
1622         * io/write.c (nml_write_obj): Use %d again - and cast to int,
1623         st_sprintf does not handle %ld.
1625         * io/unit.c (is_internal_unit): Add void as parameter list.
1627         * io/transfer.c: Move prototype declarations before the functions.
1629         * runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
1630         list.
1632         * intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.
1634         * io/transfer.c: Do not use empty initializers for global objects.
1635         Add missing initializers.
1637         * io/lock.c: Do not use empty initializers for global objects.
1639         * io/close.c: Add missing initializers.
1641         * runtime/environ.c: Add missing initializers. Do not use empty
1642         initializers for global object.
1643         (init_string): Mark argument as unused.
1645         * runtime/main.c (cleanup): Fix parameter list.
1647         * io/io.h: Fix parameter lists.
1649         * m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
1650         warning.
1652         * generated/transpose_c4.c, generated/transpose_c8.c,
1653         generated/transpose_i4.c, generated/transpose_i8.c,
1654         generated/matmul_c4.c, generated/matmul_c8.c,
1655         generated/matmul_i4.c, generated/matmul_i8.c,
1656         generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.
1658         * io/write.c (nml_write_obj): Fix 64-bit problem.
1660         * io/list_read.c (nml_get_obj_data): Add missing braces around
1661         initializer to avoid warnings.
1663         * intrinsics/etime.c (etime_sub): Remove unused variable.
1665         * intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
1666         intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
1667         prototypes.
1669         * runtime/string.c (compare0): Remove unused variable.
1670         * io/unit.c (init_units): Remove unused variables.
1671         * intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
1672         * intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
1673         * intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
1674         stat_i8_sub): Remove unused variable.
1676 2005-05-12  Thomas Koenig  <Thomas.Koenig@online.de>
1678         PR libfortran/21324
1679         * runtime/memory.c:  Don't define GFC_CLEAR_MEMORY (it's a
1680         performance hog).
1681         * io/open.c (new_unit): Zero freshly allocated memory for
1682         unit structure.
1683         * io/unit.c (init_units):  Zero freshly allocated memory for
1684         STDIN, STDOUT and STDERR.
1685         * io/unix.c (open_internal):  Zero freshly allocated memory
1686         for unix_stream.
1687         (fd_to_stream):  Likewise.
1689 2005-05-11  Bud Davis  <bdavis@gfortran.org>
1691         PR fortran/19478
1692         * io/unix.c (fd_truncate): update positions when ftruncate
1693         fails (like writing to /dev/null).
1695 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1697         PR libfortran/21471
1698         * open.c (new_unit): Take care of the case where POSITION_APPEND
1699         is specified (sseek to the end, and set u>-endfile).
1701 2005-05-10  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1703         PR fortran/20178
1704         * Makefile.am (gfor_specific_src): Add 'intrinsics/f2c_intrinsics.F90'
1705         to dependencies.
1706         * Makefile.in: Regenerate.
1707         * intrinsics/f2c_specific.F90: New file.
1709 2005-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1711         PR libfortran/20788
1712         * io/unix.c (fd_to_stream): Add an avoid_mmap argument indicating
1713         we don't we to mmap this stream. Use fd_open instead of mmap_open
1714         in that case.
1715         (open_external): Call fd_to_stream with avoid_mmap = 0.
1716         (input_stream): Call fd_to_stream with avoid_mmap = 1.
1717         (output_stream): Likewise.
1718         (error_stream): Likewise.
1720 2005-05-09  Mike Stump  <mrs@apple.com>
1722         * configure: Regenerate.
1724 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1726         PR libfortran/19155
1727         * io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
1728         non-blank characters of a real number.
1730 2005-05-04  Thomas Koenig  <Thomas.Koenig@online.de>
1732         PR libfortran/21354
1733         * m4/cshift1.m4: Change dimension of auxiliary arrays from
1734         GFC_MAX_DIMENSION - 1 to GFC_MAX_DIMENSION.
1735         * m4/eoshift1.m4: Likewise.
1736         * m4/eoshift3.m4: Likewise.
1737         * m4/ifunction.m4: Likewise.
1738         * m4/in_pack.m4: Likewise.
1739         * m4/in_unpack.m4: Likewise.
1740         * intrinsics/cshift0.c: Likewise.
1741         * intrinsics/eoshift0.c: Likewise.
1742         * intrinsics/eoshift2.c: Likewise.
1743         * intrinsics/random.c: Likewise.
1744         * intrinsics/spread_generic.c: Likewise.
1745         * intrinsics/stat.c: Likewise.
1746         * generated/all_l4.c: Regenerated.
1747         * generated/all_l8.c: Regenerated.
1748         * generated/any_l4.c: Regenerated.
1749         * generated/any_l8.c: Regenerated.
1750         * generated/count_4_l4.c: Regenerated.
1751         * generated/count_4_l8.c: Regenerated.
1752         * generated/count_8_l4.c: Regenerated.
1753         * generated/count_8_l8.c: Regenerated.
1754         * generated/cshift1_4.c: Regenerated.
1755         * generated/cshift1_8.c: Regenerated.
1756         * generated/eoshift1_4.c: Regenerated.
1757         * generated/eoshift1_8.c: Regenerated.
1758         * generated/eoshift3_4.c: Regenerated.
1759         * generated/eoshift3_8.c: Regenerated.
1760         * generated/in_pack_i4.c: Regenerated.
1761         * generated/in_pack_i8.c: Regenerated.
1762         * generated/in_unpack_i4.c: Regenerated.
1763         * generated/in_unpack_i8.c: Regenerated.
1764         * generated/maxloc0_4_i4.c: Regenerated.
1765         * generated/maxloc0_4_i8.c: Regenerated.
1766         * generated/maxloc0_4_r4.c: Regenerated.
1767         * generated/maxloc0_4_r8.c: Regenerated.
1768         * generated/maxloc0_8_i4.c: Regenerated.
1769         * generated/maxloc0_8_i8.c: Regenerated.
1770         * generated/maxloc0_8_r4.c: Regenerated.
1771         * generated/maxloc0_8_r8.c: Regenerated.
1772         * generated/maxloc1_4_i4.c: Regenerated.
1773         * generated/maxloc1_4_i8.c: Regenerated.
1774         * generated/maxloc1_4_r4.c: Regenerated.
1775         * generated/maxloc1_4_r8.c: Regenerated.
1776         * generated/maxloc1_8_i4.c: Regenerated.
1777         * generated/maxloc1_8_i8.c: Regenerated.
1778         * generated/maxloc1_8_r4.c: Regenerated.
1779         * generated/maxloc1_8_r8.c: Regenerated.
1780         * generated/maxval_i4.c: Regenerated.
1781         * generated/maxval_i8.c: Regenerated.
1782         * generated/maxval_r4.c: Regenerated.
1783         * generated/maxval_r8.c: Regenerated.
1784         * generated/minloc0_4_i4.c: Regenerated.
1785         * generated/minloc0_4_i8.c: Regenerated.
1786         * generated/minloc0_4_r4.c: Regenerated.
1787         * generated/minloc0_4_r8.c: Regenerated.
1788         * generated/minloc0_8_i4.c: Regenerated.
1789         * generated/minloc0_8_i8.c: Regenerated.
1790         * generated/minloc0_8_r4.c: Regenerated.
1791         * generated/minloc0_8_r8.c: Regenerated.
1792         * generated/minloc1_4_i4.c: Regenerated.
1793         * generated/minloc1_4_i8.c: Regenerated.
1794         * generated/minloc1_4_r4.c: Regenerated.
1795         * generated/minloc1_4_r8.c: Regenerated.
1796         * generated/minloc1_8_i4.c: Regenerated.
1797         * generated/minloc1_8_i8.c: Regenerated.
1798         * generated/minloc1_8_r4.c: Regenerated.
1799         * generated/minloc1_8_r8.c: Regenerated.
1800         * generated/minval_i4.c: Regenerated.
1801         * generated/minval_i8.c: Regenerated.
1802         * generated/minval_r4.c: Regenerated.
1803         * generated/minval_r8.c: Regenerated.
1804         * generated/product_c4.c: Regenerated.
1805         * generated/product_c8.c: Regenerated.
1806         * generated/product_i4.c: Regenerated.
1807         * generated/product_i8.c: Regenerated.
1808         * generated/product_r4.c: Regenerated.
1809         * generated/product_r8.c: Regenerated.
1810         * generated/sum_c4.c: Regenerated.
1811         * generated/sum_c8.c: Regenerated.
1812         * generated/sum_i4.c: Regenerated.
1813         * generated/sum_i8.c: Regenerated.
1814         * generated/sum_r4.c: Regenerated.
1815         * generated/sum_r8.c: Regenerated.
1817 2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>
1819         PR libfortran/18958
1820         libgfortran.h:  Change typedef of index_type from size_t
1821         to ssize_t.
1823 2005-04-30  Paul Thomas  <pault@gcc.gnu.org>
1825         PR libfortran/18857
1826         * generated/matmul_r8.c: Remove incorrect assertions.
1827         * generated/matmul_c4.c: Regenerate
1828         * generated/matmul_c8.c: Regenerate
1829         * generated/matmul_i4.c: Regenerate
1830         * generated/matmul_i8.c: Regenerate
1831         * generated/matmul_r4.c: Regenerate
1832         * generated/matmul_r8.c: Regenerate
1834 2005-04-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1836         * configure.ac: Check for ftruncate and chsize.
1837         * io/unix.c (fd_truncate): Provide chsize as alternative to
1838         ftruncate.
1839         * config.h.in: Regenerate.
1840         * configure: Regenerate.
1842 2004-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1844         * intrinsics/rename.c: Add missing #includes.
1846 2004-04-28  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1848         * AUTHORS, COPYING, INSTALL, NEWS, README: Remove.
1850 2005-04-26  David Edelsohn  <edelsohn@gnu.org>
1852         PR libfortran/20930
1853         * io/rewind.c (st_rewind): Flush the stream when resetting the mode
1854         from WRITING to READING.
1856 2005-04-22  Paul Thomas  <pault@gcc.gnu.org>
1857             Jerry DeLisle  <jvdelisle@verizon.net>
1859         * io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
1860         * io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
1861         call for ext_name.  These fix the bug reported by Jerry DeLisle to
1862         the fortran list and are based on his suggested fix.
1864 2005-04-22  Thomas Koenig  <Thomas.Koenig@online.de>
1866         PR libfortran/20074
1867         PR libfortran/20436
1868         PR libfortran/21108
1869         * m4/reshape.m4 (reshape_`'rtype_kind):  rs, rex:  New
1870         variables, to be used in calculation of return array sizes.
1871         Populate return array descriptor if ret->data is NULL.
1872         Fix condition for early return (it used to test something
1873         undefined if order was used).
1874         Remove duplicate check wether pad is used.
1875         * intrinsics/reshape_generic.c (reshape_generic): Likewise.
1876         Fix a few places where the wrong variables were set.
1877         * generated/reshape_i4.c: Regenerated.
1878         * generated/reshape_i8.c: Regenerated.
1880 2005-04-18  Paul  Thomas <pault@gcc.gnu.org>
1882         * io/list_read.c (nml_touch_nodes, nml_read_obj,
1883         nml_get_obj_data): Fix memory leaks in code for derived types.
1885 2005-04-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1887         PR libfortran/20950
1888         * io/inquire.c (inquire_via_unit): Check for the gfc_unit being
1889         NULL when setting ioparm.sequential.
1891 2005-04-17  Thomas Koenig  <Thomas.Koenig@online.de>
1893         PR libfortran/21075
1894         * m4/reshape.m4 (reshape_`'rtype_kind):  Change dimension
1895         of auxiliary arrays from GFC_MAX_DIMENSIONS - 1 to
1896         GFC_MAX_DIMENSIONS.
1897         * intrinsics/reshape_generic.c (reshape_generic):  Likewise.
1898         * generated/reshape_i4.c:  Regenerated.
1899         * generated/reshape_i8.c:  Regenerated.
1901 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
1903         * io/list_read.c (eat_separator): at_eol = 1 replaced
1904         (zapped at some time?).
1906 2005-04-17 Paul Thomas <pault@gcc.gnu.org>
1908         PR libgfortran/12884
1909         PR libgfortran/17285
1910         PR libgfortran/18122
1911         PR libgfortran/18210
1912         PR libgfortran/18392
1913         PR libgfortran/18591
1914         PR libgfortran/18879
1915         * io/io.h (nml_ls): Declare.
1916         (namelist_info): Modify for arrays.
1917         * io/list_read.c (namelist_read): Reduced to call to new functions.
1918         (match_namelist_name): Simplified.
1919         (nml_query): Handles stdin queries ? and =?. New function.
1920         (nml_get_obj_data): Parses object name. New function.
1921         (touch_nml_nodes): Marks objects for read. New function.
1922         (untouch_nml_nodes): Resets objects. New function.
1923         (parse_qualifier): Parses and checks qualifiers. New function
1924         (nml_read_object): Reads and stores object data. New function.
1925         (eat_separator): No new_record on '/' in namelist.
1926         (finish_separator): No new_record on '/' in namelist.
1927         (read_logical): Error return for namelist.
1928         (read_integer): Error return for namelist.
1929         (read_complex): Error return for namelist.
1930         (read_real): Error return for namelist.
1931         * io/lock.c (library_end): Free extended namelist_info types.
1932         * io/transfer.c (st_set_nml_var): Modified for arrays.
1933         (st_set_nml_var_dim): Dimension descriptors. New function.
1934         * io/write.c (namelist_write): Reduced to call to new functions.
1935         (nml_write_obj): Writes output for object. New function.
1936         (write_integer): Suppress leading blanks for repeat counts.
1937         (write_int): Suppress leading blanks for repeat counts.
1938         (write_float): Suppress leading blanks for repeat counts.
1939         (output_float): Suppress leading blanks for repeat counts.
1941 2005-04-15  Thomas Koenig  <Thomas.Koenig@online.de>
1943         PR libfortran/18495
1944         * intrinsics/spread_generic.c (spread):  Remove const from
1945         return array descriptor.
1946         New variables: rrank (rank of return array),  rs (for
1947         calculating the size of the return array), srank (rank
1948         of the source array).
1949         Generate runtime error if the dim= argument is larger than
1950         the rank of the return array.
1951         Generate runtime error if the needed rank of the return
1952         array is larger than 7.
1953         If ret->data is null, populate the return array descriptor
1954         and initialize the variables for the actual operation.
1955         Otherwise, set ret->dim[0].stride to one if it is zero.
1956         Change second, independent use of variable dim to srank.
1958 2005-04-12  Mike Stump  <mrs@apple.com>
1960         * configure: Regenerate.
1962 2005-04-13  Thomas Koenig  <Thomas.Koenig@online.de>
1964         PR libfortran/19106
1965         * m4/iforeach.c (name`'rtype_qual`_'atype_code):  Add TODO
1966         that setting correct strides is a front end job.
1967         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
1968         a lowest stride of 0, adjust to 1.
1969         * m4/ifunction.c (name`'rtype_qual`_'atype_code):  Add TODO
1970         that setting correct strides is a front end job.
1971         (`m'name`'rtype_qual`_'atype_code):  Likewise.  If mask has
1972         a lowest stride of 0, adjust to 1.
1973         * maxloc0_4_i4.c: Regenerated
1974         * maxloc0_4_i8.c: Regenerated
1975         * maxloc0_4_r4.c: Regenerated
1976         * maxloc0_4_r8.c: Regenerated
1977         * maxloc0_8_i4.c: Regenerated
1978         * maxloc0_8_i8.c: Regenerated
1979         * maxloc0_8_r4.c: Regenerated
1980         * maxloc0_8_r8.c: Regenerated
1981         * maxloc1_4_i4.c: Regenerated
1982         * maxloc1_4_i8.c: Regenerated
1983         * maxloc1_4_r4.c: Regenerated
1984         * maxloc1_4_r8.c: Regenerated
1985         * maxloc1_8_i4.c: Regenerated
1986         * maxloc1_8_i8.c: Regenerated
1987         * maxloc1_8_r4.c: Regenerated
1988         * maxloc1_8_r8.c: Regenerated
1989         * maxval_i4.c: Regenerated
1990         * maxval_i8.c: Regenerated
1991         * maxval_r4.c: Regenerated
1992         * maxval_r8.c: Regenerated
1993         * minloc0_4_i4.c: Regenerated
1994         * minloc0_4_i8.c: Regenerated
1995         * minloc0_4_r4.c: Regenerated
1996         * minloc0_4_r8.c: Regenerated
1997         * minloc0_8_i4.c: Regenerated
1998         * minloc0_8_i8.c: Regenerated
1999         * minloc0_8_r4.c: Regenerated
2000         * minloc0_8_r8.c: Regenerated
2001         * minloc1_4_i4.c: Regenerated
2002         * minloc1_4_i8.c: Regenerated
2003         * minloc1_4_r4.c: Regenerated
2004         * minloc1_4_r8.c: Regenerated
2005         * minloc1_8_i4.c: Regenerated
2006         * minloc1_8_i8.c: Regenerated
2007         * minloc1_8_r4.c: Regenerated
2008         * minloc1_8_r8.c: Regenerated
2009         * minval_i4.c: Regenerated
2010         * minval_i8.c: Regenerated
2011         * minval_r4.c: Regenerated
2012         * minval_r8.c: Regenerated
2013         * product_c4.c: Regenerated
2014         * product_c8.c: Regenerated
2015         * product_i4.c: Regenerated
2016         * product_i8.c: Regenerated
2017         * product_r4.c: Regenerated
2018         * product_r8.c: Regenerated
2019         * sum_c4.c: Regenerated
2020         * sum_c8.c: Regenerated
2021         * sum_i4.c: Regenerated
2022         * sum_i8.c: Regenerated
2023         * sum_r4.c: Regenerated
2024         * sum_r8.c: Regenerated
2026 2005-04-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2028         PR libfortran/20788
2029         * runtime/environ.c (init_unsigned_integer): Function for
2030         environment variables we want to be positive.
2031         (init_integer): Function to allow negative environment
2032         variables (e.g. for GFORTRAN_STDIN_UNIT).
2034 2005-04-10  Thomas Koenig <Thomas.Koenig@online.de>
2036         PR libfortran/17992
2037         PR libfortran/19568
2038         PR libfortran/19595
2039         PR libfortran/20005
2040         PR libfortran/20092
2041         PR libfortran/20131
2042         PR libfortran/20661
2043         PR libfortran/20744
2044         * io/transfer.c (top level): eor_condition: New static variable.
2045         (read_sf): Remove unnecessary zeroing of buffer (there is enough
2046         information in its length).
2047         Return a string of length 0 (to be padded by caller) if EOR was
2048         seen previously.
2049         Remove erroneous special casing of EOR for standard input.
2050         Set eor_condition for non-advancing I/O if an end of line was
2051         detected.
2052         Increment ioparm.size if necessary.
2053         (formatted_transfer):  Skip the function if there is an EOR condition.
2054         (data_transfer_init):  Initialize eor_condition to zero (false).
2055         (next_record_r):  Clear sf_seen_eor if a \n has been seen already.
2056         (finalize_transfer):  If there is an EOR condition, raise the error.
2058 2005-04-09  Bud Davis  <bdavis@gfortran.org>
2059             Steven G. Kargl <kargls@comcast.net>
2061         PR fortran/19872
2062         * io/transfer.c (data_transfer_init): truncate an existing
2063         file on the first write.
2065 2005-04-09  Thomas Koenig  <Thomas.Koenig@online.de>
2067         PR libfortran/19106
2068         PR libfortran/19014
2069         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): ditto.
2070         If retarray->data is NULL (i.e. the front end does not
2071         know the rank and dimenson of the array), fill in its
2072         properties and allocate memory.
2073         Change the assertions about rank and dimension of retarray into
2074         runtime errors and only check them for retarray->data != NULL.
2075         Do the same for correcting the stride from 0 to 1 in retarray.
2076         (`m'name`'rtype_qual`_'atype_code): Likewise.
2077         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Likewise.
2078         Change assertion about rank of array to runtime error.
2079         (`m'name`'rtype_qual`_'atype_code): Likewise.
2080         * generated/all_l4.c: Regenerated.
2081         * generated/all_l8.c: Regenerated.
2082         * generated/any_l4.c: Regenerated.
2083         * generated/any_l8.c: Regenerated.
2084         * generated/count_4_l4.c: Regenerated.
2085         * generated/count_4_l8.c: Regenerated.
2086         * generated/count_8_l4.c: Regenerated.
2087         * generated/count_8_l8.c: Regenerated.
2088         * generated/maxloc0_4_i4.c: Regenerated.
2089         * generated/maxloc0_4_i8.c: Regenerated.
2090         * generated/maxloc0_4_r4.c: Regenerated.
2091         * generated/maxloc0_4_r8.c: Regenerated.
2092         * generated/maxloc0_8_i4.c: Regenerated.
2093         * generated/maxloc0_8_i8.c: Regenerated.
2094         * generated/maxloc0_8_r4.c: Regenerated.
2095         * generated/maxloc0_8_r8.c: Regenerated.
2096         * generated/maxloc1_4_i4.c: Regenerated.
2097         * generated/maxloc1_4_i8.c: Regenerated.
2098         * generated/maxloc1_4_r4.c: Regenerated.
2099         * generated/maxloc1_4_r8.c: Regenerated.
2100         * generated/maxloc1_8_i4.c: Regenerated.
2101         * generated/maxloc1_8_i8.c: Regenerated.
2102         * generated/maxloc1_8_r4.c: Regenerated.
2103         * generated/maxloc1_8_r8.c: Regenerated.
2104         * generated/maxval_i4.c: Regenerated.
2105         * generated/maxval_i8.c: Regenerated.
2106         * generated/maxval_r4.c: Regenerated.
2107         * generated/maxval_r8.c: Regenerated.
2108         * generated/minloc0_4_i4.c: Regenerated.
2109         * generated/minloc0_4_i8.c: Regenerated.
2110         * generated/minloc0_4_r4.c: Regenerated.
2111         * generated/minloc0_4_r8.c: Regenerated.
2112         * generated/minloc0_8_i4.c: Regenerated.
2113         * generated/minloc0_8_i8.c: Regenerated.
2114         * generated/minloc0_8_r4.c: Regenerated.
2115         * generated/minloc0_8_r8.c: Regenerated.
2116         * generated/minloc1_4_i4.c: Regenerated.
2117         * generated/minloc1_4_i8.c: Regenerated.
2118         * generated/minloc1_4_r4.c: Regenerated.
2119         * generated/minloc1_4_r8.c: Regenerated.
2120         * generated/minloc1_8_i4.c: Regenerated.
2121         * generated/minloc1_8_i8.c: Regenerated.
2122         * generated/minloc1_8_r4.c: Regenerated.
2123         * generated/minloc1_8_r8.c: Regenerated.
2124         * generated/minval_i4.c: Regenerated.
2125         * generated/minval_i8.c: Regenerated.
2126         * generated/minval_r4.c: Regenerated.
2127         * generated/minval_r8.c: Regenerated.
2128         * generated/product_c4.c: Regenerated.
2129         * generated/product_c8.c: Regenerated.
2130         * generated/product_i4.c: Regenerated.
2131         * generated/product_i8.c: Regenerated.
2132         * generated/product_r4.c: Regenerated.
2133         * generated/product_r8.c: Regenerated.
2134         * generated/sum_c4.c: Regenerated.
2135         * generated/sum_c8.c: Regenerated.
2136         * generated/sum_i4.c: Regenerated.
2137         * generated/sum_i8.c: Regenerated.
2138         * generated/sum_r4.c: Regenerated.
2139         * generated/sum_r8.c: Regenerated.
2141 2005-04-09  Thomas Koenig <Thomas.Koenig@online.de>
2143         PR libfortran/20163
2144         * runtime/string.c (compare0): Use fstrlen() to
2145         strip trailing blanks from option string.
2147 2005-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
2149         PR fortran/13257
2150         * format.c (parse_format_list): Allow an optional comma
2151         between descriptors.
2153 2005-04-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2155         * io/backspace.c (unformatted_backspace): Do not dereference
2156         the pointer to the stream.
2158 2005-04-07  Andrew Pinski  <pinskia@physics.uc.edu>
2160         PR libfortran/20766
2161         * configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
2162         "-Wl,-single_module".
2163         * configure: Regenerate.
2164         * Makefile.am (libgfortran_la_LDFLAGS): Add extra_ldflags_libgfortran.
2165         * Makefile.in: Regenerate.
2167 2005-04-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2169         PR libfortran/20755
2170         * write.c (write_float): A G edit descriptor may locally change
2171         the scale factor, but it needs to be restored afterwards.
2173 2005-04-03  Dale Ranta  <dir@lanl.gov>
2174             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2176         PR libfortran/20068
2177         PR libfortran/20125
2178         PR libfortran/20156
2179         PR libfortran/20471
2180         * io/backspace.c (unformatted_backspace): Fix error in arithmetic.
2181         (st_backspace): When in WRITING mode, we flush and falling back
2182         into READING mode. In all cases, correctly position the stream.
2184 2005-03-31  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2186         PR libfortran/20660
2187         * io/inquire.c (inquire_via_unit): Non-opened units should still be
2188         reported by an INQUIRE statement as existing.
2189         * io/transfer.c (data_transfer_init): Never accept negative units.
2191 2005-03-29  Dale Ranta  <dir@lanl.gov>
2192             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2194         PR libfortran/20163
2195         * io/open.c (st_open): call library_end() before returning even if
2196         an error arises.
2198 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2200         PR libfortran/19678
2201         * list_read.c (next_char, eat_separator, finish_separator, read_real)
2202         (namelist_read): Add support for '\r' as well as '\n' as EOL
2203         character.
2205         PR libfortran/19679
2206         * list_read.c (read_sf): Add a '\r' in a test to support DOS
2207         line-endings when line length is exceeded.
2209 2005-03-25  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2211         PR libfortran/15332
2212         * io/format.c (parse_format_list): format node for colon edit
2213         descriptor needs a repeat counter set to 1.
2215 2005-02-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2217         * config.h.in: Regenerate.
2219 2005-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2221         PR libfortran/18025
2222         * write.c (output_float): Handling the "F0.d" format similarly as
2223         commercial compilers.
2225 2005-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2227         * Makefile.am: Added new files.
2228         * Makefile.in: Regenerate.
2229         * aclocal.m4: Regenerate.
2230         * configure.ac: add checks for signal.h headers file, as well as
2231         following functions: chdir, strerror, getlogin, gethostname, kill,
2232         link, symlink, perror, sleep, time.
2233         * configure: Regenerate.
2234         * intrinsics/chdir.c, intrinsics/gerror.c, intrinsics/getlog.c,
2235         intrinsics/hostnm.c, intrinsics/ierrno.c, intrinsics/kill.c,
2236         intrinsics/link.c, intrinsics/perror.c, intrinsics/rename.c,
2237         intrinsics/sleep.c, intrinsics/symlnk.c, intrinsics/time.c: Newly
2238         implementend g77 intrinsics.
2240 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
2242         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2243         In all substitutions, leave gcc_version to be expanded by the Makefile.
2244         * aclocal.m4, configure: Regenerate.
2245         * Makefile.am: Set gcc_version.
2246         * Makefile.in: Regenerate.
2248 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2250         PR libfortran/20257
2251         * open.c (new_unit): set record length to max_offset rather than
2252           using a hard-coded limit (which was too low).
2254 2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2256         PR libfortran/20480
2257         * write.c (output_float): special check when writing 0.0 with
2258           EN and ES formats.
2260 2005-03-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2262         PR libfortran/20124
2263         * write.c (output_float): Adds a nzero_real variable to store
2264         the number of leading zeros whatever the format width is. Corrects
2265         the rounding of numbers less than 10^(-width). Fixes typo in an
2266         error message. Updates copyright years
2268 2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>
2270         * runtime/environ.c: Update copyright years.
2272 2005-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2274         * io/write.c: Update copyright years.
2276 2005-02-27  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2278         PR libfortran/20101
2279         * io/write.c (output_float): Added special check for value 0.0 in
2280         PE format.
2282 2004-02-27  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2284         * io/write.c (output_float): Fix typo in condition.
2286 2005-02-25  Peter O'Gorman  <peter@pogma.com>
2287             Toon Moene  <toon@moene.indiv.nluug.nl>
2289         PR libgfortran/17748
2290         * runtime/environ.c: Remove references to environ.
2291         (show_variables): remove GFORTRAN_UNBUFFERED_* and
2292         GFORTRAN_NAME_* because they require environ.
2293         (pattern_scan): Remove function.
2295 2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
2296             Bud Davis  <bdavis@gfortran.org>
2298         * io/list_read.c (read_real): Handle separators properly
2299         in list directed read.
2301 2004-02-21  Bud Davis  <bdavis@gfortran.org>
2303         PR fortran/20086
2304         * io/transfer.c (write_constant_string): accept an 'h' as
2305         the start of a hollerith format string.
2307 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2309         PR libfortran/19302
2310         * intrinsics/c99_functions.c (nextafterf): Special-case infinite
2311         numbers.
2313 2005-02-21  Steven G. Kargl  <kargls@comcast.net>
2315         * io/write.c (output_float):  Typo in error meesage.
2317 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
2319         PR 20085
2320         * intrinsic/args.c (iargc): Off by 1.
2322 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
2324         *  intrinsic/date_and_time.c: Fix conformance problems.
2326 2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
2328         PR libgfortran/19363
2329         PR libgfortran/19691
2330         * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
2332 2005-01-30  Bud Davis  <bdavis@gfortran.org>
2334         PR fortran/19647
2335         * io/inquire.c (inquire_via_unit): Use correct variable for
2336         pad.
2338 2005-01-29  Thomas Koenig  <Thomas.Koenig@online.de>
2340         PR libfortran/19595
2341         * io/transfer.c (data_transfer_init): eor requires advance="NO".
2343 2005-01-25  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2345         PR libfortran/19524
2346         * io/read.c (read_f): Don't free uninitialized pointer.
2348 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
2349         Paul Brook  <paul@codesourcery.com>
2351         PR fortran/19294
2352         * Makefile.am: Add transpose_c4.c and transpose_c8.c.
2353         * intrinsics/cshift0.c: Use separate optimized loops for complex types.
2354         * m4/transpose.m4: Include type letter in function name.
2355         * Makefile.in: Regenerate.
2356         * generated/transpose_*.c: Regenerate.
2358 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
2360         PR libfortran/19451
2361         * io/transfer.c (finalize_transfer):  Don't do anything if
2362         there is an error condition.
2364 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
2366         PR libgfortran/19052
2367         * libgfortran.h (options_t): Add stderr_unit.
2368         * io/io.h (error_stream): Declare.
2369         * io/open.c (new_unit): Do not terminate abnormally if opening
2370         file preconnected to stdin, stdout, or stderr.
2371         * io/unit.c (init_units): Initialize stderr_unit.
2372         * io/unix.c (error_stream): New function.
2373         * runtime/environ.c (GFORTRAN_STDERR_UNIT): New environment variable.
2375 2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>
2377         PR libfortran/18982
2378         * io/unix.c (regular_file):  No need to change flags->action
2379         if an error occurs.  Document this.
2380         No need to call stat() for STATUS_OLD, open() will
2381         fail anyway.
2382         For ACTION_UNSPECIFIED, try open for read-write, then for
2383         read-only if open fails with EACCES, then for write-only
2384         if that fails with EACCES again.
2385         * io/unix.c (open_external): Document changed behavior of
2386         regular_file.
2388 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2390         PR fortran/19194
2391         * io/io.h (st_parameter): Use 'GFC_INTEGER_4' instead of 'int',
2392         use CHARACTER macro for definition of string valued paramters.
2394 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
2396         PR fortran/19314
2397         * io/inquire.c(inquire_via_unit): implement POSITION=.
2398         * io/transfer.c(next_record): update position for
2399         INQUIRE.
2400         * io/rewind.c(st_rewind): update position for
2401         INQUIRE.
2403 2005-01-16  Bud Davis  <bdavis9659@comcast.net>
2405         PR fortran/18778
2406         * io/transfer.c (us_read): no bytes available is not a
2407         runtime error.
2409 2005-01-15  Bud Davis  <bdavis9659@comcast.net>
2411         PR fortran/18983
2412         * io/transfer.c (st_write_done): only truncate when it
2413         is required.
2415 2005-01-12  Toon Moene  <toon@moene.indiv.nluug.nl>
2417         PR libfortran/19280
2418         c99_protos.h: License changed to GPL+exception.
2419         libgfortran.h: Ditto.
2420         intrinsics/abort.c: Ditto.
2421         intrinsics/args.c: Ditto.
2422         intrinsics/associated.c: Ditto.
2423         intrinsics/bessel.c: Ditto.
2424         intrinsics/c99_functions.c: Ditto.
2425         intrinsics/cpu_time.c: Ditto.
2426         intrinsics/cshift0.c: Ditto.
2427         intrinsics/date_and_time.c: Ditto.
2428         intrinsics/env.c: Ditto.
2429         intrinsics/eoshift0.c: Ditto.
2430         intrinsics/eoshift2.c: Ditto.
2431         intrinsics/erf.c: Ditto.
2432         intrinsics/etime.c: Ditto.
2433         intrinsics/exit.c: Ditto.
2434         intrinsics/flush.c: Ditto.
2435         intrinsics/fnum.c: Ditto.
2436         intrinsics/getXid.c: Ditto.
2437         intrinsics/getcwd.c: Ditto.
2438         intrinsics/ishftc.c: Ditto.
2439         intrinsics/mvbits.c: Ditto.
2440         intrinsics/pack_generic.c: Ditto.
2441         intrinsics/rand.c: Ditto.
2442         intrinsics/random.c: Ditto.
2443         intrinsics/reshape_generic.c: Ditto.
2444         intrinsics/reshape_packed.c: Ditto.
2445         intrinsics/size.c: Ditto.
2446         intrinsics/spread_generic.c: Ditto.
2447         intrinsics/stat.c: Ditto.
2448         intrinsics/string_intrinsics.c: Ditto.
2449         intrinsics/system.c: Ditto.
2450         intrinsics/system_clock.c: Ditto.
2451         intrinsics/transpose_generic.c: Ditto.
2452         intrinsics/umask.c: Ditto.
2453         intrinsics/unlink.c: Ditto.
2454         intrinsics/unpack_generic.c: Ditto.
2455         io/backspace.c: Ditto.
2456         io/close.c: Ditto.
2457         io/endfile.c: Ditto.
2458         io/format.c: Ditto.
2459         io/inquire.c: Ditto.
2460         io/io.h: Ditto.
2461         io/list_read.c: Ditto.
2462         io/lock.c: Ditto.
2463         io/open.c: Ditto.
2464         io/read.c: Ditto.
2465         io/rewind.c: Ditto.
2466         io/transfer.c: Ditto.
2467         io/unit.c: Ditto.
2468         io/unix.c: Ditto.
2469         io/write.c: Ditto.
2470         m4/all.m4: Ditto.
2471         m4/any.m4: Ditto.
2472         m4/cexp.m4: Ditto.
2473         m4/chyp.m4: Ditto.
2474         m4/count.m4: Ditto.
2475         m4/cshift1.m4: Ditto.
2476         m4/ctrig.m4: Ditto.
2477         m4/dotprod.m4: Ditto.
2478         m4/dotprodc.m4: Ditto.
2479         m4/dotprodl.m4: Ditto.
2480         m4/eoshift1.m4: Ditto.
2481         m4/eoshift3.m4: Ditto.
2482         m4/exponent.m4: Ditto.
2483         m4/fraction.m4: Ditto.
2484         m4/head.m4: Ditto.
2485         m4/iforeach.m4: Ditto.
2486         m4/ifunction.m4: Ditto.
2487         m4/in_pack.m4: Ditto.
2488         m4/in_unpack.m4: Ditto.
2489         m4/iparm.m4: Ditto.
2490         m4/matmul.m4: Ditto.
2491         m4/matmull.m4: Ditto.
2492         m4/maxloc0.m4: Ditto.
2493         m4/maxloc1.m4: Ditto.
2494         m4/maxval.m4: Ditto.
2495         m4/minloc0.m4: Ditto.
2496         m4/minloc1.m4: Ditto.
2497         m4/minval.m4: Ditto.
2498         m4/mtype.m4: Ditto.
2499         m4/nearest.m4: Ditto.
2500         m4/pow.m4: Ditto.
2501         m4/product.m4: Ditto.
2502         m4/reshape.m4: Ditto.
2503         m4/set_exponent.m4: Ditto.
2504         m4/shape.m4: Ditto.
2505         m4/specific.m4: Ditto.
2506         m4/specific2.m4: Ditto.
2507         m4/sum.m4: Ditto.
2508         m4/transpose.m4: Ditto.
2509         m4/types.m4: Ditto.
2510         runtime/environ.c: Ditto.
2511         runtime/error.c: Ditto.
2512         runtime/in_pack_generic.c: Ditto.
2513         runtime/in_unpack_generic.c: Ditto.
2514         runtime/main.c: Ditto.
2515         runtime/memory.c: Ditto.
2516         runtime/normalize.c: Ditto.
2517         runtime/pause.c: Ditto.
2518         runtime/select.c: Ditto.
2519         runtime/stop.c: Ditto.
2520         runtime/string.c: Ditto.
2521         generated/_abs_c4.f90: Regenerated.
2522         generated/_abs_c8.f90: Regenerated.
2523         generated/_abs_i4.f90: Regenerated.
2524         generated/_abs_i8.f90: Regenerated.
2525         generated/_abs_r4.f90: Regenerated.
2526         generated/_abs_r8.f90: Regenerated.
2527         generated/_acos_r4.f90: Regenerated.
2528         generated/_acos_r8.f90: Regenerated.
2529         generated/_aint_r4.f90: Regenerated.
2530         generated/_aint_r8.f90: Regenerated.
2531         generated/_anint_r4.f90: Regenerated.
2532         generated/_anint_r8.f90: Regenerated.
2533         generated/_asin_r4.f90: Regenerated.
2534         generated/_asin_r8.f90: Regenerated.
2535         generated/_atan2_r4.f90: Regenerated.
2536         generated/_atan2_r8.f90: Regenerated.
2537         generated/_atan_r4.f90: Regenerated.
2538         generated/_atan_r8.f90: Regenerated.
2539         generated/_conjg_c4.f90: Regenerated.
2540         generated/_conjg_c8.f90: Regenerated.
2541         generated/_cos_c4.f90: Regenerated.
2542         generated/_cos_c8.f90: Regenerated.
2543         generated/_cos_r4.f90: Regenerated.
2544         generated/_cos_r8.f90: Regenerated.
2545         generated/_cosh_r4.f90: Regenerated.
2546         generated/_cosh_r8.f90: Regenerated.
2547         generated/_dim_i4.f90: Regenerated.
2548         generated/_dim_i8.f90: Regenerated.
2549         generated/_dim_r4.f90: Regenerated.
2550         generated/_dim_r8.f90: Regenerated.
2551         generated/_exp_c4.f90: Regenerated.
2552         generated/_exp_c8.f90: Regenerated.
2553         generated/_exp_r4.f90: Regenerated.
2554         generated/_exp_r8.f90: Regenerated.
2555         generated/_log10_r4.f90: Regenerated.
2556         generated/_log10_r8.f90: Regenerated.
2557         generated/_log_c4.f90: Regenerated.
2558         generated/_log_c8.f90: Regenerated.
2559         generated/_log_r4.f90: Regenerated.
2560         generated/_log_r8.f90: Regenerated.
2561         generated/_mod_i4.f90: Regenerated.
2562         generated/_mod_i8.f90: Regenerated.
2563         generated/_mod_r4.f90: Regenerated.
2564         generated/_mod_r8.f90: Regenerated.
2565         generated/_sign_i4.f90: Regenerated.
2566         generated/_sign_i8.f90: Regenerated.
2567         generated/_sign_r4.f90: Regenerated.
2568         generated/_sign_r8.f90: Regenerated.
2569         generated/_sin_c4.f90: Regenerated.
2570         generated/_sin_c8.f90: Regenerated.
2571         generated/_sin_r4.f90: Regenerated.
2572         generated/_sin_r8.f90: Regenerated.
2573         generated/_sinh_r4.f90: Regenerated.
2574         generated/_sinh_r8.f90: Regenerated.
2575         generated/_sqrt_c4.f90: Regenerated.
2576         generated/_sqrt_c8.f90: Regenerated.
2577         generated/_sqrt_r4.f90: Regenerated.
2578         generated/_sqrt_r8.f90: Regenerated.
2579         generated/_tan_r4.f90: Regenerated.
2580         generated/_tan_r8.f90: Regenerated.
2581         generated/_tanh_r4.f90: Regenerated.
2582         generated/_tanh_r8.f90: Regenerated.
2583         generated/all_l4.c: Regenerated.
2584         generated/all_l8.c: Regenerated.
2585         generated/any_l4.c: Regenerated.
2586         generated/any_l8.c: Regenerated.
2587         generated/count_4_l4.c: Regenerated.
2588         generated/count_4_l8.c: Regenerated.
2589         generated/count_8_l4.c: Regenerated.
2590         generated/count_8_l8.c: Regenerated.
2591         generated/cshift1_4.c: Regenerated.
2592         generated/cshift1_8.c: Regenerated.
2593         generated/dotprod_c4.c: Regenerated.
2594         generated/dotprod_c8.c: Regenerated.
2595         generated/dotprod_i4.c: Regenerated.
2596         generated/dotprod_i8.c: Regenerated.
2597         generated/dotprod_l4.c: Regenerated.
2598         generated/dotprod_l8.c: Regenerated.
2599         generated/dotprod_r4.c: Regenerated.
2600         generated/dotprod_r8.c: Regenerated.
2601         generated/eoshift1_4.c: Regenerated.
2602         generated/eoshift1_8.c: Regenerated.
2603         generated/eoshift3_4.c: Regenerated.
2604         generated/eoshift3_8.c: Regenerated.
2605         generated/exp_c4.c: Regenerated.
2606         generated/exp_c8.c: Regenerated.
2607         generated/exponent_r4.c: Regenerated.
2608         generated/exponent_r8.c: Regenerated.
2609         generated/fraction_r4.c: Regenerated.
2610         generated/fraction_r8.c: Regenerated.
2611         generated/hyp_c4.c: Regenerated.
2612         generated/hyp_c8.c: Regenerated.
2613         generated/in_pack_i4.c: Regenerated.
2614         generated/in_pack_i8.c: Regenerated.
2615         generated/in_unpack_i4.c: Regenerated.
2616         generated/in_unpack_i8.c: Regenerated.
2617         generated/matmul_c4.c: Regenerated.
2618         generated/matmul_c8.c: Regenerated.
2619         generated/matmul_i4.c: Regenerated.
2620         generated/matmul_i8.c: Regenerated.
2621         generated/matmul_l4.c: Regenerated.
2622         generated/matmul_l8.c: Regenerated.
2623         generated/matmul_r4.c: Regenerated.
2624         generated/matmul_r8.c: Regenerated.
2625         generated/maxloc0_4_i4.c: Regenerated.
2626         generated/maxloc0_4_i8.c: Regenerated.
2627         generated/maxloc0_4_r4.c: Regenerated.
2628         generated/maxloc0_4_r8.c: Regenerated.
2629         generated/maxloc0_8_i4.c: Regenerated.
2630         generated/maxloc0_8_i8.c: Regenerated.
2631         generated/maxloc0_8_r4.c: Regenerated.
2632         generated/maxloc0_8_r8.c: Regenerated.
2633         generated/maxloc1_4_i4.c: Regenerated.
2634         generated/maxloc1_4_i8.c: Regenerated.
2635         generated/maxloc1_4_r4.c: Regenerated.
2636         generated/maxloc1_4_r8.c: Regenerated.
2637         generated/maxloc1_8_i4.c: Regenerated.
2638         generated/maxloc1_8_i8.c: Regenerated.
2639         generated/maxloc1_8_r4.c: Regenerated.
2640         generated/maxloc1_8_r8.c: Regenerated.
2641         generated/maxval_i4.c: Regenerated.
2642         generated/maxval_i8.c: Regenerated.
2643         generated/maxval_r4.c: Regenerated.
2644         generated/maxval_r8.c: Regenerated.
2645         generated/minloc0_4_i4.c: Regenerated.
2646         generated/minloc0_4_i8.c: Regenerated.
2647         generated/minloc0_4_r4.c: Regenerated.
2648         generated/minloc0_4_r8.c: Regenerated.
2649         generated/minloc0_8_i4.c: Regenerated.
2650         generated/minloc0_8_i8.c: Regenerated.
2651         generated/minloc0_8_r4.c: Regenerated.
2652         generated/minloc0_8_r8.c: Regenerated.
2653         generated/minloc1_4_i4.c: Regenerated.
2654         generated/minloc1_4_i8.c: Regenerated.
2655         generated/minloc1_4_r4.c: Regenerated.
2656         generated/minloc1_4_r8.c: Regenerated.
2657         generated/minloc1_8_i4.c: Regenerated.
2658         generated/minloc1_8_i8.c: Regenerated.
2659         generated/minloc1_8_r4.c: Regenerated.
2660         generated/minloc1_8_r8.c: Regenerated.
2661         generated/minval_i4.c: Regenerated.
2662         generated/minval_i8.c: Regenerated.
2663         generated/minval_r4.c: Regenerated.
2664         generated/minval_r8.c: Regenerated.
2665         generated/nearest_r4.c: Regenerated.
2666         generated/nearest_r8.c: Regenerated.
2667         generated/pow_c4_i4.c: Regenerated.
2668         generated/pow_c4_i8.c: Regenerated.
2669         generated/pow_c8_i4.c: Regenerated.
2670         generated/pow_c8_i8.c: Regenerated.
2671         generated/pow_i4_i4.c: Regenerated.
2672         generated/pow_i4_i8.c: Regenerated.
2673         generated/pow_i8_i4.c: Regenerated.
2674         generated/pow_i8_i8.c: Regenerated.
2675         generated/pow_r4_i4.c: Regenerated.
2676         generated/pow_r4_i8.c: Regenerated.
2677         generated/pow_r8_i4.c: Regenerated.
2678         generated/pow_r8_i8.c: Regenerated.
2679         generated/product_c4.c: Regenerated.
2680         generated/product_c8.c: Regenerated.
2681         generated/product_i4.c: Regenerated.
2682         generated/product_i8.c: Regenerated.
2683         generated/product_r4.c: Regenerated.
2684         generated/product_r8.c: Regenerated.
2685         generated/reshape_i4.c: Regenerated.
2686         generated/reshape_i8.c: Regenerated.
2687         generated/set_exponent_r4.c: Regenerated.
2688         generated/set_exponent_r8.c: Regenerated.
2689         generated/shape_i4.c: Regenerated.
2690         generated/shape_i8.c: Regenerated.
2691         generated/sum_c4.c: Regenerated.
2692         generated/sum_c8.c: Regenerated.
2693         generated/sum_i4.c: Regenerated.
2694         generated/sum_i8.c: Regenerated.
2695         generated/sum_r4.c: Regenerated.
2696         generated/sum_r8.c: Regenerated.
2697         generated/transpose_i4.c: Regenerated.
2698         generated/transpose_i8.c: Regenerated.
2699         generated/trig_c4.c: Regenerated.
2700         generated/trig_c8.c: Regenerated.
2702 2005-01-07  Bud Davis  <bdavis9659@comcast.net>
2704         PR fortran/18398
2705         * transfer.c (next_record_r): always skip the
2706         eol search if it was found during sf_read.
2708 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2710         * libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
2711         Define.
2712         * intrinsics/ishftc.c: Update copyright years.
2713         (ishftc8): Change 'shift' and 'size' to GFC_INTEGER_4.
2714         * intrinsics/mvbits.c: Correct non-ASCII character in my name.
2715         Add implementations for GFC_INTEGER_1 and GFC_INTEGER_2.
2717 2004-12-23  Bud Davis  <bdavis9659@comcast.net>
2719         PR fortran/19071
2720         * io/tranfer.c (formatted_transfer): moved check for
2721         format reversion inside the processing loop.
2723 2004-12-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2725         PR libfortran/19074
2726         * libgfortran.h (itoa): Rename to gfc_itoa.
2727         * io/write.c (itoa): Same.
2728         * runtime/environ.c (itoa): Same.
2729         * runtime/error.c (itoa): Same.
2731 2004-12-15  Bud Davis  <bdavis9659@comcast.net>
2732             Steven G. Kargl  <kargls@comcast.net>
2734         PR fortran/17597
2735         * io/list_read.c (read_real): do not push back a comma when
2736         it delimits a real value without a decimal point
2738 2004-12-14  Steve Ellcey  <sje@cup.hp.com>
2740         * libgfortran/io/transfer.c (us_read): Use memcpy/memset
2741         instead of assignment to fill unaligned buffer.
2742         (us_write): Ditto.
2743         (next_record_w): Ditto.
2745 2004-12-14  Steven G. Kargl  <kargls@comcast.net>
2747         PR libfortran/18966
2748         * gfortran.h: typedef GFC_INTEGER_1 and GFC_INTEGER_2
2749         * intrinsics/cshift0.c (cshift0_1,cshift0_2): New functions.
2750         * intrinsics/eoshift0.c (eoshift0_1,eoshift0_2): New functions.
2751         * intrinsics/eoshift2.c (eoshift2_1,eoshift2_2): New functions.
2753 2004-12-13  David Edelsohn  <edelsohn@gnu.org>
2755         * io/transfer.c (read_sf): Change bitwise "and" to logical "and".
2757 2004-12-12  Richard Henderson  <rth@redhat.com>
2759         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
2760         intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
2761         intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
2762         intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
2763         m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
2764         m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
2765         m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
2766         instead of "__".
2767         * generated/*: Rebuild.
2769 2004-12-12  Richard Henderson  <rth@redhat.com>
2771         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
2772         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
2773         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
2774         * configure.ac: Use them.
2775         * configure, config.h.in, aclocal.m4: Rebuild.
2776         * libgfortran.h (prefix): Remove.
2777         (PREFIX, IPREFIX): New.
2778         (sym_rename, sym_rename1, sym_rename2): New.
2779         (internal_proto, export_proto, export_proto_np): New.
2780         (iexport_proto, iexport): New.
2781         (iexport_data_proto, iexport_data): New.
2782         * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
2783         intrinsics/cpu_time.c, intrinsics/cshift0.c,
2784         intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
2785         intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
2786         intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
2787         intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
2788         intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
2789         intrinsics/reshape_generic.c, intrinsics/size.c,
2790         intrinsics/spread_generic.c, intrinsics/stat.c,
2791         intrinsics/string_intrinsics.c, intrinsics/system.c,
2792         intrinsics/system_clock.c, intrinsics/transpose_generic.c,
2793         intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
2794         io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
2795         io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
2796         m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
2797         m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
2798         m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
2799         m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
2800         m4/transpose.m4, runtime/environ.c, runtime/error.c,
2801         runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
2802         runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
2803         runtime/stop.c: Use them to mark symbols internal or external.
2804         * generated/*: Rebuild.
2806 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
2808         PR bootstrap/18895
2809         Revert 2004-12-07 change.
2810         * Makefile.am (AM_MAKEFLAGS): Delete.
2811         * Makefile.in: Regenerate.
2813 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
2815         * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
2816         * libgfortran/Makefile.in: Regenerate
2818 2004-12-07  Steve Ellcey  <sje@cup.hp.com>
2820         * io/io.h (open_external): Change prototype.
2821         * io/unix.c (regular_file): Change prototype and set flags->action if
2822         needed.
2823         (open_external): Ditto.
2824         * io/open.c (new_unit): Let open_external set flags->action.
2826 2004-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2828         * configure.ac: Check for ieeefp.h.  Check for fabsf in libm.
2829         * configure: Regenerate.
2830         * config.h.in: Likewise.
2831         * c99_protos.h: New file.
2832         * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
2833         * intrinsics/c99_functions.c (fabsf): New function.
2835 2004-12-06  Richard Henderson  <rth@redhat.com>
2837         * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
2838         intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
2839         intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
2840         m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
2841         of internal_malloc.
2842         * generated/*: Rebuild.
2844 2004-12-06  Richard Henderson  <rth@redhat.com>
2846         * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
2847         intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
2848         intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
2849         intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
2850         intrinsics/spread_generic.c, intrinsics/stat.c,
2851         intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
2852         intrinsics/transpose_generic.c, intrinsics/unlink.c,
2853         intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
2854         io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
2855         io/write.c, runtime/environ.c, runtime/error.c,
2856         runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
2857         runtime/memory.c, runtime/pause.c, runtime/stop.c,
2858         runtime/string.c: Whitespace fixes.
2860 2004-12-06  Richard Henderson  <rth@redhat.com>
2862         * Makefile.am: Generate all m4 output under $(srcdir).
2863         * Makefile.in: Regenerate.
2865 2004-12-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2867         PR fortran/18710
2868         * io/transfer.c (unformatted_read, unformatted_write): width of
2869         a COMPLEX is twice its kind.
2871 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
2873         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
2874         * configure, aclocal.m4, Makefile.in: Regenerate.
2876 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
2878         PR libfortran/18284
2879         * io/unix.c (fd_alloc_w_at): Update file_length when extending.
2880         * io/backspace.c (formatted_backspace): Reset endfile after backspace.
2882 2004-12-02  Bud Davis  <bdavis9659@comcast.net>
2884         * io/inquire.c (inquire_via_unit): do not allow a direct access
2885         file to be opened for sequential I/O.
2887 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
2888         Paul Brook  <paul@codesourcery.com>
2890         * intrinsics/flush.c: New file.
2891         * intrinsics/fnum.c: ditto
2892         * intrinsics/stat.c: ditto
2893         * io/io.h (unit_to_fd): Add prototype.
2894         * io/unix.c (unit_to_fd): New function.
2895         * configure.ac: Add test for members of struct stat.  Check for
2896         sys/types.h and sys/stat.h
2897         * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
2898         * configure.in: Regenerate.
2899         * config.h.in: Regenerate.
2900         * Makefile.in: Regenerate.
2902 2004-12-01  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2904         * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
2906 2004-11-28  Bud Davis  <bdavis9659@comcast.net>
2908         * io/unix.c (mmap_alloc_w_a): check for a write to a location
2909         less than the mapped area.
2911 2004-11-27  Bud Davis  <bdavis9659@comcast.net>
2913         PR fortran/18364
2914         *  io/endfile.c (st_endfile): flush the stream before truncating.
2916 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
2918         * configure: Regenerate for libtool change.
2920 2004-11-22  Steven Bosscher  <stevenb@suse.de>
2922         PR libfortran/15960
2923         * configure.ac: Check for finite in libm.
2924         * libgfortran.h: Define isfinite macro if not defined.
2925         * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
2926         HAVE_FPCLASSIFY.
2927         * io/write.c (write_float): Use isfinite instead of finite.
2928         * configure, config.h.in: Rebuilt.
2930 2004-11-20  Roger Sayle  <roger@eyesopen.com>
2932         * io/write.c (write_float, list_formatted_write): Fix indentation.
2934 2004-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
2936         PR target/16135
2937         * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
2938         * configure.ac: Include LIBGFOR_TARGET_ILP32.
2939         * configure: Regenerate.
2940         * config.h.in: Likewise.
2941         * libgfortran.h: Provide default definitions for C99 types
2942         on ILP32 targets that don't have them.
2944         PR target/17999
2945         * configure.ac: Check for snprintf.
2946         * configure: Regenerate.
2947         * config.h.in: Likewise.
2948         * intrinsics/date_and_time.c (date_and_time): Do not
2949         use snprinf if it is not available.
2950         * io/write.c (output_float): Likewise.
2952 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
2954         * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
2955         * Makefile.in: Regenerated
2956         * intrinsics/umask.c: New file
2957         * intrinsics/unlink.c: ditto
2958         * intrinsics/exit.c: ditto
2960 2004-11-18  Victor Leikehman  <lei@il.ibm.com>
2962         * m4/matmul.m4: Loops reordered to improve cache behavior.
2963         * generated/matmul_??.c: Regenerated.
2965 2004-11-10  Paul Brook  <paul@codesourcery.com>
2967         PR fortran/18218
2968         * configure.ac: Check for strtof.
2969         * configure: Regenerate.
2970         * config.h.in: Regenerate.
2971         * io/read.c (convert_real): Use strtof if available.
2972         (convert_precision_real): Remove.
2973         (read_f): Avoid poor exponentiation algorithm.
2975 2004-11-05  Andreas Schwab  <schwab@suse.de>
2977         * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
2978         AC_PROG_F77, F77 and FFLAGS.
2979         * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
2980         FCCOMPILE instead of F77COMPILE.
2981         * configure, Makefile.in: Regenerate.
2983 2004-11-05  Kelley Cook  <kcook@gcc.gnu.org>
2985         * acinclude.m4: Properly quote AC_CACHE_CHECK.
2986         * Makefile.am: Add in ACLOCAL_AMFLAGS.
2987         * aclocal.m4, configure, Makefile.in: Regenerate.
2989 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2991         * config.h.in: Regenerate.
2992         * configure: Regenerate.
2993         * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
2994         * io/unix.c (S_IRGRP): Define if undefined.
2995         (S_IWGRP): Same.
2996         (S_IROTH): Same.
2997         (S_IWOTH): Same.
2998         (tempfile): Use mktemp if mkstemp missing, fix typos.
3000 2004-10-30  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3002         *  intrinsics/system.c ("libgfortran.h"): Move after system headers.
3004 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
3006         * intrinsics/rand.c (irand): Handle NULL argument.
3008 2004-10-07  Paul Brook  <paul@codesourcery.com>
3010         * io/transfer.c (finalize_transfer): Free internal streams.
3011         * io/unix.c (mem_close): Free stream object.
3013 2004-10-07  Paul Brook  <paul@codesourcery.com>
3015         * intrinsics/string_intrinsics.c (string_verify): Fix off by one
3016         error.
3018 2004-10-06  Paul Brook  <paul@codesourcery.com>
3020         PR libfortran/17709
3021         * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
3023 2004-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
3025         * intrinsics/mvbits.c: Commit the file.
3027 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3029         PR fortran/17283
3030         * intrinsics/pack_generic.c (__pack): Allocate memory for return array
3031         if not done by caller.
3032         (__pack_s): New function.
3033         * runtime/memory.c (internal_malloc, internal_malloc64): Allow
3034         allocating zero memory.
3036         PR fortran/17631
3037         * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
3038         * Makefile.in: Regenerate.
3039         * intrinsics/mvbits.h: New file.
3041         PR fortran/17776
3042         * intrinsics/system.c: New file.
3043         * Makefile.am: Add dependency for the new file.
3044         * Makefile.in: Regenerate.
3046 2004-10-04  Paul Brook  <paul@codesourcery.com>
3047         Bud Davis  <bdavis9659@comcast.net>
3049         PR fortran/17706
3050         PR fortran/16434
3051         * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
3052         BN and BZ formats.
3053         * io/write.c (output_float): Don't output minus zero.
3055 2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3057         * intrinsics/abort.c ("libgfortran.h"): Move.
3058         * intrinsics/date_and_time.c ("libgfortran.h"): Same.
3059         * intrinsics/write.c ("libgfortran.h"): Same.
3061 2004-09-26  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
3063         PR libfortran/16137
3064         * config.h.in (HAVE_POWF): Undefine.
3065         * configure.ac: Check for 'powf' in library.
3066         * configure: Regenerate.
3067         * intrinsics/c99_functions.c (powf): New function.
3069 2004-09-24  Tobias Schlueter  <tobis.schlueter@physik.uni-muenchen.de>
3071         * intrinsics/etime.c (etime_): New function.
3073 2004-09-21  Steven G. Kargl  <kargls@comcast.net>
3075         * libgfortran.h: define gfc_alloca()
3076         * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
3078 2004-09-21  Bud Davis  <bdavis9659@comcast.net>
3080         PR fortran/17286
3081         * io/list_read.c (namelist_read): ignore spaces after
3082         the '=' for namelist reads.
3084 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3086         * config.h.in: Regenerate.
3087         * configure: Regenerate.
3088         * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
3089         * unix.c: Include stdio.h.
3090         (HAVE_SYS_MMAN_H): Check.
3091         (PROT_READ, PROT_WRITE): Provide default definitions.
3093 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
3095         * intrincics/getcwd.c: New file.
3096         * Makefile.am: Add getcwd.c.
3097         * Makefile.in: Regenerated.
3099 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
3100         Paul Brook  <paul@codesourcery.com>
3102         * intrinsics/env.c (getenv, get_environmental_variable): Remove
3103         trailing white space.  Use alloca.  Honour trim_name.
3105 2004-09-13  Bud Davis  <bdavis9659@comcast.net>
3107         PR fortran/17090
3109         * io/list_read.c (list_formatted_read): Handle trailing spaces
3110         at end of line.
3112 2004-09-06  Steven G. Kargl  <kargls@comcast.net>
3114         * io/write.c (output_float): Typo in comment.  Remove debugging
3115         printf.  Fix format for FP of form 1e10.
3117 2004-09-03  Richard Henderson  <rth@redhat.com>
3119         * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
3120         copy_loop_double, copy_loop_ldouble): New.
3121         (__cshift0): Make shift type ssize_t.  Use % operator instead of
3122         div.  Use specialized versions of copy loop depending on the shape.
3124 2004-09-02  Paul Brook  <paul@codesourcery.com>
3126         * io/format.c (parse_format_list): Set repeat count for P descriptors.
3127         * write.c (output_float): Fix condition.  Correctly handle nonzero
3128         scale factor.
3130 2004-09-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
3132         * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
3133         * mk-srk-inc.sh: Likewise.
3135 2004-09-01  Paul Brook  <paul@codesourcery.com>
3137         * runtime/error.c (generate_error): Set both iostat and
3138         library_return.
3140 2004-08-31  Paul Brook  <paul@codesourcery.com>
3142         PR libfortran/16805
3143         * io/list_read.c (next_char): Don't signal EOF for internal files.
3144         * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
3146 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3148         * io/unit.c: Separate copyright years by ','.
3149         (compare, insert_unit, delete_unit, is_internal_unit, close_units):
3150         Remove blank line in beginning of function.
3151         (get_unit): Simplify code.
3153 2004-08-31  Paul Brook  <paul@codesourcery.com>
3155         * io/unit.c (get_unit): Remove superfluous if.
3157 2004-08-31  Paul Brook  <paul@codesourcery.com>
3159         * io/transfer.c (read_sf): Rename uinty to readlen.  Detect EOF.
3160         (finalize_transfer): Move setjmp after namlist IO.
3161         * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
3163 2004-08-31  Paul Brook  <paul@codesourcery.com>
3165         * list_read.c (eat_separator): Set at_eo when a '/' is seen.
3167 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3169         * libgfortran.h: Replace 'gfc_strlen_type' by
3170         'gfc_charlen_type'. Update comment accordingly.
3171         * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
3172         Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
3174 2004-08-31  Paul Brook  <paul@codesourcery.com>
3176         * libgfortran.h: Add comments.
3178 2004-08-30  Richard Henderson  <rth@redhat.com>
3180         * Makefile.am (gfor_helper_src): Split selected_kind.f90.
3181         (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
3182         (selected_int_kind.inc selected_real_kind.inc): New rules.
3183         * Makefile.in: Regenerate.
3184         * mk-sik-inc.sh, mk-srk-inc.sh: New files.
3185         * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
3186         include table of detected kinds.
3187         * intrinsics/selected_real_kind.f90: Similarly.
3189 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
3190         Paul Brook  <paul@codesourcery.com>
3192         * intrinsics/bessel.c: New file.
3193         * intrinsics/erf.c: New file.
3194         * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
3195         * configure.ac: Test for C99 Bessel and Error functions.
3196         * Makefile.in: Regenerate.
3197         * config.h.in: Regenerate.
3198         * configure: Regenerate.
3200 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
3201         Paul Brook  <paul@codesourcery.com>
3203         * Makefile.am: Add intrinsics/getXid.c.
3204         * configure.ac: Add tests for get{g,p,u}id.
3205         * config.h.in: Regenerate.
3206         * Makefile.in: Regenerate.
3207         * configure: Regenerate.
3209 2004-08-28  Paul Brook  <paul@codesourcery.com>
3211         PR libfortran/17195
3212         * libgfortran.h (rtoa): Remove prototype.
3213         * runtime/error.c (rtoa): Remove.
3214         * io/write.c (calculate_G_format): Don't add blanks if E format is
3215         used.  Add correct number of blanks when exponent width is specified.
3216         (output_float): Rewrite.
3218 2004-08-27  Paul Brook  <paul@codesourcery.com>
3220         * io/rewind.c (st_rewind): Reset unit to read mode.
3222 2004-08-27  Bud Davis  <bdavis9659@comcast.net>
3224         PR fortran/16597
3225         * io/io.h: created typedef for unit_mode.
3226         * io/io.h (gfc_unit): added mode to unit structure.
3227         * io/transfer.c (data_transfer_init): flush if a write then
3228         read is done on a unit (direct access files).
3229         * io/rewind.c (st_rewind): Used unit mode instead of global.
3231 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
3233         PR fortran/17143
3234         * runtime/error.c (itoa): keep from overflowing during
3235         mod operation by using unsigned variable.
3237 2004-08-24  Bud Davis  <bdavis9659@comcast.net>
3239         PR fortran/17164
3240         * runtime/string_intrinsics.c (string_index):check for
3241         substring longer than string.
3243 2004-08-24  David Edelsohn  <edelsohn@gnu.org>
3245         * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
3246         * Makefile.in: Rebuilt.
3248 2004-08-23  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3250         * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
3251         Fix formatting issues, update copyright years.
3253 2004-08-21  Bud Davis  <bdavis9659@comcast.net>
3255         PR 16908
3256         * io/transfer.c (next_record_w): Do not blank pad.
3257         * io/transfer.c (next_record): Take into account partial records.
3259 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
3261         PR fortran/13278
3262         * io/transfer.c (st_set_nml_var)
3263         * io/write.c (namelist_write): Allow var_name and var_name_len to be
3264         null. For strings, use string_length field instead of len.
3265         * io/io.h (struct namelist_type): New field string_length.
3266         (st_set_nml_var_char): New argument string_length.
3268 2004-08-13  Bud Davis  <bdavis9659@comcast.net>
3270         PR gfortran/16935
3271         * io/open.c (st_open): use flags instead of the unit structure.
3273 2004-08-10  Victor Leikehman  <lei@il.ibm.com>
3275         * io/list_read.c (namelist_read): Convert variable names
3276         to lower case, so that mixed-case names are recognized.
3277         Don't read beyond terminating slash.
3279 2004-08-09  Richard Henderson  <rth@redhat.com>
3280             Roger Sayle  <roger@eyesopen.com>
3282         * intrinsics/c99_functions.c (nextafterf): New implementation that
3283         works correctly with denormalized numbers.
3285 2004-08-09  Victor Leikehman  <lei@il.ibm.com>
3287         * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
3288         intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
3289         Allocate space if return value has NULL in its data field.
3290         * generated/*.c: Regenerate.
3292 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3294         * intrinsics/env.c: New file.
3295         * Makefile.am: Add env.c to build.
3296         * Makefile.in: Regenerate.
3298 2004-08-05  Victor Leikehman  <lei@il.ibm.com>
3300         PR libgfortran/16704
3301         * io/read.c (read_radix): Understand letters f and F as hex digits.
3303 2004-08-04  Victor Leikehman  <lei@il.ibm.com>
3305         * libgfortran.h (array_t, size0) New declarations.
3306         * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
3307         space if return value descriptor has NULL in its data field,
3308         and initialize bounds and stride.
3309         * intrinsics/size.c (array_t, size0): Declarations moved to
3310         libgfortran.h.
3311         * generated/*.c: Regenerate.
3313 2004-08-03  Roger Sayle  <roger@eyesopen.com>
3315         PR libgfortran/16137
3316         * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
3317         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
3318         scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
3319         * config.h.in: Regenerate.
3320         * configure: Regenerate.
3322         * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
3323         copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
3324         nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
3325         implementations for targets that don't support C99 float functions.
3327 2004-08-01  Roger Sayle  <roger@eyesopen.com>
3329         * io/write.c (write_float): Use the slightly more portable isnan
3330         in preference to isinf.
3332 2004-07-18  Bud Davis  <bdavis9659@comcast.net>
3334         * configure.ac: Add check for LFS support.
3335         * configure: Regenerate
3337 2004-07-11  Paul Brook  <paul@codesourcery.com>
3339         PR fortran/16303
3340         * m4/cexp.m4 (carg): Return -pi to pi.
3341         * generated/exp_c?.c: Regenerate.
3343 2004-07-08  Andreas Krebbel  <krebbel1@de.ibm.com>
3345         PR fortran/16291
3346         * libgfortran/io/write.c: (write_float): Added length check.
3347         Remove pointless memset calls.
3349 2004-07-04  Bud Davis  <bdavis9659@comcast.net>
3350             Paul Brook  <paul@codesourcery.com>
3352         PR fortran/15472
3353         * io/transfer.c(us_write): set recl for seq unform writes to max size.
3354         * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
3355         * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
3356         right time.
3357         * io/unix.c(is_seekable): set based upon the file/device, not the
3358         method being used to access it (fd or mmap).
3359         * io/unix.c(fd_flush): don't set file_size if !seekable.
3360         * io/unix.c(fd_truncate: ditto.
3362 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3363         Paul Brook  <paul@codesourcery.com>
3365         PR fortran/15280
3366         PR fortran/15665
3367         * libgfortran.h (gfc_strlen_type): Define.
3368         * intrinsics/args.c (getarg): Rename ...
3369         (getarg_i4): ... to this.
3370         (getarg_i8, get_command_argument_i4, get_command_argument_i8,
3371         get_command_i4, get_command_i8): New functions.
3373 2004-07-04  Matthias Klose  <doko@debian.org>
3375         * libtool-version: New.
3376         * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
3377         * Makefile.in: Regenerate.
3378         * configure.ac: Remove libtool_VERSION macro
3379         * configure: Regenerate
3381 2004-06-30  Steve Kargl  <sgk@troutmask.apl.washington.edu>
3382             Steven Bosscher  <stevenb@suse.de>
3384         * intrinsics/rand.c (rand): Wrap the irand() call from the previous
3385         commit in prefix.
3387 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3388         Paul Brook  <paul@codesourcery.com>
3390         * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
3391         comments.
3392         * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
3394 2004-06-27  Bud Davis  <bdavis9659@comcast.net>
3396         PR gfortran/12839
3397         * io/write.c (write_float): check signbit for Infinity.
3399 2004-06-26  Bud Davis  <bdavis9659@comcast.net>
3401         PR gfortran/16196
3402         * unix.c(regular_file): create file if it does not exist.
3404 2004-06-24  Andrew Pinski  <apinski@apple.com>
3406         * configure.ac: Remove check for libmx.
3407         * configure: Regenerate.
3409 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3411         PR fortran/15750
3412         * inquire.c (st_inquire): Add comment
3413         * io.h (st_parameter): Add iolength.
3414         (st_iolength, st_iolength_done): Declare.
3415         * transfer.c (iolength_transfer, iolength_transfer_init,
3416         st_iolength, st_iolength_done): New functions.
3418 2004-06-21  Steven G. Kargl  <kargls@comcast.net>
3420         * etime.c (etime_sub): Remove array rank check;
3421         Add check for sufficient space.
3423 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
3425         PR gfortran/16080
3426         * io/list_read.c(set_value): fixed spelling.
3428 2004-06-19  Bud Davis  <bdavis9659@comcast.net>
3430         PR gfortran/16080
3431         * io/list_read.c(set_value): don't copy if the string is null.
3433 2004-06-14  Bud Davis  <bdavis9659@comcast.net>
3435         PR gfortran/15292
3436         * intrinsics/c99_functions.c: Use fpclassify if it exists.
3438 2004-06-13  Paul Brook  <paul@codesourcery.com>
3440         * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
3441         * configure.ac: Add checks for nextafter and nextafterf.
3442         * Makefile.in, config.h.in, configure: Regenerate.
3443         * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
3444         * intrinsics/rand.c (rand): Use normalize_r4_i4.
3445         * intrinsics/random.c (random_r4): Use normalize_r4_i4.
3446         (random_r8): Use normalize_r8_i8.
3447         * runtime/normalize.c: New file.
3449 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
3450             Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3452         * random.c: Fix several spelling and formatting mistakes in
3453         comments.
3454         (random_r8): Fix loop to make random numbers range in [0,1(.
3457 2004-06-13  Steven G. Kargl  <kargls@comcast.net>
3459         * random.c (random_r4): Burn a random number.
3460         (random_r8): fix infinite loop.
3462 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3463             Steve Kargl  <sgk@troutmask.apl.washington.edu>
3465         PR gfortran/15292
3466         * intrinsics/c99_functions.c: New file.
3467         * Makefile.am: Add new file.
3468         * configure.ac: Added test for round/roundf.
3469         * Makefile.in: Regenerate.
3470         * configure: Regenerate.
3471         * configure.h.in: Regenerate.
3473 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
3475         * Makefile.am: Add rand.c and etime.c
3476         * Makefile.in: Regenerated.
3477         * aclocal.in: Regenerated.
3478         * cpu_time.c (second_sub, second): New functions.
3479         * rand.c (irand, rand, srand): New file.
3480         * etime.c (etime_sub, etime): New file.
3482 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3483             Steven Bosscher  <stevenb@suse.de>
3485         PR fortran/14923
3486         * intrinsics/date_and_time.c: New file.
3487         * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
3488         * Makefile.in, aclocal.m4: Regenerate.
3489         * libgfortran.h: Prototype date_and_time().
3491 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3493         PR fortran/15665
3494         * intrinsics/args.c: Implement GETARG and IARGC.
3495         * Makefile.am: Add it.
3496         * Makefile.in: Regenerate.
3498 2004-06-12  Bud Davis  <bdavis9659@comcast.net>
3500         PR gfortran/12839
3501         * io/write.c(write_float): Format inf and nan IAW F2003.
3503 2004-06-09  Bud Davis  <bdavis9659@comcaste.net>
3505         PR gfortran/14897
3506         * io/transfer.c (formatted_transfer): position is unique
3507          for T and TL edit descriptors.
3508         (data_transfer_init): set record length to size of internal
3509          file.
3511 2004-06-09  Bud Davis  <bdavis9659@comcast.net>
3513         PR gfortran/15755
3514         * io/backspace.c(st_backspace): call correct routine for
3515         formatted and un-formatted units.
3517 2004-05-30  Andreas Jaeger  <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
3519         PR gfortran/11800
3520         * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
3521         (lib_LTLIBRARIES): Rename to ...
3522         (toolexeclib_LTLIBRARIES): this for multilib support.
3523         * configure.in: Rename to ...
3524         * configure.ac: this.  Update to modern autoconf style, enable
3525         multilibs, support --enable-version-specific-runtime-libs.
3526         * Makefile.in: Regenerated.
3527         * configure: Regenerated.
3528         * aclocal.m4: Regenerated.
3530 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
3532         * libgfortran.h (random_seed): Update prototype.
3533         * intrinsics/random.c: Disable old implementation and add new one.
3535 2004-05-30  Andreas Jaeger  <aj@suse.de>
3537         * intrinsics/random.c: Include unistd.h for close and read
3538         prototypes, remove unneeded inclusion of assert.h.
3540         * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
3541         unneeded inclusion of assert.h.
3543 2004-05-27  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
3545         PR fortran/15234
3546         * intrinsics/associated.c: Remove enum.
3547         (associated): Replace TRUE/FALSE by 1/0.
3549 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
3551         * random.c (random_seed): Use correct variable.
3553 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
3555         * intrinsics/system_clock: New file.
3556         * Makefile.am: Add intrinsics/system_clock.c.
3557         * Makefile.in: Regenerate.
3559 2004-05-21  Roger Sayle  <roger@eyesopen.com>
3561         * io/format.c (parse_format_list): Allow the comma after a string
3562         literal to be optional.
3564 2004-05-18  Paul Brook  <paul@codesourcery.com>
3565         Feng Wang  <fengwang@nudt.edu.cn>
3567         * Makefile.am (i_pow_c): Set it. Add build rule.
3568         (gfor_built_src): Use it.
3569         (m4_files): add m4/pow.m4.
3570         * Makefile.in: Regenerate.
3571         * m4/pow.m4: New file.
3572         * generated/pow_*.c: Regenerate.
3574 2004-05-18  Paul Brook  <paul@codesourcery.com>
3576         * Makefile.am: Remove references to types.m4.
3577         * m4/iparm.m4: Merge with types.m4.
3578         * m4/types.m4: Remove.
3579         * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
3580         m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
3581         m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
3582         m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
3583         m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
3584         m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
3585         Update to use new iparm.m4.
3586         * generated/*.c: Regenerate.
3588 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3590         PR fortran/15235
3591         * gfortran.h (offset_t): Rename to ...
3592         (gfc_offset): ... this.
3593         * io/backspace.c (formatted_backspace, unformatted_backspace),
3594         io/io.h (stream, gfc_unit, global_t, file_length, file_position),
3595         transfer.c (us_read, us_write, next_record_r, next_record_w),
3596         io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
3597         fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
3598         mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
3599         mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
3600         occurences of offset_t by gfc_offset.
3602 2004-05-16  Paul Brook  <paul@codesourcery.com>
3604         * io/format.c (write_real): Don't include padding in format.
3606 2004-05-16  Paul Brook  <paul@codesourcery.com>
3608         * io/format.c (format_lex): Make c an int.
3610 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3611         Paul Brook  <paul@codesourcery.com>
3613         * io/write.c (write_logical): Don't print extra blank.
3614         (write_integer): Base field width on kind.
3615         (list_formatted_write): Output initial blank.
3617 2004-05-16  Janne Blomqvist  <jblomqvi@cc.hut.fi>
3619         * io/io.h (flush): Add prototype.
3620         * io/transfer.c (finalize_transfer): Flush partial records.
3621         * io/unix.c (flush): New function.
3623 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3625         PR fortran/15234
3626         * io/io.h (unit_t): Rename to ...
3627         (gfc_unit) ... this.
3628         (unit_root, current_unit, find_file, find_unit, get_unit): Now
3629         of type gfc_unit.
3630         (delete_file, insert_unit, close_unit): Argument now of type
3631         gfc_unit.
3632         * backspace.c (st_backspace), close.c (st_close), endfile.c
3633         (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
3634         (test_endfile, edit_modes, new_unit, already_open, st_open),
3635         rewind.c (st_rewind), transfer.c (current_unit), unit.c
3636         (internal_unit, unit_cache, rotate_left, rotate_right, insert,
3637         insert_unit, delete_root, delete_treap, delete_unit, find_unit,
3638         get_unit, init_units, close_unit), unix.c (find_file0,
3639         find_file, delete_file): Replace all occurences of unit_t by
3640         gfc_unit.
3642 2004-05-15  Bud Davis  <bdavis9659@comcast.net>
3644         PR fortran/15311
3645         * io/write.c (write_a): right justify A edit output.
3647 2004-05-14  Bud Davis  <bdavis9659@comcast.net>
3649         PR fortran/15149
3650         * libgfortan.h,intrinsics/random.c: Made random_seed visible.
3651         * runtime/main.c(init): Call random_seed as part of MAIN init.
3653 2004-05-13  Tobias Schlter  <tobias.schlueter@physik.uni-muenchen.de>
3655         * io/format.c: (parse_format_list): No comma is required after
3656         P descriptor.
3658 2004-05-13  Bud Davis  <bdavis9659@comcast.net>
3660         PR fortran/15204
3661         * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
3663 2004-05-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3664             Steven Bosscher  <stevenb@suse.de>
3666         PR libfortran/15234
3667         * libgfortran.h: Include <inttypes.h> if available.
3669 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3671         * io/unix.c (MAP_FAILED): Define if missing.
3672         (mmap_alloc): Cast MAP_FAILED to char *.
3673         (mmap_open): Likewise.
3675 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
3677         * generated/_abs_i8.f90: New file.
3678         * generated/_abs_c4.f90: New file.
3679         * generated/_abs_c8.f90: New file.
3680         * Makefile.am: Add them.
3681         * Makefile.in: Regenerate.
3683 2004-04-26  Bud Davis  <bdavis9659@comcast.net>
3685         PR fortran/14056
3686         * generated/_abs_i4.f90: New file.
3687         * Makefile.am: Add it.
3688         * Makefile.in: Regenerate.
3690 2004-04-25  Bud Davis  <bdavis9659@comcast.net>
3692         PR fortran/14942
3693         * io/list_read.c(list_formatted_read): finish consuming the
3694         spaces and seperators at eoln to get ready for next item.
3696 2004-04-23  Bud Davis  <bdavis9659@comcast.net>
3698         PR fortran/15113
3699         * io/read.c(read_a): Handle field width > destination and no field width.
3701 2004-04-22  Bud Davis  <bdavis9659@comcast.net>
3703         PR fortran/14906
3704         * io/format.c (format_item): gracefully handle a ')'
3705         when it is the first character encountered in the string.
3707 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3709         PR fortran/14904
3710         * io/transfer.c (next_record): Update last_record when
3711         more than one record is written to a direct access file
3712         with one write statement.
3714 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3716         PR fortran/14901
3717         * io/transfer.c (next_record_w) : No '\n' if internal.
3718         * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
3720 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3722         * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
3723         Will need to change this later to support direct access files > 2gb.
3725 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3727         PR gfortran/14762
3728         * io/transfer.c (next_record_r) : Skip to next record.
3730 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3732         PR gfortran/14836
3733         * io/transfer.c (next_record): Update last_record for DIRECT
3735 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3737         PR gfortran/14837
3738         * io/unix.c (find_file0): Use fd field of struct
3740 2004-04-03  Bud Davis  <bdavis9659@comcast.net>
3742         PR 14831
3743         * io/inquire.c (inquire_via_unit): Changed return string for
3744         BLANK=NULL. Use correct variable for ACTION.
3746 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
3748         PR 14746
3749         * io/read.c (read_f): Allow a decimal without a leading digit.
3750         * io/write.c (output_float): remove a leading '0' to keep from
3751         overflowing the field (F edit descriptor).
3753 2004-04-01  Bud Davis  <bdavis9659@comcast.net>
3755         PR gfortran/14565
3756         * io/open.c (new_unit),
3757         * io/io.h : new_unit is now visible
3758         * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
3759         * io/transfer.c (data_transfer_init): remove compile warnings.
3760         * io/rewind.c (st_rewind): ftruncate if writing.
3762 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3764         * write.c (write_l): Use extract_int for 'L' edit descriptor.
3766 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3768         PR 13919
3769         * io/io.h (global_t):
3770         * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
3771           Move eof_jmp to a global structure.
3772         * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
3774 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3776         * m4/cexp.m4 (csqrt): Actually use the passed value.
3777         * generated/exp_c?.c: Regenerate.
3779 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3781         PR 12921
3782         * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
3783         * open.c (new_unit): Moved test for positioned direct access error.
3784         (init_units): Corrected calculation of max records.
3786 2004-02-06  Feng Wang  <fengwang@nudt.edu.cn>
3788         * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
3789         * Makefile.in: Regenerate.
3790         * m4/dotprodc.m4: New file. Implement complex dot_product.
3791         * m4/dotprod.m4: Delete the complex implementation.
3792         * generated/dotprod_*: Update.
3794 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
3796         * transfer.c (write_constant_string): Do not delete H's in hollerith
3797         formats.
3799 2004-01-05  Andrew Pinski  <apinski@apple.com>
3801         * configure.in: Check for csin in -lmx also.
3802         * configure: Regenerate.
3804 2004-01-01  Paul Brook  <paul@codesourcery.com>
3806         * io/list_read.c (find_nml_node): Make static.
3807         (match_namelist_name): Ditto.
3808         * io/read.c (convert_precision_real): Make static, fix spelling.
3809         * io/transfer.c (extract_real): Remove unused prototype.
3810         (st_set_nml_var): Make static.
3811         * io/write.c (extract_real): Make static.
3813 2003-12-12  Huang Chun <chunhuang73@hotmal.com>
3815         * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
3817 2003-12-05  Melvin Hadasht  <melvin.hadasht@free.fr>
3819         * io/transfer.c (data_transfer_init): Give a runtime error for list
3820         formatted reads and writes from/to files opened for unformatted IO.
3822 2003-11-30  Paul Brook  <paul@nowt.org>
3824         * runtime/memory.c (push_context): Remove.
3825         (pop_context): Remove.
3826         * libgfortran.h: Remove prototypes.
3828 2003-11-27  Paul Brook  <paul@nowt.org>
3830         * runtime/memory.c (deallocate): Nullify pointer after freeing.
3832 2003-11-27  Paul Brook  <paul@nowt.org>
3834         * intrinsics/string_intrinsics.c: Use new memory allocation interface.
3835         * libgfortran.h: Ditto.
3836         * m4/in_pack.m4: Ditto.
3837         * runtime/in_pack_generic.c: Ditto.
3838         * runtime/memory.c: Ditto.
3840 2003-11-26  Richard Henderson  <rth@redhat.com>
3842         * m4/exponent.m4, m4/fraction.m4: New.
3843         * m4/nearest.m4, m4/set_exponent.m4: New.
3844         * generated/*: Update.
3845         * Makefile.am: Add them.
3846         (AM_CFLAGS): New.  Use -std=gnu99.
3847         * Makefile.in: Regenerate.
3849 2003-11-08  Paul Brook  <paul@nowt.org>
3851         PR fortran/12704
3852         * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
3853         * m4/maxloc1.m4: Ditto.
3854         * m4/minloc0.m4: Ditto.
3855         * m4/minloc1.m4: Ditto.
3856         * m4/ifunction.m4: Set return value for zero sized arrays.
3857         * m4/iforeach.m4: Ditto.
3858         * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
3859         m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
3860         * generated/*: Update.
3862 2003-10-30  Toon Moene  <toon@moene.indiv.nluug.nl>
3864         PR fortran/12702
3865         * io/list_read.c (eat_spaces): Treat tab as space.
3867 2003-10-30  Lars Segerlund  <Lars.Segerlund@comsys.se>
3869         * intrinsics/random.c: Add reference to paper containing algorithm.
3870         (random_seed): Extra error checking and proper handling of arrays.
3871         (arandom_r4, arandom_r8): Implement.
3873 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
3875         PR fortran/12703
3876         * runtime/memory.c (allocate_size): Allow allocation
3877         of zero-sized objects.
3879 2003-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>
3881         PR fortran/12701
3882         * open.c (new_unit): Open without a file name opens
3883         a file with name fort.<unit>.
3885 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
3887         * intrinsics/cshift0.c: New file.
3888         * m4/cshift1.m4: New file
3889         * generated/cshift*.c: New files.
3890         * Makefile.am: Add them.
3891         * Makefile.in: Regenerate.
3893 2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>
3895         * io/list_read.c (read_character): Remove unwanted call to free_saved.
3897 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
3899         * intrinsics/string_intrinsics.c (string_trim): New function.
3900         (string_repeat): New function.
3902 2003-10-11  Paul Brook  <paul@nowt.org>
3904         * intrinsics/dprod_r8.f90: New file.
3905         * Makefile.am (gfor_specific_src): Add it.
3906         (gfor_built_specific_src): Rename from gfor_build_specific_c.
3907         Add new intrinsics.
3908         (gfor_specific2_src): Rename from gfor_built_specific2_c.
3909         Add new intrinsics.
3910         * Makefile.in: Regenerate.
3911         * generated/_aint_*.f90: New files.
3912         * generated/_anint*.f90: New files.
3913         * generated/_atan2*.f90: New files.
3914         * generated/_mod*.f90: New files.
3916 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3918         * intrinsics/selected_kind.f90: New file.
3919         * Makefile.am: Add it.
3920         * Makefile.in: regenerate.
3922 2003-09-19  Lars Segerlund  <Lars.Segerlund@comsys.se>
3923         Paul Brook  <paul@nowt.org>
3925         * intrinsics/random.c: New file.
3926         * Makefile.am (gfor_hemper_src): Add it.
3927         (gfor_specific_c): Fix typo.
3929 2003-09-19  Paul Brook  <paul@nowt.org>
3931         * All: rename g95->gfc.
3933 2003-09-18  XiaoQiang Zhang  <zhangapache@yahoo.com>
3935         * io/write.c (output_float): Fix bug of FMT_E, Add comments.
3937 2003-09-09  XiaoQiang Zhang  <zhangapache@yahoo.com>
3939         * io/write.c (write_float): Dectection of positive infinite number,
3940         Not a Number(NaN) and negative infinite number.
3941         (ioutput_float): Bug fix for FMT_E and FMT_D processing to
3942         output a very_very small number ( < 0.1e-100 ).
3944 2003-09-07  XiaoQiang Zhang  <zhangapache@yahoo.com>
3946         * libgfortran.h (xtoa, itoa): Parameter modified.
3947         * io/io.h (namelist_info): Declaration to support namelist I/O
3948         (st_parameter): Add namelist related component
3949         (ionml, empty_internal_buffer, st_set_nml_var_int,
3950         st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
3951         st_set_nml_var_log): Declaration
3952         (set_integer, set_integer): Parameter changed
3953         * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
3954          fnodes
3955         (parse_format_list): Fix bug about FMT_SLASH
3956         * io/list_read.c (push_char): Totally clear old saved_string, zeroize
3957         newly allocated saved_string
3958         (next_char): Add detection of End_Of_Line support
3959         (convert_integer): Now can process 64 bits interger
3960         (read_real): Bug fixed
3961         (init_at_eol, find_nml_node, match_namelist_name): Add new functions
3962         (match_namelist_name): New implemention
3963         * io/lock.c (ionml): New global variable
3964         (library_end): Free memory in ionml
3965         * io/open.c (st_open): Variable initializtion
3966         * io/read.c (max_value): 64 bits interger support
3967         (convert_precsion_real): New procedure to replace "strtod" with more
3968          features
3969         (read_f, read_radix): Input bug fix
3970         * io/transfer.c: (sf_seen_eor): New static variable
3971         (read_sf): Zeroize base buffer; fix bugs: single read statement can
3972         not get input in mutli line when read from stdin
3973         (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
3974          request
3975         (data_transfer_init): Clear internal buffer for Internel File I/O.
3976         Internal File now worked. Detect some error condition for namelist.
3977         Some minor bug fix
3978         (next_record_w): Internal file and Namelist I/O support.
3979         (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
3980         st_set_nml_var_complex, st_set_nml_var_log): Implemention.
3981         * io/unit.c (implicit_unit): Deletion
3982         (get_unit): Now cannot open a unit implicitly.
3983         * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
3984         mapped buffer.
3985         (mem_alloc_r_at): Internal file I/O support added
3986         (empty_internal_buffer): New function
3987         * io/write.c (extract_int): Support 64 bits interger processing
3988         (output_float): Varibale initialization
3989         (write_float): Infinite real number detection.
3990         (write_int): 64 bits integer I/O support
3991         (write_decimal): New function to output decimal number
3992         (otoa, btoa): Better implemention and 64 bits interger support
3993         (namelist_write): New function
3994         * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
3995         interger support
3997 2003-08-15  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3999         * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
4000         get_mem ): Add attribute.
4001         * intrinsics/spread_generic.c (__spread): Fix spelling.
4002         * io/inquire.c (inquire_via_filename): Add const.
4003         * io/io.h (sys_exit): Add attribute.
4004         * io/io.h (move_pos_offset): Add move_pos_offset.
4005         * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
4006         inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
4007         inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
4008         write_en, write_es, write_f, write_i, write_l, write_o, write_x,
4009         write_z): Add const.
4010         * io/read.c (convert_real): Add const.
4011         * io/transfer.c (type_name): Add const.
4012         * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
4013         inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
4014         inquire_read, inquire_write, inquire_readwrite): Add const.
4015         * io/write.c (output_float): Remove unused variable.
4016         * io/write.c (write_a, extract_int, extract_real, output_float,
4017         write_float, write_int, write_i, write_b, write_o, write_z, write_d,
4018         write_e, write_f, write_en, write_es, write_logical, write_integer,
4019         write_character, write_real, write_complex): Add const.
4020         * runtime/error.c (rtoa): Remove unused variable.
4021         * runtime/select.c (select_string): Add const.
4022         * runtime/stop.c (stop_string): Add const.
4024 2003-08-10  Paul Brook  <paul@nowt.org>
4026         * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
4027         (FFLAGS): Add -fno-underscoring.
4028         * Makefile.in: Regenerate.
4029         * intrinsics/abort.c: New file.
4031 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
4033         * fmain.c (main): Do not call init and cleanup; call set_args instead.
4034         * libgfortran.h (init, cleanup): Remove declarations.
4035         (set_args): Add declaration.
4036         * runtime/main.c (init, cleanup): Make them static, and give them
4037         the constructor and destructor attributes.
4038         (set_args): New function.
4040 2003-08-10  Paul Brook  <paul@nowt.org>
4042         * intrinsics/strinf_intrinsics.c (compare_string): Return value based
4043         on which string is longest.
4045 2003-08-10  Paul Brook  <paul@nowt.org>
4047         * Makefile.am (EXTRA_DIST): Remove old files.
4048         * Makefile.in: Regenerate.
4050 2003-07-26  Paul Brook  <paul@nowt.org>
4052         Rename library to libgfortran.
4053         * libgfortran.h: Change prefix to _libgfortran_.
4055 2003-07-24  Paul Brook  <paul@nowt.org>
4057         * configure.in: Don't pull in system libtool.  Use toplevel
4058         auxiliary files.
4060 2003-07-22  Paul Brook  <paul@nowt.org>
4062         Regenerate all configury files.
4064 2003-07-09  Chun Huang  <compiler@sohu.com>
4066         * intrinsics/string_intrinsic.c (string_scan): New function.
4067         (string_verify): New function.
4069 2003-06-25  Paul Brook  <paul@nowt.org>
4071         * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
4072         (mem_seek): Don't bother setting physical_offset.
4074 2003-06-20  Paul Brook  <paul@nowt.org>
4076         * libgfor.h (stop_numeric): Declare.
4077         * runtime/pause.c: New file.
4078         * Makefile.am: Add it.
4080 2003-06-08  Paul Brook  <paul@nowt.org>
4082         * m4/cexp.m4 (cabs): Use correct typed version.
4083         (csqrt): New function.
4085 2003-06-07  Canqun Yang  <canqun@yahoo.com.cn>
4087         Spotted by Benjamin and Tobias:
4088         * io/list_read.c: Add Separator '\t'.
4089         (parse_real, read_real): Accept real values starting with an optional
4090         sign follows a decimal point.
4092 2003-06-06  Steven Bosscher  <steven@gcc.gnu.org>
4094         * Makefile.am: Don't put cmath objects in subdir.
4095         * configure.in: Rename MATHOBJ to MATH_OBJ.
4097 2003-06-02  Kejia Zhao  <Kejia_zh@yahoo.com.cn>
4099         * intrinsics/associated.c: New file.
4100         * Makefile.am: Add it. Regenerate Makefile.in.
4101         * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
4102         G95_DESCRIPTOR_DTYPE.
4104 2003-06-01  Canqun Yang  <canqun@yahoo.com.cn>
4106         * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
4107         (calculate_G_format): Rewrite it to eliminate an infinte loop and set
4108         the scale_factor to 0 for F editing.
4110 2003-05-11  Tobias Schlter  <innenminister@gmx.de>
4112         * libgfor.h: Only include stdint.h if it exists.
4114 2003-05-07  Paul Brook  <paul@nowt.org>
4116         * libgfor.h: Use stdint.h types.
4117         * intrinsics/ishift.c: Ditto.
4118         * runtime/memory.c (malloc_t): Reorder fields for better alignment.
4120 2003-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4122         * libgfor.h (offsetof): Define if nobody else does.
4123         * runtime/memory.c (HEADER_SIZE): Use it.
4125 2003-05-01  Tobias Schlter  <innenminister@gmx.de>
4127         * configure.in: Require autoconf 2.54.
4129 2003-04-28  Tobias Schlter  <innenminister@gmx.de>
4130         Paul Brook  <paul@nowt.org>
4132         * intrinsics/reshape_generic.c: Copy the whole element, not just the
4133         first byte.
4134         * m4/transpose.m4: New file.
4135         * Makefile.am: Add them.
4136         Regenerate generated files.
4138 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4140         * io/format.c (parse_format_list): Allow 'X' without integer
4141         prefix.  This is an extension.  Interpretation is '1X'.
4143 2003-04-18  Tobias Schlter  <Tobias.Schlueter@physik.uni-muenchen.de>
4145         * io/format.c (parse_format_list): Allow '0P'.
4147 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4149         * Makefile.in: Re-regenerate for automake 1.7.3.
4151 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
4153         Port implementation for CHARACTER SELECT from Andy's tree.
4154         * runtime/select.c: New file
4155         * Makefile.am: Add it.
4156         * Makefile.in: Regenerate.
4158 2003-04-17  Xiaoqiang Zhang <zhangapache@yahoo.com>
4160         * io/transfer.c (formatted_transfer): Modified
4161         * io/unix.c (move_pos_offset): New Function.
4162         * io/format.c (parse_format_list): Modified.
4164 2003-04-15  Xiaoqiang Zhang <zhangapache@yahoo.com>
4166         * io/write.c (write_float,write_real): New implemention of
4167         FMT_G and default float editing.
4168         (calculate_exp,calculate_G_format,output_float): New Function.
4169         (write_float,write_real,write_logical): Modified
4170         * libgfor.h (default_rtoa): Remove Declaration.
4171         * runtime/error.c (default_rtoa): Remove Function.
4173 2003-04-15  Steven Bosscher  <steven@gcc.gnu.org>
4175         Spotted by Yang:
4176         * io/write.c (extract_real): Add missing break statement.
4178 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
4180         * cpu_time.c: Make sure we have a definition of HZ.  Don't
4181         rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
4183 2003-04-13  Steven Bosscher  <steven@gcc.gnu.org>
4184             Paul Brook  <paul@nowt.org>
4186         * configure.in: Check for process time headers and GETTIMEOFDAY.
4187         * makefile.am: Add intrinsics/cpu_time.c.
4188         * acinclude.m4: New file.
4189         * intrinsics/cpu_time.c: New file.
4190         * m4/dotprodl.m4: Fix typo.
4191         Regenerate generated files.
4193 2003-04-11  Xiaoqiang Zhang <zhangapache@yahoo.com>
4195         * io/write.c (extract_real): Ouput floating point value.
4196         (write_float): New Function.
4197         (write_e, write_f, write_en, write_es): Modified
4198         * io/transfer.c (formatted_transfer): Modified.
4199         * libgfor.h (default_rtoa): Declaration.
4200         (rtoa): Declaration.
4201         * runtime/error.c (default_rtoa): New Function.
4202         (rtoa): New Function.
4204 2003-04-05  Paul Brook  <paul@nowt.org>
4206         * intrinsics/spread_generic.c: New file.
4207         * Makefile.am: Add it. Regenerate Makefile.in.
4209 2003-03-29  Paul Brook  <paul@nowt.org>
4211         * intrinsics/pack_generic.c: New file.
4212         * intrinsics/unpack_generic.c: New file.
4213         * Makefile.am: Add them. Regenerate Makefile.in.
4215 2003-03-25  Paul Brook  <paul@nowt.org>
4217         * intrinsics/eoshift0.c: New file.
4218         * intrinsics/eoshift2.c: New file.
4219         * m4/eoshift1.m4: New file.
4220         * m4/eoshift3.m4: New file.
4221         * Makefile.am: Add them.
4222         * in_unpack_generic.c: Initialize src.
4223         Regenerate generated files.
4225 2003-03-14  Paul Brook  <paul@nowt.org>
4227         * m4/shape.m4: Work properly with array temporaries.
4228         * m4/in_pack.m4: Skip redundant checks for array temporaries.
4229         * runtime/in_pack_generic.c: Ditto.
4231 2003-03-12  Paul Brook  <paul@nowt.org>
4233         * m4/shape.m4: Work properly with noncontiguous arrays.
4235 2003-03-08  Paul Brook  <paul@nowt.org>
4237         * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
4238         * runtime/in_pack_generic.c: Ditto.
4240 2003-02-08  Paul Brook  <paul@nowt.org>
4242         * intrinsics/reshape_generic.c: Use runtime_error to report errors.
4243         * io/close.c (st_close): Return void.
4244         * io/open.c (st_open): Return void.
4245         * libgfor.h (g95_array_char): Declare.
4246         (internal_malloc_size): Ditto.
4247         (internal_pack*, internal_unpack*): Ditto.
4248         * m4/in_pack.m4: Allocate storage if neccessary.  Fix logic for packed
4249         arrays.
4250         * m4/in_unpack.m4: Include file fixes.
4251         * m4/reshape.m4: Increment the correct source pointer.
4252         * Makefile.am (maxloc): Fix typo.
4253         * runtime/in_pack_generic.c: Call optimized functions. Allocate
4254         storage if neccessary. Fix logic for packed arrays.
4255         * runtime/in_unpack_generic.c: Call optimized functions.
4256         * runtime/main.c: Use runtime_error to report errors.
4257         * memory.c (internal_malloc_size): Make non-static.
4259 2003-02-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4261         * reshape_packed.c, lock.c: Add #include <string.h>.
4262         * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
4263         environ.c, error.c, memory.c, string.c: Add const.
4264         * error.c (show_locus): Add void.
4266 2003-02-21  Paul Brook  <paul@nowt.org>
4268         * m4/in_pack.m4: Avoid returning const * parameter.
4269         * Makefile.am: Only regenerate files in maintainer mode.
4271 2003-02-20  Paul Brook  <paul@nowt.org>
4273         Add array repacking support functions.
4274         * m4/in_pack.m4, m4/in_unpack.m4: New files.
4275         * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
4276         * Makefile.am: Build them.  Regenerate configury files.
4277         * generated/: New directory for generated files (need to move
4278         everything else there).
4280 2003-02-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
4282         * m4/cexp.m4: Fix typo.
4284 2003-01-26  Paul Brook  <paul@nowt.org>
4286         * intrinsics/: Add missing generated files.
4288 2003-01-26  Paul Brook  <paul@nowt.org>
4290         * Makefile.am: Put -I before the filename.
4292 2003-01-24  Paul Brook  <paul@nowt.org>
4294         * configure.in: Add AM_MAINTAINER_MODE.
4296 2003-01-23  Paul Brook  <paul@nowt.org>
4298         * configure.in, Makefile.am: Modify to work with unmodified autoconf
4299         and auotmake.
4300         Also regenerate other configury files.
4302 2003-01-21  Paul Brook  <paul@nowt.org>
4304         * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
4306 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4308         * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
4309         Don't include "alloca.h".
4311 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4313         * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
4314         * Makefile.am: Adjust file name.
4315         * Makefile.in: Regenerate.
4316         * gfortypes.h: Kill, include everything in...
4317         * libgfor.h: ...here.  Include config.h
4318         * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
4319         intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
4320         intrinsics/reshape_packed.c, intrinsics/size.c,
4321         m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
4322         for prefix for all functions instead of hardcoded.
4324 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4326         * io/lock.c (library_end): Propagate library return
4327         code.
4329 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4331         Port fixes from Andy's tree:
4332         * io/read.c (read_decimal): Reverse sense of overflow
4333         comparison during integer reads.
4334         * io/format.c (revert): Fix comment.
4335         (next_format): Fix format revision.
4336         * io/unix.c: Fix and simplify mmap version of stream
4337         functions.
4339 2003-01-11  Paul Brook  <paul@nowt.org>
4341         * configure, Makefile.in: Regenerate.
4343 2003-01-11  Paul Brook  <paul@nowt.org>
4345         * runtime/stop.c: Rewrite.
4347 2003-01-08  Paul Brook  <paul@nowt.org>
4349         * configure, Makefile.in: Regenerate.
4351 2003-01-05  Paul Brook  <paul@nowt.org>
4353         * (*.m4) Move to m4/.
4354         * intrinsics/string.c (_gfor_string_index): New Function.
4356 2002-12-29  Paul Brook  <paul@nowt.org>
4358         * intrinsics/reshape.*: New files.
4359         * gcc_config.patch: Update to new GCC configure system.
4361 2002-10-10  Paul Brook  <paul@nowt.org>
4363         * intrinsics/size.c: New file.
4364         * intrinsics/shape.m4: New file.
4365         * Makefile.am: Add above files.
4367 2002-10-02  Paul Brook  <paul@nowt.org>
4369         * fmain.c (main): Move here.
4370         * libgfor.c: From here.
4371         * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
4372         * Makefile.am: Build libgforbegin.
4373         * gcc_config.patch: Remove stray -march=athlon.
4374         * dotprodl.m4: Fix use of L8_TO_L4 macro.
4375         * ifunction.m4: Move variable declarations to allow compilation with
4376         gcc < 3.0
4377         * specific.m4, specific4.m4: Fix typo typecode->type_code.
4378         * README: Document use of patch -p1.
4380 2002-09-12  Paul Brook  <paul@nowt.org>
4382         * math/*: Add complex math library functions.
4383         * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
4384         * Makefile.am: Add details for above.
4385         * configure.in: Use AC_PROG_F95.  Test for the presence of csin.
4387 2002-09-09  Paul Brook  <paul@nowt.org>
4389         * libgfor.c (determine_endianness): Use an array rather than a struct.
4390         * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
4392 2002-09-09  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4394         * libgfor.c: Add fatal signal handler.
4395         Romove superfluous abort() calls.
4397 2002-09-07  Paul Brook <paul@nowt.org>
4399         * Makefile.am, intrinsics: Major rewrite.
4401 2002-09-02  Paul Brook <paul@nowt.org>
4403         * Makefile.am: Added -I$(srcdir) to m4 rule.
4405 2002-08-30  Paul Brook <paul@nowt.org>
4407         * io/*: Integrated libgforio.
4408         * Makefile.am, configure.in: Make compatable with GCC. Build code for
4409         intrinsics in the intrisics directory.
4410         * intrinsics/intrinsics.m4: Move here. Strip directories from the
4411         filename. Add 'and' and 'all' intrinsics.
4413 2002-08-17  Paul Brook <paul@nowt.org>
4415         * ALL: First release as more than just a single file