OSDN Git Service

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