OSDN Git Service

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