1 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4 * intrinsics/system.c (system_sub): Call flush_all_units.
5 * io/io.h (flush_all_units): Move prototype to libgfortran.h.
6 * libgfortran.h (flush_all_units): Add prototype.
8 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
11 * runtime/error.c (runtime_error_at): New function.
12 (generate_error): Export this function.
13 * gfortran.map: Add _gfortran_generate_error and
14 _gfortran_runtime_error_at.
15 * libgfortran.h: Add comment to reference error codes in front end.
16 (library_start): Locate prototype with library_end macro and add
17 a new comment. Add prototype for runtime_error_at. Export prototype for
19 * io/lock.c (library_start): Fix check for error condition.
20 * io/transfer.c (data_transfer_init): Add library check.
22 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
25 * io/intrinsics.c (fseek_sub): New.
26 * io/unix.c (fd_fseek): Change logical and physical offsets only
28 * gfortran.map (fseek_sub): New.
30 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33 * io/transfer.c (transfer_character): Avoid passing a NULL
34 pointer as source to the transfer routines, if the string length
37 2007-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
40 * io/list_read.c (next_char): Fix whitespace.
41 * io/io.h: Remove prototypes and define macros for is_array_io,
42 is_stream_io, and is_internal_unit.
43 * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
45 * io/transfer.c (read_sf): Change handling of internal_unit to make a
46 single call to salloc_r and use memcpy to transfer the data.
48 2007-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
51 * io/file_pos.c (st_backspace): Set flags.position for end of file
52 condition and use new function update_position.
53 (st_endfile): Use new function update_position.
54 * io/io.h: Add prototype for new function.
55 * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
57 * io/unit.c (update_position): New function to update position info
59 * io/transfer.c (next_record): Fix typo and use new function.
61 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
64 * intrinsics/getlog.c: Use getpwuid and geteuid instead of
65 getlogin if they are available.
66 * configure.ac: Add checks for getpwuid and geteuid.
67 * configure: Regenerate.
68 * config.h.in: Regenerate.
70 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
72 * configure: Regenerate using autoconf 2.59.
73 * Makefile.in: Likewise.
74 * config.h.in: Likewise.
76 2007-04-24 Janne Blomqvist <jb@gcc.gnu.org>
79 * configure.ac: New test to determine if symbol versioning is
81 * Makefile.am: Use result of above test to add appropriate linker
83 * gfortran.map: New file.
84 * configure: Regenerated.
85 * Makefile.in: Regenerated.
86 * config.h.in: Regenerated.
88 2007-04-23 Thomas Koenig <tkoenig@gcc.gnu.org>
91 * io/transfer.c (read_block_direct): Instead of calling us_read,
92 set dtp->u.p.current_unit->current_record = 0 so that pre_position
93 will read the record marker.
94 (data_transfer_init): For different error conditions, call
95 generate_error, then return.
97 2007-04-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
99 * runtime/main.c (please_free_exe_path_when_done): New variable.
100 (store_exe_path): Initialize character buffer, and mark whether
101 exe_path should be free'd by the library destructor function.
102 (cleanup): Only free exe_path if needed.
104 2007-04-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
105 Tobias Burnus <burnus@net-b.de>
109 * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
110 * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
111 array structures we pass to unpack_internal.
113 2007-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
115 * io/open.c (test_endfile): Revert changes for 31052, restoring this
118 2007-04-14 Steve Ellcey <sje@cup.hp.com>
120 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. Add libgfortran_la_LINK.
121 * Makefile.in: Regenerate.
123 2007-04-11 Kai Tietz <kai.tietz@onevision.com>
125 * configure: Regenerate.
127 2007-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
129 * intrinsics/cpu_time.c: Don't include headers already included
130 by libgfortran.h. Protect inclusion of sys/times.h.
131 * configure.ac: Remove unneeded checks for finit, stdio.h,
132 stddef.h, math.h and sys/params.h.
133 * config/fpu-aix.h: Don't include headers already included by
135 * config/fpu-sysv.h: Likewise.
136 * io/write.c: Likewise.
137 * m4/minloc1.m4: Likewise.
138 * m4/maxloc1.m4: Likewise.
139 * m4/fraction.m4: Likewise.
140 * m4/set_exponent.m4: Likewise.
141 * m4/spacing.m4: Likewise.
142 * m4/minval.m4: Likewise.
143 * m4/maxval.m4: Likewise.
144 * m4/exponent.m4: Likewise.
145 * m4/nearest.m4: Likewise.
146 * m4/minloc0.m4: Likewise.
147 * m4/maxloc0.m4: Likewise.
148 * m4/rrspacing.m4: Likewise.
149 * runtime/main.c: Likewise.
150 * runtime/error.c: Likewise.
151 * intrinsics/system_clock.c: Likewise.
152 * intrinsics/etime.c: Likewise.
153 * intrinsics/stat.c: Likewise.
154 * intrinsics/date_and_time.c: Likewise.
155 * intrinsics/env.c: Likewise.
156 * intrinsics/kill.c: Likewise.
157 * intrinsics/getXid.c: Likewise.
158 * intrinsics/chmod.c: Likewise.
159 * intrinsics/args.c: Likewise.
160 * intrinsics/c99_functions.c: Likewise.
161 * generated/minval_r8.c: Regenerate.
162 * generated/maxloc1_4_r8.c: Regenerate.
163 * generated/minloc1_16_r16.c: Regenerate.
164 * generated/maxval_i2.c: Regenerate.
165 * generated/maxloc1_8_i4.c: Regenerate.
166 * generated/exponent_r16.c: Regenerate.
167 * generated/maxloc0_4_r4.c: Regenerate.
168 * generated/fraction_r16.c: Regenerate.
169 * generated/fraction_r4.c: Regenerate.
170 * generated/minloc0_4_r16.c: Regenerate.
171 * generated/minloc0_4_i1.c: Regenerate.
172 * generated/maxloc0_4_r16.c: Regenerate.
173 * generated/maxloc0_4_i2.c: Regenerate.
174 * generated/minloc1_8_r16.c: Regenerate.
175 * generated/maxloc1_8_r16.c: Regenerate.
176 * generated/set_exponent_r8.c: Regenerate.
177 * generated/maxloc0_8_i8.c: Regenerate.
178 * generated/minloc1_4_r8.c: Regenerate.
179 * generated/maxloc1_16_r16.c: Regenerate.
180 * generated/minloc1_16_i4.c: Regenerate.
181 * generated/maxloc1_16_i4.c: Regenerate.
182 * generated/minloc0_16_i8.c: Regenerate.
183 * generated/maxloc0_16_i8.c: Regenerate.
184 * generated/nearest_r8.c: Regenerate.
185 * generated/spacing_r16.c: Regenerate.
186 * generated/maxval_r16.c: Regenerate.
187 * generated/minloc1_8_i4.c: Regenerate.
188 * generated/minloc0_16_i16.c: Regenerate.
189 * generated/minloc0_4_r4.c: Regenerate.
190 * generated/set_exponent_r10.c: Regenerate.
191 * generated/rrspacing_r10.c: Regenerate.
192 * generated/minloc0_4_i2.c: Regenerate.
193 * generated/maxloc0_8_i1.c: Regenerate.
194 * generated/minloc0_8_i8.c: Regenerate.
195 * generated/spacing_r4.c: Regenerate.
196 * generated/minloc1_16_r10.c: Regenerate.
197 * generated/minloc0_16_i1.c: Regenerate.
198 * generated/maxloc0_16_i1.c: Regenerate.
199 * generated/maxloc1_8_r8.c: Regenerate.
200 * generated/minval_i16.c: Regenerate.
201 * generated/exponent_r10.c: Regenerate.
202 * generated/maxval_i4.c: Regenerate.
203 * generated/minval_i8.c: Regenerate.
204 * generated/maxloc1_4_i8.c: Regenerate.
205 * generated/fraction_r10.c: Regenerate.
206 * generated/maxloc0_16_i16.c: Regenerate.
207 * generated/maxloc0_8_r4.c: Regenerate.
208 * generated/rrspacing_r8.c: Regenerate.
209 * generated/minloc1_4_i16.c: Regenerate.
210 * generated/minloc0_4_r10.c: Regenerate.
211 * generated/maxloc1_4_i16.c: Regenerate.
212 * generated/minloc0_8_i16.c: Regenerate.
213 * generated/maxloc0_4_r10.c: Regenerate.
214 * generated/maxloc0_8_i16.c: Regenerate.
215 * generated/minloc1_8_r10.c: Regenerate.
216 * generated/minloc0_16_r4.c: Regenerate.
217 * generated/maxloc1_8_r10.c: Regenerate.
218 * generated/maxloc0_16_r4.c: Regenerate.
219 * generated/minloc1_16_r8.c: Regenerate.
220 * generated/minloc0_8_i1.c: Regenerate.
221 * generated/maxloc0_4_i4.c: Regenerate.
222 * generated/maxloc1_16_r8.c: Regenerate.
223 * generated/maxloc0_8_i2.c: Regenerate.
224 * generated/nearest_r16.c: Regenerate.
225 * generated/maxloc1_16_r10.c: Regenerate.
226 * generated/minloc0_16_i2.c: Regenerate.
227 * generated/minloc1_8_r8.c: Regenerate.
228 * generated/maxloc0_16_i2.c: Regenerate.
229 * generated/exponent_r4.c: Regenerate.
230 * generated/spacing_r10.c: Regenerate.
231 * generated/maxval_r10.c: Regenerate.
232 * generated/minval_i1.c: Regenerate.
233 * generated/maxloc1_4_i1.c: Regenerate.
234 * generated/minloc1_4_i8.c: Regenerate.
235 * generated/minloc0_8_r4.c: Regenerate.
236 * generated/minloc0_16_r16.c: Regenerate.
237 * generated/minloc0_4_i4.c: Regenerate.
238 * generated/minloc0_8_i2.c: Regenerate.
239 * generated/minval_r4.c: Regenerate.
240 * generated/maxloc1_4_r4.c: Regenerate.
241 * generated/maxval_r8.c: Regenerate.
242 * generated/minval_r16.c: Regenerate.
243 * generated/minloc1_4_i1.c: Regenerate.
244 * generated/minval_i2.c: Regenerate.
245 * generated/maxloc1_4_i2.c: Regenerate.
246 * generated/maxloc1_8_i8.c: Regenerate.
247 * generated/maxloc0_4_r8.c: Regenerate.
248 * generated/maxloc0_16_r16.c: Regenerate.
249 * generated/minloc1_4_r16.c: Regenerate.
250 * generated/fraction_r8.c: Regenerate.
251 * generated/maxloc1_4_r16.c: Regenerate.
252 * generated/set_exponent_r4.c: Regenerate.
253 * generated/minloc0_8_r16.c: Regenerate.
254 * generated/maxloc0_8_r16.c: Regenerate.
255 * generated/nearest_r10.c: Regenerate.
256 * generated/maxloc0_8_i4.c: Regenerate.
257 * generated/minloc1_4_r4.c: Regenerate.
258 * generated/minloc0_16_i4.c: Regenerate.
259 * generated/maxloc0_16_i4.c: Regenerate.
260 * generated/nearest_r4.c: Regenerate.
261 * generated/minloc1_16_i8.c: Regenerate.
262 * generated/maxloc1_16_i8.c: Regenerate.
263 * generated/minloc1_4_i2.c: Regenerate.
264 * generated/maxloc1_8_i1.c: Regenerate.
265 * generated/minloc0_16_r10.c: Regenerate.
266 * generated/minloc1_8_i8.c: Regenerate.
267 * generated/minloc0_4_r8.c: Regenerate.
268 * generated/minloc0_8_i4.c: Regenerate.
269 * generated/minloc1_16_i16.c: Regenerate.
270 * generated/spacing_r8.c: Regenerate.
271 * generated/maxloc1_8_r4.c: Regenerate.
272 * generated/minloc1_16_i1.c: Regenerate.
273 * generated/maxloc1_16_i1.c: Regenerate.
274 * generated/minval_r10.c: Regenerate.
275 * generated/minval_i4.c: Regenerate.
276 * generated/minloc1_8_i1.c: Regenerate.
277 * generated/maxloc1_4_i4.c: Regenerate.
278 * generated/maxloc1_8_i2.c: Regenerate.
279 * generated/maxval_i8.c: Regenerate.
280 * generated/maxloc0_16_r10.c: Regenerate.
281 * generated/rrspacing_r4.c: Regenerate.
282 * generated/minloc0_4_i16.c: Regenerate.
283 * generated/maxloc0_8_r8.c: Regenerate.
284 * generated/maxloc0_4_i16.c: Regenerate.
285 * generated/minloc1_4_r10.c: Regenerate.
286 * generated/minloc1_8_i16.c: Regenerate.
287 * generated/maxloc1_4_r10.c: Regenerate.
288 * generated/minloc0_8_r10.c: Regenerate.
289 * generated/maxloc1_8_i16.c: Regenerate.
290 * generated/maxloc0_8_r10.c: Regenerate.
291 * generated/minloc1_16_r4.c: Regenerate.
292 * generated/maxloc1_16_r4.c: Regenerate.
293 * generated/minloc0_16_r8.c: Regenerate.
294 * generated/maxloc0_16_r8.c: Regenerate.
295 * generated/maxloc0_4_i8.c: Regenerate.
296 * generated/maxloc1_16_i16.c: Regenerate.
297 * generated/minloc1_8_r4.c: Regenerate.
298 * generated/minloc1_16_i2.c: Regenerate.
299 * generated/maxloc1_16_i2.c: Regenerate.
300 * generated/maxval_i16.c: Regenerate.
301 * generated/exponent_r8.c: Regenerate.
302 * generated/minloc1_4_i4.c: Regenerate.
303 * generated/maxval_i1.c: Regenerate.
304 * generated/minloc1_8_i2.c: Regenerate.
305 * generated/minloc0_8_r8.c: Regenerate.
306 * generated/set_exponent_r16.c: Regenerate.
307 * generated/maxloc0_4_i1.c: Regenerate.
308 * generated/rrspacing_r16.c: Regenerate.
309 * generated/minloc0_4_i8.c: Regenerate.
310 * generated/maxval_r4.c: Regenerate.
311 * configure: Regenerate.
312 * config.h.in: Regenerate.
314 2007-04-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
317 * io/format.c (parse_format_list): Fix parsing.
319 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
322 intrinsics/string_intrinsics.c (string_repeat): Remove.
324 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
327 * io/open.c (test_endfile): Delete this function.
328 (edit_modes): Delete call to test_endfile.
329 (new_unit): Likewise.
330 * io/io.h: Delete prototype for test_endfile.
331 * io/transfer.c (next_record_r): Remove use of test_endfile.
332 (st_read): Add test for end file condition and adjust status.
334 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
337 * io/transfer.c (read_block_direct): Do not generate error when reading
338 past EOF on a short record that is less than the RECL= specified.
340 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
343 * io/unit.c (close_unit_1): If there are bytes previously written from
344 ADVANCE="no", move to the end before closing.
346 2007-03-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
349 * intrinsics/stat.c: Only provide STAT and FSTAT library routines
350 if stat() and fstat() library functions are available. When lstat()
351 is not available, use stat() instead.
352 * configure.ac: Add checks for stat, fstat and lstat.
353 * configure: Regenerate.
354 * config.h.in: Regenerate.
356 2007-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
359 * io/transfer.c (next_record_r): Do not call test_endfile if in namelist
362 2007-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
365 * io/io.h: Add saved_pos to gfc_unit structure.
366 * io/open.c (new_unit): Initialize saved_pos.
367 * io/transfer.c (data_transfer_init): Set max_pos to value in saved_pos.
368 (next_record_w): Fix whitespace.
369 (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
370 later use. If not ADVANCE="no" set saved_pos to zero.
372 2007-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
375 * intrinsics/reshape_generic.c (reshape_internal): Increment
378 2007-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
381 * file_pos.c: Update Copyright year.
382 * io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
383 Update Copyright year.
385 * io/unix.c (is_special): Add missing type for this function.
386 Update Copyright year.
387 * io/transfer.c (next_record_r): Restore test_endfile.
388 (st_read): Fix whitespace. Update Copyright year
390 2007-03-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
392 * configure.ac: Add missing check for gettimeofday.
393 * config.h.in: Renegerate.
394 * configure: Regenerate.
396 2007-03-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
399 * io/file_position (st_rewind): Fix comments. Remove use of
400 test_endfile. Don't seek if already at 0 position. Use new is_special
401 function to set endfile state.
402 * io/open.c (test_endfile): Delete this function.
403 * io/io.h: Delete prototype for test_endfile. Add prototype
405 * io/unix.c (is_special): New function. Fix whitespace.
406 * io/transfer.c (next_record_r): Remove use of test_endfile.
408 2007-03-16 David Edelsohn <edelsohn@gnu.org>
410 * runtime/main.c: Include "config.h" first.
412 2007-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
415 * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
417 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
419 * runtime/backtrace.c: New file.
420 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
421 environment variable.
422 * runtime/compile_options.c (set_std): Add new argument.
423 * runtime/main.c (store_exe_path, full_exe_path): New functions.
424 * runtime/error.c (sys_exit): Add call to show_backtrace.
425 * libgfortran.h (options_t): New backtrace field.
426 (store_exe_path, full_exe_path, show_backtrace): New prototypes.
427 * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
428 close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
430 * Makefile.am: Add runtime/backtrace.c.
431 * fmain.c (main): Add call to store_exe_path.
432 * Makefile.in: Renegerate.
433 * config.h.in: Renegerate.
434 * configure: Regenerate.
436 2007-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
439 * io/transfer.c (formatted_transfer_scalar): Adjust position for pending
440 spaces when in writing mode. Clean up some formatting.
442 2007-03-14 Thomas Koenig <Thomas.Koenig@online.de>
445 * all.m4: Quote everything, except for m4 macros.
447 * count.m4: Likewise.
448 * cshift1.m4: Likewise.
449 * eoshift1.m4: Likewise.
450 * eoshift3.m4: Likewise.
451 * exponent.m4: Likewise.
452 * fraction.m4: Likewise.
453 * in_pack.m4: Likewise.
454 * in_unpack.m4: Likewise.
455 * matmul.m4: Likewise.
456 * matmull.m4: Likewise.
457 * nearest.m4: Likewise.
459 * product.m4: Likewise.
460 * reshape.m4: Likewise.
461 * rrspacing.m4: Likewise.
462 * set_exponent.m4: Likewise.
463 * shape.m4: Likewise.
464 * spacing.m4: Likewise.
465 * transpose.m4: Likewise.
467 2007-03-14 Jakub Jelinek <jakub@redhat.com>
469 * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
470 O_RDONLY even if errno is EROFS.
472 2007-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
475 * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
476 * io/transfer.c (next_record_w): Set bytes left to record length for
477 sequential unformatted I/O.
478 (next_record_r): Ditto.
479 (read_block_direct): Fix test for exceeding bytes_left.
481 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
484 * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
487 2007-03-04 Thomas Koenig <Thomas.Koenig@online.de>
490 * m4/pow_m4: Use appropriate unsigned int type for u.
491 * generated/pow_c10_i16.c: Regenerated.
492 * generated/pow_c10_i4.c: Regenerated.
493 * generated/pow_c10_i8.c: Regenerated.
494 * generated/pow_c16_i16.c: Regenerated.
495 * generated/pow_c16_i4.c: Regenerated.
496 * generated/pow_c16_i8.c: Regenerated.
497 * generated/pow_c4_i16.c: Regenerated.
498 * generated/pow_c4_i4.c: Regenerated.
499 * generated/pow_c4_i8.c: Regenerated.
500 * generated/pow_c8_i16.c: Regenerated.
501 * generated/pow_c8_i4.c: Regenerated.
502 * generated/pow_c8_i8.c: Regenerated.
503 * generated/pow_i16_i16.c: Regenerated.
504 * generated/pow_i16_i4.c: Regenerated.
505 * generated/pow_i16_i8.c: Regenerated.
506 * generated/pow_i4_i16.c: Regenerated.
507 * generated/pow_i4_i4.c: Regenerated.
508 * generated/pow_i4_i8.c: Regenerated.
509 * generated/pow_i8_i16.c: Regenerated.
510 * generated/pow_i8_i4.c: Regenerated.
511 * generated/pow_i8_i8.c: Regenerated.
512 * generated/pow_r10_i16.c: Regenerated.
513 * generated/pow_r10_i4.c: Regenerated.
514 * generated/pow_r10_i8.c: Regenerated.
515 * generated/pow_r16_i16.c: Regenerated.
516 * generated/pow_r16_i4.c: Regenerated.
517 * generated/pow_r16_i8.c: Regenerated.
518 * generated/pow_r4_i16.c: Regenerated.
519 * generated/pow_r4_i4.c: Regenerated.
520 * generated/pow_r4_i8.c: Regenerated.
521 * generated/pow_r8_i16.c: Regenerated.
522 * generated/pow_r8_i4.c: Regenerated.
523 * generated/pow_r8_i8.c: Regenerated.
525 2007-03-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
528 * intrinsics/pack_generic.c (pack_internal): Add special checks
529 for zero-sized arrays.
531 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
533 * Makefile.am: Add dummy install-pdf target.
534 * Makefile.in: Regenerate
536 2007-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
539 * io/listread.c (namelist_read): Eat comment line.
541 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
544 * io/write.c (output_float): Add condition of format F only for
545 special case rounding with zero precision.
547 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
551 * Makefile.am: Add $(srcdir) too all files in generated/.
552 (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
553 maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
555 (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
556 maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
558 (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
559 (i_minloc0_c): Add minloc0_4_i1.c, minloc0_8_i1.c,
560 minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
562 (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
563 minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
565 (i_minval_c): Add minval_i1.c and minval_i2.c.
566 (i_sum_c): Add sum_i1.c and sum_i2.c.
567 (i_product_c): Add product_i1.c and product_i2.c.
568 (i_matmul_c): Add matmul_i1.c and matmul_i2.c.
569 (gfor_built_specific_src): Remove $(srcdir) from target.
570 (gfor_bulit_specific2_src): Likewise.
571 Makefile.in: Regenerated.
572 libgfortran.h: Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
573 Add gfc_array_i1 and gfc_array_i2.
574 * generated/matmul_i1.c: New file.
575 * generated/matmul_i2.c: New file.
576 * generated/maxloc0_16_i1.c: New file.
577 * generated/maxloc0_16_i2.c: New file.
578 * generated/maxloc0_4_i1.c: New file.
579 * generated/maxloc0_4_i2.c: New file.
580 * generated/maxloc0_8_i1.c: New file.
581 * generated/maxloc0_8_i2.c: New file.
582 * generated/maxloc1_16_i1.c: New file.
583 * generated/maxloc1_16_i2.c: New file.
584 * generated/maxloc1_4_i1.c: New file.
585 * generated/maxloc1_4_i2.c: New file.
586 * generated/maxloc1_8_i1.c: New file.
587 * generated/maxloc1_8_i2.c: New file.
588 * generated/maxval_i1.c: New file.
589 * generated/maxval_i2.c: New file.
590 * generated/minloc0_16_i1.c: New file.
591 * generated/minloc0_16_i2.c: New file.
592 * generated/minloc0_4_i1.c: New file.
593 * generated/minloc0_4_i2.c: New file.
594 * generated/minloc0_8_i1.c: New file.
595 * generated/minloc0_8_i2.c: New file.
596 * generated/minloc1_16_i1.c: New file.
597 * generated/minloc1_16_i2.c: New file.
598 * generated/minloc1_4_i1.c: New file.
599 * generated/minloc1_4_i2.c: New file.
600 * generated/minloc1_8_i1.c: New file.
601 * generated/minloc1_8_i2.c: New file.
602 * generated/minval_i1.c: New file.
603 * generated/minval_i2.c: New file.
604 * generated/product_i1.c: New file.
605 * generated/product_i2.c: New file.
606 * generated/sum_i1.c: New file.
607 * generated/sum_i2.c: New file.
609 2007-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
611 * runtime/memory.c (deallocate): Correct comment.
613 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
615 * Makefile.am: Use $(M4) instead of m4.
616 * Makefile.in: Regenerate.
618 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
620 * Makefile.am: Remove $(srcdir) from assorted targets
622 * Makefile.in: Regenerate.
624 2007-02-09 Thomas Koenig <Thomas.Koenig@online.de>
625 Tobias Burnus <burnus@net-b.de>
628 * m4/iparm.m4: Use HUGE-1 for most negative integer.
629 * generated/maxloc1_8_i4.c: Regenerate.
630 * generated/maxloc0_8_i8.c: Regenerate.
631 * generated/maxloc1_16_i4.c: Regenerate.
632 * generated/maxloc0_16_i8.c: Regenerate.
633 * generated/maxval_i4.c: Regenerate.
634 * generated/maxloc1_4_i8.c: Regenerate.
635 * generated/maxloc0_16_i16.c: Regenerate.
636 * generated/maxloc1_4_i16.c: Regenerate.
637 * generated/maxloc0_8_i16.c: Regenerate.
638 * generated/maxloc0_4_i4.c: Regenerate.
639 * generated/maxloc1_8_i8.c: Regenerate.
640 * generated/maxloc0_8_i4.c: Regenerate.
641 * generated/maxloc0_16_i4.c: Regenerate.
642 * generated/maxloc1_16_i8.c: Regenerate.
643 * generated/maxloc1_4_i4.c: Regenerate.
644 * generated/maxval_i8.c: Regenerate.
645 * generated/maxloc0_4_i16.c: Regenerate.
646 * generated/maxloc1_8_i16.c: Regenerate.
647 * generated/maxloc0_4_i8.c: Regenerate.
648 * generated/maxloc1_16_i16.c: Regenerate.
649 * generated/maxval_i16.c: Regenerate.
651 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
654 * intrinsics/string_intrinsics.c (string_repeat): Don't check
655 if ncopies is negative.
657 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
660 * libgfortran.h: Do not prefix symbol name with
661 __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
663 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
667 * io/transfer.c (init_loop_spec, next_array_record): Change to
668 lbound rather than unity base.
670 2007-01-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
672 * runtime/error.c: Include sys/time.h before sys/resource.h.
674 2007-01-21 Thomas Koenig <Thomas.Koenig@online.de>
677 * intrinsics/string_intrinsics.c(compare_string): Make
678 sure that comparisons are done unsigned.
680 2007-01-21 Tobias Burnus <burnus@net-b.de>
683 * intrinsics/date_and_time.c (date_and_time): Fix case where time
685 * configure.ac: Remove AC_TRY_RUN test for timezone in
687 * acinclude.m4: Ditto.
688 * configure: Regenerate.
689 * config.h.in: Regenerate.
691 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
693 * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
694 * m4/specific2.m4: Likewise.
695 * m4/specific.m4: Likewise.
696 * intrinsics/f2c_specifics.F90: Likewise.
697 * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
698 * intrinsics/selected_real_kind.f90: Likewise.
699 * intrinsics/dprod_r8.f90: Likewise.
700 * Makefile.am: Add -fallow-leading-underscore to the
701 gfor_specific_src files, as well as selected_real_kind.F90
702 and selected_int_kind.F90
703 * Makefile.in: Regenerate.
704 * generated/_sqrt_c8.F90: Regenerate.
705 * generated/_sign_r16.F90: Regenerate.
706 * generated/_log_c16.F90: Regenerate.
707 * generated/_sin_c10.F90: Regenerate.
708 * generated/_tanh_r4.F90: Regenerate.
709 * generated/_tanh_r8.F90: Regenerate.
710 * generated/_log10_r10.F90: Regenerate.
711 * generated/_aimag_c4.F90: Regenerate.
712 * generated/_sign_r4.F90: Regenerate.
713 * generated/_aimag_c8.F90: Regenerate.
714 * generated/_sign_r8.F90: Regenerate.
715 * generated/_mod_i4.F90: Regenerate.
716 * generated/_cos_r16.F90: Regenerate.
717 * generated/_aint_r10.F90: Regenerate.
718 * generated/_mod_i8.F90: Regenerate.
719 * generated/_abs_i16.F90: Regenerate.
720 * generated/_sqrt_c10.F90: Regenerate.
721 * generated/_atan2_r4.F90: Regenerate.
722 * generated/_cos_c4.F90: Regenerate.
723 * generated/_atan_r16.F90: Regenerate.
724 * generated/_tanh_r10.F90: Regenerate.
725 * generated/_atan2_r8.F90: Regenerate.
726 * generated/_cos_c8.F90: Regenerate.
727 * generated/_exp_r4.F90: Regenerate.
728 * generated/_log_r10.F90: Regenerate.
729 * generated/_exp_r8.F90: Regenerate.
730 * generated/_abs_r4.F90: Regenerate.
731 * generated/_abs_r8.F90: Regenerate.
732 * generated/_sin_r16.F90: Regenerate.
733 * generated/_tan_r4.F90: Regenerate.
734 * generated/_tan_r8.F90: Regenerate.
735 * generated/_sign_i4.F90: Regenerate.
736 * generated/_sign_i8.F90: Regenerate.
737 * generated/_exp_c16.F90: Regenerate.
738 * generated/_sqrt_r16.F90: Regenerate.
739 * generated/_conjg_c4.F90: Regenerate.
740 * generated/_conjg_c8.F90: Regenerate.
741 * generated/_dim_r16.F90: Regenerate.
742 * generated/_mod_r10.F90: Regenerate.
743 * generated/_abs_c10.F90: Regenerate.
744 * generated/_conjg_c16.F90: Regenerate.
745 * generated/_tan_r16.F90: Regenerate.
746 * generated/_asinh_r10.F90: Regenerate.
747 * generated/_abs_i4.F90: Regenerate.
748 * generated/_abs_i8.F90: Regenerate.
749 * generated/_acos_r10.F90: Regenerate.
750 * generated/_exp_r10.F90: Regenerate.
751 * generated/_acosh_r16.F90: Regenerate.
752 * generated/_atan2_r16.F90: Regenerate.
753 * generated/_cos_c16.F90: Regenerate.
754 * generated/_mod_i16.F90: Regenerate.
755 * generated/_asin_r4.F90: Regenerate.
756 * generated/_anint_r16.F90: Regenerate.
757 * generated/_asin_r8.F90: Regenerate.
758 * generated/_aimag_c10.F90: Regenerate.
759 * generated/_exp_c4.F90: Regenerate.
760 * generated/_sinh_r10.F90: Regenerate.
761 * generated/_exp_c8.F90: Regenerate.
762 * generated/_log10_r4.F90: Regenerate.
763 * generated/_log10_r8.F90: Regenerate.
764 * generated/_abs_c4.F90: Regenerate.
765 * generated/_abs_r16.F90: Regenerate.
766 * generated/_abs_c8.F90: Regenerate.
767 * generated/_asin_r10.F90: Regenerate.
768 * generated/_sign_r10.F90: Regenerate.
769 * generated/_atanh_r16.F90: Regenerate.
770 * generated/_log_c10.F90: Regenerate.
771 * generated/_cosh_r16.F90: Regenerate.
772 * generated/_sin_c16.F90: Regenerate.
773 * generated/_cos_r10.F90: Regenerate.
774 * generated/_log10_r16.F90: Regenerate.
775 * generated/_aint_r16.F90: Regenerate.
776 * generated/_acos_r4.F90: Regenerate.
777 * generated/_acos_r8.F90: Regenerate.
778 * generated/_sqrt_c16.F90: Regenerate.
779 * generated/_acosh_r4.F90: Regenerate.
780 * generated/_atan_r10.F90: Regenerate.
781 * generated/_acosh_r8.F90: Regenerate.
782 * generated/_sign_i16.F90: Regenerate.
783 * generated/_tanh_r16.F90: Regenerate.
784 * generated/_log_r4.F90: Regenerate.
785 * generated/_log_r8.F90: Regenerate.
786 * generated/_sin_r4.F90: Regenerate.
787 * generated/_sin_r8.F90: Regenerate.
788 * generated/_log_r16.F90: Regenerate.
789 * generated/_sin_r10.F90: Regenerate.
790 * generated/_sqrt_r4.F90: Regenerate.
791 * generated/_exp_c10.F90: Regenerate.
792 * generated/_sqrt_r8.F90: Regenerate.
793 * generated/_asinh_r4.F90: Regenerate.
794 * generated/_sqrt_r10.F90: Regenerate.
795 * generated/_asinh_r8.F90: Regenerate.
796 * generated/_dim_r4.F90: Regenerate.
797 * generated/_dim_r8.F90: Regenerate.
798 * generated/_dim_r10.F90: Regenerate.
799 * generated/_cosh_r4.F90: Regenerate.
800 * generated/_conjg_c10.F90: Regenerate.
801 * generated/_tan_r10.F90: Regenerate.
802 * generated/_cosh_r8.F90: Regenerate.
803 * generated/_mod_r16.F90: Regenerate.
804 * generated/_abs_c16.F90: Regenerate.
805 * generated/_cos_r4.F90: Regenerate.
806 * generated/_asinh_r16.F90: Regenerate.
807 * generated/_cos_r8.F90: Regenerate.
808 * generated/_atanh_r4.F90: Regenerate.
809 * generated/_atanh_r8.F90: Regenerate.
810 * generated/_acos_r16.F90: Regenerate.
811 * generated/_anint_r4.F90: Regenerate.
812 * generated/_acosh_r10.F90: Regenerate.
813 * generated/_anint_r8.F90: Regenerate.
814 * generated/_exp_r16.F90: Regenerate.
815 * generated/_mod_r4.F90: Regenerate.
816 * generated/_cos_c10.F90: Regenerate.
817 * generated/_atan2_r10.F90: Regenerate.
818 * generated/_dim_i16.F90: Regenerate.
819 * generated/_mod_r8.F90: Regenerate.
820 * generated/_anint_r10.F90: Regenerate.
821 * generated/_aint_r4.F90: Regenerate.
822 * generated/_aint_r8.F90: Regenerate.
823 * generated/_dim_i4.F90: Regenerate.
824 * generated/_sinh_r4.F90: Regenerate.
825 * generated/_log_c4.F90: Regenerate.
826 * generated/_dim_i8.F90: Regenerate.
827 * generated/_sinh_r8.F90: Regenerate.
828 * generated/_log_c8.F90: Regenerate.
829 * generated/_sin_c4.F90: Regenerate.
830 * generated/_sin_c8.F90: Regenerate.
831 * generated/misc_specifics.F90: Regenerate.
832 * generated/_abs_r10.F90: Regenerate.
833 * generated/_aimag_c16.F90: Regenerate.
834 * generated/_atan_r4.F90: Regenerate.
835 * generated/_sinh_r16.F90: Regenerate.
836 * generated/_atan_r8.F90: Regenerate.
837 * generated/_atanh_r10.F90: Regenerate.
838 * generated/_cosh_r10.F90: Regenerate.
839 * generated/_sqrt_c4.F90: Regenerate.
840 * generated/_asin_r16.F90: Regenerate.
842 2007-01-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
845 * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
846 * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
847 * configure: Regenerate.
848 * config.h.in: Regenerate because it was forgottent in the last
851 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
852 Tobias Burnus <burnus@net-b.de>
855 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
856 environment variable.
857 * runtime/compile_options.c (set_std): Add new argument.
858 * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
860 * libgfortran.h (options_t): New dump_core and backtrace members.
861 (sys_exit): Move prototype.
862 * io/unix.c (sys_exit): Move to runtime/error.c.
863 * configure.ac: Add check for getrlimit.
864 * configure: Regenerate.
866 2007-01-17 Tom Tromey <tromey@redhat.com>
869 * aclocal.m4, configure, Makefile.in: Rebuilt.
870 * configure.ac: Enable automake dependency tracking. Update
871 minimum automake version.
873 2007-01-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
876 * runtime/environ.c: Don't include io/io.h.
877 * runtime/string.c: Don't include io/io.h.
878 (compare0): Add cast to avoid warning.
879 * runtime/error.c: Don't include io/io.h.
880 (st_printf): Move to io/unix.c.
881 * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
882 * intrinsics/fget.c: Likewise.
883 * intrinsics/ftell.c: Likewise.
884 * intrinsics/tty.c: Likewise.
885 * libgfortran.h (DEFAULT_RECL, notification_std,
886 get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
887 DEFAULT_TEMPDIR): New declarations.
888 * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
889 IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
890 Move to libgfortran.h.
891 * io/unix.c: Add io/unix.h content.
892 (st_printf): New function.
893 * io/intrinsics.c: New file.
894 * io/unix.h: Remove, contents moved into unix.c.
895 * libtool-version: Update library version to 3.0.0.
896 * configure.ac: Update library version to 0.3.
897 * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
898 intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
899 * Makefile.in: Regenerate.
900 * configure: Regenerate.
902 2007-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
905 * io/list_read.c (finish_separator): Don't call next_record.
906 (list_formatted_read_scalar): Clean up some comments and whitespace.
907 (nml_read_obj): Whitespace fix.
909 2007-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
912 * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
913 s->file_length == -1.
914 (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
915 (fd_seek): If not seekable, just return success.
916 (fd_truncate): If not seekable, no need to truncate. Return failure if
917 seek fails and the stream is not a pipe.
918 (fd_to_stream): Make test for non-seekable file more robust.
920 2007-01-01 Steven G. Kargl <kargls@comcast.net>
922 * ChangeLog: Copied to ...
923 * ChangeLog-2006: here.