1 2007-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 * io/write.c (output_float): Calculate ndigits correctly for large
5 numbered formats that must pad zeros before the decimal point.
7 2007-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10 * runtime/backtrace.c (show_backtrace): Only use snprintf if
13 2007-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16 * io/transfer.c (st_read): Remove test for end of file condition.
17 (next_record_r): Add test for end of file condition.
19 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
21 * configure: Regenerate.
23 2007-05-28 Tobias Burnus <burnus@net-b.de>
26 * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
27 (allocate,allocate64): Use stat variable if present.
29 2007-05-27 Janne Blomqvist <jb@gcc.gnu.org>
31 * runtime/string.c (compare0): Use gfc_charlen_type instead of
34 (find_option): Likewise.
35 (fstrcpy): Use gfc_charlen_type instead of int, return length.
36 (cf_strcpy): Likewise.
37 * libgfortran.h: Change string prototypes to use gfc_charlen_type.
38 * io/open.c (new_unit): Use snprintf if available.
39 * io/list_read.c (nml_touch_nodes): Use memcpy instead of
41 (nml_read_obj): Likewise.
42 * io/transfer.c (st_set_nml_var): Likewise.
43 * io/write.c (output_float): Use snprintf if available.
44 (nml_write_obj) Use memcpy instead of strcpy/strcat.
46 2007-05-26 Janne Blomqvist <jb@gcc.gnu.org>
48 * io/unix.c (unix_stream): Rearrange struct members, remove
50 (int_stream): New struct.
51 (fd_alloc): Always use existing buffer, never reallocate.
52 (fd_sfree): Remove check for buffer != small_buffer.
54 (mem_alloc_r_at): Change to use int_stream.
55 (mem_alloc_w_at): Likewise.
57 (mem_write): Likewise.
59 (mem_truncate): Likewise.
60 (mem_close): Likewise.
61 (mem_sfree): Likewise.
62 (empty_internal_buffer): Likewise.
63 (open_internal): Likewise.
65 2007-05-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
67 * io/transfer.c (unformatted_read): Use size from front end eliminating
68 use of size_from_real_kind. (unformatted_write): Ditto.
70 2007-05-23 Steve Ellcey <sje@cup.hp.com>
72 * Makefile.in: Regenerate.
73 * configure: Regenerate.
74 * aclocal.m4: Regenerate.
76 2007-05-22 Tobias Burnus <burnus@net-b.de>
78 * libgfortran.h: Mark stop_numeric as noreturn.
80 2007-05-22 Tobias Burnus <burnus@net-b.de>
83 * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
84 * intrinsics/eoshift2.c (eoshift2): Ditto.
86 2007-05-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
89 * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
90 shift of bit-size number of bits.
92 2007-05-17 Tobias Burnus <burnus@net-b.de>
95 * runtime/environ.c (mark_range): Fix setting default convert unit.
97 2007-05-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
100 * intrinsics/string_intrinsics.c (string_trim): Set result to null if
101 string length is zero.
103 2007-05-15 Tobias Burnus <burnus@net-b.de>
106 * io/transfer.c (unformatted_read): Use proper size for real(10).
107 (unformatted_write): Ditto.
109 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
112 * runtime/memory.c (internal_malloc, internal_malloc64,
113 internal_free): Remove.
114 * runtime/error.c (os_error): Export function.
115 * intrinsics/move_alloc.c: Include stdlib.h.
116 (move_alloc): Call free instead of internal_free.
117 (move_alloc_c): Wrap long lines.
118 * libgfortran.h (os_error): Export prototype.
119 (internal_free): Remove prototype.
120 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
121 _gfortran_internal_malloc and _gfortran_internal_malloc64.
122 Add _gfortran_os_error.
124 2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
127 * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
129 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
132 * intrinsics/system.c (system_sub): Call flush_all_units.
133 * io/io.h (flush_all_units): Move prototype to libgfortran.h.
134 * libgfortran.h (flush_all_units): Add prototype.
136 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
139 * runtime/error.c (runtime_error_at): New function.
140 (generate_error): Export this function.
141 * gfortran.map: Add _gfortran_generate_error and
142 _gfortran_runtime_error_at.
143 * libgfortran.h: Add comment to reference error codes in front end.
144 (library_start): Locate prototype with library_end macro and add
145 a new comment. Add prototype for runtime_error_at. Export prototype for
147 * io/lock.c (library_start): Fix check for error condition.
148 * io/transfer.c (data_transfer_init): Add library check.
150 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
153 * io/intrinsics.c (fseek_sub): New.
154 * io/unix.c (fd_fseek): Change logical and physical offsets only
156 * gfortran.map (fseek_sub): New.
158 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
161 * io/transfer.c (transfer_character): Avoid passing a NULL
162 pointer as source to the transfer routines, if the string length
165 2007-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
168 * io/list_read.c (next_char): Fix whitespace.
169 * io/io.h: Remove prototypes and define macros for is_array_io,
170 is_stream_io, and is_internal_unit.
171 * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
173 * io/transfer.c (read_sf): Change handling of internal_unit to make a
174 single call to salloc_r and use memcpy to transfer the data.
176 2007-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
179 * io/file_pos.c (st_backspace): Set flags.position for end of file
180 condition and use new function update_position.
181 (st_endfile): Use new function update_position.
182 * io/io.h: Add prototype for new function.
183 * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
185 * io/unit.c (update_position): New function to update position info
187 * io/transfer.c (next_record): Fix typo and use new function.
189 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
192 * intrinsics/getlog.c: Use getpwuid and geteuid instead of
193 getlogin if they are available.
194 * configure.ac: Add checks for getpwuid and geteuid.
195 * configure: Regenerate.
196 * config.h.in: Regenerate.
198 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
200 * configure: Regenerate using autoconf 2.59.
201 * Makefile.in: Likewise.
202 * config.h.in: Likewise.
204 2007-04-24 Janne Blomqvist <jb@gcc.gnu.org>
207 * configure.ac: New test to determine if symbol versioning is
209 * Makefile.am: Use result of above test to add appropriate linker
211 * gfortran.map: New file.
212 * configure: Regenerated.
213 * Makefile.in: Regenerated.
214 * config.h.in: Regenerated.
216 2007-04-23 Thomas Koenig <tkoenig@gcc.gnu.org>
219 * io/transfer.c (read_block_direct): Instead of calling us_read,
220 set dtp->u.p.current_unit->current_record = 0 so that pre_position
221 will read the record marker.
222 (data_transfer_init): For different error conditions, call
223 generate_error, then return.
225 2007-04-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
227 * runtime/main.c (please_free_exe_path_when_done): New variable.
228 (store_exe_path): Initialize character buffer, and mark whether
229 exe_path should be free'd by the library destructor function.
230 (cleanup): Only free exe_path if needed.
232 2007-04-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
233 Tobias Burnus <burnus@net-b.de>
237 * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
238 * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
239 array structures we pass to unpack_internal.
241 2007-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
243 * io/open.c (test_endfile): Revert changes for 31052, restoring this
246 2007-04-14 Steve Ellcey <sje@cup.hp.com>
248 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. Add libgfortran_la_LINK.
249 * Makefile.in: Regenerate.
251 2007-04-11 Kai Tietz <kai.tietz@onevision.com>
253 * configure: Regenerate.
255 2007-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
257 * intrinsics/cpu_time.c: Don't include headers already included
258 by libgfortran.h. Protect inclusion of sys/times.h.
259 * configure.ac: Remove unneeded checks for finit, stdio.h,
260 stddef.h, math.h and sys/params.h.
261 * config/fpu-aix.h: Don't include headers already included by
263 * config/fpu-sysv.h: Likewise.
264 * io/write.c: Likewise.
265 * m4/minloc1.m4: Likewise.
266 * m4/maxloc1.m4: Likewise.
267 * m4/fraction.m4: Likewise.
268 * m4/set_exponent.m4: Likewise.
269 * m4/spacing.m4: Likewise.
270 * m4/minval.m4: Likewise.
271 * m4/maxval.m4: Likewise.
272 * m4/exponent.m4: Likewise.
273 * m4/nearest.m4: Likewise.
274 * m4/minloc0.m4: Likewise.
275 * m4/maxloc0.m4: Likewise.
276 * m4/rrspacing.m4: Likewise.
277 * runtime/main.c: Likewise.
278 * runtime/error.c: Likewise.
279 * intrinsics/system_clock.c: Likewise.
280 * intrinsics/etime.c: Likewise.
281 * intrinsics/stat.c: Likewise.
282 * intrinsics/date_and_time.c: Likewise.
283 * intrinsics/env.c: Likewise.
284 * intrinsics/kill.c: Likewise.
285 * intrinsics/getXid.c: Likewise.
286 * intrinsics/chmod.c: Likewise.
287 * intrinsics/args.c: Likewise.
288 * intrinsics/c99_functions.c: Likewise.
289 * generated/minval_r8.c: Regenerate.
290 * generated/maxloc1_4_r8.c: Regenerate.
291 * generated/minloc1_16_r16.c: Regenerate.
292 * generated/maxval_i2.c: Regenerate.
293 * generated/maxloc1_8_i4.c: Regenerate.
294 * generated/exponent_r16.c: Regenerate.
295 * generated/maxloc0_4_r4.c: Regenerate.
296 * generated/fraction_r16.c: Regenerate.
297 * generated/fraction_r4.c: Regenerate.
298 * generated/minloc0_4_r16.c: Regenerate.
299 * generated/minloc0_4_i1.c: Regenerate.
300 * generated/maxloc0_4_r16.c: Regenerate.
301 * generated/maxloc0_4_i2.c: Regenerate.
302 * generated/minloc1_8_r16.c: Regenerate.
303 * generated/maxloc1_8_r16.c: Regenerate.
304 * generated/set_exponent_r8.c: Regenerate.
305 * generated/maxloc0_8_i8.c: Regenerate.
306 * generated/minloc1_4_r8.c: Regenerate.
307 * generated/maxloc1_16_r16.c: Regenerate.
308 * generated/minloc1_16_i4.c: Regenerate.
309 * generated/maxloc1_16_i4.c: Regenerate.
310 * generated/minloc0_16_i8.c: Regenerate.
311 * generated/maxloc0_16_i8.c: Regenerate.
312 * generated/nearest_r8.c: Regenerate.
313 * generated/spacing_r16.c: Regenerate.
314 * generated/maxval_r16.c: Regenerate.
315 * generated/minloc1_8_i4.c: Regenerate.
316 * generated/minloc0_16_i16.c: Regenerate.
317 * generated/minloc0_4_r4.c: Regenerate.
318 * generated/set_exponent_r10.c: Regenerate.
319 * generated/rrspacing_r10.c: Regenerate.
320 * generated/minloc0_4_i2.c: Regenerate.
321 * generated/maxloc0_8_i1.c: Regenerate.
322 * generated/minloc0_8_i8.c: Regenerate.
323 * generated/spacing_r4.c: Regenerate.
324 * generated/minloc1_16_r10.c: Regenerate.
325 * generated/minloc0_16_i1.c: Regenerate.
326 * generated/maxloc0_16_i1.c: Regenerate.
327 * generated/maxloc1_8_r8.c: Regenerate.
328 * generated/minval_i16.c: Regenerate.
329 * generated/exponent_r10.c: Regenerate.
330 * generated/maxval_i4.c: Regenerate.
331 * generated/minval_i8.c: Regenerate.
332 * generated/maxloc1_4_i8.c: Regenerate.
333 * generated/fraction_r10.c: Regenerate.
334 * generated/maxloc0_16_i16.c: Regenerate.
335 * generated/maxloc0_8_r4.c: Regenerate.
336 * generated/rrspacing_r8.c: Regenerate.
337 * generated/minloc1_4_i16.c: Regenerate.
338 * generated/minloc0_4_r10.c: Regenerate.
339 * generated/maxloc1_4_i16.c: Regenerate.
340 * generated/minloc0_8_i16.c: Regenerate.
341 * generated/maxloc0_4_r10.c: Regenerate.
342 * generated/maxloc0_8_i16.c: Regenerate.
343 * generated/minloc1_8_r10.c: Regenerate.
344 * generated/minloc0_16_r4.c: Regenerate.
345 * generated/maxloc1_8_r10.c: Regenerate.
346 * generated/maxloc0_16_r4.c: Regenerate.
347 * generated/minloc1_16_r8.c: Regenerate.
348 * generated/minloc0_8_i1.c: Regenerate.
349 * generated/maxloc0_4_i4.c: Regenerate.
350 * generated/maxloc1_16_r8.c: Regenerate.
351 * generated/maxloc0_8_i2.c: Regenerate.
352 * generated/nearest_r16.c: Regenerate.
353 * generated/maxloc1_16_r10.c: Regenerate.
354 * generated/minloc0_16_i2.c: Regenerate.
355 * generated/minloc1_8_r8.c: Regenerate.
356 * generated/maxloc0_16_i2.c: Regenerate.
357 * generated/exponent_r4.c: Regenerate.
358 * generated/spacing_r10.c: Regenerate.
359 * generated/maxval_r10.c: Regenerate.
360 * generated/minval_i1.c: Regenerate.
361 * generated/maxloc1_4_i1.c: Regenerate.
362 * generated/minloc1_4_i8.c: Regenerate.
363 * generated/minloc0_8_r4.c: Regenerate.
364 * generated/minloc0_16_r16.c: Regenerate.
365 * generated/minloc0_4_i4.c: Regenerate.
366 * generated/minloc0_8_i2.c: Regenerate.
367 * generated/minval_r4.c: Regenerate.
368 * generated/maxloc1_4_r4.c: Regenerate.
369 * generated/maxval_r8.c: Regenerate.
370 * generated/minval_r16.c: Regenerate.
371 * generated/minloc1_4_i1.c: Regenerate.
372 * generated/minval_i2.c: Regenerate.
373 * generated/maxloc1_4_i2.c: Regenerate.
374 * generated/maxloc1_8_i8.c: Regenerate.
375 * generated/maxloc0_4_r8.c: Regenerate.
376 * generated/maxloc0_16_r16.c: Regenerate.
377 * generated/minloc1_4_r16.c: Regenerate.
378 * generated/fraction_r8.c: Regenerate.
379 * generated/maxloc1_4_r16.c: Regenerate.
380 * generated/set_exponent_r4.c: Regenerate.
381 * generated/minloc0_8_r16.c: Regenerate.
382 * generated/maxloc0_8_r16.c: Regenerate.
383 * generated/nearest_r10.c: Regenerate.
384 * generated/maxloc0_8_i4.c: Regenerate.
385 * generated/minloc1_4_r4.c: Regenerate.
386 * generated/minloc0_16_i4.c: Regenerate.
387 * generated/maxloc0_16_i4.c: Regenerate.
388 * generated/nearest_r4.c: Regenerate.
389 * generated/minloc1_16_i8.c: Regenerate.
390 * generated/maxloc1_16_i8.c: Regenerate.
391 * generated/minloc1_4_i2.c: Regenerate.
392 * generated/maxloc1_8_i1.c: Regenerate.
393 * generated/minloc0_16_r10.c: Regenerate.
394 * generated/minloc1_8_i8.c: Regenerate.
395 * generated/minloc0_4_r8.c: Regenerate.
396 * generated/minloc0_8_i4.c: Regenerate.
397 * generated/minloc1_16_i16.c: Regenerate.
398 * generated/spacing_r8.c: Regenerate.
399 * generated/maxloc1_8_r4.c: Regenerate.
400 * generated/minloc1_16_i1.c: Regenerate.
401 * generated/maxloc1_16_i1.c: Regenerate.
402 * generated/minval_r10.c: Regenerate.
403 * generated/minval_i4.c: Regenerate.
404 * generated/minloc1_8_i1.c: Regenerate.
405 * generated/maxloc1_4_i4.c: Regenerate.
406 * generated/maxloc1_8_i2.c: Regenerate.
407 * generated/maxval_i8.c: Regenerate.
408 * generated/maxloc0_16_r10.c: Regenerate.
409 * generated/rrspacing_r4.c: Regenerate.
410 * generated/minloc0_4_i16.c: Regenerate.
411 * generated/maxloc0_8_r8.c: Regenerate.
412 * generated/maxloc0_4_i16.c: Regenerate.
413 * generated/minloc1_4_r10.c: Regenerate.
414 * generated/minloc1_8_i16.c: Regenerate.
415 * generated/maxloc1_4_r10.c: Regenerate.
416 * generated/minloc0_8_r10.c: Regenerate.
417 * generated/maxloc1_8_i16.c: Regenerate.
418 * generated/maxloc0_8_r10.c: Regenerate.
419 * generated/minloc1_16_r4.c: Regenerate.
420 * generated/maxloc1_16_r4.c: Regenerate.
421 * generated/minloc0_16_r8.c: Regenerate.
422 * generated/maxloc0_16_r8.c: Regenerate.
423 * generated/maxloc0_4_i8.c: Regenerate.
424 * generated/maxloc1_16_i16.c: Regenerate.
425 * generated/minloc1_8_r4.c: Regenerate.
426 * generated/minloc1_16_i2.c: Regenerate.
427 * generated/maxloc1_16_i2.c: Regenerate.
428 * generated/maxval_i16.c: Regenerate.
429 * generated/exponent_r8.c: Regenerate.
430 * generated/minloc1_4_i4.c: Regenerate.
431 * generated/maxval_i1.c: Regenerate.
432 * generated/minloc1_8_i2.c: Regenerate.
433 * generated/minloc0_8_r8.c: Regenerate.
434 * generated/set_exponent_r16.c: Regenerate.
435 * generated/maxloc0_4_i1.c: Regenerate.
436 * generated/rrspacing_r16.c: Regenerate.
437 * generated/minloc0_4_i8.c: Regenerate.
438 * generated/maxval_r4.c: Regenerate.
439 * configure: Regenerate.
440 * config.h.in: Regenerate.
442 2007-04-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
445 * io/format.c (parse_format_list): Fix parsing.
447 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
450 intrinsics/string_intrinsics.c (string_repeat): Remove.
452 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
455 * io/open.c (test_endfile): Delete this function.
456 (edit_modes): Delete call to test_endfile.
457 (new_unit): Likewise.
458 * io/io.h: Delete prototype for test_endfile.
459 * io/transfer.c (next_record_r): Remove use of test_endfile.
460 (st_read): Add test for end file condition and adjust status.
462 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
465 * io/transfer.c (read_block_direct): Do not generate error when reading
466 past EOF on a short record that is less than the RECL= specified.
468 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
471 * io/unit.c (close_unit_1): If there are bytes previously written from
472 ADVANCE="no", move to the end before closing.
474 2007-03-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
477 * intrinsics/stat.c: Only provide STAT and FSTAT library routines
478 if stat() and fstat() library functions are available. When lstat()
479 is not available, use stat() instead.
480 * configure.ac: Add checks for stat, fstat and lstat.
481 * configure: Regenerate.
482 * config.h.in: Regenerate.
484 2007-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
487 * io/transfer.c (next_record_r): Do not call test_endfile if in namelist
490 2007-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
493 * io/io.h: Add saved_pos to gfc_unit structure.
494 * io/open.c (new_unit): Initialize saved_pos.
495 * io/transfer.c (data_transfer_init): Set max_pos to value in saved_pos.
496 (next_record_w): Fix whitespace.
497 (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
498 later use. If not ADVANCE="no" set saved_pos to zero.
500 2007-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
503 * intrinsics/reshape_generic.c (reshape_internal): Increment
506 2007-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
509 * file_pos.c: Update Copyright year.
510 * io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
511 Update Copyright year.
513 * io/unix.c (is_special): Add missing type for this function.
514 Update Copyright year.
515 * io/transfer.c (next_record_r): Restore test_endfile.
516 (st_read): Fix whitespace. Update Copyright year
518 2007-03-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
520 * configure.ac: Add missing check for gettimeofday.
521 * config.h.in: Renegerate.
522 * configure: Regenerate.
524 2007-03-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
527 * io/file_position (st_rewind): Fix comments. Remove use of
528 test_endfile. Don't seek if already at 0 position. Use new is_special
529 function to set endfile state.
530 * io/open.c (test_endfile): Delete this function.
531 * io/io.h: Delete prototype for test_endfile. Add prototype
533 * io/unix.c (is_special): New function. Fix whitespace.
534 * io/transfer.c (next_record_r): Remove use of test_endfile.
536 2007-03-16 David Edelsohn <edelsohn@gnu.org>
538 * runtime/main.c: Include "config.h" first.
540 2007-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
543 * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
545 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
547 * runtime/backtrace.c: New file.
548 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
549 environment variable.
550 * runtime/compile_options.c (set_std): Add new argument.
551 * runtime/main.c (store_exe_path, full_exe_path): New functions.
552 * runtime/error.c (sys_exit): Add call to show_backtrace.
553 * libgfortran.h (options_t): New backtrace field.
554 (store_exe_path, full_exe_path, show_backtrace): New prototypes.
555 * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
556 close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
558 * Makefile.am: Add runtime/backtrace.c.
559 * fmain.c (main): Add call to store_exe_path.
560 * Makefile.in: Renegerate.
561 * config.h.in: Renegerate.
562 * configure: Regenerate.
564 2007-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
567 * io/transfer.c (formatted_transfer_scalar): Adjust position for pending
568 spaces when in writing mode. Clean up some formatting.
570 2007-03-14 Thomas Koenig <Thomas.Koenig@online.de>
573 * all.m4: Quote everything, except for m4 macros.
575 * count.m4: Likewise.
576 * cshift1.m4: Likewise.
577 * eoshift1.m4: Likewise.
578 * eoshift3.m4: Likewise.
579 * exponent.m4: Likewise.
580 * fraction.m4: Likewise.
581 * in_pack.m4: Likewise.
582 * in_unpack.m4: Likewise.
583 * matmul.m4: Likewise.
584 * matmull.m4: Likewise.
585 * nearest.m4: Likewise.
587 * product.m4: Likewise.
588 * reshape.m4: Likewise.
589 * rrspacing.m4: Likewise.
590 * set_exponent.m4: Likewise.
591 * shape.m4: Likewise.
592 * spacing.m4: Likewise.
593 * transpose.m4: Likewise.
595 2007-03-14 Jakub Jelinek <jakub@redhat.com>
597 * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
598 O_RDONLY even if errno is EROFS.
600 2007-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
603 * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
604 * io/transfer.c (next_record_w): Set bytes left to record length for
605 sequential unformatted I/O.
606 (next_record_r): Ditto.
607 (read_block_direct): Fix test for exceeding bytes_left.
609 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
612 * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
615 2007-03-04 Thomas Koenig <Thomas.Koenig@online.de>
618 * m4/pow_m4: Use appropriate unsigned int type for u.
619 * generated/pow_c10_i16.c: Regenerated.
620 * generated/pow_c10_i4.c: Regenerated.
621 * generated/pow_c10_i8.c: Regenerated.
622 * generated/pow_c16_i16.c: Regenerated.
623 * generated/pow_c16_i4.c: Regenerated.
624 * generated/pow_c16_i8.c: Regenerated.
625 * generated/pow_c4_i16.c: Regenerated.
626 * generated/pow_c4_i4.c: Regenerated.
627 * generated/pow_c4_i8.c: Regenerated.
628 * generated/pow_c8_i16.c: Regenerated.
629 * generated/pow_c8_i4.c: Regenerated.
630 * generated/pow_c8_i8.c: Regenerated.
631 * generated/pow_i16_i16.c: Regenerated.
632 * generated/pow_i16_i4.c: Regenerated.
633 * generated/pow_i16_i8.c: Regenerated.
634 * generated/pow_i4_i16.c: Regenerated.
635 * generated/pow_i4_i4.c: Regenerated.
636 * generated/pow_i4_i8.c: Regenerated.
637 * generated/pow_i8_i16.c: Regenerated.
638 * generated/pow_i8_i4.c: Regenerated.
639 * generated/pow_i8_i8.c: Regenerated.
640 * generated/pow_r10_i16.c: Regenerated.
641 * generated/pow_r10_i4.c: Regenerated.
642 * generated/pow_r10_i8.c: Regenerated.
643 * generated/pow_r16_i16.c: Regenerated.
644 * generated/pow_r16_i4.c: Regenerated.
645 * generated/pow_r16_i8.c: Regenerated.
646 * generated/pow_r4_i16.c: Regenerated.
647 * generated/pow_r4_i4.c: Regenerated.
648 * generated/pow_r4_i8.c: Regenerated.
649 * generated/pow_r8_i16.c: Regenerated.
650 * generated/pow_r8_i4.c: Regenerated.
651 * generated/pow_r8_i8.c: Regenerated.
653 2007-03-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
656 * intrinsics/pack_generic.c (pack_internal): Add special checks
657 for zero-sized arrays.
659 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
661 * Makefile.am: Add dummy install-pdf target.
662 * Makefile.in: Regenerate
664 2007-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
667 * io/listread.c (namelist_read): Eat comment line.
669 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
672 * io/write.c (output_float): Add condition of format F only for
673 special case rounding with zero precision.
675 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
679 * Makefile.am: Add $(srcdir) too all files in generated/.
680 (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
681 maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
683 (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
684 maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
686 (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
687 (i_minloc0_c): Add minloc0_4_i1.c, minloc0_8_i1.c,
688 minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
690 (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
691 minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
693 (i_minval_c): Add minval_i1.c and minval_i2.c.
694 (i_sum_c): Add sum_i1.c and sum_i2.c.
695 (i_product_c): Add product_i1.c and product_i2.c.
696 (i_matmul_c): Add matmul_i1.c and matmul_i2.c.
697 (gfor_built_specific_src): Remove $(srcdir) from target.
698 (gfor_bulit_specific2_src): Likewise.
699 Makefile.in: Regenerated.
700 libgfortran.h: Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
701 Add gfc_array_i1 and gfc_array_i2.
702 * generated/matmul_i1.c: New file.
703 * generated/matmul_i2.c: New file.
704 * generated/maxloc0_16_i1.c: New file.
705 * generated/maxloc0_16_i2.c: New file.
706 * generated/maxloc0_4_i1.c: New file.
707 * generated/maxloc0_4_i2.c: New file.
708 * generated/maxloc0_8_i1.c: New file.
709 * generated/maxloc0_8_i2.c: New file.
710 * generated/maxloc1_16_i1.c: New file.
711 * generated/maxloc1_16_i2.c: New file.
712 * generated/maxloc1_4_i1.c: New file.
713 * generated/maxloc1_4_i2.c: New file.
714 * generated/maxloc1_8_i1.c: New file.
715 * generated/maxloc1_8_i2.c: New file.
716 * generated/maxval_i1.c: New file.
717 * generated/maxval_i2.c: New file.
718 * generated/minloc0_16_i1.c: New file.
719 * generated/minloc0_16_i2.c: New file.
720 * generated/minloc0_4_i1.c: New file.
721 * generated/minloc0_4_i2.c: New file.
722 * generated/minloc0_8_i1.c: New file.
723 * generated/minloc0_8_i2.c: New file.
724 * generated/minloc1_16_i1.c: New file.
725 * generated/minloc1_16_i2.c: New file.
726 * generated/minloc1_4_i1.c: New file.
727 * generated/minloc1_4_i2.c: New file.
728 * generated/minloc1_8_i1.c: New file.
729 * generated/minloc1_8_i2.c: New file.
730 * generated/minval_i1.c: New file.
731 * generated/minval_i2.c: New file.
732 * generated/product_i1.c: New file.
733 * generated/product_i2.c: New file.
734 * generated/sum_i1.c: New file.
735 * generated/sum_i2.c: New file.
737 2007-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
739 * runtime/memory.c (deallocate): Correct comment.
741 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
743 * Makefile.am: Use $(M4) instead of m4.
744 * Makefile.in: Regenerate.
746 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
748 * Makefile.am: Remove $(srcdir) from assorted targets
750 * Makefile.in: Regenerate.
752 2007-02-09 Thomas Koenig <Thomas.Koenig@online.de>
753 Tobias Burnus <burnus@net-b.de>
756 * m4/iparm.m4: Use HUGE-1 for most negative integer.
757 * generated/maxloc1_8_i4.c: Regenerate.
758 * generated/maxloc0_8_i8.c: Regenerate.
759 * generated/maxloc1_16_i4.c: Regenerate.
760 * generated/maxloc0_16_i8.c: Regenerate.
761 * generated/maxval_i4.c: Regenerate.
762 * generated/maxloc1_4_i8.c: Regenerate.
763 * generated/maxloc0_16_i16.c: Regenerate.
764 * generated/maxloc1_4_i16.c: Regenerate.
765 * generated/maxloc0_8_i16.c: Regenerate.
766 * generated/maxloc0_4_i4.c: Regenerate.
767 * generated/maxloc1_8_i8.c: Regenerate.
768 * generated/maxloc0_8_i4.c: Regenerate.
769 * generated/maxloc0_16_i4.c: Regenerate.
770 * generated/maxloc1_16_i8.c: Regenerate.
771 * generated/maxloc1_4_i4.c: Regenerate.
772 * generated/maxval_i8.c: Regenerate.
773 * generated/maxloc0_4_i16.c: Regenerate.
774 * generated/maxloc1_8_i16.c: Regenerate.
775 * generated/maxloc0_4_i8.c: Regenerate.
776 * generated/maxloc1_16_i16.c: Regenerate.
777 * generated/maxval_i16.c: Regenerate.
779 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
782 * intrinsics/string_intrinsics.c (string_repeat): Don't check
783 if ncopies is negative.
785 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
788 * libgfortran.h: Do not prefix symbol name with
789 __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
791 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
795 * io/transfer.c (init_loop_spec, next_array_record): Change to
796 lbound rather than unity base.
798 2007-01-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
800 * runtime/error.c: Include sys/time.h before sys/resource.h.
802 2007-01-21 Thomas Koenig <Thomas.Koenig@online.de>
805 * intrinsics/string_intrinsics.c(compare_string): Make
806 sure that comparisons are done unsigned.
808 2007-01-21 Tobias Burnus <burnus@net-b.de>
811 * intrinsics/date_and_time.c (date_and_time): Fix case where time
813 * configure.ac: Remove AC_TRY_RUN test for timezone in
815 * acinclude.m4: Ditto.
816 * configure: Regenerate.
817 * config.h.in: Regenerate.
819 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
821 * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
822 * m4/specific2.m4: Likewise.
823 * m4/specific.m4: Likewise.
824 * intrinsics/f2c_specifics.F90: Likewise.
825 * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
826 * intrinsics/selected_real_kind.f90: Likewise.
827 * intrinsics/dprod_r8.f90: Likewise.
828 * Makefile.am: Add -fallow-leading-underscore to the
829 gfor_specific_src files, as well as selected_real_kind.F90
830 and selected_int_kind.F90
831 * Makefile.in: Regenerate.
832 * generated/_sqrt_c8.F90: Regenerate.
833 * generated/_sign_r16.F90: Regenerate.
834 * generated/_log_c16.F90: Regenerate.
835 * generated/_sin_c10.F90: Regenerate.
836 * generated/_tanh_r4.F90: Regenerate.
837 * generated/_tanh_r8.F90: Regenerate.
838 * generated/_log10_r10.F90: Regenerate.
839 * generated/_aimag_c4.F90: Regenerate.
840 * generated/_sign_r4.F90: Regenerate.
841 * generated/_aimag_c8.F90: Regenerate.
842 * generated/_sign_r8.F90: Regenerate.
843 * generated/_mod_i4.F90: Regenerate.
844 * generated/_cos_r16.F90: Regenerate.
845 * generated/_aint_r10.F90: Regenerate.
846 * generated/_mod_i8.F90: Regenerate.
847 * generated/_abs_i16.F90: Regenerate.
848 * generated/_sqrt_c10.F90: Regenerate.
849 * generated/_atan2_r4.F90: Regenerate.
850 * generated/_cos_c4.F90: Regenerate.
851 * generated/_atan_r16.F90: Regenerate.
852 * generated/_tanh_r10.F90: Regenerate.
853 * generated/_atan2_r8.F90: Regenerate.
854 * generated/_cos_c8.F90: Regenerate.
855 * generated/_exp_r4.F90: Regenerate.
856 * generated/_log_r10.F90: Regenerate.
857 * generated/_exp_r8.F90: Regenerate.
858 * generated/_abs_r4.F90: Regenerate.
859 * generated/_abs_r8.F90: Regenerate.
860 * generated/_sin_r16.F90: Regenerate.
861 * generated/_tan_r4.F90: Regenerate.
862 * generated/_tan_r8.F90: Regenerate.
863 * generated/_sign_i4.F90: Regenerate.
864 * generated/_sign_i8.F90: Regenerate.
865 * generated/_exp_c16.F90: Regenerate.
866 * generated/_sqrt_r16.F90: Regenerate.
867 * generated/_conjg_c4.F90: Regenerate.
868 * generated/_conjg_c8.F90: Regenerate.
869 * generated/_dim_r16.F90: Regenerate.
870 * generated/_mod_r10.F90: Regenerate.
871 * generated/_abs_c10.F90: Regenerate.
872 * generated/_conjg_c16.F90: Regenerate.
873 * generated/_tan_r16.F90: Regenerate.
874 * generated/_asinh_r10.F90: Regenerate.
875 * generated/_abs_i4.F90: Regenerate.
876 * generated/_abs_i8.F90: Regenerate.
877 * generated/_acos_r10.F90: Regenerate.
878 * generated/_exp_r10.F90: Regenerate.
879 * generated/_acosh_r16.F90: Regenerate.
880 * generated/_atan2_r16.F90: Regenerate.
881 * generated/_cos_c16.F90: Regenerate.
882 * generated/_mod_i16.F90: Regenerate.
883 * generated/_asin_r4.F90: Regenerate.
884 * generated/_anint_r16.F90: Regenerate.
885 * generated/_asin_r8.F90: Regenerate.
886 * generated/_aimag_c10.F90: Regenerate.
887 * generated/_exp_c4.F90: Regenerate.
888 * generated/_sinh_r10.F90: Regenerate.
889 * generated/_exp_c8.F90: Regenerate.
890 * generated/_log10_r4.F90: Regenerate.
891 * generated/_log10_r8.F90: Regenerate.
892 * generated/_abs_c4.F90: Regenerate.
893 * generated/_abs_r16.F90: Regenerate.
894 * generated/_abs_c8.F90: Regenerate.
895 * generated/_asin_r10.F90: Regenerate.
896 * generated/_sign_r10.F90: Regenerate.
897 * generated/_atanh_r16.F90: Regenerate.
898 * generated/_log_c10.F90: Regenerate.
899 * generated/_cosh_r16.F90: Regenerate.
900 * generated/_sin_c16.F90: Regenerate.
901 * generated/_cos_r10.F90: Regenerate.
902 * generated/_log10_r16.F90: Regenerate.
903 * generated/_aint_r16.F90: Regenerate.
904 * generated/_acos_r4.F90: Regenerate.
905 * generated/_acos_r8.F90: Regenerate.
906 * generated/_sqrt_c16.F90: Regenerate.
907 * generated/_acosh_r4.F90: Regenerate.
908 * generated/_atan_r10.F90: Regenerate.
909 * generated/_acosh_r8.F90: Regenerate.
910 * generated/_sign_i16.F90: Regenerate.
911 * generated/_tanh_r16.F90: Regenerate.
912 * generated/_log_r4.F90: Regenerate.
913 * generated/_log_r8.F90: Regenerate.
914 * generated/_sin_r4.F90: Regenerate.
915 * generated/_sin_r8.F90: Regenerate.
916 * generated/_log_r16.F90: Regenerate.
917 * generated/_sin_r10.F90: Regenerate.
918 * generated/_sqrt_r4.F90: Regenerate.
919 * generated/_exp_c10.F90: Regenerate.
920 * generated/_sqrt_r8.F90: Regenerate.
921 * generated/_asinh_r4.F90: Regenerate.
922 * generated/_sqrt_r10.F90: Regenerate.
923 * generated/_asinh_r8.F90: Regenerate.
924 * generated/_dim_r4.F90: Regenerate.
925 * generated/_dim_r8.F90: Regenerate.
926 * generated/_dim_r10.F90: Regenerate.
927 * generated/_cosh_r4.F90: Regenerate.
928 * generated/_conjg_c10.F90: Regenerate.
929 * generated/_tan_r10.F90: Regenerate.
930 * generated/_cosh_r8.F90: Regenerate.
931 * generated/_mod_r16.F90: Regenerate.
932 * generated/_abs_c16.F90: Regenerate.
933 * generated/_cos_r4.F90: Regenerate.
934 * generated/_asinh_r16.F90: Regenerate.
935 * generated/_cos_r8.F90: Regenerate.
936 * generated/_atanh_r4.F90: Regenerate.
937 * generated/_atanh_r8.F90: Regenerate.
938 * generated/_acos_r16.F90: Regenerate.
939 * generated/_anint_r4.F90: Regenerate.
940 * generated/_acosh_r10.F90: Regenerate.
941 * generated/_anint_r8.F90: Regenerate.
942 * generated/_exp_r16.F90: Regenerate.
943 * generated/_mod_r4.F90: Regenerate.
944 * generated/_cos_c10.F90: Regenerate.
945 * generated/_atan2_r10.F90: Regenerate.
946 * generated/_dim_i16.F90: Regenerate.
947 * generated/_mod_r8.F90: Regenerate.
948 * generated/_anint_r10.F90: Regenerate.
949 * generated/_aint_r4.F90: Regenerate.
950 * generated/_aint_r8.F90: Regenerate.
951 * generated/_dim_i4.F90: Regenerate.
952 * generated/_sinh_r4.F90: Regenerate.
953 * generated/_log_c4.F90: Regenerate.
954 * generated/_dim_i8.F90: Regenerate.
955 * generated/_sinh_r8.F90: Regenerate.
956 * generated/_log_c8.F90: Regenerate.
957 * generated/_sin_c4.F90: Regenerate.
958 * generated/_sin_c8.F90: Regenerate.
959 * generated/misc_specifics.F90: Regenerate.
960 * generated/_abs_r10.F90: Regenerate.
961 * generated/_aimag_c16.F90: Regenerate.
962 * generated/_atan_r4.F90: Regenerate.
963 * generated/_sinh_r16.F90: Regenerate.
964 * generated/_atan_r8.F90: Regenerate.
965 * generated/_atanh_r10.F90: Regenerate.
966 * generated/_cosh_r10.F90: Regenerate.
967 * generated/_sqrt_c4.F90: Regenerate.
968 * generated/_asin_r16.F90: Regenerate.
970 2007-01-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
973 * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
974 * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
975 * configure: Regenerate.
976 * config.h.in: Regenerate because it was forgottent in the last
979 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
980 Tobias Burnus <burnus@net-b.de>
983 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
984 environment variable.
985 * runtime/compile_options.c (set_std): Add new argument.
986 * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
988 * libgfortran.h (options_t): New dump_core and backtrace members.
989 (sys_exit): Move prototype.
990 * io/unix.c (sys_exit): Move to runtime/error.c.
991 * configure.ac: Add check for getrlimit.
992 * configure: Regenerate.
994 2007-01-17 Tom Tromey <tromey@redhat.com>
997 * aclocal.m4, configure, Makefile.in: Rebuilt.
998 * configure.ac: Enable automake dependency tracking. Update
999 minimum automake version.
1001 2007-01-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1004 * runtime/environ.c: Don't include io/io.h.
1005 * runtime/string.c: Don't include io/io.h.
1006 (compare0): Add cast to avoid warning.
1007 * runtime/error.c: Don't include io/io.h.
1008 (st_printf): Move to io/unix.c.
1009 * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
1010 * intrinsics/fget.c: Likewise.
1011 * intrinsics/ftell.c: Likewise.
1012 * intrinsics/tty.c: Likewise.
1013 * libgfortran.h (DEFAULT_RECL, notification_std,
1014 get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
1015 DEFAULT_TEMPDIR): New declarations.
1016 * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
1017 IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
1018 Move to libgfortran.h.
1019 * io/unix.c: Add io/unix.h content.
1020 (st_printf): New function.
1021 * io/intrinsics.c: New file.
1022 * io/unix.h: Remove, contents moved into unix.c.
1023 * libtool-version: Update library version to 3.0.0.
1024 * configure.ac: Update library version to 0.3.
1025 * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
1026 intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
1027 * Makefile.in: Regenerate.
1028 * configure: Regenerate.
1030 2007-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1033 * io/list_read.c (finish_separator): Don't call next_record.
1034 (list_formatted_read_scalar): Clean up some comments and whitespace.
1035 (nml_read_obj): Whitespace fix.
1037 2007-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1040 * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
1041 s->file_length == -1.
1042 (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
1043 (fd_seek): If not seekable, just return success.
1044 (fd_truncate): If not seekable, no need to truncate. Return failure if
1045 seek fails and the stream is not a pipe.
1046 (fd_to_stream): Make test for non-seekable file more robust.
1048 2007-01-01 Steven G. Kargl <kargls@comcast.net>
1050 * ChangeLog: Copied to ...
1051 * ChangeLog-2006: here.