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