]> gcc.gnu.org Git - gcc.git/blame - libgfortran/ChangeLog
Make -fdata-sections work for AVR port.
[gcc.git] / libgfortran / ChangeLog
CommitLineData
130abd17
EB
12004-09-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2
3 * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
4 * mk-srk-inc.sh: Likewise.
5
244fada7
PB
62004-09-01 Paul Brook <paul@codesourcery.com>
7
8 * runtime/error.c (generate_error): Set both iostat and
9 library_return.
10
334ff453
PB
112004-08-31 Paul Brook <paul@codesourcery.com>
12
13 PR libfortran/16805
14 * io/list_read.c (next_char): Don't signal EOF for internal files.
15 * io/unix.c (mem_alloc_r_at): Don't return NULL for incomplete reads.
16
43b43057
TS
172004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
18
19 * io/unit.c: Separate copyright years by ','.
20 (compare, insert_unit, delete_unit, is_internal_unit, close_units):
21 Remove blank line in beginning of function.
22 (get_unit): Simplify code.
23
8a210b0f
PB
242004-08-31 Paul Brook <paul@codesourcery.com>
25
26 * io/unit.c (get_unit): Remove superfluous if.
27
bd72d66c
PB
282004-08-31 Paul Brook <paul@codesourcery.com>
29
30 * io/transfer.c (read_sf): Rename uinty to readlen. Detect EOF.
31 (finalize_transfer): Move setjmp after namlist IO.
32 * io/unix.c (mem_alloc_r_at): Calculate remaining length correctly.
33
c789f36b
PB
342004-08-31 Paul Brook <paul@codesourcery.com>
35
36 * list_read.c (eat_separator): Set at_eo when a '/' is seen.
37
d7177ab2
TS
382004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
39
40 * libgfortran.h: Replace 'gfc_strlen_type' by
41 'gfc_charlen_type'. Update comment accordingly.
42 * intrinsics/args.c, intrinsics/env.c, io/io.h, io/transfer.c:
43 Replace all occurences of 'gfc_strlen_type' by 'gfc_charlen_type'.
44
da17f559
PB
452004-08-31 Paul Brook <paul@codesourcery.com>
46
47 * libgfortran.h: Add comments.
48
625be286
RH
492004-08-30 Richard Henderson <rth@redhat.com>
50
51 * Makefile.am (gfor_helper_src): Split selected_kind.f90.
52 (gfor_built_src): Add selected_int_kind.inc selected_real_kind.inc.
53 (selected_int_kind.inc selected_real_kind.inc): New rules.
54 * Makefile.in: Regenerate.
55 * mk-sik-inc.sh, mk-srk-inc.sh: New files.
56 * intrinsics/selected_int_kind.f90: Split from selected_kind.f90,
57 include table of detected kinds.
58 * intrinsics/selected_real_kind.f90: Similarly.
59
e8525382
SK
602004-08-29 Steven G. Kargl <kargls@comcast.net>
61 Paul Brook <paul@codesourcery.com>
62
63 * intrinsics/bessel.c: New file.
64 * intrinsics/erf.c: New file.
65 * Makefie.am: Add intrinsics/bessel.c and intrinsics/erf.c.
66 * configure.ac: Test for C99 Bessel and Error functions.
67 * Makefile.in: Regenerate.
68 * config.h.in: Regenerate.
69 * configure: Regenerate.
70
4c0c6b9f
SK
712004-08-29 Steven G. Kargl <kargls@comcast.net>
72 Paul Brook <paul@codesourcery.com>
73
74 * Makefile.am: Add intrinsics/getXid.c.
75 * configure.ac: Add tests for get{g,p,u}id.
76 * config.h.in: Regenerate.
77 * Makefile.in: Regenerate.
78 * configure: Regenerate.
79
7984a2f0
PB
802004-08-28 Paul Brook <paul@codesourcery.com>
81
82 PR libfortran/17195
83 * libgfortran.h (rtoa): Remove prototype.
84 * runtime/error.c (rtoa): Remove.
85 * io/write.c (calculate_G_format): Don't add blanks if E format is
86 used. Add correct number of blanks when exponent width is specified.
87 (output_float): Rewrite.
88
c100eff1
PB
892004-08-27 Paul Brook <paul@codesourcery.com>
90
91 * io/rewind.c (st_rewind): Reset unit to read mode.
92
55948b69
BD
932004-08-27 Bud Davis <bdavis9659@comcast.net>
94
95 PR fortran/16597
96 * io/io.h: created typedef for unit_mode.
97 * io/io.h (gfc_unit): added mode to unit structure.
98 * io/transfer.c (data_transfer_init): flush if a write then
99 read is done on a unit (direct access files).
100 * io/rewind.c (st_rewind): Used unit mode instead of global.
101
5352bda0
BD
1022004-08-24 Bud Davis <bdavis9659@comcast.net>
103
104 PR fortran/17143
105 * runtime/error.c (itoa): keep from overflowing during
106 mod operation by using unsigned variable.
107
02d735f6
BD
1082004-08-24 Bud Davis <bdavis9659@comcast.net>
109
110 PR fortran/17164
111 * runtime/string_intrinsics.c (string_index):check for
112 substring longer than string.
113
6fd7cc54
DE
1142004-08-24 David Edelsohn <edelsohn@gnu.org>
115
116 * Makefile.am (libgfortran_la_LDFLAGS): Add -lm.
117 * Makefile.in: Rebuilt.
118
20edd06b
TS
1192004-08-23 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
120
121 * io/io.h, io/list_read.c, io/open.c, io/transfer.c, io/write.c:
122 Fix formatting issues, update copyright years.
123
0fa1b65c
BD
1242004-08-21 Bud Davis <bdavis9659@comcast.net>
125
126 PR 16908
127 * io/transfer.c (next_record_w): Do not blank pad.
128 * io/transfer.c (next_record): Take into account partial records.
129
3bc268e6
VL
1302004-08-18 Victor Leikehman <lei@il.ibm.com>
131
132 PR fortran/13278
133 * io/transfer.c (st_set_nml_var)
134 * io/write.c (namelist_write): Allow var_name and var_name_len to be
135 null. For strings, use string_length field instead of len.
136 * io/io.h (struct namelist_type): New field string_length.
137 (st_set_nml_var_char): New argument string_length.
138
1ef02b9d
BD
1392004-08-13 Bud Davis <bdavis9659@comcast.net>
140
4fe6e46b 141 PR gfortran/16935
1ef02b9d
BD
142 * io/open.c (st_open): use flags instead of the unit structure.
143
a57bb5f6
VL
1442004-08-10 Victor Leikehman <lei@il.ibm.com>
145
146 * io/list_read.c (namelist_read): Convert variable names
147 to lower case, so that mixed-case names are recognized.
148 Don't read beyond terminating slash.
149
067a5735
RS
1502004-08-09 Richard Henderson <rth@redhat.com>
151 Roger Sayle <roger@eyesopen.com>
152
153 * intrinsics/c99_functions.c (nextafterf): New implementation that
154 works correctly with denormalized numbers.
155
1562004-08-09 Victor Leikehman <lei@il.ibm.com>
883c9d4d
VL
157
158 * m4/matmul.m4, m4/matmull.m4, intrinsics/eoshift0.c,
159 intrinsics/eoshift2.c, intrinsics/transpose_generic.c:
160 Allocate space if return value has NULL in its data field.
161 * generated/*.c: Regenerate.
162
aa6fc635
JB
1632004-08-06 Janne Blomqvist <jblomqvi@cc.hut.fi>
164
165 * intrinsics/env.c: New file.
166 * Makefile.am: Add env.c to build.
167 * Makefile.in: Regenerate.
168
943bf8b5
VL
1692004-08-05 Victor Leikehman <lei@il.ibm.com>
170
171 PR libgfortran/16704
172 * io/read.c (read_radix): Understand letters f and F as hex digits.
173
6c167c45
VL
1742004-08-04 Victor Leikehman <lei@il.ibm.com>
175
176 * libgfortran.h (array_t, size0) New declarations.
177 * m4/ifunction.m4, m4/transpose.m4, intrinsics/cshift0.c: Allocate
178 space if return value descriptor has NULL in its data field,
179 and initialize bounds and stride.
180 * intrinsics/size.c (array_t, size0): Declarations moved to
181 libgfortran.h.
182 * generated/*.c: Regenerate.
183
453310d8
RS
1842004-08-03 Roger Sayle <roger@eyesopen.com>
185
186 PR libgfortran/16137
187 * configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
188 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
189 scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
190 * config.h.in: Regenerate.
191 * configure: Regenerate.
192
193 * instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
194 copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
195 nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
196 implementations for targets that don't support C99 float functions.
197
023d776a
RS
1982004-08-01 Roger Sayle <roger@eyesopen.com>
199
200 * io/write.c (write_float): Use the slightly more portable isnan
201 in preference to isinf.
202
9cdc381b
BD
2032004-07-18 Bud Davis <bdavis9659@comcast.net>
204
205 * configure.ac: Add check for LFS support.
206 * configure: Regenerate
207
1e38f159
PB
2082004-07-11 Paul Brook <paul@codesourcery.com>
209
210 PR fortran/16303
211 * m4/cexp.m4 (carg): Return -pi to pi.
212 * generated/exp_c?.c: Regenerate.
213
dbe81a8b
AK
2142004-07-08 Andreas Krebbel <krebbel1@de.ibm.com>
215
216 PR fortran/16291
217 * libgfortran/io/write.c: (write_float): Added length check.
218 Remove pointless memset calls.
219
bf1df0a0
BD
2202004-07-04 Bud Davis <bdavis9659@comcast.net>
221 Paul Brook <paul@codesourcery.com>
222
223 PR fortran/15472
224 * io/transfer.c(us_write): set recl for seq unform writes to max size.
225 * io/transfer.c(data_transfer_init): handle un-opened seq unform unit.
226 * io/unix.c(fd_alloc_w_at): handle requests at start, fd_flush at
dbe81a8b 227 right time.
bf1df0a0 228 * io/unix.c(is_seekable): set based upon the file/device, not the
dbe81a8b 229 method being used to access it (fd or mmap).
bf1df0a0
BD
230 * io/unix.c(fd_flush): don't set file_size if !seekable.
231 * io/unix.c(fd_truncate: ditto.
232
b41b2534
JB
2332004-07-04 Janne Blomqvist <jblomqvi@cc.hut.fi>
234 Paul Brook <paul@codesourcery.com>
235
236 PR fortran/15280
237 PR fortran/15665
238 * libgfortran.h (gfc_strlen_type): Define.
239 * intrinsics/args.c (getarg): Rename ...
240 (getarg_i4): ... to this.
241 (getarg_i8, get_command_argument_i4, get_command_argument_i8,
242 get_command_i4, get_command_i8): New functions.
243
1657a809
MK
2442004-07-04 Matthias Klose <doko@debian.org>
245
246 * libtool-version: New.
247 * Makefile.am (libgfortran_la_LDFLAGS): Use -version-info for soname.
248 * Makefile.in: Regenerate.
249 * configure.ac: Remove libtool_VERSION macro
250 * configure: Regenerate
251
fd53dbe0
SK
2522004-06-30 Steve Kargl <sgk@troutmask.apl.washington.edu>
253 Steven Bosscher <stevenb@suse.de>
254
255 * intrinsics/rand.c (rand): Wrap the irand() call from the previous
256 commit in prefix.
257
beabab59
TS
2582004-06-29 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
259 Paul Brook <paul@codesourcery.com>
260
261 * runtime/normalize.c (normalize_r4_i4, normalize_r8_i8): Fix
262 comments.
263 * intrinsics/rand.c (rand): Call irand() in call to normalize_r4_i4.
264
519b0e16
BD
2652004-06-27 Bud Davis <bdavis9659@comcast.net>
266
267 PR gfortran/12839
268 * io/write.c (write_float): check signbit for Infinity.
269
3e14aaa2
BD
2702004-06-26 Bud Davis <bdavis9659@comcast.net>
271
272 PR gfortran/16196
273 * unix.c(regular_file): create file if it does not exist.
274
d42093a1
AP
2752004-06-24 Andrew Pinski <apinski@apple.com>
276
277 * configure.ac: Remove check for libmx.
278 * configure: Regenerate.
279
8750f9cd
JB
2802004-06-22 Janne Blomqvist <jblomqvi@cc.hut.fi>
281
282 PR fortran/15750
283 * inquire.c (st_inquire): Add comment
284 * io.h (st_parameter): Add iolength.
285 (st_iolength, st_iolength_done): Declare.
286 * transfer.c (iolength_transfer, iolength_transfer_init,
287 st_iolength, st_iolength_done): New functions.
288
0bf68c6e
SK
2892004-06-21 Steven G. Kargl <kargls@comcast.net>
290
291 * etime.c (etime_sub): Remove array rank check;
292 Add check for sufficient space.
293
bb9db7b1
BD
2942004-06-19 Bud Davis <bdavis9659@comcast.net>
295
296 PR gfortran/16080
297 * io/list_read.c(set_value): fixed spelling.
298
04b0faec
BD
2992004-06-19 Bud Davis <bdavis9659@comcast.net>
300
301 PR gfortran/16080
302 * io/list_read.c(set_value): don't copy if the string is null.
303
bc20e36d
BD
3042004-06-14 Bud Davis <bdavis9659@comcast.net>
305
306 PR gfortran/15292
307 * intrinsics/c99_functions.c: Use fpclassify if it exists.
308
a9e7b9d3
PB
3092004-06-13 Paul Brook <paul@codesourcery.com>
310
311 * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
312 * configure.ac: Add checks for nextafter and nextafterf.
313 * Makefile.in, config.h.in, configure: Regenerate.
314 * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
315 * intrinsics/rand.c (rand): Use normalize_r4_i4.
316 * intrinsics/random.c (random_r4): Use normalize_r4_i4.
317 (random_r8): Use normalize_r8_i8.
318 * runtime/normalize.c: New file.
319
cdaa9fc4
SK
3202004-06-13 Steven G. Kargl <kargls@comcast.net>
321 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
322
323 * random.c: Fix several spelling and formatting mistakes in
324 comments.
325 (random_r8): Fix loop to make random numbers range in [0,1(.
326
327
9d409075
TS
3282004-06-13 Steven G. Kargl <kargls@comcast.net>
329
330 * random.c (random_r4): Burn a random number.
331 (random_r8): fix infinite loop.
332
3332004-06-12 Bud Davis <bdavis9659@comcast.net>
a2a2059f
BD
334 Steve Kargl <sgk@troutmask.apl.washington.edu>
335
336 PR gfortran/15292
337 * intrinsics/c99_functions.c: New file.
338 * Makefile.am: Add new file.
339 * configure.ac: Added test for round/roundf.
340 * Makefile.in: Regenerate.
341 * configure: Regenerate.
342 * configure.h.in: Regenerate.
343
2bd74949
SK
3442004-06-12 Steven G. Kargl <kargls@comcast.net>
345
346 * Makefile.am: Add rand.c and etime.c
347 * Makefile.in: Regenerated.
348 * aclocal.in: Regenerated.
349 * cpu_time.c (second_sub, second): New functions.
350 * rand.c (irand, rand, srand): New file.
351 * etime.c (etime_sub, etime): New file.
352
f814193b
TS
3532004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
354 Steven Bosscher <stevenb@suse.de>
355
356 PR fortran/14923
357 * intrinsics/date_and_time.c: New file.
358 * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
359 * Makefile.in, aclocal.m4: Regenerate.
360 * libgfortran.h: Prototype date_and_time().
361
4aef80f8
BD
3622004-06-12 Bud Davis <bdavis9659@comcast.net>
363
a13c7588 364 PR fortran/15665
4aef80f8
BD
365 * intrinsics/args.c: Implement GETARG and IARGC.
366 * Makefile.am: Add it.
367 * Makefile.in: Regenerate.
368
8204210b
BD
3692004-06-12 Bud Davis <bdavis9659@comcast.net>
370
371 PR gfortran/12839
4aef80f8 372 * io/write.c(write_float): Format inf and nan IAW F2003.
8204210b 373
898c05b8
BD
3742004-06-09 Bud Davis <bdavis9659@comcaste.net>
375
376 PR gfortran/14897
377 * io/transfer.c (formatted_transfer): position is unique
378 for T and TL edit descriptors.
4aef80f8 379 (data_transfer_init): set record length to size of internal
898c05b8
BD
380 file.
381
31b6f11a
BD
3822004-06-09 Bud Davis <bdavis9659@comcast.net>
383
384 PR gfortran/15755
385 * io/backspace.c(st_backspace): call correct routine for
386 formatted and un-formatted units.
387
96b8a615
AJ
3882004-05-30 Andreas Jaeger <aj@suse.de>, Steven Bosscher <stevenb@suse.de>
389
390 PR gfortran/11800
391 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
392 (lib_LTLIBRARIES): Rename to ...
393 (toolexeclib_LTLIBRARIES): this for multilib support.
394 * configure.in: Rename to ...
395 * configure.ac: this. Update to modern autoconf style, enable
396 multilibs, support --enable-version-specific-runtime-libs.
397 * Makefile.in: Regenerated.
398 * configure: Regenerated.
399 * aclocal.m4: Regenerated.
400
5f251c26
SK
4012004-05-30 Steven G. Kargl <kargls@comcast.net>
402
403 * libgfortran.h (random_seed): Update prototype.
404 * intrinsics/random.c: Disable old implementation and add new one.
405
ebeb17c7
AJ
4062004-05-30 Andreas Jaeger <aj@suse.de>
407
408 * intrinsics/random.c: Include unistd.h for close and read
409 prototypes, remove unneeded inclusion of assert.h.
410
411 * intrinsics/abort.c: Include stdlib.h for abort prototype, remove
412 unneeded inclusion of assert.h.
413
08fb03fd
TS
4142004-05-27 Tobias Schlueter <tobias.shclueter@physik.uni-muenchen.de>
415
416 PR fortran/15234
417 * intrinsics/associated.c: Remove enum.
418 (associated): Replace TRUE/FALSE by 1/0.
419
322c2425
SK
4202004-05-23 Steven G. Kargl <kargls@comcast.net>
421
422 * random.c (random_seed): Use correct variable.
423
21fdfcc1
SK
4242004-05-22 Steven G. Kargl <kargls@comcast.net>
425
426 * intrinsics/system_clock: New file.
427 * Makefile.am: Add intrinsics/system_clock.c.
428 * Makefile.in: Regenerate.
429
11670eeb
RS
4302004-05-21 Roger Sayle <roger@eyesopen.com>
431
432 * io/format.c (parse_format_list): Allow the comma after a string
433 literal to be optional.
434
5b200ac2 4352004-05-18 Paul Brook <paul@codesourcery.com>
59fa6e39 436 Feng Wang <fengwang@nudt.edu.cn>
5b200ac2
FW
437
438 * Makefile.am (i_pow_c): Set it. Add build rule.
439 (gfor_built_src): Use it.
440 (m4_files): add m4/pow.m4.
441 * Makefile.in: Regenerate.
442 * m4/pow.m4: New file.
443 * generated/pow_*.c: Regenerate.
444
c9e66eda
PB
4452004-05-18 Paul Brook <paul@codesourcery.com>
446
447 * Makefile.am: Remove references to types.m4.
448 * m4/iparm.m4: Merge with types.m4.
449 * m4/types.m4: Remove.
450 * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4,
451 m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4,
452 m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4,
453 m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4,
454 m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4,
455 m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4):
456 Update to use new iparm.m4.
457 * generated/*.c: Regenerate.
458
81f4be3c
TS
4592004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
460
461 PR fortran/15235
462 * gfortran.h (offset_t): Rename to ...
463 (gfc_offset): ... this.
464 * io/backspace.c (formatted_backspace, unformatted_backspace),
465 io/io.h (stream, gfc_unit, global_t, file_length, file_position),
466 transfer.c (us_read, us_write, next_record_r, next_record_w),
467 io/unit.c (init_units), unix.c (unix_stream, fd_alloc,
468 fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc,
469 mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at,
470 mem_alloc_w_at, mem_seek, file_length, file_position): Replace all
471 occurences of offset_t by gfc_offset.
472
6d3e9d84
PB
4732004-05-16 Paul Brook <paul@codesourcery.com>
474
475 * io/format.c (write_real): Don't include padding in format.
476
28963c8f
PB
4772004-05-16 Paul Brook <paul@codesourcery.com>
478
479 * io/format.c (format_lex): Make c an int.
480
d464f8e9
JB
4812004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
482 Paul Brook <paul@codesourcery.com>
483
484 * io/write.c (write_logical): Don't print extra blank.
485 (write_integer): Base field width on kind.
486 (list_formatted_write): Output initial blank.
487
000aa32a
JB
4882004-05-16 Janne Blomqvist <jblomqvi@cc.hut.fi>
489
490 * io/io.h (flush): Add prototype.
491 * io/transfer.c (finalize_transfer): Flush partial records.
492 * io/unix.c (flush): New function.
493
909087e0
TS
4942004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
495
496 PR fortran/15234
497 * io/io.h (unit_t): Rename to ...
498 (gfc_unit) ... this.
499 (unit_root, current_unit, find_file, find_unit, get_unit): Now
500 of type gfc_unit.
501 (delete_file, insert_unit, close_unit): Argument now of type
502 gfc_unit.
503 * backspace.c (st_backspace), close.c (st_close), endfile.c
504 (st_endfile), inquire.c (inquire_via_unit, st_inquire), open.c
505 (test_endfile, edit_modes, new_unit, already_open, st_open),
506 rewind.c (st_rewind), transfer.c (current_unit), unit.c
507 (internal_unit, unit_cache, rotate_left, rotate_right, insert,
508 insert_unit, delete_root, delete_treap, delete_unit, find_unit,
509 get_unit, init_units, close_unit), unix.c (find_file0,
510 find_file, delete_file): Replace all occurences of unit_t by
511 gfc_unit.
512
94161cec
BD
5132004-05-15 Bud Davis <bdavis9659@comcast.net>
514
515 PR fortran/15311
516 * io/write.c (write_a): right justify A edit output.
517
abdef811
BD
5182004-05-14 Bud Davis <bdavis9659@comcast.net>
519
520 PR fortran/15149
521 * libgfortan.h,intrinsics/random.c: Made random_seed visible.
522 * runtime/main.c(init): Call random_seed as part of MAIN init.
523
187f0734
TS
524