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