OSDN Git Service

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