OSDN Git Service

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