OSDN Git Service

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