OSDN Git Service

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