OSDN Git Service

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