OSDN Git Service

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