]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgfortran/ChangeLog
iresolve.c (gfc_resolve_all, [...]): Use PREFIX.
[thirdparty/gcc.git] / libgfortran / ChangeLog
1 2004-12-12 Richard Henderson <rth@redhat.com>
2
3 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
4 intrinsics/pack_generic.c, intrinsics/reshape_generic.c,
5 intrinsics/spread_generic.c, intrinsics/transpose_generic.c,
6 intrinsics/unpack_generic.c, m4/cshift1.m4, m4/dotprod.m4,
7 m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4,
8 m4/iforeach.m4, m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4,
9 m4/reshape.m4, m4/shape.m4, m4/transpose.m4: Use standard prefix
10 instead of "__".
11 * generated/*: Rebuild.
12
13 2004-12-12 Richard Henderson <rth@redhat.com>
14
15 * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New.
16 (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT): New.
17 (LIBGFOR_CHECK_ATTRIBUTE_ALIAS): New.
18 * configure.ac: Use them.
19 * configure, config.h.in, aclocal.m4: Rebuild.
20 * libgfortran.h (prefix): Remove.
21 (PREFIX, IPREFIX): New.
22 (sym_rename, sym_rename1, sym_rename2): New.
23 (internal_proto, export_proto, export_proto_np): New.
24 (iexport_proto, iexport): New.
25 (iexport_data_proto, iexport_data): New.
26 * intrinsics/abort.c, intrinsics/args.c, intrinsics/associated.c,
27 intrinsics/cpu_time.c, intrinsics/cshift0.c,
28 intrinsics/date_and_time.c, intrinsics/env.c, intrinsics/eoshift0.c,
29 intrinsics/eoshift2.c, intrinsics/etime.c, intrinsics/exit.c,
30 intrinsics/flush.c, intrinsics/fnum.c, intrinsics/getXid.c,
31 intrinsics/getcwd.c, intrinsics/ishftc.c, intrinsics/mvbits.c,
32 intrinsics/pack_generic.c, intrinsics/rand.c, intrinsics/random.c,
33 intrinsics/reshape_generic.c, intrinsics/size.c,
34 intrinsics/spread_generic.c, intrinsics/stat.c,
35 intrinsics/string_intrinsics.c, intrinsics/system.c,
36 intrinsics/system_clock.c, intrinsics/transpose_generic.c,
37 intrinsics/umask.c, intrinsics/unlink.c, intrinsics/unpack_generic.c,
38 io/backspace.c, io/close.c, io/endfile.c, io/inquire.c, io/io.h,
39 io/open.c, io/rewind.c, io/transfer.c, libgfortran.h, m4/cshift1.m4,
40 m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4,
41 m4/eoshift3.m4, m4/exponent.m4, m4/fraction.m4, m4/iforeach.m4,
42 m4/ifunction.m4, m4/matmul.m4, m4/matmull.m4, m4/nearest.m4,
43 m4/pow.m4, m4/reshape.m4, m4/set_exponent.m4, m4/shape.m4,
44 m4/transpose.m4, runtime/environ.c, runtime/error.c,
45 runtime/in_pack_generic.c, runtime/in_unpack_generic.c,
46 runtime/main.c, runtime/memory.c, runtime/pause.c, runtime/select.c,
47 runtime/stop.c: Use them to mark symbols internal or external.
48 * generated/*: Rebuild.
49
50 2004-12-09 David Edelsohn <edelsohn@gnu.org>
51
52 PR bootstrap/18895
53 Revert 2004-12-07 change.
54 * Makefile.am (AM_MAKEFLAGS): Delete.
55 * Makefile.in: Regenerate.
56
57 2004-12-07 Steve Ellcey <sje@cup.hp.com>
58
59 * libgfortran/Makefile.am (AM_MAKEFLAGS): New.
60 * libgfortran/Makefile.in: Regenerate
61
62 2004-12-07 Steve Ellcey <sje@cup.hp.com>
63
64 * io/io.h (open_external): Change prototype.
65 * io/unix.c (regular_file): Change prototype and set flags->action if
66 needed.
67 (open_external): Ditto.
68 * io/open.c (new_unit): Let open_external set flags->action.
69
70 2004-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
71
72 * configure.ac: Check for ieeefp.h. Check for fabsf in libm.
73 * configure: Regenerate.
74 * config.h.in: Likewise.
75 * c99_protos.h: New file.
76 * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h.
77 * intrinsics/c99_functions.c (fabsf): New function.
78
79 2004-12-06 Richard Henderson <rth@redhat.com>
80
81 * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
82 intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
83 intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
84 m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
85 of internal_malloc.
86 * generated/*: Rebuild.
87
88 2004-12-06 Richard Henderson <rth@redhat.com>
89
90 * intrinsics/c99_functions.c, intrinsics/eoshift0.c,
91 intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
92 intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
93 intrinsics/random.c, intrinsics/reshape_generic.c, intrinsics/size.c,
94 intrinsics/spread_generic.c, intrinsics/stat.c,
95 intrinsics/string_intrinsics.c, intrinsics/system_clock.c,
96 intrinsics/transpose_generic.c, intrinsics/unlink.c,
97 intrinsics/unpack_generic.c, io/backspace.c, io/format.c,
98 io/list_read.c, io/lock.c, io/open.c, io/transfer.c, io/unix.c,
99 io/write.c, runtime/environ.c, runtime/error.c,
100 runtime/in_pack_generic.c, runtime/in_unpack_generic.c, runtime/main.c,
101 runtime/memory.c, runtime/pause.c, runtime/stop.c,
102 runtime/string.c: Whitespace fixes.
103
104 2004-12-06 Richard Henderson <rth@redhat.com>
105
106 * Makefile.am: Generate all m4 output under $(srcdir).
107 * Makefile.in: Regenerate.
108
109 2004-12-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
110
111 PR fortran/18710
112 * io/transfer.c (unformatted_read, unformatted_write): width of
113 a COMPLEX is twice its kind.
114
115 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
116
117 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
118 * configure, aclocal.m4, Makefile.in: Regenerate.
119
120 2004-12-02 Bud Davis <bdavis9659@comcast.net>
121
122 PR libfortran/18284
123 * io/unix.c (fd_alloc_w_at): Update file_length when extending.
124 * io/backspace.c (formatted_backspace): Reset endfile after backspace.
125
126 2004-12-02 Bud Davis <bdavis9659@comcast.net>
127
128 * io/inquire.c (inquire_via_unit): do not allow a direct access
129 file to be opened for sequential I/O.
130
131 2004-12-02 Steven G. Kargl <kargls@comcast.net>
132 Paul Brook <paul@codesourcery.com>
133
134 * intrinsics/flush.c: New file.
135 * intrinsics/fnum.c: ditto
136 * intrinsics/stat.c: ditto
137 * io/io.h (unit_to_fd): Add prototype.
138 * io/unix.c (unit_to_fd): New function.
139 * configure.ac: Add test for members of struct stat. Check for
140 sys/types.h and sys/stat.h
141 * Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
142 * configure.in: Regenerate.
143 * config.h.in: Regenerate.
144 * Makefile.in: Regenerate.
145
146 2004-12-01 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
147
148 * Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.
149
150 2004-11-28 Bud Davis <bdavis9659@comcast.net>
151
152 * io/unix.c (mmap_alloc_w_a): check for a write to a location
153 less than the mapped area.
154
155 2004-11-27 Bud Davis <bdavis9659@comcast.net>
156
157 PR fortran/18364
158 * io/endfile.c (st_endfile): flush the stream before truncating.
159
160 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
161
162 * configure: Regenerate for libtool change.
163
164 2004-11-22 Steven Bosscher <stevenb@suse.de>
165
166 PR libfortran/15960
167 * configure.ac: Check for finite in libm.
168 * libgfortran.h: Define isfinite macro if not defined.
169 * intrinsics/c99_functions.c: Use defined(fpclassify) instead of
170 HAVE_FPCLASSIFY.
171 * io/write.c (write_float): Use isfinite instead of finite.
172 * configure, config.h.in: Rebuilt.
173
174 2004-11-20 Roger Sayle <roger@eyesopen.com>
175
176 * io/write.c (write_float, list_formatted_write): Fix indentation.
177
178 2004-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
179
180 PR target/16135
181 * acinclude.m4 (LIBGFOR_TARGET_ILP32): New check.
182 * configure.ac: Include LIBGFOR_TARGET_ILP32.
183 * configure: Regenerate.
184 * config.h.in: Likewise.
185 * libgfortran.h: Provide default definitions for C99 types
186 on ILP32 targets that don't have them.
187
188 PR target/17999
189 * configure.ac: Check for snprintf.
190 * configure: Regenerate.
191 * config.h.in: Likewise.
192 * intrinsics/date_and_time.c (date_and_time): Do not
193 use snprinf if it is not available.
194 * io/write.c (output_float): Likewise.
195
196 2004-11-20 Steven G. Kargl <kargls@comcast.net>
197
198 * Makefile.am: Add intrinsics/{umask.c,unlink.c,exit.c}
199 * Makefile.in: Regenerated
200 * intrinsics/umask.c: New file
201 * intrinsics/unlink.c: ditto
202 * intrinsics/exit.c: ditto
203
204 2004-11-18 Victor Leikehman <lei@il.ibm.com>
205
206 * m4/matmul.m4: Loops reordered to improve cache behavior.
207 * generated/matmul_??.c: Regenerated.
208
209 2004-11-10 Paul Brook <paul@codesourcery.com>
210
211 PR fortran/18218
212 * configure.ac: Check for strtof.
213 * configure: Regenerate.
214 * config.h.in: Regenerate.
215 * io/read.c (convert_real): Use strtof if available.
216 (convert_precision_real): Remove.
217 (read_f): Avoid poor exponentiation algorithm.
218
219 2004-11-05 Andreas Schwab <schwab@suse.de>
220
221 * configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
222 AC_PROG_F77, F77 and FFLAGS.
223 * Makefile.am (selected_int_kind.inc, selected_real_kind.inc): Use
224 FCCOMPILE instead of F77COMPILE.
225 * configure, Makefile.in: Regenerate.
226
227 2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
228
229 * acinclude.m4: Properly quote AC_CACHE_CHECK.
230 * Makefile.am: Add in ACLOCAL_AMFLAGS.
231 * aclocal.m4, configure, Makefile.in: Regenerate.
232
233 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
234
235 * config.h.in: Regenerate.
236 * configure: Regenerate.
237 * configure.ac (AC_CHECK_FUNCS): Add mkstemp.
238 * io/unix.c (S_IRGRP): Define if undefined.
239 (S_IWGRP): Same.
240 (S_IROTH): Same.
241 (S_IWOTH): Same.
242 (tempfile): Use mktemp if mkstemp missing, fix typos.
243
244 2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
245
246 * intrinsics/system.c ("libgfortran.h"): Move after system headers.
247
248 2004-10-30 Canqun Yang <canqun@nudt.edu.cn>
249
250 * intrinsics/rand.c (irand): Handle NULL argument.
251
252 2004-10-07 Paul Brook <paul@codesourcery.com>
253
254 * io/transfer.c (finalize_transfer): Free internal streams.
255 * io/unix.c (mem_close): Free stream object.
256
257 2004-10-07 Paul Brook <paul@codesourcery.com>
258
259 * intrinsics/string_intrinsics.c (string_verify): Fix off by one
260 error.
261
262 2004-10-06 Paul Brook <paul@codesourcery.com>
263
264 PR libfortran/17709
265 * io/transfer.c (data_transfer_init): Reset sf_seen_eor.
266
267 2004-10-04 Andrew Pinski <pinskia@physics.uc.edu>
268
269 * intrinsics/mvbits.c: Commit the file.
270
271 2004-10-04 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
272
273 PR fortran/17283
274 * intrinsics/pack_generic.c (__pack): Allocate memory for return array
275 if not done by caller.
276 (__pack_s): New function.
277 * runtime/memory.c (internal_malloc, internal_malloc64): Allow
278 allocating zero memory.
279
280 PR fortran/17631
281 * Makefile.am (gfor_helper_src): Add intrinsics/mvbits.h.
282 * Makefile.in: Regenerate.
283 * intrinsics/mvbits.h: New file.
284
285 PR fortran/17776
286 * intrinsics/system.c: New file.
287 * Makefile.am: Add dependency for the new file.
288 * Makefile.in: Regenerate.
289
290 2004-10-04 Paul Brook <paul@codesourcery.com>
291 Bud Davis <bdavis9659@comcast.net>
292
293 PR fortran/17706
294 PR fortran/16434
295 * io/format.c (parse_format_list): Set repeat count for S, SP, SS,
296 BN and BZ formats.
297 * io/write.c (output_float): Don't output minus zero.
298
299 2004-10-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
300
301 * intrinsics/abort.c ("libgfortran.h"): Move.
302 * intrinsics/date_and_time.c ("libgfortran.h"): Same.
303 * intrinsics/write.c ("libgfortran.h"): Same.
304
305 2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
306
307 PR libfortran/16137
308 * config.h.in (HAVE_POWF): Undefine.
309 * configure.ac: Check for 'powf' in library.
310 * configure: Regenerate.
311 * intrinsics/c99_functions.c (powf): New function.
312
313 2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
314
315 * intrinsics/etime.c (etime_): New function.
316
317 2004-09-21 Steven G. Kargl <kargls@comcast.net>
318
319 * libgfortran.h: define gfc_alloca()
320 * intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
321
322 2004-09-21 Bud Davis <bdavis9659@comcast.net>
323
324 PR fortran/17286
325 * io/list_read.c (namelist_read): ignore spaces after
326 the '=' for namelist reads.
327
328 2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
329
330 * config.h.in: Regenerate.
331 * configure: Regenerate.
332 * configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
333 * unix.c: Include stdio.h.
334 (HAVE_SYS_MMAN_H): Check.
335 (PROT_READ, PROT_WRITE): Provide default definitions.
336
337 2004-09-15 Steven G. Kargl <kargls@comcast.net>
338
339 * intrincics/getcwd.c: New file.
340 * Makefile.am: Add getcwd.c.
341 * Makefile.in: Regenerated.
342
343 2004-09-15 Steven G. Kargl <kargls@comcast.net>
344 Paul Brook <paul@codesourcery.com>
345
346 * intrinsics/env.c (getenv, get_environmental_variable): Remove
347 trailing white space. Use alloca. Honour trim_name.
348
349 2004-09-13 Bud Davis <bdavis9659@comcast.net>
350
351 PR fortran/17090
352
353 * io/list_read.c (list_formatted_read): Handle trailing spaces
354 at end of line.
355
356 2004-09-06 Steven G. Kargl <kargls@comcast.net>
357
358 * io/write.c (output_float): Typo in comment. Remove debugging
359 printf. Fix format for FP of form 1e10.
360
361 2004-09-03 Richard Henderson <rth@redhat.com>
362
363 * intrinsics/cshift0.c (DEF_COPY_LOOP, copy_loop_int, copy_loop_long,
364 copy_loop_double, copy_loop_ldouble): New.
365 (__cshift0): Make shift type ssize_t. Use % operator instead of
366 div. Use specialized versions of copy loop depending on the shape.
367
368 2004-09-02 Paul Brook <paul@codesourcery.com>
369
370 * io/format.c (parse_format_list): Set repeat count for P descriptors.
371 * write.c (output_float): Fix condition. Correctly handle nonzero
372 scale factor.
373
374 2004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
375
376 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
377 * mk-srk-inc.sh: Likewise.
378
379 2004-09-01 Paul Brook <paul@codesourcery.com>
380
381 * runtime/error.c (generate_error): Set both iostat and
382 library_return.
383
384 2004-08-31 Paul Brook <paul@codesourcery.com>
385
386 PR libfortran/16805
387 * io/list_read.c (next_char): Don't signal EOF for internal files.
388 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
389
390 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
391
392 * io/unit.c: Separate copyright years by ','.
393 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
394 Remove blank line in beginning of function.
395 (get_unit): Simplify code.
396
397 2004-08-31 Paul Brook <paul@codesourcery.com>
398
399 * io/unit.c (get_unit): Remove superfluous if.
400
401 2004-08-31 Paul Brook <paul@codesourcery.com>
402
403 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
404 (finalize_transfer): Move setjmp after namlist IO.
405 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
406
407 2004-08-31 Paul Brook <paul@codesourcery.com>
408
409 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
410
411 2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
412
413 * libgfortran.h: Replace 'gfc_strlen_type' by
414 'gfc_charlen_type'. Update comment accordingly.
415 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
416 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
417
418 2004-08-31 Paul Brook <paul@codesourcery.com>
419
420 * libgfortran.h: Add comments.
421
422 2004-08-30 Richard Henderson <rth@redhat.com>
423
424 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
425 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
426 (selected_int_kind.inc selected_real_kind.inc): New rules.
427 * Makefile.in: Regenerate.
428 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
429 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
430 include table of detected kinds.
431 * intrinsics/selected_real_kind.f90: Similarly.
432
433 2004-08-29 Steven G. Kargl <kargls@comcast.net>
434 Paul Brook <paul@codesourcery.com>
435
436 * intrinsics/bessel.c: New file.
437 * intrinsics/erf.c: New file.
438 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
439 * configure.ac: Test for C99 Bessel and Error functions.
440 * Makefile.in: Regenerate.
441 * config.h.in: Regenerate.
442 * configure: Regenerate.
443
444 2004-08-29 Steven G. Kargl <kargls@comcast.net>
445 Paul Brook <paul@codesourcery.com>
446
447 * Makefile.am: Add intrinsics/getXid.c.
448 * configure.ac: Add tests for get{g,p,u}id.
449 * config.h.in: Regenerate.
450 * Makefile.in: Regenerate.
451 * configure: Regenerate.
452
453 2004-08-28 Paul Brook <paul@codesourcery.com>
454
455 PR libfortran/17195
456 * libgfortran.h (rtoa): Remove prototype.
457 * runtime/error.c (rtoa): Remove.
458 * io/write.c (calculate_G_format): Don't add blanks if E format is
459 used. Add correct number of blanks when exponent width is specified.
460 (output_float): Rewrite.
461
462 2004-08-27 Paul Brook <paul@codesourcery.com>
463
464 * io/rewind.c (st_rewind): Reset unit to read mode.
465
466 2004-08-27 Bud Davis <bdavis9659@comcast.net>
467
468 PR fortran/16597
469 * io/io.h: created typedef for unit_mode.
470 * io/io.h (gfc_unit): added mode to unit structure.
471 * io/transfer.c (data_transfer_init): flush if a write then
472 read is done on a unit (direct access files).
473 * io/rewind.c (st_rewind): Used unit mode instead of global.
474
475 2004-08-24 Bud Davis <bdavis9659@comcast.net>
476
477 PR fortran/17143
478 * runtime/error.c (itoa): keep from overflowing during
479 mod operation by using unsigned variable.
480
481 2004-08-24 Bud Davis <bdavis9659@comcast.net>
482
483 PR fortran/17164
484 * runtime/string_intrinsics.c (string_index):check for
485 substring longer than string.
486
487 2004-08-24 David Edelsohn <edelsohn@gnu.org>
488
489 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
490 * Makefile.in: Rebuilt.
491
492 2004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
493
494 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
495 Fix formatting issues, update copyright years.
496
497 2004-08-21 Bud Davis <bdavis9659@comcast.net>
498
499 PR 16908
500 * io/transfer.c (next_record_w): Do not blank pad.
501 * io/transfer.c (next_record): Take into account partial records.
502
503 2004-08-18 Victor Leikehman <lei@il.ibm.com>
504
505 PR fortran/13278
506 * io/transfer.c (st_set_nml_var)
507 * io/write.c (namelist_write): Allow var_name and var_name_len to be
508 null. For strings, use string_length field instead of len.
509 * io/io.h (struct namelist_type): New field string_length.
510 (st_set_nml_var_char): New argument string_length.
511
512 2004-08-13 Bud Davis <bdavis9659@comcast.net>
513
514 PR gfortran/16935
515 * io/open.c (st_open): use flags instead of the unit structure.
516
517 2004-08-10 Victor Leikehman <lei@il.ibm.com>
518
519 * io/list_read.c (namelist_read): Convert variable names
520 to lower case, so that mixed-case names are recognized.
521 Don't read beyond terminating slash.
522
523 2004-08-09 Richard Henderson <rth@redhat.com>
524 Roger Sayle <roger@eyesopen.com>
525
526 * intrinsics/c99_functions.c (nextafterf): New implementation that
527 works correctly with denormalized numbers.
528
529 2004-08-09 Victor Leikehman <lei@il.ibm.com>
530
531 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
532 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
533 Allocate space if return value has NULL in its data field.
534 * generated/*.c: Regenerate.
535
536 2004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
537
538 * intrinsics/env.c: New file.
539 * Makefile.am: Add env.c to build.
540 * Makefile.in: Regenerate.
541
542 2004-08-05 Victor Leikehman <lei@il.ibm.com>
543
544 PR libgfortran/16704
545 * io/read.c (read_radix): Understand letters f and F as hex digits.
546
547 2004-08-04 Victor Leikehman <lei@il.ibm.com>
548
549 * libgfortran.h (array_t, size0) New declarations.
550 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
551 space if return value descriptor has NULL in its data field,
552 and initialize bounds and stride.
553 * intrinsics/size.c (array_t, size0): Declarations moved to
554 libgfortran.h.
555 * generated/*.c: Regenerate.
556
557 2004-08-03 Roger Sayle <roger@eyesopen.com>
558
559 PR libgfortran/16137
560 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
561 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
562 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
563 * config.h.in: Regenerate.
564 * configure: Regenerate.
565
566 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
567 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
568 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
569 implementations for targets that don't support C99 float functions.
570
571 2004-08-01 Roger Sayle <roger@eyesopen.com>
572
573 * io/write.c (write_float): Use the slightly more portable isnan
574 in preference to isinf.
575
576 2004-07-18 Bud Davis <bdavis9659@comcast.net>
577
578 * configure.ac: Add check for LFS support.
579 * configure: Regenerate
580
581 2004-07-11 Paul Brook <paul@codesourcery.com>
582
583 PR fortran/16303
584 * m4/cexp.m4 (carg): Return -pi to pi.
585 * generated/exp_c?.c: Regenerate.
586
587 2004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
588
589 PR fortran/16291
590 * libgfortran/io/write.c: (write_float): Added length check.
591 Remove pointless memset calls.
592
593 2004-07-04 Bud Davis <bdavis9659@comcast.net>
594 Paul Brook <paul@codesourcery.com>
595
596 PR fortran/15472
597 * io/transfer.c(us_write): set recl for seq unform writes to max size.
598 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
599 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
600 right time.
601 * io/unix.c(is_seekable): set based upon the file/device, not the
602 method being used to access it (fd or mmap).
603 * io/unix.c(fd_flush): don't set file_size if !seekable.
604 * io/unix.c(fd_truncate: ditto.
605
606 2004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
607 Paul Brook <paul@codesourcery.com>
608
609 PR fortran/15280
610 PR fortran/15665
611 * libgfortran.h (gfc_strlen_type): Define.
612 * intrinsics/args.c (getarg): Rename ...
613 (getarg_i4): ... to this.
614 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
615 get_command_i4, get_command_i8): New functions.
616
617 2004-07-04 Matthias Klose <doko@debian.org>
618
619 * libtool-version: New.
620 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
621 * Makefile.in: Regenerate.
622 * configure.ac: Remove libtool_VERSION macro
623 * configure: Regenerate
624
625 2004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
626 Steven Bosscher <stevenb@suse.de>
627
628 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
629 commit in prefix.
630
631 2004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
632 Paul Brook <paul@codesourcery.com>
633
634 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
635 comments.
636 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
637
638 2004-06-27 Bud Davis <bdavis9659@comcast.net>
639
640 PR gfortran/12839
641 * io/write.c (write_float): check signbit for Infinity.
642
643 2004-06-26 Bud Davis <bdavis9659@comcast.net>
644
645 PR gfortran/16196
646 * unix.c(regular_file): create file if it does not exist.
647
648 2004-06-24 Andrew Pinski <apinski@apple.com>
649
650 * configure.ac: Remove check for libmx.
651 * configure: Regenerate.
652
653 2004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
654
655 PR fortran/15750
656 * inquire.c (st_inquire): Add comment
657 * io.h (st_parameter): Add iolength.
658 (st_iolength, st_iolength_done): Declare.
659 * transfer.c (iolength_transfer, iolength_transfer_init,
660 st_iolength, st_iolength_done): New functions.
661
662 2004-06-21 Steven G. Kargl <kargls@comcast.net>
663
664 * etime.c (etime_sub): Remove array rank check;
665 Add check for sufficient space.
666
667 2004-06-19 Bud Davis <bdavis9659@comcast.net>
668
669 PR gfortran/16080
670 * io/list_read.c(set_value): fixed spelling.
671
672 2004-06-19 Bud Davis <bdavis9659@comcast.net>
673
674 PR gfortran/16080
675 * io/list_read.c(set_value): don't copy if the string is null.
676
677 2004-06-14 Bud Davis <bdavis9659@comcast.net>
678
679 PR gfortran/15292
680 * intrinsics/c99_functions.c: Use fpclassify if it exists.
681
682 2004-06-13 Paul Brook <paul@codesourcery.com>
683
684 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
685 * configure.ac: Add checks for nextafter and nextafterf.
686 * Makefile.in, config.h.in, configure: Regenerate.
687 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
688 * intrinsics/rand.c (rand): Use normalize_r4_i4.
689 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
690 (random_r8): Use normalize_r8_i8.
691 * runtime/normalize.c: New file.
692
693 2004-06-13 Steven G. Kargl <kargls@comcast.net>
694 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
695
696 * random.c: Fix several spelling and formatting mistakes in
697 comments.
698 (random_r8): Fix loop to make random numbers range in [0,1(.
699
700
701 2004-06-13 Steven G. Kargl <kargls@comcast.net>
702
703 * random.c (random_r4): Burn a random number.
704 (random_r8): fix infinite loop.
705
706 2004-06-12 Bud Davis <bdavis9659@comcast.net>
707 Steve Kargl <sgk@troutmask.apl.washington.edu>
708
709 PR gfortran/15292
710 * intrinsics/c99_functions.c: New file.
711 * Makefile.am: Add new file.
712 * configure.ac: Added test for round/roundf.
713 * Makefile.in: Regenerate.
714 * configure: Regenerate.
715 * configure.h.in: Regenerate.
716
717 2004-06-12 Steven G. Kargl <kargls@comcast.net>
718
719 * Makefile.am: Add rand.c and etime.c
720 * Makefile.in: Regenerated.
721 * aclocal.in: Regenerated.
722 * cpu_time.c (second_sub, second): New functions.
723 * rand.c (irand, rand, srand): New file.
724 * etime.c (etime_sub, etime): New file.
725
726 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
727 Steven Bosscher <stevenb@suse.de>
728
729 PR fortran/14923
730 * intrinsics/date_and_time.c: New file.
731 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
732 * Makefile.in, aclocal.m4: Regenerate.
733 * libgfortran.h: Prototype date_and_time().
734
735 2004-06-12 Bud Davis <bdavis9659@comcast.net>
736
737 PR fortran/15665
738 * intrinsics/args.c: Implement GETARG and IARGC.
739 * Makefile.am: Add it.
740 * Makefile.in: Regenerate.
741
742 2004-06-12 Bud Davis <bdavis9659@comcast.net>
743
744 PR gfortran/12839
745 * io/write.c(write_float): Format inf and nan IAW F2003.
746
747 2004-06-09 Bud Davis <bdavis9659@comcaste.net>
748
749 PR gfortran/14897
750 * io/transfer.c (formatted_transfer): position is unique
751 for T and TL edit descriptors.
752 (data_transfer_init): set record length to size of internal
753 file.
754
755 2004-06-09 Bud Davis <bdavis9659@comcast.net>
756
757 PR gfortran/15755
758 * io/backspace.c(st_backspace): call correct routine for
759 formatted and un-formatted units.
760
761 2004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
762
763 PR gfortran/11800
764 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
765 (lib_LTLIBRARIES): Rename to ...
766 (toolexeclib_LTLIBRARIES): this for multilib support.
767 * configure.in: Rename to ...
768 * configure.ac: this. Update to modern autoconf style, enable
769 multilibs, support --enable-version-specific-runtime-libs.
770 * Makefile.in: Regenerated.
771 * configure: Regenerated.
772 * aclocal.m4: Regenerated.
773
774 2004-05-30 Steven G. Kargl <kargls@comcast.net>
775
776 * libgfortran.h (random_seed): Update prototype.
777 * intrinsics/random.c: Disable old implementation and add new one.
778
779 2004-05-30 Andreas Jaeger <aj@suse.de>
780
781 * intrinsics/random.c: Include unistd.h for close and read
782 prototypes, remove unneeded inclusion of assert.h.
783
784 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
785 unneeded inclusion of assert.h.
786
787 2004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
788
789 PR fortran/15234
790 * intrinsics/associated.c: Remove enum.
791 (associated): Replace TRUE/FALSE by 1/0.
792
793 2004-05-23 Steven G. Kargl <kargls@comcast.net>
794
795 * random.c (random_seed): Use correct variable.
796
797 2004-05-22 Steven G. Kargl <kargls@comcast.net>
798
799 * intrinsics/system_clock: New file.
800 * Makefile.am: Add intrinsics/system_clock.c.
801 * Makefile.in: Regenerate.
802
803 2004-05-21 Roger Sayle <roger@eyesopen.com>
804
805 * io/format.c (parse_format_list): Allow the comma after a string
806 literal to be optional.
807
808 2004-05-18 Paul Brook <paul@codesourcery.com>
809 Feng Wang <fengwang@nudt.edu.cn>
810
811 * Makefile.am (i_pow_c): Set it. Add build rule.
812 (gfor_built_src): Use it.
813 (m4_files): add m4/pow.m4.
814 * Makefile.in: Regenerate.
815 * m4/pow.m4: New file.
816 * generated/pow_*.c: Regenerate.
817
818 2004-05-18 Paul Brook <paul@codesourcery.com>
819
820 * Makefile.am: Remove references to types.m4.
821 * m4/iparm.m4: Merge with types.m4.
822 * m4/types.m4: Remove.
823 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
824 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
825 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
826 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
827 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
828 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
829 Update to use new iparm.m4.
830 * generated/*.c: Regenerate.
831
832 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
833
834 PR fortran/15235
835 * gfortran.h (offset_t): Rename to ...
836 (gfc_offset): ... this.
837 * io/backspace.c (formatted_backspace, unformatted_backspace),
838 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
839 transfer.c (us_read, us_write, next_record_r, next_record_w),
840 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
841 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
842 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
843 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
844 occurences of offset_t by gfc_offset.
845
846 2004-05-16 Paul Brook <paul@codesourcery.com>
847
848 * io/format.c (write_real): Don't include padding in format.
849
850 2004-05-16 Paul Brook <paul@codesourcery.com>
851
852 * io/format.c (format_lex): Make c an int.
853
854 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
855 Paul Brook <paul@codesourcery.com>
856
857 * io/write.c (write_logical): Don't print extra blank.
858 (write_integer): Base field width on kind.
859 (list_formatted_write): Output initial blank.
860
861 2004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
862
863 * io/io.h (flush): Add prototype.
864 * io/transfer.c (finalize_transfer): Flush partial records.
865 * io/unix.c (flush): New function.
866
867 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
868
869 PR fortran/15234
870 * io/io.h (unit_t): Rename to ...
871 (gfc_unit) ... this.
872 (unit_root, current_unit, find_file, find_unit, get_unit): Now
873 of type gfc_unit.
874 (delete_file, insert_unit, close_unit): Argument now of type
875 gfc_unit.
876 * backspace.c (st_backspace), close.c (st_close), endfile.c
877 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
878 (test_endfile, edit_modes, new_unit, already_open, st_open),
879 rewind.c (st_rewind), transfer.c (current_unit), unit.c
880 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
881 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
882 get_unit, init_units, close_unit), unix.c (find_file0,
883 find_file, delete_file): Replace all occurences of unit_t by
884 gfc_unit.
885
886 2004-05-15 Bud Davis <bdavis9659@comcast.net>
887
888 PR fortran/15311
889 * io/write.c (write_a): right justify A edit output.
890
891 2004-05-14 Bud Davis <bdavis9659@comcast.net>
892
893 PR fortran/15149
894 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
895 * runtime/main.c(init): Call random_seed as part of MAIN init.
896
897 2004-05-13 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
898
899 * io/format.c: (parse_format_list): No comma is required after
900 P descriptor.
901
902 2004-05-13 Bud Davis <bdavis9659@comcast.net>
903
904 PR fortran/15204
905 * io/intrinsic/string_intrinsics.c (adjustr): rework logic.
906
907 2004-05-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
908 Steven Bosscher <stevenb@suse.de>
909
910 PR libfortran/15234
911 * libgfortran.h: Include <inttypes.h> if available.
912
913 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
914
915 * io/unix.c (MAP_FAILED): Define if missing.
916 (mmap_alloc): Cast MAP_FAILED to char *.
917 (mmap_open): Likewise.
918
919 2004-04-26 Bud Davis <bdavis9659@comcast.net>
920
921 * generated/_abs_i8.f90: New file.
922 * generated/_abs_c4.f90: New file.
923 * generated/_abs_c8.f90: New file.
924 * Makefile.am: Add them.
925 * Makefile.in: Regenerate.
926 `
927 2004-04-26 Bud Davis <bdavis9659@comcast.net>
928
929 PR fortran/14056
930 * generated/_abs_i4.f90: New file.
931 * Makefile.am: Add it.
932 * Makefile.in: Regenerate.
933
934 2004-04-25 Bud Davis <bdavis9659@comcast.net>
935
936 PR fortran/14942
937 * io/list_read.c(list_formatted_read): finish consuming the
938 spaces and seperators at eoln to get ready for next item.
939
940 2004-04-23 Bud Davis <bdavis9659@comcast.net>
941
942 PR fortran/15113
943 * io/read.c(read_a): Handle field width > destination and no field width.
944
945 2004-04-22 Bud Davis <bdavis9659@comcast.net>
946
947 PR fortran/14906
948 * io/format.c (format_item): gracefully handle a ')'
949 when it is the first character encountered in the string.
950
951 2004-04-11 Bud Davis <bdavis9659@comcast.net>
952
953 PR fortran/14904
954 * io/transfer.c (next_record): Update last_record when
955 more than one record is written to a direct access file
956 with one write statement.
957
958 2004-04-11 Bud Davis <bdavis9659@comcast.net>
959
960 PR fortran/14901
961 * io/transfer.c (next_record_w) : No '\n' if internal.
962 * io/unix.c (empty_internal_buffer) : Init to spaces, not '\n'.
963
964 2004-04-11 Bud Davis <bdavis9659@comcast.net>
965
966 * io.h (ioparm): Interface from FE is 32 bit, irregardless of offset_t.
967 Will need to change this later to support direct access files > 2gb.
968
969 2004-04-03 Bud Davis <bdavis9659@comcast.net>
970
971 PR gfortran/14762
972 * io/transfer.c (next_record_r) : Skip to next record.
973
974 2004-04-03 Bud Davis <bdavis9659@comcast.net>
975
976 PR gfortran/14836
977 * io/transfer.c (next_record): Update last_record for DIRECT
978
979 2004-04-03 Bud Davis <bdavis9659@comcast.net>
980
981 PR gfortran/14837
982 * io/unix.c (find_file0): Use fd field of struct
983
984 2004-04-03 Bud Davis <bdavis9659@comcast.net>
985
986 PR 14831
987 * io/inquire.c (inquire_via_unit): Changed return string for
988 BLANK=NULL. Use correct variable for ACTION.
989
990 2004-04-01 Bud Davis <bdavis9659@comcast.net>
991
992 PR 14746
993 * io/read.c (read_f): Allow a decimal without a leading digit.
994 * io/write.c (output_float): remove a leading '0' to keep from
995 overflowing the field (F edit descriptor).
996
997 2004-04-01 Bud Davis <bdavis9659@comcast.net>
998
999 PR gfortran/14565
1000 * io/open.c (new_unit),
1001 * io/io.h : new_unit is now visible
1002 * io/transfer.c (data_transfer_init): open unit if no OPEN statement.
1003 * io/transfer.c (data_transfer_init): remove compile warnings.
1004 * io/rewind.c (st_rewind): ftruncate if writing.
1005
1006 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1007
1008 * write.c (write_l): Use extract_int for 'L' edit descriptor.
1009
1010 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1011
1012 PR 13919
1013 * io/io.h (global_t):
1014 * io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
1015 Move eof_jmp to a global structure.
1016 * io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
1017
1018 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1019
1020 * m4/cexp.m4 (csqrt): Actually use the passed value.
1021 * generated/exp_c?.c: Regenerate.
1022
1023 2004-03-24 Bud Davis <bdavis9659@comcast.net>
1024
1025 PR 12921
1026 * io.h, transfer.c, open.c : recl_in changed from ptr to variable.
1027 * open.c (new_unit): Moved test for positioned direct access error.
1028 (init_units): Corrected calculation of max records.
1029
1030 2004-02-06 Feng Wang <fengwang@nudt.edu.cn>
1031
1032 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.
1033 * Makefile.in: Regenerate.
1034 * m4/dotprodc.m4: New file. Implement complex dot_product.
1035 * m4/dotprod.m4: Delete the complex implementation.
1036 * generated/dotprod_*: Update.
1037
1038 2004-02-07 Bud Davis <bdavis9659@comcast.net>
1039
1040 * transfer.c (write_constant_string): Do not delete H's in hollerith
1041 formats.
1042
1043 2004-01-05 Andrew Pinski <apinski@apple.com>
1044
1045 * configure.in: Check for csin in -lmx also.
1046 * configure: Regenerate.
1047
1048 2004-01-01 Paul Brook <paul@codesourcery.com>
1049
1050 * io/list_read.c (find_nml_node): Make static.
1051 (match_namelist_name): Ditto.
1052 * io/read.c (convert_precision_real): Make static, fix spelling.
1053 * io/transfer.c (extract_real): Remove unused prototype.
1054 (st_set_nml_var): Make static.
1055 * io/write.c (extract_real): Make static.
1056
1057 2003-12-12 Huang Chun <chunhuang73@hotmal.com>
1058
1059 * intrinsics/string_intrinsics.c (string_index): Fix logics thinko.
1060
1061 2003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>
1062
1063 * io/transfer.c (data_transfer_init): Give a runtime error for list
1064 formatted reads and writes from/to files opened for unformatted IO.
1065
1066 2003-11-30 Paul Brook <paul@nowt.org>
1067
1068 * runtime/memory.c (push_context): Remove.
1069 (pop_context): Remove.
1070 * libgfortran.h: Remove prototypes.
1071
1072 2003-11-27 Paul Brook <paul@nowt.org>
1073
1074 * runtime/memory.c (deallocate): Nullify pointer after freeing.
1075
1076 2003-11-27 Paul Brook <paul@nowt.org>
1077
1078 * intrinsics/string_intrinsics.c: Use new memory allocation interface.
1079 * libgfortran.h: Ditto.
1080 * m4/in_pack.m4: Ditto.
1081 * runtime/in_pack_generic.c: Ditto.
1082 * runtime/memory.c: Ditto.
1083
1084 2003-11-26 Richard Henderson <rth@redhat.com>
1085
1086 * m4/exponent.m4, m4/fraction.m4: New.
1087 * m4/nearest.m4, m4/set_exponent.m4: New.
1088 * generated/*: Update.
1089 * Makefile.am: Add them.
1090 (AM_CFLAGS): New. Use -std=gnu99.
1091 * Makefile.in: Regenerate.
1092
1093 2003-11-08 Paul Brook <paul@nowt.org>
1094
1095 PR fortran/12704
1096 * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays.
1097 * m4/maxloc1.m4: Ditto.
1098 * m4/minloc0.m4: Ditto.
1099 * m4/minloc1.m4: Ditto.
1100 * m4/ifunction.m4: Set return value for zero sized arrays.
1101 * m4/iforeach.m4: Ditto.
1102 * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4,
1103 m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto.
1104 * generated/*: Update.
1105
1106 2003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>
1107
1108 PR fortran/12702
1109 * io/list_read.c (eat_spaces): Treat tab as space.
1110
1111 2003-10-30 Lars Segerlund <Lars.Segerlund@comsys.se>
1112
1113 * intrinsics/random.c: Add reference to paper containing algorithm.
1114 (random_seed): Extra error checking and proper handling of arrays.
1115 (arandom_r4, arandom_r8): Implement.
1116
1117 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1118
1119 PR fortran/12703
1120 * runtime/memory.c (allocate_size): Allow allocation
1121 of zero-sized objects.
1122
1123 2003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>
1124
1125 PR fortran/12701
1126 * open.c (new_unit): Open without a file name opens
1127 a file with name fort.<unit>.
1128
1129 2003-10-12 Feng Wang <wf_cs@yahoo.com>
1130
1131 * intrinsics/cshift0.c: New file.
1132 * m4/cshift1.m4: New file
1133 * generated/cshift*.c: New files.
1134 * Makefile.am: Add them.
1135 * Makefile.in: Regenerate.
1136
1137 2003-10-12 XiaoQiang Zhang <zhangapache@yahoo.com>
1138
1139 * io/list_read.c (read_character): Remove unwanted call to free_saved.
1140
1141 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1142
1143 * intrinsics/string_intrinsics.c (string_trim): New function.
1144 (string_repeat): New function.
1145
1146 2003-10-11 Paul Brook <paul@nowt.org>
1147
1148 * intrinsics/dprod_r8.f90: New file.
1149 * Makefile.am (gfor_specific_src): Add it.
1150 (gfor_built_specific_src): Rename from gfor_build_specific_c.
1151 Add new intrinsics.
1152 (gfor_specific2_src): Rename from gfor_built_specific2_c.
1153 Add new intrinsics.
1154 * Makefile.in: Regenerate.
1155 * generated/_aint_*.f90: New files.
1156 * generated/_anint*.f90: New files.
1157 * generated/_atan2*.f90: New files.
1158 * generated/_mod*.f90: New files.
1159
1160 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1161
1162 * intrinsics/selected_kind.f90: New file.
1163 * Makefile.am: Add it.
1164 * Makefile.in: regenerate.
1165
1166 2003-09-19 Lars Segerlund <Lars.Segerlund@comsys.se>
1167 Paul Brook <paul@nowt.org>
1168
1169 * intrinsics/random.c: New file.
1170 * Makefile.am (gfor_hemper_src): Add it.
1171 (gfor_specific_c): Fix typo.
1172
1173 2003-09-19 Paul Brook <paul@nowt.org>
1174
1175 * All: rename g95->gfc.
1176
1177 2003-09-18 XiaoQiang Zhang <zhangapache@yahoo.com>
1178
1179 * io/write.c (output_float): Fix bug of FMT_E, Add comments.
1180
1181 2003-09-09 XiaoQiang Zhang <zhangapache@yahoo.com>
1182
1183 * io/write.c (write_float): Dectection of positive infinite number,
1184 Not a Number(NaN) and negative infinite number.
1185 (ioutput_float): Bug fix for FMT_E and FMT_D processing to
1186 output a very_very small number ( < 0.1e-100 ).
1187
1188 2003-09-07 XiaoQiang Zhang <zhangapache@yahoo.com>
1189
1190 * libgfortran.h (xtoa, itoa): Parameter modified.
1191 * io/io.h (namelist_info): Declaration to support namelist I/O
1192 (st_parameter): Add namelist related component
1193 (ionml, empty_internal_buffer, st_set_nml_var_int,
1194 st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex,
1195 st_set_nml_var_log): Declaration
1196 (set_integer, set_integer): Parameter changed
1197 * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated"
1198 fnodes
1199 (parse_format_list): Fix bug about FMT_SLASH
1200 * io/list_read.c (push_char): Totally clear old saved_string, zeroize
1201 newly allocated saved_string
1202 (next_char): Add detection of End_Of_Line support
1203 (convert_integer): Now can process 64 bits interger
1204 (read_real): Bug fixed
1205 (init_at_eol, find_nml_node, match_namelist_name): Add new functions
1206 (match_namelist_name): New implemention
1207 * io/lock.c (ionml): New global variable
1208 (library_end): Free memory in ionml
1209 * io/open.c (st_open): Variable initializtion
1210 * io/read.c (max_value): 64 bits interger support
1211 (convert_precsion_real): New procedure to replace "strtod" with more
1212 features
1213 (read_f, read_radix): Input bug fix
1214 * io/transfer.c: (sf_seen_eor): New static variable
1215 (read_sf): Zeroize base buffer; fix bugs: single read statement can
1216 not get input in mutli line when read from stdin
1217 (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type
1218 request
1219 (data_transfer_init): Clear internal buffer for Internel File I/O.
1220 Internal File now worked. Detect some error condition for namelist.
1221 Some minor bug fix
1222 (next_record_w): Internal file and Namelist I/O support.
1223 (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char,
1224 st_set_nml_var_complex, st_set_nml_var_log): Implemention.
1225 * io/unit.c (implicit_unit): Deletion
1226 (get_unit): Now cannot open a unit implicitly.
1227 * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of
1228 mapped buffer.
1229 (mem_alloc_r_at): Internal file I/O support added
1230 (empty_internal_buffer): New function
1231 * io/write.c (extract_int): Support 64 bits interger processing
1232 (output_float): Varibale initialization
1233 (write_float): Infinite real number detection.
1234 (write_int): 64 bits integer I/O support
1235 (write_decimal): New function to output decimal number
1236 (otoa, btoa): Better implemention and 64 bits interger support
1237 (namelist_write): New function
1238 * runtime/error.c (itoa, xtoa): Better implemention and 64 bits
1239 interger support
1240
1241 2003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1242
1243 * libgfortran.h (os_error, runtime_error,internal_error, sys_exit,
1244 get_mem ): Add attribute.
1245 * intrinsics/spread_generic.c (__spread): Fix spelling.
1246 * io/inquire.c (inquire_via_filename): Add const.
1247 * io/io.h (sys_exit): Add attribute.
1248 * io/io.h (move_pos_offset): Add move_pos_offset.
1249 * io/io.h (compare_file_filename, inquire_sequential, inquire_direct,
1250 inquire_formatted, inquire_unformatted, inquire_read, inquire_write,
1251 inquire_readwrite, convert_real, write_a, write_b, write_d, write_e,
1252 write_en, write_es, write_f, write_i, write_l, write_o, write_x,
1253 write_z): Add const.
1254 * io/read.c (convert_real): Add const.
1255 * io/transfer.c (type_name): Add const.
1256 * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential,
1257 inquire_direct, inquire_formatted, inquire_unformatted, inquire_access,
1258 inquire_read, inquire_write, inquire_readwrite): Add const.
1259 * io/write.c (output_float): Remove unused variable.
1260 * io/write.c (write_a, extract_int, extract_real, output_float,
1261 write_float, write_int, write_i, write_b, write_o, write_z, write_d,
1262 write_e, write_f, write_en, write_es, write_logical, write_integer,
1263 write_character, write_real, write_complex): Add const.
1264 * runtime/error.c (rtoa): Remove unused variable.
1265 * runtime/select.c (select_string): Add const.
1266 * runtime/stop.c (stop_string): Add const.
1267
1268 2003-08-10 Paul Brook <paul@nowt.org>
1269
1270 * Makefile.am (gfor_helper_src): Add intrinsics/abort.c.
1271 (FFLAGS): Add -fno-underscoring.
1272 * Makefile.in: Regenerate.
1273 * intrinsics/abort.c: New file.
1274
1275 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1276
1277 * fmain.c (main): Do not call init and cleanup; call set_args instead.
1278 * libgfortran.h (init, cleanup): Remove declarations.
1279 (set_args): Add declaration.
1280 * runtime/main.c (init, cleanup): Make them static, and give them
1281 the constructor and destructor attributes.
1282 (set_args): New function.
1283
1284 2003-08-10 Paul Brook <paul@nowt.org>
1285
1286 * intrinsics/strinf_intrinsics.c (compare_string): Return value based
1287 on which string is longest.
1288
1289 2003-08-10 Paul Brook <paul@nowt.org>
1290
1291 * Makefile.am (EXTRA_DIST): Remove old files.
1292 * Makefile.in: Regenerate.
1293
1294 2003-07-26 Paul Brook <paul@nowt.org>
1295
1296 Rename library to libgfortran.
1297 * libgfortran.h: Change prefix to _libgfortran_.
1298
1299 2003-07-24 Paul Brook <paul@nowt.org>
1300
1301 * configure.in: Don't pull in system libtool. Use toplevel
1302 auxiliary files.
1303
1304 2003-07-22 Paul Brook <paul@nowt.org>
1305
1306 Regenerate all configury files.
1307
1308 2003-07-09 Chun Huang <compiler@sohu.com>
1309
1310 * intrinsics/string_intrinsic.c (string_scan): New function.
1311 (string_verify): New function.
1312
1313 2003-06-25 Paul Brook <paul@nowt.org>
1314
1315 * io/unix.c (mem_alloc_r_at, mem_alloc_w_at): Advance logical_offset.
1316 (mem_seek): Don't bother setting physical_offset.
1317
1318 2003-06-20 Paul Brook <paul@nowt.org>
1319
1320 * libgfor.h (stop_numeric): Declare.
1321 * runtime/pause.c: New file.
1322 * Makefile.am: Add it.
1323
1324 2003-06-08 Paul Brook <paul@nowt.org>
1325
1326 * m4/cexp.m4 (cabs): Use correct typed version.
1327 (csqrt): New function.
1328
1329 2003-06-07 Canqun Yang <canqun@yahoo.com.cn>
1330
1331 Spotted by Benjamin and Tobias:
1332 * io/list_read.c: Add Separator '\t'.
1333 (parse_real, read_real): Accept real values starting with an optional
1334 sign follows a decimal point.
1335
1336 2003-06-06 Steven Bosscher <steven@gcc.gnu.org>
1337
1338 * Makefile.am: Don't put cmath objects in subdir.
1339 * configure.in: Rename MATHOBJ to MATH_OBJ.
1340
1341 2003-06-02 Kejia Zhao <Kejia_zh@yahoo.com.cn>
1342
1343 * intrinsics/associated.c: New file.
1344 * Makefile.am: Add it. Regenerate Makefile.in.
1345 * libgfor.h: Define g95_array_void, G95_DESCRIPTOR_DATA, and
1346 G95_DESCRIPTOR_DTYPE.
1347
1348 2003-06-01 Canqun Yang <canqun@yahoo.com.cn>
1349
1350 * io/write.c (calcuate_exp): Rewrite it to avoid overflow.
1351 (calculate_G_format): Rewrite it to eliminate an infinte loop and set
1352 the scale_factor to 0 for F editing.
1353
1354 2003-05-11 Tobias Schlüter <innenminister@gmx.de>
1355
1356 * libgfor.h: Only include stdint.h if it exists.
1357
1358 2003-05-07 Paul Brook <paul@nowt.org>
1359
1360 * libgfor.h: Use stdint.h types.
1361 * intrinsics/ishift.c: Ditto.
1362 * runtime/memory.c (malloc_t): Reorder fields for better alignment.
1363
1364 2003-05-05 Steven Bosscher <steven@gcc.gnu.org>
1365
1366 * libgfor.h (offsetof): Define if nobody else does.
1367 * runtime/memory.c (HEADER_SIZE): Use it.
1368
1369 2003-05-01 Tobias Schlüter <innenminister@gmx.de>
1370
1371 * configure.in: Require autoconf 2.54.
1372
1373 2003-04-28 Tobias Schlüter <innenminister@gmx.de>
1374 Paul Brook <paul@nowt.org>
1375
1376 * intrinsics/reshape_generic.c: Copy the whole element, not just the
1377 first byte.
1378 * m4/transpose.m4: New file.
1379 * Makefile.am: Add them.
1380 Regenerate generated files.
1381
1382 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1383
1384 * io/format.c (parse_format_list): Allow 'X' without integer
1385 prefix. This is an extension. Interpretation is '1X'.
1386
1387 2003-04-18 Tobias Schlüter <Tobias.Schlueter@physik.uni-muenchen.de>
1388
1389 * io/format.c (parse_format_list): Allow '0P'.
1390
1391 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
1392
1393 * Makefile.in: Re-regenerate for automake 1.7.3.
1394
1395 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
1396
1397 Port implementation for CHARACTER SELECT from Andy's tree.
1398 * runtime/select.c: New file
1399 * Makefile.am: Add it.
1400 * Makefile.in: Regenerate.
1401
1402 2003-04-17 Xiaoqiang Zhang <zhangapache@yahoo.com>
1403
1404 * io/transfer.c (formatted_transfer): Modified
1405 * io/unix.c (move_pos_offset): New Function.
1406 * io/format.c (parse_format_list): Modified.
1407
1408 2003-04-15 Xiaoqiang Zhang <zhangapache@yahoo.com>
1409
1410 * io/write.c (write_float,write_real): New implemention of
1411 FMT_G and default float editing.
1412 (calculate_exp,calculate_G_format,output_float): New Function.
1413 (write_float,write_real,write_logical): Modified
1414 * libgfor.h (default_rtoa): Remove Declaration.
1415 * runtime/error.c (default_rtoa): Remove Function.
1416
1417 2003-04-15 Steven Bosscher <steven@gcc.gnu.org>
1418
1419 Spotted by Yang:
1420 * io/write.c (extract_real): Add missing break statement.
1421
1422 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1423
1424 * cpu_time.c: Make sure we have a definition of HZ. Don't
1425 rely on CLOCKS_PER_SEC, it is always 1000000, on any system.
1426
1427 2003-04-13 Steven Bosscher <steven@gcc.gnu.org>
1428 Paul Brook <paul@nowt.org>
1429
1430 * configure.in: Check for process time headers and GETTIMEOFDAY.
1431 * makefile.am: Add intrinsics/cpu_time.c.
1432 * acinclude.m4: New file.
1433 * intrinsics/cpu_time.c: New file.
1434 * m4/dotprodl.m4: Fix typo.
1435 Regenerate generated files.
1436
1437 2003-04-11 Xiaoqiang Zhang <zhangapache@yahoo.com>
1438
1439 * io/write.c (extract_real): Ouput floating point value.
1440 (write_float): New Function.
1441 (write_e, write_f, write_en, write_es): Modified
1442 * io/transfer.c (formatted_transfer): Modified.
1443 * libgfor.h (default_rtoa): Declaration.
1444 (rtoa): Declaration.
1445 * runtime/error.c (default_rtoa): New Function.
1446 (rtoa): New Function.
1447
1448 2003-04-05 Paul Brook <paul@nowt.org>
1449
1450 * intrinsics/spread_generic.c: New file.
1451 * Makefile.am: Add it. Regenerate Makefile.in.
1452
1453 2003-03-29 Paul Brook <paul@nowt.org>
1454
1455 * intrinsics/pack_generic.c: New file.
1456 * intrinsics/unpack_generic.c: New file.
1457 * Makefile.am: Add them. Regenerate Makefile.in.
1458
1459 2003-03-25 Paul Brook <paul@nowt.org>
1460
1461 * intrinsics/eoshift0.c: New file.
1462 * intrinsics/eoshift2.c: New file.
1463 * m4/eoshift1.m4: New file.
1464 * m4/eoshift3.m4: New file.
1465 * Makefile.am: Add them.
1466 * in_unpack_generic.c: Initialize src.
1467 Regenerate generated files.
1468
1469 2003-03-14 Paul Brook <paul@nowt.org>
1470
1471 * m4/shape.m4: Work properly with array temporaries.
1472 * m4/in_pack.m4: Skip redundant checks for array temporaries.
1473 * runtime/in_pack_generic.c: Ditto.
1474
1475 2003-03-12 Paul Brook <paul@nowt.org>
1476
1477 * m4/shape.m4: Work properly with noncontiguous arrays.
1478
1479 2003-03-08 Paul Brook <paul@nowt.org>
1480
1481 * m4/in_pack.m4: Correctly handle zero sized and assumed size arrays.
1482 * runtime/in_pack_generic.c: Ditto.
1483
1484 2003-02-08 Paul Brook <paul@nowt.org>
1485
1486 * intrinsics/reshape_generic.c: Use runtime_error to report errors.
1487 * io/close.c (st_close): Return void.
1488 * io/open.c (st_open): Return void.
1489 * libgfor.h (g95_array_char): Declare.
1490 (internal_malloc_size): Ditto.
1491 (internal_pack*, internal_unpack*): Ditto.
1492 * m4/in_pack.m4: Allocate storage if neccessary. Fix logic for packed
1493 arrays.
1494 * m4/in_unpack.m4: Include file fixes.
1495 * m4/reshape.m4: Increment the correct source pointer.
1496 * Makefile.am (maxloc): Fix typo.
1497 * runtime/in_pack_generic.c: Call optimized functions. Allocate
1498 storage if neccessary. Fix logic for packed arrays.
1499 * runtime/in_unpack_generic.c: Call optimized functions.
1500 * runtime/main.c: Use runtime_error to report errors.
1501 * memory.c (internal_malloc_size): Make non-static.
1502
1503 2003-02-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1504
1505 * reshape_packed.c, lock.c: Add #include <string.h>.
1506 * libgfor.h, format.c, inquire.c, io.h, transfer.c, unix.c,
1507 environ.c, error.c, memory.c, string.c: Add const.
1508 * error.c (show_locus): Add void.
1509
1510 2003-02-21 Paul Brook <paul@nowt.org>
1511
1512 * m4/in_pack.m4: Avoid returning const * parameter.
1513 * Makefile.am: Only regenerate files in maintainer mode.
1514
1515 2003-02-20 Paul Brook <paul@nowt.org>
1516
1517 Add array repacking support functions.
1518 * m4/in_pack.m4, m4/in_unpack.m4: New files.
1519 * runtime/in_pack_generic.c, runtime/in_unpack_generic.c: New files.
1520 * Makefile.am: Build them. Regenerate configury files.
1521 * generated/: New directory for generated files (need to move
1522 everything else there).
1523
1524 2003-02-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1525
1526 * m4/cexp.m4: Fix typo.
1527
1528 2003-01-26 Paul Brook <paul@nowt.org>
1529
1530 * intrinsics/: Add missing generated files.
1531
1532 2003-01-26 Paul Brook <paul@nowt.org>
1533
1534 * Makefile.am: Put -I before the filename.
1535
1536 2003-01-24 Paul Brook <paul@nowt.org>
1537
1538 * configure.in: Add AM_MAINTAINER_MODE.
1539
1540 2003-01-23 Paul Brook <paul@nowt.org>
1541
1542 * configure.in, Makefile.am: Modify to work with unmodified autoconf
1543 and auotmake.
1544 Also regenerate other configury files.
1545
1546 2003-01-21 Paul Brook <paul@nowt.org>
1547
1548 * io/read.c: Don't use stdint.h, it doesn't exist on cygwin.
1549
1550 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1551
1552 * io/read.c (read_f): Don't use alloca, but safe get_mem instead.
1553 Don't include "alloca.h".
1554
1555 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
1556
1557 * intrinsics/string.c: Rename to intrinsics/string_intrinsics.c.
1558 * Makefile.am: Adjust file name.
1559 * Makefile.in: Regenerate.
1560 * gfortypes.h: Kill, include everything in...
1561 * libgfor.h: ...here. Include config.h
1562 * fmain.c, intrinsics/ishftc.c, intrinsic/reshape_generic.c,
1563 intrinsics/reshape_i4.c, intrinsics/reshape_i8.c,
1564 intrinsics/reshape_packed.c, intrinsics/size.c,
1565 m4/reshape.m4, runtime/main.c, runtime/memory.c: Use macro
1566 for prefix for all functions instead of hardcoded.
1567
1568 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1569
1570 * io/lock.c (library_end): Propagate library return
1571 code.
1572
1573 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
1574
1575 Port fixes from Andy's tree:
1576 * io/read.c (read_decimal): Reverse sense of overflow
1577 comparison during integer reads.
1578 * io/format.c (revert): Fix comment.
1579 (next_format): Fix format revision.
1580 * io/unix.c: Fix and simplify mmap version of stream
1581 functions.
1582
1583 2003-01-11 Paul Brook <paul@nowt.org>
1584
1585 * configure, Makefile.in: Regenerate.
1586
1587 2003-01-11 Paul Brook <paul@nowt.org>
1588
1589 * runtime/stop.c: Rewrite.
1590
1591 2003-01-08 Paul Brook <paul@nowt.org>
1592
1593 * configure, Makefile.in: Regenerate.
1594
1595 2003-01-05 Paul Brook <paul@nowt.org>
1596
1597 * (*.m4) Move to m4/.
1598 * intrinsics/string.c (_gfor_string_index): New Function.
1599
1600 2002-12-29 Paul Brook <paul@nowt.org>
1601
1602 * intrinsics/reshape.*: New files.
1603 * gcc_config.patch: Update to new GCC configure system.
1604
1605 2002-10-10 Paul Brook <paul@nowt.org>
1606
1607 * intrinsics/size.c: New file.
1608 * intrinsics/shape.m4: New file.
1609 * Makefile.am: Add above files.
1610
1611 2002-10-02 Paul Brook <paul@nowt.org>
1612
1613 * fmain.c (main): Move here.
1614 * libgfor.c: From here.
1615 * libgfor.h (gfor_init, gfor_runtime_cleanup): Declare.
1616 * Makefile.am: Build libgforbegin.
1617 * gcc_config.patch: Remove stray -march=athlon.
1618 * dotprodl.m4: Fix use of L8_TO_L4 macro.
1619 * ifunction.m4: Move variable declarations to allow compilation with
1620 gcc < 3.0
1621 * specific.m4, specific4.m4: Fix typo typecode->type_code.
1622 * README: Document use of patch -p1.
1623
1624 2002-09-12 Paul Brook <paul@nowt.org>
1625
1626 * math/*: Add complex math library functions.
1627 * intrinsics/specific(2).m4: Generate Specific intrinsic functions.
1628 * Makefile.am: Add details for above.
1629 * configure.in: Use AC_PROG_F95. Test for the presence of csin.
1630
1631 2002-09-09 Paul Brook <paul@nowt.org>
1632
1633 * libgfor.c (determine_endianness): Use an array rather than a struct.
1634 * intrinsics/dotprod*, matmul*: Implement DOT_PRODUCT and MATMUL.
1635
1636 2002-09-09 Steven Bosscher <s.bosscher@student.tudelft.nl>
1637
1638 * libgfor.c: Add fatal signal handler.
1639 Romove superfluous abort() calls.
1640
1641 2002-09-07 Paul Brook <paul@nowt.org>
1642
1643 * Makefile.am, intrinsics: Major rewrite.
1644
1645 2002-09-02 Paul Brook <paul@nowt.org>
1646
1647 * Makefile.am: Added -I$(srcdir) to m4 rule.
1648
1649 2002-08-30 Paul Brook <paul@nowt.org>
1650
1651 * io/*: Integrated libgforio.
1652 * Makefile.am, configure.in: Make compatable with GCC. Build code for
1653 intrinsics in the intrisics directory.
1654 * intrinsics/intrinsics.m4: Move here. Strip directories from the
1655 filename. Add 'and' and 'all' intrinsics.
1656
1657 2002-08-17 Paul Brook <paul@nowt.org>
1658
1659 * ALL: First release as more than just a single file