OSDN Git Service

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