1 2007-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
4 * intrinsics/spread_generic.c(spread_internal): Enable
5 bounds checking by comparing extents if the bounds_check
6 option has been set. If any extent is <=0, return early.
8 2007-09-06 David Edelsohn <edelsohn@gnu.org>
10 * libgfortran.h: Include config.h first.
11 * io/io.h (struct stream): Rename truncate to trunc.
12 * io/unix.c (fd_open): Same.
13 (open_internal): Same.
15 2007-09-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
18 * io/write.c (nml_write_obj): Set the delimiter correctly before calling
19 write_character. (namelist_write): Clean up the code a little and add
20 comments to clarify what its doing.
22 2007-09-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
25 * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
26 new file write_float.def. Include write_float.def.
27 (extract_real): Delete. (calculate_sign): Delete.
28 (calculate_exp): Delete. (calculate_G_format): Delete.
29 (output_float): Delete. (write_float): Delete.
30 * io/write_float.def (calculate_sign): Added.
31 (output_float): Refactored to be independent of kind and added to this
32 file for inclusion. (write_infnan): New function to write "Infinite" or
33 "NaN" depending on flags passed, independent of kind.
34 (CALCULATE_EXP): New macro to build kind specific functions. Use it.
35 (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
36 (DTOA, DTOAL): Macros to implement "decimal to ascii".
37 (WRITE_FLOAT): New macro for kind specific write_float functions.
38 (write_float): Revised function to determine kind and use WRITE_FLOAT
39 to implement kind specific output.
41 2007-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
44 * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
45 in check of first character in string.
47 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
50 * libgfortran.h: Include gcc/fortran/libgfortran.h.
51 Remove M_PI, GFC_MAX_DIMENSIONS, GFC_DTYPE_*, GFC_NUM_RANK_BITS,
52 error_codes, GFC_STD_*, GFC_FPE_* and unit_convert.
53 * runtime/environ.c (variable_table): Use GFC_*_UNIT_NUMBER instead
54 of hardcoded constants.
55 (do_parse, init_unformatted): Use GFC_CONVERT_* macros instead of
57 * runtime/string.c (find_option): Use LIBERROR_BAD_OPTION instead
59 * runtime/error.c (translate_error, generate_error): Use
60 LIBERROR_* macros instead of ERROR_*.
61 * io/file_pos.c (formatted_backspace, unformatted_backspace,
62 st_backspace, st_rewind, st_flush): Rename macros.
63 * io/open.c (convert_opt, edit_modes, new_unit, already_open,
65 * io/close.c (st_close): Likewise.
66 * io/list_read.c (next_char, convert_integer, parse_repeat,
67 read_logical, read_integer, read_character, parse_real,
68 check_type, list_formatted_read_scalar, namelist_read,
69 nml_err_ret): Likewise.
70 * io/read.c (convert_real, read_l, read_decimal, read_radix,
72 * io/inquire.c (inquire_via_unit): Likewise.
73 * io/unit.c (get_internal_unit): Likewise.
74 * io/transfer.c (read_sf, read_block, read_block_direct,
75 write_block, write_buf, unformatted_read, unformatted_write,
76 formatted_transfer_scalar, us_read, us_write, data_transfer_init,
77 skip_record, next_record_r, write_us_marker, next_record_w_unf,
78 next_record_w, finalize_transfer, st_read, st_write_done):
80 * io/format.c (format_error): Likewise.
82 2007-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
84 * m4/minloc1.m4: Update copyright year and ajust headers order.
85 * m4/maxloc1.m4: Likewise.
86 * m4/in_pack.m4: Likewise.
87 * m4/sum.m4: Likewise.
88 * m4/fraction.m4: Likewise.
89 * m4/all.m4: Likewise.
90 * m4/set_exponent.m4: Likewise.
91 * m4/transpose.m4: Likewise.
92 * m4/eoshift1.m4: Likewise.
93 * m4/spacing.m4: Likewise.
94 * m4/eoshift3.m4: Likewise.
95 * m4/minval.m4: Likewise.
96 * m4/count.m4: Likewise.
97 * m4/maxval.m4: Likewise.
98 * m4/exponent.m4: Likewise.
99 * m4/shape.m4: Likewise.
100 * m4/head.m4: Likewise.
101 * m4/cshift1.m4: Likewise.
102 * m4/minloc0.m4: Likewise.
103 * m4/nearest.m4: Likewise.
104 * m4/maxloc0.m4: Likewise.
105 * m4/pow.m4: Likewise.
106 * m4/in_unpack.m4: Likewise.
107 * m4/matmull.m4: Likewise.
108 * m4/product.m4: Likewise.
109 * m4/reshape.m4: Likewise.
110 * m4/any.m4: Likewise.
111 * m4/rrspacing.m4: Likewise.
112 * m4/matmul.m4: Likewise.
113 * runtime/backtrace.c: Likewise.
114 * runtime/environ.c: Likewise.
115 * runtime/in_pack_generic.c: Likewise.
116 * runtime/compile_options.c: Likewise.
117 * runtime/in_unpack_generic.c: Likewise.
118 * runtime/main.c: Likewise.
119 * runtime/stop.c: Likewise.
120 * runtime/string.c: Likewise.
121 * runtime/memory.c: Likewise.
122 * runtime/error.c: Likewise.
123 * runtime/pause.c: Likewise.
124 * intrinsics/ierrno.c: Likewise.
125 * intrinsics/system_clock.c: Likewise.
126 * intrinsics/cshift0.c: Likewise.
127 * intrinsics/unlink.c: Likewise.
128 * intrinsics/ctime.c: Likewise.
129 * intrinsics/etime.c: Likewise.
130 * intrinsics/cpu_time.c: Likewise.
131 * intrinsics/malloc.c: Likewise.
132 * intrinsics/hostnm.c: Likewise.
133 * intrinsics/sleep.c: Likewise.
134 * intrinsics/exit.c: Likewise.
135 * intrinsics/perror.c: Likewise.
136 * intrinsics/transpose_generic.c: Likewise.
137 * intrinsics/pack_generic.c: Likewise.
138 * intrinsics/spread_generic.c: Likewise.
139 * intrinsics/stat.c: Likewise.
140 * intrinsics/string_intrinsics.c: Likewise.
141 * intrinsics/getcwd.c: Likewise.
142 * intrinsics/date_and_time.c: Likewise.
143 * intrinsics/unpack_generic.c: Likewise.
144 * intrinsics/move_alloc.c: Likewise.
145 * intrinsics/getlog.c: Likewise.
146 * intrinsics/eoshift0.c: Likewise.
147 * intrinsics/eoshift2.c: Likewise.
148 * intrinsics/reshape_generic.c: Likewise.
149 * intrinsics/system.c: Likewise.
150 * intrinsics/iso_c_binding.c: Likewise.
151 * intrinsics/env.c: Likewise.
152 * intrinsics/kill.c: Likewise.
153 * intrinsics/reshape_packed.c: Likewise.
154 * intrinsics/time.c: Likewise.
155 * intrinsics/gerror.c: Likewise.
156 * intrinsics/access.c: Likewise.
157 * intrinsics/fnum.c: Likewise.
158 * intrinsics/abort.c: Likewise.
159 * intrinsics/rename.c: Likewise.
160 * intrinsics/signal.c: Likewise.
161 * intrinsics/symlnk.c: Likewise.
162 * intrinsics/random.c: Likewise.
163 * intrinsics/umask.c: Likewise.
164 * intrinsics/getXid.c: Likewise.
165 * intrinsics/rand.c: Likewise.
166 * intrinsics/chdir.c: Likewise.
167 * intrinsics/chmod.c: Likewise.
168 * intrinsics/clock.c: Likewise.
169 * intrinsics/args.c: Likewise.
170 * intrinsics/link.c: Likewise.
171 * c99_protos.h: Likewise.
172 * config/fpu-387.h: Likewise.
173 * config/fpu-aix.h: Likewise.
174 * config/fpu-sysv.h: Likewise.
175 * config/fpu-generic.h: Likewise.
176 * config/fpu-glibc.h: Likewise.
177 * io/file_pos.c: Likewise.
178 * io/open.c: Likewise.
179 * io/size_from_kind.c: Likewise.
180 * io/close.c: Likewise.
181 * io/list_read.c: Likewise.
182 * io/read.c: Likewise.
183 * io/inquire.c: Likewise.
184 * io/unit.c: Likewise.
185 * io/unix.c: Likewise.
186 * io/transfer.c: Likewise.
187 * io/intrinsics.c: Likewise.
188 * io/format.c: Likewise.
189 * io/lock.c: Likewise.
190 * io/write.c: Likewise.
191 * io/write_float.def: Likewise.
193 * generated/minval_r8.c: Regenerate.
194 * generated/minloc1_16_r16.c: Regenerate.
195 * generated/maxloc1_4_r8.c: Regenerate.
196 * generated/sum_i8.c: Regenerate.
197 * generated/eoshift3_4.c: Regenerate.
198 * generated/transpose_c8.c: Regenerate.
199 * generated/any_l16.c: Regenerate.
200 * generated/eoshift1_8.c: Regenerate.
201 * generated/pow_r8_i8.c: Regenerate.
202 * generated/reshape_r16.c: Regenerate.
203 * generated/pow_i4_i16.c: Regenerate.
204 * generated/maxval_i2.c: Regenerate.
205 * generated/product_r4.c: Regenerate.
206 * generated/maxloc1_8_i4.c: Regenerate.
207 * generated/exponent_r16.c: Regenerate.
208 * generated/maxloc0_4_r4.c: Regenerate.
209 * generated/fraction_r16.c: Regenerate.
210 * generated/in_unpack_i8.c: Regenerate.
211 * generated/matmul_r8.c: Regenerate.
212 * generated/product_i2.c: Regenerate.
213 * generated/fraction_r4.c: Regenerate.
214 * generated/minloc0_4_r16.c: Regenerate.
215 * generated/reshape_c4.c: Regenerate.
216 * generated/minloc0_4_i1.c: Regenerate.
217 * generated/maxloc0_4_r16.c: Regenerate.
218 * generated/maxloc0_4_i2.c: Regenerate.
219 * generated/minloc1_8_r16.c: Regenerate.
220 * generated/maxloc1_8_r16.c: Regenerate.
221 * generated/set_exponent_r8.c: Regenerate.
222 * generated/in_unpack_i16.c: Regenerate.
223 * generated/transpose_c16.c: Regenerate.
224 * generated/maxloc0_8_i8.c: Regenerate.
225 * generated/pow_c4_i8.c: Regenerate.
226 * generated/sum_r16.c: Regenerate.
227 * generated/sum_i1.c: Regenerate.
228 * generated/minloc1_4_r8.c: Regenerate.
229 * generated/transpose_r10.c: Regenerate.
230 * generated/pow_i8_i4.c: Regenerate.
231 * generated/maxloc1_16_r16.c: Regenerate.
232 * generated/minloc1_16_i4.c: Regenerate.
233 * generated/maxloc1_16_i4.c: Regenerate.
234 * generated/minloc0_16_i8.c: Regenerate.
235 * generated/maxloc0_16_i8.c: Regenerate.
236 * generated/nearest_r8.c: Regenerate.
237 * generated/spacing_r16.c: Regenerate.
238 * generated/transpose_i8.c: Regenerate.
239 * generated/count_16_l16.c: Regenerate.
240 * generated/maxval_r16.c: Regenerate.
241 * generated/count_8_l8.c: Regenerate.
242 * generated/product_c10.c: Regenerate.
243 * generated/minloc1_8_i4.c: Regenerate.
244 * generated/minloc0_16_i16.c: Regenerate.
245 * generated/matmul_r16.c: Regenerate.
246 * generated/eoshift1_16.c: Regenerate.
247 * generated/minloc0_4_r4.c: Regenerate.
248 * generated/pow_c16_i16.c: Regenerate.
249 * generated/set_exponent_r10.c: Regenerate.
250 * generated/pow_i16_i16.c: Regenerate.
251 * generated/product_c4.c: Regenerate.
252 * generated/sum_r4.c: Regenerate.
253 * generated/pow_c16_i4.c: Regenerate.
254 * generated/rrspacing_r10.c: Regenerate.
255 * generated/in_pack_c16.c: Regenerate.
256 * generated/minloc0_4_i2.c: Regenerate.
257 * generated/maxloc0_8_i1.c: Regenerate.
258 * generated/reshape_i4.c: Regenerate.
259 * generated/minloc0_8_i8.c: Regenerate.
260 * generated/matmul_c8.c: Regenerate.
261 * generated/spacing_r4.c: Regenerate.
262 * generated/in_pack_c4.c: Regenerate.
263 * generated/all_l16.c: Regenerate.
264 * generated/minloc1_16_r10.c: Regenerate.
265 * generated/sum_i2.c: Regenerate.
266 * generated/minloc0_16_i1.c: Regenerate.
267 * generated/reshape_c16.c: Regenerate.
268 * generated/maxloc0_16_i1.c: Regenerate.
269 * generated/maxloc1_8_r8.c: Regenerate.
270 * generated/minval_i16.c: Regenerate.
271 * generated/reshape_r10.c: Regenerate.
272 * generated/exponent_r10.c: Regenerate.
273 * generated/maxval_i4.c: Regenerate.
274 * generated/any_l4.c: Regenerate.
275 * generated/minval_i8.c: Regenerate.
276 * generated/maxloc1_4_i8.c: Regenerate.
277 * generated/fraction_r10.c: Regenerate.
278 * generated/maxloc0_16_i16.c: Regenerate.
279 * generated/shape_i4.c: Regenerate.
280 * generated/pow_r16_i8.c: Regenerate.
281 * generated/maxloc0_8_r4.c: Regenerate.
282 * generated/rrspacing_r8.c: Regenerate.
283 * generated/pow_c10_i4.c: Regenerate.
284 * generated/minloc1_4_i16.c: Regenerate.
285 * generated/minloc0_4_r10.c: Regenerate.
286 * generated/maxloc1_4_i16.c: Regenerate.
287 * generated/minloc0_8_i16.c: Regenerate.
288 * generated/maxloc0_4_r10.c: Regenerate.
289 * generated/maxloc0_8_i16.c: Regenerate.
290 * generated/minloc1_8_r10.c: Regenerate.
291 * generated/product_i4.c: Regenerate.
292 * generated/minloc0_16_r4.c: Regenerate.
293 * generated/sum_c16.c: Regenerate.
294 * generated/maxloc1_8_r10.c: Regenerate.
295 * generated/maxloc0_16_r4.c: Regenerate.
296 * generated/transpose_c10.c: Regenerate.
297 * generated/minloc1_16_r8.c: Regenerate.
298 * generated/minloc0_8_i1.c: Regenerate.
299 * generated/maxloc0_4_i4.c: Regenerate.
300 * generated/transpose_r4.c: Regenerate.
301 * generated/maxloc1_16_r8.c: Regenerate.
302 * generated/pow_i16_i8.c: Regenerate.
303 * generated/cshift1_4.c: Regenerate.
304 * generated/maxloc0_8_i2.c: Regenerate.
305 * generated/sum_r10.c: Regenerate.
306 * generated/nearest_r16.c: Regenerate.
307 * generated/sum_c4.c: Regenerate.
308 * generated/maxloc1_16_r10.c: Regenerate.
309 * generated/count_4_l16.c: Regenerate.
310 * generated/pow_c8_i8.c: Regenerate.
311 * generated/matmul_i8.c: Regenerate.
312 * generated/in_pack_i4.c: Regenerate.
313 * generated/pow_i4_i8.c: Regenerate.
314 * generated/minloc0_16_i2.c: Regenerate.
315 * generated/minloc1_8_r8.c: Regenerate.
316 * generated/maxloc0_16_i2.c: Regenerate.
317 * generated/exponent_r4.c: Regenerate.
318 * generated/spacing_r10.c: Regenerate.
319 * generated/matmul_c16.c: Regenerate.
320 * generated/pow_c4_i16.c: Regenerate.
321 * generated/maxval_r10.c: Regenerate.
322 * generated/count_4_l4.c: Regenerate.
323 * generated/shape_i16.c: Regenerate.
324 * generated/minval_i1.c: Regenerate.
325 * generated/maxloc1_4_i1.c: Regenerate.
326 * generated/matmul_r10.c: Regenerate.
327 * generated/minloc1_4_i8.c: Regenerate.
328 * generated/pow_r10_i8.c: Regenerate.
329 * generated/minloc0_8_r4.c: Regenerate.
330 * generated/in_unpack_c4.c: Regenerate.
331 * generated/matmul_l4.c: Regenerate.
332 * generated/product_i16.c: Regenerate.
333 * generated/minloc0_16_r16.c: Regenerate.
334 * generated/reshape_r8.c: Regenerate.
335 * generated/pow_r10_i16.c: Regenerate.
336 * generated/all_l4.c: Regenerate.
337 * generated/in_pack_c10.c: Regenerate.
338 * generated/minloc0_4_i4.c: Regenerate.
339 * generated/minloc0_8_i2.c: Regenerate.
340 * generated/matmul_i1.c: Regenerate.
341 * generated/reshape_c10.c: Regenerate.
342 * generated/minval_r4.c: Regenerate.
343 * generated/maxloc1_4_r4.c: Regenerate.
344 * generated/pow_r8_i16.c: Regenerate.
345 * generated/sum_i4.c: Regenerate.
346 * generated/maxval_r8.c: Regenerate.
347 * generated/count_16_l8.c: Regenerate.
348 * generated/transpose_c4.c: Regenerate.
349 * generated/eoshift1_4.c: Regenerate.
350 * generated/eoshift3_8.c: Regenerate.
351 * generated/minval_r16.c: Regenerate.
352 * generated/minloc1_4_i1.c: Regenerate.
353 * generated/minval_i2.c: Regenerate.
354 * generated/maxloc1_4_i2.c: Regenerate.
355 * generated/pow_i8_i16.c: Regenerate.
356 * generated/product_r8.c: Regenerate.
357 * generated/maxloc1_8_i8.c: Regenerate.
358 * generated/maxloc0_4_r8.c: Regenerate.
359 * generated/maxloc0_16_r16.c: Regenerate.
360 * generated/in_unpack_i4.c: Regenerate.
361 * generated/matmul_r4.c: Regenerate.
362 * generated/sum_c10.c: Regenerate.
363 * generated/minloc1_4_r16.c: Regenerate.
364 * generated/fraction_r8.c: Regenerate.
365 * generated/maxloc1_4_r16.c: Regenerate.
366 * generated/set_exponent_r4.c: Regenerate.
367 * generated/minloc0_8_r16.c: Regenerate.
368 * generated/in_unpack_c16.c: Regenerate.
369 * generated/reshape_c8.c: Regenerate.
370 * generated/maxloc0_8_r16.c: Regenerate.
371 * generated/nearest_r10.c: Regenerate.
372 * generated/maxloc0_8_i4.c: Regenerate.
373 * generated/pow_c4_i4.c: Regenerate.
374 * generated/matmul_i2.c: Regenerate.
375 * generated/minloc1_4_r4.c: Regenerate.
376 * generated/transpose_i16.c: Regenerate.
377 * generated/matmul_c10.c: Regenerate.
378 * generated/minloc0_16_i4.c: Regenerate.
379 * generated/maxloc0_16_i4.c: Regenerate.
380 * generated/pow_i8_i8.c: Regenerate.
381 * generated/nearest_r4.c: Regenerate.
382 * generated/minloc1_16_i8.c: Regenerate.
383 * generated/maxloc1_16_i8.c: Regenerate.
384 * generated/transpose_i4.c: Regenerate.
385 * generated/count_8_l4.c: Regenerate.
386 * generated/minloc1_4_i2.c: Regenerate.
387 * generated/matmul_l16.c: Regenerate.
388 * generated/maxloc1_8_i1.c: Regenerate.
389 * generated/minloc0_16_r10.c: Regenerate.
390 * generated/minloc1_8_i8.c: Regenerate.
391 * generated/minloc0_4_r8.c: Regenerate.
392 * generated/product_r16.c: Regenerate.
393 * generated/product_c8.c: Regenerate.
394 * generated/pow_r16_i16.c: Regenerate.
395 * generated/sum_r8.c: Regenerate.
396 * generated/pow_c16_i8.c: Regenerate.
397 * generated/in_pack_i16.c: Regenerate.
398 * generated/minloc0_8_i4.c: Regenerate.
399 * generated/matmul_c4.c: Regenerate.
400 * generated/minloc1_16_i16.c: Regenerate.
401 * generated/reshape_i8.c: Regenerate.
402 * generated/spacing_r8.c: Regenerate.
403 * generated/in_pack_c8.c: Regenerate.
404 * generated/maxloc1_8_r4.c: Regenerate.
405 * generated/minloc1_16_i1.c: Regenerate.
406 * generated/maxloc1_16_i1.c: Regenerate.
407 * generated/reshape_i16.c: Regenerate.
408 * generated/minval_r10.c: Regenerate.
409 * generated/pow_r4_i8.c: Regenerate.
410 * generated/minloc1_8_i1.c: Regenerate.
411 * generated/minval_i4.c: Regenerate.
412 * generated/maxloc1_4_i4.c: Regenerate.
413 * generated/maxloc1_8_i2.c: Regenerate.
414 * generated/maxval_i8.c: Regenerate.
415 * generated/eoshift3_16.c: Regenerate.
416 * generated/any_l8.c: Regenerate.
417 * generated/maxloc0_16_r10.c: Regenerate.
418 * generated/rrspacing_r4.c: Regenerate.
419 * generated/shape_i8.c: Regenerate.
420 * generated/maxloc0_8_r8.c: Regenerate.
421 * generated/minloc0_4_i16.c: Regenerate.
422 * generated/maxloc0_4_i16.c: Regenerate.
423 * generated/minloc1_4_r10.c: Regenerate.
424 * generated/minloc1_8_i16.c: Regenerate.
425 * generated/pow_c10_i8.c: Regenerate.
426 * generated/maxloc1_4_r10.c: Regenerate.
427 * generated/maxloc1_8_i16.c: Regenerate.
428 * generated/in_unpack_c10.c: Regenerate.
429 * generated/minloc0_8_r10.c: Regenerate.
430 * generated/maxloc0_8_r10.c: Regenerate.
431 * generated/minloc1_16_r4.c: Regenerate.
432 * generated/maxloc1_16_r4.c: Regenerate.
433 * generated/minloc0_16_r8.c: Regenerate.
434 * generated/pow_i16_i4.c: Regenerate.
435 * generated/product_i8.c: Regenerate.
436 * generated/maxloc0_16_r8.c: Regenerate.
437 * generated/sum_i16.c: Regenerate.
438 * generated/maxloc0_4_i8.c: Regenerate.
439 * generated/transpose_r8.c: Regenerate.
440 * generated/cshift1_8.c: Regenerate.
441 * generated/maxloc1_16_i16.c: Regenerate.
442 * generated/matmul_i4.c: Regenerate.
443 * generated/pow_c8_i4.c: Regenerate.
444 * generated/pow_i4_i4.c: Regenerate.
445 * generated/minloc1_8_r4.c: Regenerate.
446 * generated/sum_c8.c: Regenerate.
447 * generated/count_8_l16.c: Regenerate.
448 * generated/minloc1_16_i2.c: Regenerate.
449 * generated/maxloc1_16_i2.c: Regenerate.
450 * generated/in_pack_i8.c: Regenerate.
451 * generated/transpose_r16.c: Regenerate.
452 * generated/maxval_i16.c: Regenerate.
453 * generated/exponent_r8.c: Regenerate.
454 * generated/matmul_i16.c: Regenerate.
455 * generated/count_4_l8.c: Regenerate.
456 * generated/pow_c8_i16.c: Regenerate.
457 * generated/maxval_i1.c: Regenerate.
458 * generated/minloc1_4_i4.c: Regenerate.
459 * generated/minloc1_8_i2.c: Regenerate.
460 * generated/pow_c10_i16.c: Regenerate.
461 * generated/product_c16.c: Regenerate.
462 * generated/reshape_r4.c: Regenerate.
463 * generated/in_unpack_c8.c: Regenerate.
464 * generated/minloc0_8_r8.c: Regenerate.
465 * generated/matmul_l8.c: Regenerate.
466 * generated/product_r10.c: Regenerate.
467 * generated/set_exponent_r16.c: Regenerate.
468 * generated/cshift1_16.c: Regenerate.
469 * generated/product_i1.c: Regenerate.
470 * generated/all_l8.c: Regenerate.
471 * generated/maxloc0_4_i1.c: Regenerate.
472 * generated/rrspacing_r16.c: Regenerate.
473 * generated/minloc0_4_i8.c: Regenerate.
474 * generated/pow_r4_i16.c: Regenerate.
475 * generated/count_16_l4.c: Regenerate.
476 * generated/maxval_r4.c: Regenerate.
478 2007-08-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
481 * io/write.c: Revert changes from patch of 2007-08-27.
482 * io/write_float.def: Remove file, reverting addition.
484 2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
486 * runtime/memory.c (internal_realloc, allocate, allocate_array,
487 deallocate): Remove functions.
488 * gfortran.map (_gfortran_allocate, _gfortran_allocate_array,
489 _gfortran_deallocate, _gfortran_internal_realloc): Remove symbols.
490 * libgfortran.h (error_codes): Add comment.
492 2007-08-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
495 Revert previous patch.
497 2007-08-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
499 * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
500 new file write_float.def. Include write_float.def.
501 (extract_real): Delete. (calculate_sign): Delete.
502 (calculate_exp): Delete. (calculate_G_format): Delete.
503 (output_float): Delete. (write_float): Delete.
504 * io/write_float.def (calculate_sign): Added.
505 (output_float): Refactored to be independent of kind and added to this
506 file for inclusion. (write_infnan): New function to write "Infinite" or
507 "NaN" depending on flags passed, independent of kind.
508 (CALCULATE_EXP): New macro to build kind specific functions. Use it.
509 (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
510 (DTOA, DTOAL): Macros to implement "decimal to ascii".
511 (WRITE_FLOAT): New macro for kind specific write_float functions.
512 (write_float): Revised function to determine kind and use WRITE_FLOAT
513 to implement kind specific output.
515 2007-08-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
518 * io/inquire.c (inquire_via_unit): If inquiring by unit, check for
519 an error condition from the IOSTAT variable and set EXIST to false if
520 there was a bad unit number.
522 2007-08-24 Thomas Koenig <tkoenig@gcc.gnu.org>
525 * libgfortran.h: Remove GFOR_POINTER_L8_TO_L4 macro.
526 Add GFOR_POINTER_TO_L1 macro.
527 * m4/iforeach.m4(`m'name`'rtype_qual`_'atype_code):
528 Change argument 'mask' to gfc_array_l1. Adjust prototype.
529 Change mask pointer to GFC_LOGICAL_1. Multiply strides
531 * m4/ifunction.m4: Likewise.
532 * intrinsics/pack_generic.c(pack_internal): Likewise.
533 * intrinsics/unpack_generic.c(unpack_internal): Likewise.
534 * m4/matmull.m4: Switch to GFC_LOGICAL_1. Multiply strides by
535 kind of logical arguments a and b.
536 * generated/matmul_l16.c: Regenerated.
537 * generated/matmul_l4.c: Regenerated.
538 * generated/matmul_l8.c: Regenerated.
539 * generated/maxloc0_16_i1.c: Regenerated.
540 * generated/maxloc0_16_i16.c: Regenerated.
541 * generated/maxloc0_16_i2.c: Regenerated.
542 * generated/maxloc0_16_i4.c: Regenerated.
543 * generated/maxloc0_16_i8.c: Regenerated.
544 * generated/maxloc0_16_r10.c: Regenerated.
545 * generated/maxloc0_16_r16.c: Regenerated.
546 * generated/maxloc0_16_r4.c: Regenerated.
547 * generated/maxloc0_16_r8.c: Regenerated.
548 * generated/maxloc0_4_i1.c: Regenerated.
549 * generated/maxloc0_4_i16.c: Regenerated.
550 * generated/maxloc0_4_i2.c: Regenerated.
551 * generated/maxloc0_4_i4.c: Regenerated.
552 * generated/maxloc0_4_i8.c: Regenerated.
553 * generated/maxloc0_4_r10.c: Regenerated.
554 * generated/maxloc0_4_r16.c: Regenerated.
555 * generated/maxloc0_4_r4.c: Regenerated.
556 * generated/maxloc0_4_r8.c: Regenerated.
557 * generated/maxloc0_8_i1.c: Regenerated.
558 * generated/maxloc0_8_i16.c: Regenerated.
559 * generated/maxloc0_8_i2.c: Regenerated.
560 * generated/maxloc0_8_i4.c: Regenerated.
561 * generated/maxloc0_8_i8.c: Regenerated.
562 * generated/maxloc0_8_r10.c: Regenerated.
563 * generated/maxloc0_8_r16.c: Regenerated.
564 * generated/maxloc0_8_r4.c: Regenerated.
565 * generated/maxloc0_8_r8.c: Regenerated.
566 * generated/maxloc1_16_i1.c: Regenerated.
567 * generated/maxloc1_16_i16.c: Regenerated.
568 * generated/maxloc1_16_i2.c: Regenerated.
569 * generated/maxloc1_16_i4.c: Regenerated.
570 * generated/maxloc1_16_i8.c: Regenerated.
571 * generated/maxloc1_16_r10.c: Regenerated.
572 * generated/maxloc1_16_r16.c: Regenerated.
573 * generated/maxloc1_16_r4.c: Regenerated.
574 * generated/maxloc1_16_r8.c: Regenerated.
575 * generated/maxloc1_4_i1.c: Regenerated.
576 * generated/maxloc1_4_i16.c: Regenerated.
577 * generated/maxloc1_4_i2.c: Regenerated.
578 * generated/maxloc1_4_i4.c: Regenerated.
579 * generated/maxloc1_4_i8.c: Regenerated.
580 * generated/maxloc1_4_r10.c: Regenerated.
581 * generated/maxloc1_4_r16.c: Regenerated.
582 * generated/maxloc1_4_r4.c: Regenerated.
583 * generated/maxloc1_4_r8.c: Regenerated.
584 * generated/maxloc1_8_i1.c: Regenerated.
585 * generated/maxloc1_8_i16.c: Regenerated.
586 * generated/maxloc1_8_i2.c: Regenerated.
587 * generated/maxloc1_8_i4.c: Regenerated.
588 * generated/maxloc1_8_i8.c: Regenerated.
589 * generated/maxloc1_8_r10.c: Regenerated.
590 * generated/maxloc1_8_r16.c: Regenerated.
591 * generated/maxloc1_8_r4.c: Regenerated.
592 * generated/maxloc1_8_r8.c: Regenerated.
593 * generated/maxval_i1.c: Regenerated.
594 * generated/maxval_i16.c: Regenerated.
595 * generated/maxval_i2.c: Regenerated.
596 * generated/maxval_i4.c: Regenerated.
597 * generated/maxval_i8.c: Regenerated.
598 * generated/maxval_r10.c: Regenerated.
599 * generated/maxval_r16.c: Regenerated.
600 * generated/maxval_r4.c: Regenerated.
601 * generated/maxval_r8.c: Regenerated.
602 * generated/minloc0_16_i1.c: Regenerated.
603 * generated/minloc0_16_i16.c: Regenerated.
604 * generated/minloc0_16_i2.c: Regenerated.
605 * generated/minloc0_16_i4.c: Regenerated.
606 * generated/minloc0_16_i8.c: Regenerated.
607 * generated/minloc0_16_r10.c: Regenerated.
608 * generated/minloc0_16_r16.c: Regenerated.
609 * generated/minloc0_16_r4.c: Regenerated.
610 * generated/minloc0_16_r8.c: Regenerated.
611 * generated/minloc0_4_i1.c: Regenerated.
612 * generated/minloc0_4_i16.c: Regenerated.
613 * generated/minloc0_4_i2.c: Regenerated.
614 * generated/minloc0_4_i4.c: Regenerated.
615 * generated/minloc0_4_i8.c: Regenerated.
616 * generated/minloc0_4_r10.c: Regenerated.
617 * generated/minloc0_4_r16.c: Regenerated.
618 * generated/minloc0_4_r4.c: Regenerated.
619 * generated/minloc0_4_r8.c: Regenerated.
620 * generated/minloc0_8_i1.c: Regenerated.
621 * generated/minloc0_8_i16.c: Regenerated.
622 * generated/minloc0_8_i2.c: Regenerated.
623 * generated/minloc0_8_i4.c: Regenerated.
624 * generated/minloc0_8_i8.c: Regenerated.
625 * generated/minloc0_8_r10.c: Regenerated.
626 * generated/minloc0_8_r16.c: Regenerated.
627 * generated/minloc0_8_r4.c: Regenerated.
628 * generated/minloc0_8_r8.c: Regenerated.
629 * generated/minloc1_16_i1.c: Regenerated.
630 * generated/minloc1_16_i16.c: Regenerated.
631 * generated/minloc1_16_i2.c: Regenerated.
632 * generated/minloc1_16_i4.c: Regenerated.
633 * generated/minloc1_16_i8.c: Regenerated.
634 * generated/minloc1_16_r10.c: Regenerated.
635 * generated/minloc1_16_r16.c: Regenerated.
636 * generated/minloc1_16_r4.c: Regenerated.
637 * generated/minloc1_16_r8.c: Regenerated.
638 * generated/minloc1_4_i1.c: Regenerated.
639 * generated/minloc1_4_i16.c: Regenerated.
640 * generated/minloc1_4_i2.c: Regenerated.
641 * generated/minloc1_4_i4.c: Regenerated.
642 * generated/minloc1_4_i8.c: Regenerated.
643 * generated/minloc1_4_r10.c: Regenerated.
644 * generated/minloc1_4_r16.c: Regenerated.
645 * generated/minloc1_4_r4.c: Regenerated.
646 * generated/minloc1_4_r8.c: Regenerated.
647 * generated/minloc1_8_i1.c: Regenerated.
648 * generated/minloc1_8_i16.c: Regenerated.
649 * generated/minloc1_8_i2.c: Regenerated.
650 * generated/minloc1_8_i4.c: Regenerated.
651 * generated/minloc1_8_i8.c: Regenerated.
652 * generated/minloc1_8_r10.c: Regenerated.
653 * generated/minloc1_8_r16.c: Regenerated.
654 * generated/minloc1_8_r4.c: Regenerated.
655 * generated/minloc1_8_r8.c: Regenerated.
656 * generated/minval_i1.c: Regenerated.
657 * generated/minval_i16.c: Regenerated.
658 * generated/minval_i2.c: Regenerated.
659 * generated/minval_i4.c: Regenerated.
660 * generated/minval_i8.c: Regenerated.
661 * generated/minval_r10.c: Regenerated.
662 * generated/minval_r16.c: Regenerated.
663 * generated/minval_r4.c: Regenerated.
664 * generated/minval_r8.c: Regenerated.
665 * generated/product_c10.c: Regenerated.
666 * generated/product_c16.c: Regenerated.
667 * generated/product_c4.c: Regenerated.
668 * generated/product_c8.c: Regenerated.
669 * generated/product_i1.c: Regenerated.
670 * generated/product_i16.c: Regenerated.
671 * generated/product_i2.c: Regenerated.
672 * generated/product_i4.c: Regenerated.
673 * generated/product_i8.c: Regenerated.
674 * generated/product_r10.c: Regenerated.
675 * generated/product_r16.c: Regenerated.
676 * generated/product_r4.c: Regenerated.
677 * generated/product_r8.c: Regenerated.
678 * generated/sum_c10.c: Regenerated.
679 * generated/sum_c16.c: Regenerated.
680 * generated/sum_c4.c: Regenerated.
681 * generated/sum_c8.c: Regenerated.
682 * generated/sum_i1.c: Regenerated.
683 * generated/sum_i16.c: Regenerated.
684 * generated/sum_i2.c: Regenerated.
685 * generated/sum_i4.c: Regenerated.
686 * generated/sum_i8.c: Regenerated.
687 * generated/sum_r10.c: Regenerated.
688 * generated/sum_r16.c: Regenerated.
689 * generated/sum_r4.c: Regenerated.
690 * generated/sum_r8.c: Regenerated.
692 2007-08-23 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
695 * acinclude.m4 (LIBGFOR_CHECK_MINGW_SNPRINTF): New check.
696 * configure.ac: Use LIBGFOR_CHECK_MINGW_SNPRINTF.
697 * libgfortran.h: If HAVE_MINGW_SNPRINTF is true, use __mingw_snprintf
699 * config.h.in: Regenerate.
700 * configure: Regenerate.
702 2007-08-22 Bernhard Fischer <rep.dot.nop@gmail.com>
704 * libgfortran/Makefile.am (AM_CPPFLAGS): Commentary typo fix.
706 2007-08-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
709 * intrinsics/string_intrinsics.c (string_trim, string_minmax): Fix
710 the zero-length result case.
712 2007-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
715 * intrinsics/random.c (random_seed_i8): Fix code logic.
717 2007-08-13 Danny Smith <dannysmit@users.sourceforge.net>
719 * acinclude.m4 (GTHREAD_USE_WEAK) Define to 0 for mingw32.
720 * configure: Regenerate.
722 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
726 * intrinsics/random.c (random_seed): Rename into random_seed_i4.
727 (random_seed_i8): New function.
728 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_random_seed,
729 add _gfortran_random_seed_i4 and _gfortran_random_seed_i8.
730 * libgfortran.h (iexport_proto): Replace random_seed by
731 random_seed_i4 and random_seed_i8.
732 * runtime/main.c (init): Call the new random_seed_i4.
734 2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
735 Tobias Burnus <burnus@gcc.gnu.org>
738 * runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
739 when displaying backtrace.
740 * runtime/compile_options.c: Include <signal.h>.
741 (handler): New function.
742 (set_options): Set signal handlers for backtrace.
743 * libgfortran.h (handler): Add prototype.
745 2007-08-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
747 * intrinsics/string_intrinsics.c (compare_string): Return an int.
748 * libgfortran.h (compare_string): Likewise.
750 2007-08-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
753 * runtime/error.c (runtime_error_at): Add a variable number of
755 * libgfortran.h (runtime_error_at): Update prototype.
757 2007-08-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
760 * intrinsics/associated.c: Change return type of associated into
763 2007-08-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
766 * io/list_read.c (find_nml_name): Check for a space after a namelist
769 2007-08-09 Tobias Burnus <burnus@net-b.de>
772 * io/format.c (next_char): Treat '\t' as ' ' in format specification.
774 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
777 * intrinsics/signal.c: Create specific versions of alarm_sub and
778 alarm_sub_int according to the integer kind of the last argument.
779 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_alarm_sub and
780 _gfortran_alarm_sub_int, add _gfortran_alarm_sub_i4,
781 _gfortran_alarm_sub_i8, _gfortran_alarm_sub_int_i4 and
782 _gfortran_alarm_sub_int_i8.
784 2007-08-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
787 * intrinsics/string_intrinsics.c (string_minmax): New function
789 * gfortran.map (GFORTRAN_1.0): Add _gfortran_string_minmax
791 2007-08-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
794 * intrinsics/c99_functions.c (roundl): Provide fallback
795 implementation for systems without ceill.
796 * c99_protos.h (roundl): Define prototype in all cases.
798 2007-08-03 Thomas Koenig <tkoenig@gcc.gnu.org>
801 * io/unix.c: If there is no vsnprintf, use vsprintf and issue
802 a fatal error when a buffer overrun occurs.
804 2007-08-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
807 * intrinsics/c99_functions.c (roundl,lroundf,lround,lroundl,
808 llroundf,llround,llroundl): New functions.
809 * c99_protos.h (roundl,lroundf,lround,lroundl,llroundf,llround,
810 llroundl): New prototypes.
811 * configure.ac: Check for lroundf, lround, lroundl, llroundf,
812 llround and llroundl.
813 * configure: Regenerate.
814 * Makefile.in: Regenerate.
815 * config.h.in: Regenerate.
817 2007-07-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
819 * libgfortran.h: Include <stdarg.h>.
821 2007-07-29 Thomas Koenig <tkoenig@gcc.gnu.org>
825 * configure.ac: Added checks for presence of stdio.h and
826 stdarg.h. Test presence of vsnprintf().
827 * configure: Regenerated.
828 * config.h.in: Regenerated.
829 * libgfortran.h: Include <stdio.h>. Add printf attribute to
830 prototype of runtime_error. Remove prototype for st_sprintf.
831 Add prototype for st_vprintf.
832 * runtime/main.c (store_exec_path): Replace st_sprintf by sprintf.
833 * runtime/error.c (st_sprintf): Remove.
834 (runtime_error): Rewrite as a variadic function. Call
836 * intrinsics/pack_generic.c: Output extents of LHS and RHS for
838 * io/open.c (new_unit): Replace st_sprintf by sprintf.
839 * io/list_read.c (convert_integer): Likewise.
840 (parse_repeat): Likewise.
841 (read_logical): Likewise.
842 (read_character): Likewise.
843 (parse_real): Likewise.
844 (read_real): Likewise.
845 (check_type): Likewise.
846 (nml_parse_qualifyer): Likewise.
847 (nml_read_obj): Likewise.
848 (nml_get_ojb_data): Likewise.
849 * io/unix.c (init_error_stream): Remove.
850 (tempfile): Replace st_sprintf by sprintf.
851 (st_vprintf): New function.
852 (st_printf): Rewrite to call st_vprintf.
853 * io/transfer.c (require_type): Replace st_sprintf by sprintf.
854 * io/format.c (format_error): Likewise.
855 * io/write.c (nml_write_obj): Likewise.
857 2007-07-27 Janne Blomqvist <jb@gcc.gnu.org>
859 * io/transfer.c (st_set_nml_var_dim): Use index_type instead of
860 GFC_INTEGER_4 for array descriptor triplets.
862 2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
864 * io/unix.c (stream_ttyname): Mark argument as potentialy unused.
866 2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
869 * runtime/select.c (select_string): Adjust prototype and function
870 so that the return value is an integer, not a pointer.
872 2007-07-24 Tobias Burnus <burnus@net-b.de>
874 * libgfortran.h: Add bounds_check to compile_options_t.
876 2007-07-24 Thomas Koenig <tkoenig@gcc.gnu.org>
879 * libgfortran.h: Add bounds_check to compile_options_t.
880 * runtime/compile_options.c (set_options): Add handling
881 of compile_options.bounds_check.
882 * intrinsics/pack_generic.c (pack_internal): Also determine
883 the number of elements if compile_options.bounds_check is
884 true. Raise runtime error if a different array shape is
887 2007-07-23 Christopher D. Rickett <crickett@lanl.gov>
890 * intrinsics/iso_c_binding.c (c_funloc): Remove.
891 * intrinsics/iso_c_binding.h: Remove c_funloc.
892 * gfortran.map: Ditto.
894 2007-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
896 * io/read.c (convert_real): Generate error only on EINVAL.
898 2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
901 * libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
902 for character/string arguments.
903 * libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
904 the optional SHAPE arg to be any valid integer kind.
905 * libgfortran/gfortran.map: Add c_f_pointer_s0.
906 * libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
908 * libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
909 c_f_pointer for complex and logical types.
910 * libgfortran/gfortran.map: Add c_f_pointer versions for logical
913 2007-07-19 Christopher D. Rickett <crickett@lanl.gov>
916 * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
917 * libgfortran/intrinsics/iso_c_binding.h: Ditto.
918 * libgfortran/gfortran.map: Ditto.
920 2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
921 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
924 * runtime/compile_options.c (set_std): Remove.
925 (set_options): New function.
926 (init_compile_options): Add initialization for -fsign-zero option.
927 * gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
928 _gfortran_set_options.
929 * libgfortran.h (compile_options_t): Add sign_zero field.
930 * io/write.c (output_float): Use the sign bit of the value to determine
931 if a negative sign should be emitted for zero values. Do not emit the
932 negative sign for zero if -fno-sign-zero was set during compile.
934 2007-07-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
937 * io/unix.c (unix_stream): Move buffer pointer adjacent to small_buffer.
938 * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
939 bytes_used to zero. Fix off by one error in calculation of pos and
940 skips. Eliminate duplicate pending_spaces check.
942 2007-07-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
945 * intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
946 TOPOS arguments are C int.
948 2007-07-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
951 * io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
952 (fd_alloc): If the number of bytes needed is greater than the default
953 BUFFER_SIZE, allocate a new buffer large enough. Free the old buffer if
954 necessary. (fd_sfree): Restore use of buffer pointer.
955 (fd_close): Likewise. (fd_open): Likewise.
956 (init_error_stream): Likewise.
958 2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
961 * m4/matmul.m4: When the dimension of b is incorrect,
962 raise a runtime error instead of a failed assertion.
963 * generated/matmul_i1.c: Regenerated.
964 * generated/matmul_i2.c: Regenerated.
965 * generated/matmul_i4.c: Regenerated.
966 * generated/matmul_i8.c: Regenerated.
967 * generated/matmul_i16.c: Regenerated.
968 * generated/matmul_r4.c: Regenerated.
969 * generated/matmul_r8.c: Regenerated.
970 * generated/matmul_r10.c: Regenerated.
971 * generated/matmul_r16.c: Regenerated.
973 2007-07-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
976 * io/transfer.c (formatted_transfer_scalar): Don't allow pending_spaces
979 2007-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
982 * intrinsics/unpack_generic.c: If the destination array is
985 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
987 * aclocal.m4: Regenerated.
989 2007-07-04 David Edelsohn <edelsohn@gnu.org>
991 * configure.ac: SUBST CFLAGS.
992 * configure: Regenerate.
994 2007-07-03 Janne Blomqvist <jb@gcc.gnu.org>
996 * libgfortran.h: Mark internal_malloc_size as a malloc function.
997 * runtime/memory.c (internal_realloc_size): Remove.
998 (internal_realloc): Call realloc directly instead of
999 internal_realloc_size.
1000 (allocate_size): Remove.
1001 (allocate): Call malloc directly instead of allocate_size, mark as
1004 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1006 Restore collateral damage from ISO C Binding merge.
1008 2007-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1010 PR libgfortran/32456
1011 * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1014 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1016 * Makefile.in: Regenerated with automake 1.9.6.
1018 2007-07-02 Steven G. Kargl <kargl@gcc.gnu.org>
1020 * Makefile.in: Remove extraneous kill.lo rule.
1022 2007-07-02 Janne Blomqvist <jb@gcc.gnu.org>
1025 * generated/pow_r*_i4.c: Removed.
1027 2007-07-01 Christopher D. Rickett <crickett@lanl.gov>
1029 * Makefile.in: Add support for iso_c_generated_procs.c and
1031 * Makefile.am: Ditto.
1032 * intrinsics/iso_c_generated_procs.c: New file containing helper
1034 * intrinsics/iso_c_binding.c: Ditto.
1035 * intrinsics/iso_c_binding.h: New file
1036 * gfortran.map: Include the __iso_c_binding_c_* functions.
1037 * libgfortran.h: define GFC_NUM_RANK_BITS.
1039 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
1042 * Makefile.am: Don't generate real**int4 pow functions.
1043 * gfortran.map: Remove real**int4 pow symbols.
1044 * Makefile.in: Regenerated.
1046 2007-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1048 PR libgfortran/32554
1049 * io/write.c (output_float): Set edigits to a fixed size, avoiding
1050 variation in field width calculation and eliminate buffer overrun.
1052 2007-07-01 Janne Blomqvist <jb@gcc.gnu.org>
1054 * runtime/memory.c (internal_realloc): Use index_type for size
1055 argument instead of GFC_INTEGER_4.
1056 (allocate_array): Likewise.
1057 (allocate): Likewise, add ifdef around unnecessary check.
1058 (internal_reallo64): Remove.
1059 (allocate_array64): Remove.
1060 (allocate64): Remove.
1061 * gfortran.map: Remove symbols for 64-bit allocation functions.
1063 2007-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1065 PR libgfortran/32456
1066 * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1069 2007-06-24 Adam Nemet <anemet@caviumnetworks.com>
1072 * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
1073 (show_backtrace): Rename strcasestr to local_strcasestr.
1075 2007-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1077 PR libgfortran/32456
1078 * runtime/error.c (show_locus): Update to emit the unit number
1079 and file name involved with the error. Use new function
1081 * libgfortran.h (filename_from_unit): Declare new function.
1082 * io/unit.c (init_units): Set the unit file name for stdin, stdout,
1083 and stderr for use later in error reporting.
1084 (filename_from_unit): Add this new function.
1086 2007-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1088 PR libgfortran/32446
1089 * io/write.c (output_float): Calculate ndigits correctly for large
1090 numbered formats that must pad zeros before the decimal point.
1092 2007-06-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1095 * runtime/backtrace.c (show_backtrace): Only use snprintf if
1098 2007-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1100 PR libgfortran/32235
1101 * io/transfer.c (st_read): Remove test for end of file condition.
1102 (next_record_r): Add test for end of file condition.
1104 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1106 * configure: Regenerate.
1108 2007-05-28 Tobias Burnus <burnus@net-b.de>
1111 * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
1112 (allocate,allocate64): Use stat variable if present.
1114 2007-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1116 * runtime/string.c (compare0): Use gfc_charlen_type instead of
1118 (fstrlen): Likewise.
1119 (find_option): Likewise.
1120 (fstrcpy): Use gfc_charlen_type instead of int, return length.
1121 (cf_strcpy): Likewise.
1122 * libgfortran.h: Change string prototypes to use gfc_charlen_type.
1123 * io/open.c (new_unit): Use snprintf if available.
1124 * io/list_read.c (nml_touch_nodes): Use memcpy instead of
1126 (nml_read_obj): Likewise.
1127 * io/transfer.c (st_set_nml_var): Likewise.
1128 * io/write.c (output_float): Use snprintf if available.
1129 (nml_write_obj) Use memcpy instead of strcpy/strcat.
1131 2007-05-26 Janne Blomqvist <jb@gcc.gnu.org>
1133 * io/unix.c (unix_stream): Rearrange struct members, remove
1135 (int_stream): New struct.
1136 (fd_alloc): Always use existing buffer, never reallocate.
1137 (fd_sfree): Remove check for buffer != small_buffer.
1138 (fd_close): Likewise.
1139 (mem_alloc_r_at): Change to use int_stream.
1140 (mem_alloc_w_at): Likewise.
1141 (mem_read): Likewise.
1142 (mem_write): Likewise.
1143 (mem_set): Likewise.
1144 (mem_truncate): Likewise.
1145 (mem_close): Likewise.
1146 (mem_sfree): Likewise.
1147 (empty_internal_buffer): Likewise.
1148 (open_internal): Likewise.
1150 2007-05-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1152 * io/transfer.c (unformatted_read): Use size from front end eliminating
1153 use of size_from_real_kind. (unformatted_write): Ditto.
1155 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1157 * Makefile.in: Regenerate.
1158 * configure: Regenerate.
1159 * aclocal.m4: Regenerate.
1161 2007-05-22 Tobias Burnus <burnus@net-b.de>
1163 * libgfortran.h: Mark stop_numeric as noreturn.
1165 2007-05-22 Tobias Burnus <burnus@net-b.de>
1167 PR libgfortran/31295
1168 * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
1169 * intrinsics/eoshift2.c (eoshift2): Ditto.
1171 2007-05-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1174 * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
1175 shift of bit-size number of bits.
1177 2007-05-17 Tobias Burnus <burnus@net-b.de>
1180 * runtime/environ.c (mark_range): Fix setting default convert unit.
1182 2007-05-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1185 * intrinsics/string_intrinsics.c (string_trim): Set result to null if
1186 string length is zero.
1188 2007-05-15 Tobias Burnus <burnus@net-b.de>
1191 * io/transfer.c (unformatted_read): Use proper size for real(10).
1192 (unformatted_write): Ditto.
1194 2007-05-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1197 * runtime/memory.c (internal_malloc, internal_malloc64,
1198 internal_free): Remove.
1199 * runtime/error.c (os_error): Export function.
1200 * intrinsics/move_alloc.c: Include stdlib.h.
1201 (move_alloc): Call free instead of internal_free.
1202 (move_alloc_c): Wrap long lines.
1203 * libgfortran.h (os_error): Export prototype.
1204 (internal_free): Remove prototype.
1205 * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
1206 _gfortran_internal_malloc and _gfortran_internal_malloc64.
1207 Add _gfortran_os_error.
1209 2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1212 * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
1214 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1217 * intrinsics/system.c (system_sub): Call flush_all_units.
1218 * io/io.h (flush_all_units): Move prototype to libgfortran.h.
1219 * libgfortran.h (flush_all_units): Add prototype.
1221 2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1224 * runtime/error.c (runtime_error_at): New function.
1225 (generate_error): Export this function.
1226 * gfortran.map: Add _gfortran_generate_error and
1227 _gfortran_runtime_error_at.
1228 * libgfortran.h: Add comment to reference error codes in front end.
1229 (library_start): Locate prototype with library_end macro and add
1230 a new comment. Add prototype for runtime_error_at. Export prototype for
1232 * io/lock.c (library_start): Fix check for error condition.
1233 * io/transfer.c (data_transfer_init): Add library check.
1235 2007-05-04 Daniel Franke <franke.daniel@gmail.com>
1238 * io/intrinsics.c (fseek_sub): New.
1239 * io/unix.c (fd_fseek): Change logical and physical offsets only
1241 * gfortran.map (fseek_sub): New.
1243 2007-05-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1246 * io/transfer.c (transfer_character): Avoid passing a NULL
1247 pointer as source to the transfer routines, if the string length
1250 2007-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1253 * io/list_read.c (next_char): Fix whitespace.
1254 * io/io.h: Remove prototypes and define macros for is_array_io,
1255 is_stream_io, and is_internal_unit.
1256 * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
1258 * io/transfer.c (read_sf): Change handling of internal_unit to make a
1259 single call to salloc_r and use memcpy to transfer the data.
1261 2007-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1264 * io/file_pos.c (st_backspace): Set flags.position for end of file
1265 condition and use new function update_position.
1266 (st_endfile): Use new function update_position.
1267 * io/io.h: Add prototype for new function.
1268 * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
1270 * io/unit.c (update_position): New function to update position info
1272 * io/transfer.c (next_record): Fix typo and use new function.
1274 2007-04-25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1277 * intrinsics/getlog.c: Use getpwuid and geteuid instead of
1278 getlogin if they are available.
1279 * configure.ac: Add checks for getpwuid and geteuid.
1280 * configure: Regenerate.
1281 * config.h.in: Regenerate.
1283 2007-04-25 Janne Blomqvist <jb@gcc.gnu.org>
1285 * configure: Regenerate using autoconf 2.59.
1286 * Makefile.in: Likewise.
1287 * config.h.in: Likewise.
1289 2007-04-24 Janne Blomqvist <jb@gcc.gnu.org>
1292 * configure.ac: New test to determine if symbol versioning is
1294 * Makefile.am: Use result of above test to add appropriate linker
1296 * gfortran.map: New file.
1297 * configure: Regenerated.
1298 * Makefile.in: Regenerated.
1299 * config.h.in: Regenerated.
1301 2007-04-23 Thomas Koenig <tkoenig@gcc.gnu.org>
1304 * io/transfer.c (read_block_direct): Instead of calling us_read,
1305 set dtp->u.p.current_unit->current_record = 0 so that pre_position
1306 will read the record marker.
1307 (data_transfer_init): For different error conditions, call
1308 generate_error, then return.
1310 2007-04-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1312 * runtime/main.c (please_free_exe_path_when_done): New variable.
1313 (store_exe_path): Initialize character buffer, and mark whether
1314 exe_path should be free'd by the library destructor function.
1315 (cleanup): Only free exe_path if needed.
1317 2007-04-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1318 Tobias Burnus <burnus@net-b.de>
1322 * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
1323 * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
1324 array structures we pass to unpack_internal.
1326 2007-04-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1328 * io/open.c (test_endfile): Revert changes for 31052, restoring this
1331 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1333 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. Add libgfortran_la_LINK.
1334 * Makefile.in: Regenerate.
1336 2007-04-11 Kai Tietz <kai.tietz@onevision.com>
1338 * configure: Regenerate.
1340 2007-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1342 * intrinsics/cpu_time.c: Don't include headers already included
1343 by libgfortran.h. Protect inclusion of sys/times.h.
1344 * configure.ac: Remove unneeded checks for finit, stdio.h,
1345 stddef.h, math.h and sys/params.h.
1346 * config/fpu-aix.h: Don't include headers already included by
1348 * config/fpu-sysv.h: Likewise.
1349 * io/write.c: Likewise.
1350 * m4/minloc1.m4: Likewise.
1351 * m4/maxloc1.m4: Likewise.
1352 * m4/fraction.m4: Likewise.
1353 * m4/set_exponent.m4: Likewise.
1354 * m4/spacing.m4: Likewise.
1355 * m4/minval.m4: Likewise.
1356 * m4/maxval.m4: Likewise.
1357 * m4/exponent.m4: Likewise.
1358 * m4/nearest.m4: Likewise.
1359 * m4/minloc0.m4: Likewise.
1360 * m4/maxloc0.m4: Likewise.
1361 * m4/rrspacing.m4: Likewise.
1362 * runtime/main.c: Likewise.
1363 * runtime/error.c: Likewise.
1364 * intrinsics/system_clock.c: Likewise.
1365 * intrinsics/etime.c: Likewise.
1366 * intrinsics/stat.c: Likewise.
1367 * intrinsics/date_and_time.c: Likewise.
1368 * intrinsics/env.c: Likewise.
1369 * intrinsics/kill.c: Likewise.
1370 * intrinsics/getXid.c: Likewise.
1371 * intrinsics/chmod.c: Likewise.
1372 * intrinsics/args.c: Likewise.
1373 * intrinsics/c99_functions.c: Likewise.
1374 * generated/minval_r8.c: Regenerate.
1375 * generated/maxloc1_4_r8.c: Regenerate.
1376 * generated/minloc1_16_r16.c: Regenerate.
1377 * generated/maxval_i2.c: Regenerate.
1378 * generated/maxloc1_8_i4.c: Regenerate.
1379 * generated/exponent_r16.c: Regenerate.
1380 * generated/maxloc0_4_r4.c: Regenerate.
1381 * generated/fraction_r16.c: Regenerate.
1382 * generated/fraction_r4.c: Regenerate.
1383 * generated/minloc0_4_r16.c: Regenerate.
1384 * generated/minloc0_4_i1.c: Regenerate.
1385 * generated/maxloc0_4_r16.c: Regenerate.
1386 * generated/maxloc0_4_i2.c: Regenerate.
1387 * generated/minloc1_8_r16.c: Regenerate.
1388 * generated/maxloc1_8_r16.c: Regenerate.
1389 * generated/set_exponent_r8.c: Regenerate.
1390 * generated/maxloc0_8_i8.c: Regenerate.
1391 * generated/minloc1_4_r8.c: Regenerate.
1392 * generated/maxloc1_16_r16.c: Regenerate.
1393 * generated/minloc1_16_i4.c: Regenerate.
1394 * generated/maxloc1_16_i4.c: Regenerate.
1395 * generated/minloc0_16_i8.c: Regenerate.
1396 * generated/maxloc0_16_i8.c: Regenerate.
1397 * generated/nearest_r8.c: Regenerate.
1398 * generated/spacing_r16.c: Regenerate.
1399 * generated/maxval_r16.c: Regenerate.
1400 * generated/minloc1_8_i4.c: Regenerate.
1401 * generated/minloc0_16_i16.c: Regenerate.
1402 * generated/minloc0_4_r4.c: Regenerate.
1403 * generated/set_exponent_r10.c: Regenerate.
1404 * generated/rrspacing_r10.c: Regenerate.
1405 * generated/minloc0_4_i2.c: Regenerate.
1406 * generated/maxloc0_8_i1.c: Regenerate.
1407 * generated/minloc0_8_i8.c: Regenerate.
1408 * generated/spacing_r4.c: Regenerate.
1409 * generated/minloc1_16_r10.c: Regenerate.
1410 * generated/minloc0_16_i1.c: Regenerate.
1411 * generated/maxloc0_16_i1.c: Regenerate.
1412 * generated/maxloc1_8_r8.c: Regenerate.
1413 * generated/minval_i16.c: Regenerate.
1414 * generated/exponent_r10.c: Regenerate.
1415 * generated/maxval_i4.c: Regenerate.
1416 * generated/minval_i8.c: Regenerate.
1417 * generated/maxloc1_4_i8.c: Regenerate.
1418 * generated/fraction_r10.c: Regenerate.
1419 * generated/maxloc0_16_i16.c: Regenerate.
1420 * generated/maxloc0_8_r4.c: Regenerate.
1421 * generated/rrspacing_r8.c: Regenerate.
1422 * generated/minloc1_4_i16.c: Regenerate.
1423 * generated/minloc0_4_r10.c: Regenerate.
1424 * generated/maxloc1_4_i16.c: Regenerate.
1425 * generated/minloc0_8_i16.c: Regenerate.
1426 * generated/maxloc0_4_r10.c: Regenerate.
1427 * generated/maxloc0_8_i16.c: Regenerate.
1428 * generated/minloc1_8_r10.c: Regenerate.
1429 * generated/minloc0_16_r4.c: Regenerate.
1430 * generated/maxloc1_8_r10.c: Regenerate.
1431 * generated/maxloc0_16_r4.c: Regenerate.
1432 * generated/minloc1_16_r8.c: Regenerate.
1433 * generated/minloc0_8_i1.c: Regenerate.
1434 * generated/maxloc0_4_i4.c: Regenerate.
1435 * generated/maxloc1_16_r8.c: Regenerate.
1436 * generated/maxloc0_8_i2.c: Regenerate.
1437 * generated/nearest_r16.c: Regenerate.
1438 * generated/maxloc1_16_r10.c: Regenerate.
1439 * generated/minloc0_16_i2.c: Regenerate.
1440 * generated/minloc1_8_r8.c: Regenerate.
1441 * generated/maxloc0_16_i2.c: Regenerate.
1442 * generated/exponent_r4.c: Regenerate.
1443 * generated/spacing_r10.c: Regenerate.
1444 * generated/maxval_r10.c: Regenerate.
1445 * generated/minval_i1.c: Regenerate.
1446 * generated/maxloc1_4_i1.c: Regenerate.
1447 * generated/minloc1_4_i8.c: Regenerate.
1448 * generated/minloc0_8_r4.c: Regenerate.
1449 * generated/minloc0_16_r16.c: Regenerate.
1450 * generated/minloc0_4_i4.c: Regenerate.
1451 * generated/minloc0_8_i2.c: Regenerate.
1452 * generated/minval_r4.c: Regenerate.
1453 * generated/maxloc1_4_r4.c: Regenerate.
1454 * generated/maxval_r8.c: Regenerate.
1455 * generated/minval_r16.c: Regenerate.
1456 * generated/minloc1_4_i1.c: Regenerate.
1457 * generated/minval_i2.c: Regenerate.
1458 * generated/maxloc1_4_i2.c: Regenerate.
1459 * generated/maxloc1_8_i8.c: Regenerate.
1460 * generated/maxloc0_4_r8.c: Regenerate.
1461 * generated/maxloc0_16_r16.c: Regenerate.
1462 * generated/minloc1_4_r16.c: Regenerate.
1463 * generated/fraction_r8.c: Regenerate.
1464 * generated/maxloc1_4_r16.c: Regenerate.
1465 * generated/set_exponent_r4.c: Regenerate.
1466 * generated/minloc0_8_r16.c: Regenerate.
1467 * generated/maxloc0_8_r16.c: Regenerate.
1468 * generated/nearest_r10.c: Regenerate.
1469 * generated/maxloc0_8_i4.c: Regenerate.
1470 * generated/minloc1_4_r4.c: Regenerate.
1471 * generated/minloc0_16_i4.c: Regenerate.
1472 * generated/maxloc0_16_i4.c: Regenerate.
1473 * generated/nearest_r4.c: Regenerate.
1474 * generated/minloc1_16_i8.c: Regenerate.
1475 * generated/maxloc1_16_i8.c: Regenerate.
1476 * generated/minloc1_4_i2.c: Regenerate.
1477 * generated/maxloc1_8_i1.c: Regenerate.
1478 * generated/minloc0_16_r10.c: Regenerate.
1479 * generated/minloc1_8_i8.c: Regenerate.
1480 * generated/minloc0_4_r8.c: Regenerate.
1481 * generated/minloc0_8_i4.c: Regenerate.
1482 * generated/minloc1_16_i16.c: Regenerate.
1483 * generated/spacing_r8.c: Regenerate.
1484 * generated/maxloc1_8_r4.c: Regenerate.
1485 * generated/minloc1_16_i1.c: Regenerate.
1486 * generated/maxloc1_16_i1.c: Regenerate.
1487 * generated/minval_r10.c: Regenerate.
1488 * generated/minval_i4.c: Regenerate.
1489 * generated/minloc1_8_i1.c: Regenerate.
1490 * generated/maxloc1_4_i4.c: Regenerate.
1491 * generated/maxloc1_8_i2.c: Regenerate.
1492 * generated/maxval_i8.c: Regenerate.
1493 * generated/maxloc0_16_r10.c: Regenerate.
1494 * generated/rrspacing_r4.c: Regenerate.
1495 * generated/minloc0_4_i16.c: Regenerate.
1496 * generated/maxloc0_8_r8.c: Regenerate.
1497 * generated/maxloc0_4_i16.c: Regenerate.
1498 * generated/minloc1_4_r10.c: Regenerate.
1499 * generated/minloc1_8_i16.c: Regenerate.
1500 * generated/maxloc1_4_r10.c: Regenerate.
1501 * generated/minloc0_8_r10.c: Regenerate.
1502 * generated/maxloc1_8_i16.c: Regenerate.
1503 * generated/maxloc0_8_r10.c: Regenerate.
1504 * generated/minloc1_16_r4.c: Regenerate.
1505 * generated/maxloc1_16_r4.c: Regenerate.
1506 * generated/minloc0_16_r8.c: Regenerate.
1507 * generated/maxloc0_16_r8.c: Regenerate.
1508 * generated/maxloc0_4_i8.c: Regenerate.
1509 * generated/maxloc1_16_i16.c: Regenerate.
1510 * generated/minloc1_8_r4.c: Regenerate.
1511 * generated/minloc1_16_i2.c: Regenerate.
1512 * generated/maxloc1_16_i2.c: Regenerate.
1513 * generated/maxval_i16.c: Regenerate.
1514 * generated/exponent_r8.c: Regenerate.
1515 * generated/minloc1_4_i4.c: Regenerate.
1516 * generated/maxval_i1.c: Regenerate.
1517 * generated/minloc1_8_i2.c: Regenerate.
1518 * generated/minloc0_8_r8.c: Regenerate.
1519 * generated/set_exponent_r16.c: Regenerate.
1520 * generated/maxloc0_4_i1.c: Regenerate.
1521 * generated/rrspacing_r16.c: Regenerate.
1522 * generated/minloc0_4_i8.c: Regenerate.
1523 * generated/maxval_r4.c: Regenerate.
1524 * configure: Regenerate.
1525 * config.h.in: Regenerate.
1527 2007-04-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1530 * io/format.c (parse_format_list): Fix parsing.
1532 2007-04-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1535 intrinsics/string_intrinsics.c (string_repeat): Remove.
1537 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1540 * io/open.c (test_endfile): Delete this function.
1541 (edit_modes): Delete call to test_endfile.
1542 (new_unit): Likewise.
1543 * io/io.h: Delete prototype for test_endfile.
1544 * io/transfer.c (next_record_r): Remove use of test_endfile.
1545 (st_read): Add test for end file condition and adjust status.
1547 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1550 * io/transfer.c (read_block_direct): Do not generate error when reading
1551 past EOF on a short record that is less than the RECL= specified.
1553 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1556 * io/unit.c (close_unit_1): If there are bytes previously written from
1557 ADVANCE="no", move to the end before closing.
1559 2007-03-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1562 * intrinsics/stat.c: Only provide STAT and FSTAT library routines
1563 if stat() and fstat() library functions are available. When lstat()
1564 is not available, use stat() instead.
1565 * configure.ac: Add checks for stat, fstat and lstat.
1566 * configure: Regenerate.
1567 * config.h.in: Regenerate.
1569 2007-03-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1572 * io/transfer.c (next_record_r): Do not call test_endfile if in namelist
1575 2007-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1578 * io/io.h: Add saved_pos to gfc_unit structure.
1579 * io/open.c (new_unit): Initialize saved_pos.
1580 * io/transfer.c (data_transfer_init): Set max_pos to value in saved_pos.
1581 (next_record_w): Fix whitespace.
1582 (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
1583 later use. If not ADVANCE="no" set saved_pos to zero.
1585 2007-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
1588 * intrinsics/reshape_generic.c (reshape_internal): Increment
1591 2007-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1594 * file_pos.c: Update Copyright year.
1595 * io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
1596 Update Copyright year.
1598 * io/unix.c (is_special): Add missing type for this function.
1599 Update Copyright year.
1600 * io/transfer.c (next_record_r): Restore test_endfile.
1601 (st_read): Fix whitespace. Update Copyright year
1603 2007-03-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1605 * configure.ac: Add missing check for gettimeofday.
1606 * config.h.in: Renegerate.
1607 * configure: Regenerate.
1609 2007-03-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1612 * io/file_position (st_rewind): Fix comments. Remove use of
1613 test_endfile. Don't seek if already at 0 position. Use new is_special
1614 function to set endfile state.
1615 * io/open.c (test_endfile): Delete this function.
1616 * io/io.h: Delete prototype for test_endfile. Add prototype
1618 * io/unix.c (is_special): New function. Fix whitespace.
1619 * io/transfer.c (next_record_r): Remove use of test_endfile.
1621 2007-03-16 David Edelsohn <edelsohn@gnu.org>
1623 * runtime/main.c: Include "config.h" first.
1625 2007-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1628 * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
1630 2007-03-15 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1632 * runtime/backtrace.c: New file.
1633 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
1634 environment variable.
1635 * runtime/compile_options.c (set_std): Add new argument.
1636 * runtime/main.c (store_exe_path, full_exe_path): New functions.
1637 * runtime/error.c (sys_exit): Add call to show_backtrace.
1638 * libgfortran.h (options_t): New backtrace field.
1639 (store_exe_path, full_exe_path, show_backtrace): New prototypes.
1640 * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
1641 close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
1643 * Makefile.am: Add runtime/backtrace.c.
1644 * fmain.c (main): Add call to store_exe_path.
1645 * Makefile.in: Renegerate.
1646 * config.h.in: Renegerate.
1647 * configure: Regenerate.
1649 2007-03-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1652 * io/transfer.c (formatted_transfer_scalar): Adjust position for pending
1653 spaces when in writing mode. Clean up some formatting.
1655 2007-03-14 Thomas Koenig <Thomas.Koenig@online.de>
1658 * all.m4: Quote everything, except for m4 macros.
1660 * count.m4: Likewise.
1661 * cshift1.m4: Likewise.
1662 * eoshift1.m4: Likewise.
1663 * eoshift3.m4: Likewise.
1664 * exponent.m4: Likewise.
1665 * fraction.m4: Likewise.
1666 * in_pack.m4: Likewise.
1667 * in_unpack.m4: Likewise.
1668 * matmul.m4: Likewise.
1669 * matmull.m4: Likewise.
1670 * nearest.m4: Likewise.
1672 * product.m4: Likewise.
1673 * reshape.m4: Likewise.
1674 * rrspacing.m4: Likewise.
1675 * set_exponent.m4: Likewise.
1676 * shape.m4: Likewise.
1677 * spacing.m4: Likewise.
1678 * transpose.m4: Likewise.
1680 2007-03-14 Jakub Jelinek <jakub@redhat.com>
1682 * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
1683 O_RDONLY even if errno is EROFS.
1685 2007-03-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1688 * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
1689 * io/transfer.c (next_record_w): Set bytes left to record length for
1690 sequential unformatted I/O.
1691 (next_record_r): Ditto.
1692 (read_block_direct): Fix test for exceeding bytes_left.
1694 2007-03-08 Daniel Franke <franke.daniel@gmail.com>
1697 * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
1700 2007-03-04 Thomas Koenig <Thomas.Koenig@online.de>
1703 * m4/pow_m4: Use appropriate unsigned int type for u.
1704 * generated/pow_c10_i16.c: Regenerated.
1705 * generated/pow_c10_i4.c: Regenerated.
1706 * generated/pow_c10_i8.c: Regenerated.
1707 * generated/pow_c16_i16.c: Regenerated.
1708 * generated/pow_c16_i4.c: Regenerated.
1709 * generated/pow_c16_i8.c: Regenerated.
1710 * generated/pow_c4_i16.c: Regenerated.
1711 * generated/pow_c4_i4.c: Regenerated.
1712 * generated/pow_c4_i8.c: Regenerated.
1713 * generated/pow_c8_i16.c: Regenerated.
1714 * generated/pow_c8_i4.c: Regenerated.
1715 * generated/pow_c8_i8.c: Regenerated.
1716 * generated/pow_i16_i16.c: Regenerated.
1717 * generated/pow_i16_i4.c: Regenerated.
1718 * generated/pow_i16_i8.c: Regenerated.
1719 * generated/pow_i4_i16.c: Regenerated.
1720 * generated/pow_i4_i4.c: Regenerated.
1721 * generated/pow_i4_i8.c: Regenerated.
1722 * generated/pow_i8_i16.c: Regenerated.
1723 * generated/pow_i8_i4.c: Regenerated.
1724 * generated/pow_i8_i8.c: Regenerated.
1725 * generated/pow_r10_i16.c: Regenerated.
1726 * generated/pow_r10_i4.c: Regenerated.
1727 * generated/pow_r10_i8.c: Regenerated.
1728 * generated/pow_r16_i16.c: Regenerated.
1729 * generated/pow_r16_i4.c: Regenerated.
1730 * generated/pow_r16_i8.c: Regenerated.
1731 * generated/pow_r4_i16.c: Regenerated.
1732 * generated/pow_r4_i4.c: Regenerated.
1733 * generated/pow_r4_i8.c: Regenerated.
1734 * generated/pow_r8_i16.c: Regenerated.
1735 * generated/pow_r8_i4.c: Regenerated.
1736 * generated/pow_r8_i8.c: Regenerated.
1738 2007-03-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1741 * intrinsics/pack_generic.c (pack_internal): Add special checks
1742 for zero-sized arrays.
1744 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1746 * Makefile.am: Add dummy install-pdf target.
1747 * Makefile.in: Regenerate
1749 2007-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1752 * io/listread.c (namelist_read): Eat comment line.
1754 2007-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1757 * io/write.c (output_float): Add condition of format F only for
1758 special case rounding with zero precision.
1760 2007-02-19 Thomas Koenig <Thomas.Koenig@online.de>
1764 * Makefile.am: Add $(srcdir) too all files in generated/.
1765 (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
1766 maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
1768 (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
1769 maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
1771 (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
1772 (i_minloc0_c): Add minloc0_4_i1.c, minloc0_8_i1.c,
1773 minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
1775 (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
1776 minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
1778 (i_minval_c): Add minval_i1.c and minval_i2.c.
1779 (i_sum_c): Add sum_i1.c and sum_i2.c.
1780 (i_product_c): Add product_i1.c and product_i2.c.
1781 (i_matmul_c): Add matmul_i1.c and matmul_i2.c.
1782 (gfor_built_specific_src): Remove $(srcdir) from target.
1783 (gfor_bulit_specific2_src): Likewise.
1784 Makefile.in: Regenerated.
1785 libgfortran.h: Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
1786 Add gfc_array_i1 and gfc_array_i2.
1787 * generated/matmul_i1.c: New file.
1788 * generated/matmul_i2.c: New file.
1789 * generated/maxloc0_16_i1.c: New file.
1790 * generated/maxloc0_16_i2.c: New file.
1791 * generated/maxloc0_4_i1.c: New file.
1792 * generated/maxloc0_4_i2.c: New file.
1793 * generated/maxloc0_8_i1.c: New file.
1794 * generated/maxloc0_8_i2.c: New file.
1795 * generated/maxloc1_16_i1.c: New file.
1796 * generated/maxloc1_16_i2.c: New file.
1797 * generated/maxloc1_4_i1.c: New file.
1798 * generated/maxloc1_4_i2.c: New file.
1799 * generated/maxloc1_8_i1.c: New file.
1800 * generated/maxloc1_8_i2.c: New file.
1801 * generated/maxval_i1.c: New file.
1802 * generated/maxval_i2.c: New file.
1803 * generated/minloc0_16_i1.c: New file.
1804 * generated/minloc0_16_i2.c: New file.
1805 * generated/minloc0_4_i1.c: New file.
1806 * generated/minloc0_4_i2.c: New file.
1807 * generated/minloc0_8_i1.c: New file.
1808 * generated/minloc0_8_i2.c: New file.
1809 * generated/minloc1_16_i1.c: New file.
1810 * generated/minloc1_16_i2.c: New file.
1811 * generated/minloc1_4_i1.c: New file.
1812 * generated/minloc1_4_i2.c: New file.
1813 * generated/minloc1_8_i1.c: New file.
1814 * generated/minloc1_8_i2.c: New file.
1815 * generated/minval_i1.c: New file.
1816 * generated/minval_i2.c: New file.
1817 * generated/product_i1.c: New file.
1818 * generated/product_i2.c: New file.
1819 * generated/sum_i1.c: New file.
1820 * generated/sum_i2.c: New file.
1822 2007-02-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1824 * runtime/memory.c (deallocate): Correct comment.
1826 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
1828 * Makefile.am: Use $(M4) instead of m4.
1829 * Makefile.in: Regenerate.
1831 2007-02-10 Thomas Koenig <Thomas.Koenig@online.de>
1833 * Makefile.am: Remove $(srcdir) from assorted targets
1835 * Makefile.in: Regenerate.
1837 2007-02-09 Thomas Koenig <Thomas.Koenig@online.de>
1838 Tobias Burnus <burnus@net-b.de>
1841 * m4/iparm.m4: Use HUGE-1 for most negative integer.
1842 * generated/maxloc1_8_i4.c: Regenerate.
1843 * generated/maxloc0_8_i8.c: Regenerate.
1844 * generated/maxloc1_16_i4.c: Regenerate.
1845 * generated/maxloc0_16_i8.c: Regenerate.
1846 * generated/maxval_i4.c: Regenerate.
1847 * generated/maxloc1_4_i8.c: Regenerate.
1848 * generated/maxloc0_16_i16.c: Regenerate.
1849 * generated/maxloc1_4_i16.c: Regenerate.
1850 * generated/maxloc0_8_i16.c: Regenerate.
1851 * generated/maxloc0_4_i4.c: Regenerate.
1852 * generated/maxloc1_8_i8.c: Regenerate.
1853 * generated/maxloc0_8_i4.c: Regenerate.
1854 * generated/maxloc0_16_i4.c: Regenerate.
1855 * generated/maxloc1_16_i8.c: Regenerate.
1856 * generated/maxloc1_4_i4.c: Regenerate.
1857 * generated/maxval_i8.c: Regenerate.
1858 * generated/maxloc0_4_i16.c: Regenerate.
1859 * generated/maxloc1_8_i16.c: Regenerate.
1860 * generated/maxloc0_4_i8.c: Regenerate.
1861 * generated/maxloc1_16_i16.c: Regenerate.
1862 * generated/maxval_i16.c: Regenerate.
1864 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1867 * intrinsics/string_intrinsics.c (string_repeat): Don't check
1868 if ncopies is negative.
1870 2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1873 * libgfortran.h: Do not prefix symbol name with
1874 __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
1876 2007-02-02 Paul Thomas <pault@gcc.gnu.org>
1880 * io/transfer.c (init_loop_spec, next_array_record): Change to
1881 lbound rather than unity base.
1883 2007-01-21 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1885 * runtime/error.c: Include sys/time.h before sys/resource.h.
1887 2007-01-21 Thomas Koenig <Thomas.Koenig@online.de>
1890 * intrinsics/string_intrinsics.c(compare_string): Make
1891 sure that comparisons are done unsigned.
1893 2007-01-21 Tobias Burnus <burnus@net-b.de>
1896 * intrinsics/date_and_time.c (date_and_time): Fix case where time
1898 * configure.ac: Remove AC_TRY_RUN test for timezone in
1900 * acinclude.m4: Ditto.
1901 * configure: Regenerate.
1902 * config.h.in: Regenerate.
1904 2007-01-20 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1906 * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
1907 * m4/specific2.m4: Likewise.
1908 * m4/specific.m4: Likewise.
1909 * intrinsics/f2c_specifics.F90: Likewise.
1910 * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
1911 * intrinsics/selected_real_kind.f90: Likewise.
1912 * intrinsics/dprod_r8.f90: Likewise.
1913 * Makefile.am: Add -fallow-leading-underscore to the
1914 gfor_specific_src files, as well as selected_real_kind.F90
1915 and selected_int_kind.F90
1916 * Makefile.in: Regenerate.
1917 * generated/_sqrt_c8.F90: Regenerate.
1918 * generated/_sign_r16.F90: Regenerate.
1919 * generated/_log_c16.F90: Regenerate.
1920 * generated/_sin_c10.F90: Regenerate.
1921 * generated/_tanh_r4.F90: Regenerate.
1922 * generated/_tanh_r8.F90: Regenerate.
1923 * generated/_log10_r10.F90: Regenerate.
1924 * generated/_aimag_c4.F90: Regenerate.
1925 * generated/_sign_r4.F90: Regenerate.
1926 * generated/_aimag_c8.F90: Regenerate.
1927 * generated/_sign_r8.F90: Regenerate.
1928 * generated/_mod_i4.F90: Regenerate.
1929 * generated/_cos_r16.F90: Regenerate.
1930 * generated/_aint_r10.F90: Regenerate.
1931 * generated/_mod_i8.F90: Regenerate.
1932 * generated/_abs_i16.F90: Regenerate.
1933 * generated/_sqrt_c10.F90: Regenerate.
1934 * generated/_atan2_r4.F90: Regenerate.
1935 * generated/_cos_c4.F90: Regenerate.
1936 * generated/_atan_r16.F90: Regenerate.
1937 * generated/_tanh_r10.F90: Regenerate.
1938 * generated/_atan2_r8.F90: Regenerate.
1939 * generated/_cos_c8.F90: Regenerate.
1940 * generated/_exp_r4.F90: Regenerate.
1941 * generated/_log_r10.F90: Regenerate.
1942 * generated/_exp_r8.F90: Regenerate.
1943 * generated/_abs_r4.F90: Regenerate.
1944 * generated/_abs_r8.F90: Regenerate.
1945 * generated/_sin_r16.F90: Regenerate.
1946 * generated/_tan_r4.F90: Regenerate.
1947 * generated/_tan_r8.F90: Regenerate.
1948 * generated/_sign_i4.F90: Regenerate.
1949 * generated/_sign_i8.F90: Regenerate.
1950 * generated/_exp_c16.F90: Regenerate.
1951 * generated/_sqrt_r16.F90: Regenerate.
1952 * generated/_conjg_c4.F90: Regenerate.
1953 * generated/_conjg_c8.F90: Regenerate.
1954 * generated/_dim_r16.F90: Regenerate.
1955 * generated/_mod_r10.F90: Regenerate.
1956 * generated/_abs_c10.F90: Regenerate.
1957 * generated/_conjg_c16.F90: Regenerate.
1958 * generated/_tan_r16.F90: Regenerate.
1959 * generated/_asinh_r10.F90: Regenerate.
1960 * generated/_abs_i4.F90: Regenerate.
1961 * generated/_abs_i8.F90: Regenerate.
1962 * generated/_acos_r10.F90: Regenerate.
1963 * generated/_exp_r10.F90: Regenerate.
1964 * generated/_acosh_r16.F90: Regenerate.
1965 * generated/_atan2_r16.F90: Regenerate.
1966 * generated/_cos_c16.F90: Regenerate.
1967 * generated/_mod_i16.F90: Regenerate.
1968 * generated/_asin_r4.F90: Regenerate.
1969 * generated/_anint_r16.F90: Regenerate.
1970 * generated/_asin_r8.F90: Regenerate.
1971 * generated/_aimag_c10.F90: Regenerate.
1972 * generated/_exp_c4.F90: Regenerate.
1973 * generated/_sinh_r10.F90: Regenerate.
1974 * generated/_exp_c8.F90: Regenerate.
1975 * generated/_log10_r4.F90: Regenerate.
1976 * generated/_log10_r8.F90: Regenerate.
1977 * generated/_abs_c4.F90: Regenerate.
1978 * generated/_abs_r16.F90: Regenerate.
1979 * generated/_abs_c8.F90: Regenerate.
1980 * generated/_asin_r10.F90: Regenerate.
1981 * generated/_sign_r10.F90: Regenerate.
1982 * generated/_atanh_r16.F90: Regenerate.
1983 * generated/_log_c10.F90: Regenerate.
1984 * generated/_cosh_r16.F90: Regenerate.
1985 * generated/_sin_c16.F90: Regenerate.
1986 * generated/_cos_r10.F90: Regenerate.
1987 * generated/_log10_r16.F90: Regenerate.
1988 * generated/_aint_r16.F90: Regenerate.
1989 * generated/_acos_r4.F90: Regenerate.
1990 * generated/_acos_r8.F90: Regenerate.
1991 * generated/_sqrt_c16.F90: Regenerate.
1992 * generated/_acosh_r4.F90: Regenerate.
1993 * generated/_atan_r10.F90: Regenerate.
1994 * generated/_acosh_r8.F90: Regenerate.
1995 * generated/_sign_i16.F90: Regenerate.
1996 * generated/_tanh_r16.F90: Regenerate.
1997 * generated/_log_r4.F90: Regenerate.
1998 * generated/_log_r8.F90: Regenerate.
1999 * generated/_sin_r4.F90: Regenerate.
2000 * generated/_sin_r8.F90: Regenerate.
2001 * generated/_log_r16.F90: Regenerate.
2002 * generated/_sin_r10.F90: Regenerate.
2003 * generated/_sqrt_r4.F90: Regenerate.
2004 * generated/_exp_c10.F90: Regenerate.
2005 * generated/_sqrt_r8.F90: Regenerate.
2006 * generated/_asinh_r4.F90: Regenerate.
2007 * generated/_sqrt_r10.F90: Regenerate.
2008 * generated/_asinh_r8.F90: Regenerate.
2009 * generated/_dim_r4.F90: Regenerate.
2010 * generated/_dim_r8.F90: Regenerate.
2011 * generated/_dim_r10.F90: Regenerate.
2012 * generated/_cosh_r4.F90: Regenerate.
2013 * generated/_conjg_c10.F90: Regenerate.
2014 * generated/_tan_r10.F90: Regenerate.
2015 * generated/_cosh_r8.F90: Regenerate.
2016 * generated/_mod_r16.F90: Regenerate.
2017 * generated/_abs_c16.F90: Regenerate.
2018 * generated/_cos_r4.F90: Regenerate.
2019 * generated/_asinh_r16.F90: Regenerate.
2020 * generated/_cos_r8.F90: Regenerate.
2021 * generated/_atanh_r4.F90: Regenerate.
2022 * generated/_atanh_r8.F90: Regenerate.
2023 * generated/_acos_r16.F90: Regenerate.
2024 * generated/_anint_r4.F90: Regenerate.
2025 * generated/_acosh_r10.F90: Regenerate.
2026 * generated/_anint_r8.F90: Regenerate.
2027 * generated/_exp_r16.F90: Regenerate.
2028 * generated/_mod_r4.F90: Regenerate.
2029 * generated/_cos_c10.F90: Regenerate.
2030 * generated/_atan2_r10.F90: Regenerate.
2031 * generated/_dim_i16.F90: Regenerate.
2032 * generated/_mod_r8.F90: Regenerate.
2033 * generated/_anint_r10.F90: Regenerate.
2034 * generated/_aint_r4.F90: Regenerate.
2035 * generated/_aint_r8.F90: Regenerate.
2036 * generated/_dim_i4.F90: Regenerate.
2037 * generated/_sinh_r4.F90: Regenerate.
2038 * generated/_log_c4.F90: Regenerate.
2039 * generated/_dim_i8.F90: Regenerate.
2040 * generated/_sinh_r8.F90: Regenerate.
2041 * generated/_log_c8.F90: Regenerate.
2042 * generated/_sin_c4.F90: Regenerate.
2043 * generated/_sin_c8.F90: Regenerate.
2044 * generated/misc_specifics.F90: Regenerate.
2045 * generated/_abs_r10.F90: Regenerate.
2046 * generated/_aimag_c16.F90: Regenerate.
2047 * generated/_atan_r4.F90: Regenerate.
2048 * generated/_sinh_r16.F90: Regenerate.
2049 * generated/_atan_r8.F90: Regenerate.
2050 * generated/_atanh_r10.F90: Regenerate.
2051 * generated/_cosh_r10.F90: Regenerate.
2052 * generated/_sqrt_c4.F90: Regenerate.
2053 * generated/_asin_r16.F90: Regenerate.
2055 2007-01-19 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2058 * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
2059 * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
2060 * configure: Regenerate.
2061 * config.h.in: Regenerate because it was forgottent in the last
2064 2007-01-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2065 Tobias Burnus <burnus@net-b.de>
2068 * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
2069 environment variable.
2070 * runtime/compile_options.c (set_std): Add new argument.
2071 * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
2073 * libgfortran.h (options_t): New dump_core and backtrace members.
2074 (sys_exit): Move prototype.
2075 * io/unix.c (sys_exit): Move to runtime/error.c.
2076 * configure.ac: Add check for getrlimit.
2077 * configure: Regenerate.
2079 2007-01-17 Tom Tromey <tromey@redhat.com>
2081 PR libfortran/27107:
2082 * aclocal.m4, configure, Makefile.in: Rebuilt.
2083 * configure.ac: Enable automake dependency tracking. Update
2084 minimum automake version.
2086 2007-01-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2089 * runtime/environ.c: Don't include io/io.h.
2090 * runtime/string.c: Don't include io/io.h.
2091 (compare0): Add cast to avoid warning.
2092 * runtime/error.c: Don't include io/io.h.
2093 (st_printf): Move to io/unix.c.
2094 * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
2095 * intrinsics/fget.c: Likewise.
2096 * intrinsics/ftell.c: Likewise.
2097 * intrinsics/tty.c: Likewise.
2098 * libgfortran.h (DEFAULT_RECL, notification_std,
2099 get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
2100 DEFAULT_TEMPDIR): New declarations.
2101 * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
2102 IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
2103 Move to libgfortran.h.
2104 * io/unix.c: Add io/unix.h content.
2105 (st_printf): New function.
2106 * io/intrinsics.c: New file.
2107 * io/unix.h: Remove, contents moved into unix.c.
2108 * libtool-version: Update library version to 3.0.0.
2109 * configure.ac: Update library version to 0.3.
2110 * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
2111 intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
2112 * Makefile.in: Regenerate.
2113 * configure: Regenerate.
2115 2007-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2118 * io/list_read.c (finish_separator): Don't call next_record.
2119 (list_formatted_read_scalar): Clean up some comments and whitespace.
2120 (nml_read_obj): Whitespace fix.
2122 2007-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2125 * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
2126 s->file_length == -1.
2127 (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
2128 (fd_seek): If not seekable, just return success.
2129 (fd_truncate): If not seekable, no need to truncate. Return failure if
2130 seek fails and the stream is not a pipe.
2131 (fd_to_stream): Make test for non-seekable file more robust.
2133 2007-01-01 Steven G. Kargl <kargls@comcast.net>
2135 * ChangeLog: Copied to ...
2136 * ChangeLog-2006: here.