OSDN Git Service

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