re PR debug/31899 (-g and using declaration causing ICE in reference_to_unused)
[official-gcc.git] / libgfortran / ChangeLog
bloba249ded5f902c0e944b94b272ee122be85658e8d
1 2007-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3         PR libfortran/33253
4         * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
5         and quote value in check of first character in string.
7 2007-10-02  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9         PR fortran/33469
10         * io/write.c (write_real): Widen the default formats.
12 2007-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14         PR libfortran/33400
15         * io/list_read.c (next_char): Interpret encountering the end of file the
16         first time as an end of line.  Subsequent reads give EOF error.
18 2007-09-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
20         PR libfortran/33421
21         * io/list_read.c (read_character): Revert r128057.
23 2007-09-21  Bernhard Fischer  <aldot>
25         PR fortran/31546
26         * (configure.ac): Add --enable-intermodule for onestep build.
27         * (Makefile.am): Handle onestep build.
28         * (configure, Makefile.in): Regenerate.
30 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
32         PR libfortran/26253
33         * intrinsics/c99_functions.c (scalbn): Use ldexp if appopriate.
35 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
37         PR libfortran/23272
38         * io/unix.c (id_from_handle, id_from_path, id_from_fd): New
39         functions.
40         (compare_file_filename, find_file, find_file0): Use the new
41         functions above.
43 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
45         * acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test.
46         * configure.ac: Don't call LIBGFOR_TARGET_ILP32.
47         * configure: Regenerate.
48         * config.h.in: Regenerate.
50 2007-09-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
52         PR libfortran/21185
53         * runtime/compile_options.c (set_options): Fix typo.
54         * runtime/main.c (store_exe_path): If getcwd is not available,
55         don't use it.
56         * intrinsics/getcwd.c: Same thing here.
57         * io/unix.c (fallback_access): New fallback function for access.
58         (fix_fd): Don't use dup if it's not available.
59         * configure.ac: Check for dup and getcwd.
60         * configure: Regenerate.
61         * config.h.in: Regenerate.
63 2007-09-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
65         * io/io.h: Include libgfortran.h first.
67 2007-09-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
69         PR libfortran/33386
70         * runtime/select.c (select_string): Initialize default_jump.
72 2007-09-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
74         PR libfortran/33307
75         * io/filepos.c (st_backspace): Don't truncate when already at the end
76         of the file.
77         
78 2007-09-07  Uros Bizjak  <ubizjak@gmail.com>
80         * config/fpu-387.h: Include cpuid.h.
81         (set_fpu): Use __get_cpuid to check for SSE.
83 2007-09-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
85         PR fortran/33298
86         * intrinsics/spread_generic.c(spread_internal): Enable
87         bounds checking by comparing extents if the bounds_check
88         option has been set.  If any extent is <=0, return early.
90 2007-09-06  David Edelsohn  <edelsohn@gnu.org>
92         * libgfortran.h: Include config.h first.
93         * io/io.h (struct stream): Rename truncate to trunc.
94         * io/unix.c (fd_open): Same.
95         (open_internal): Same.
97 2007-09-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
99         PR libfortran/33253
100         * io/write.c (nml_write_obj): Set the delimiter correctly before
101         calling write_character. (namelist_write): Clean up the code a little
102         and add comments to clarify what its doing.
104 2007-09-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
106         PR libfortran/33225
107         * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
108         new file write_float.def. Include write_float.def.
109         (extract_real): Delete. (calculate_sign): Delete.
110         (calculate_exp): Delete. (calculate_G_format): Delete.
111         (output_float): Delete. (write_float): Delete.
112         * io/write_float.def (calculate_sign): Added.
113         (output_float): Refactored to be independent of kind and added to this
114         file for inclusion. (write_infnan): New function to write "Infinite"
115         or "NaN" depending on flags passed, independent of kind.
116         (CALCULATE_EXP): New macro to build kind specific functions. Use it.
117         (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
118         (DTOA, DTOAL): Macros to implement "decimal to ascii".
119         (WRITE_FLOAT): New macro for kind specific write_float functions.
120         (write_float): Revised function to determine kind and use WRITE_FLOAT
121         to implement kind specific output.
123 2007-09-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
125         PR libfortran/33253
126         * io/list_read.c (read_character): Use DELIM_APOSTROPHE and
127         DELIM_QUOTE in check of first character in string. 
129 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
131         PR fortran/31675
132         * libgfortran.h: Include gcc/fortran/libgfortran.h.
133         Remove M_PI, GFC_MAX_DIMENSIONS, GFC_DTYPE_*, GFC_NUM_RANK_BITS,
134         error_codes, GFC_STD_*, GFC_FPE_* and unit_convert.
135         * runtime/environ.c (variable_table): Use GFC_*_UNIT_NUMBER instead
136         of hardcoded constants.
137         (do_parse, init_unformatted): Use GFC_CONVERT_* macros instead of
138         CONVERT_*.
139         * runtime/string.c (find_option): Use LIBERROR_BAD_OPTION instead
140         of ERROR_BAD_OPTION.
141         * runtime/error.c (translate_error, generate_error): Use
142         LIBERROR_* macros instead of ERROR_*.
143         * io/file_pos.c (formatted_backspace, unformatted_backspace,
144         st_backspace, st_rewind, st_flush): Rename macros.
145         * io/open.c (convert_opt, edit_modes, new_unit, already_open,
146         st_open): Likewise.
147         * io/close.c (st_close): Likewise.
148         * io/list_read.c (next_char, convert_integer, parse_repeat,
149         read_logical, read_integer, read_character, parse_real,
150         check_type, list_formatted_read_scalar, namelist_read,
151         nml_err_ret): Likewise.
152         * io/read.c (convert_real, read_l, read_decimal, read_radix,
153         read_f): Likewise.
154         * io/inquire.c (inquire_via_unit): Likewise.
155         * io/unit.c (get_internal_unit): Likewise.
156         * io/transfer.c (read_sf, read_block, read_block_direct,
157         write_block, write_buf, unformatted_read, unformatted_write,
158         formatted_transfer_scalar, us_read, us_write, data_transfer_init,
159         skip_record, next_record_r, write_us_marker, next_record_w_unf,
160         next_record_w, finalize_transfer, st_read, st_write_done):
161         Likewise.
162         * io/format.c (format_error): Likewise.
164 2007-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
166         * m4/minloc1.m4: Update copyright year and ajust headers order.
167         * m4/maxloc1.m4: Likewise.
168         * m4/in_pack.m4: Likewise.
169         * m4/sum.m4: Likewise.
170         * m4/fraction.m4: Likewise.
171         * m4/all.m4: Likewise.
172         * m4/set_exponent.m4: Likewise.
173         * m4/transpose.m4: Likewise.
174         * m4/eoshift1.m4: Likewise.
175         * m4/spacing.m4: Likewise.
176         * m4/eoshift3.m4: Likewise.
177         * m4/minval.m4: Likewise.
178         * m4/count.m4: Likewise.
179         * m4/maxval.m4: Likewise.
180         * m4/exponent.m4: Likewise.
181         * m4/shape.m4: Likewise.
182         * m4/head.m4: Likewise.
183         * m4/cshift1.m4: Likewise.
184         * m4/minloc0.m4: Likewise.
185         * m4/nearest.m4: Likewise.
186         * m4/maxloc0.m4: Likewise.
187         * m4/pow.m4: Likewise.
188         * m4/in_unpack.m4: Likewise.
189         * m4/matmull.m4: Likewise.
190         * m4/product.m4: Likewise.
191         * m4/reshape.m4: Likewise.
192         * m4/any.m4: Likewise.
193         * m4/rrspacing.m4: Likewise.
194         * m4/matmul.m4: Likewise.
195         * runtime/backtrace.c: Likewise.
196         * runtime/environ.c: Likewise.
197         * runtime/in_pack_generic.c: Likewise.
198         * runtime/compile_options.c: Likewise.
199         * runtime/in_unpack_generic.c: Likewise.
200         * runtime/main.c: Likewise.
201         * runtime/stop.c: Likewise.
202         * runtime/string.c: Likewise.
203         * runtime/memory.c: Likewise.
204         * runtime/error.c: Likewise.
205         * runtime/pause.c: Likewise.
206         * intrinsics/ierrno.c: Likewise.
207         * intrinsics/system_clock.c: Likewise.
208         * intrinsics/cshift0.c: Likewise.
209         * intrinsics/unlink.c: Likewise.
210         * intrinsics/ctime.c: Likewise.
211         * intrinsics/etime.c: Likewise.
212         * intrinsics/cpu_time.c: Likewise.
213         * intrinsics/malloc.c: Likewise.
214         * intrinsics/hostnm.c: Likewise.
215         * intrinsics/sleep.c: Likewise.
216         * intrinsics/exit.c: Likewise.
217         * intrinsics/perror.c: Likewise.
218         * intrinsics/transpose_generic.c: Likewise.
219         * intrinsics/pack_generic.c: Likewise.
220         * intrinsics/spread_generic.c: Likewise.
221         * intrinsics/stat.c: Likewise.
222         * intrinsics/string_intrinsics.c: Likewise.
223         * intrinsics/getcwd.c: Likewise.
224         * intrinsics/date_and_time.c: Likewise.
225         * intrinsics/unpack_generic.c: Likewise.
226         * intrinsics/move_alloc.c: Likewise.
227         * intrinsics/getlog.c: Likewise.
228         * intrinsics/eoshift0.c: Likewise.
229         * intrinsics/eoshift2.c: Likewise.
230         * intrinsics/reshape_generic.c: Likewise.
231         * intrinsics/system.c: Likewise.
232         * intrinsics/iso_c_binding.c: Likewise.
233         * intrinsics/env.c: Likewise.
234         * intrinsics/kill.c: Likewise.
235         * intrinsics/reshape_packed.c: Likewise.
236         * intrinsics/time.c: Likewise.
237         * intrinsics/gerror.c: Likewise.
238         * intrinsics/access.c: Likewise.
239         * intrinsics/fnum.c: Likewise.
240         * intrinsics/abort.c: Likewise.
241         * intrinsics/rename.c: Likewise.
242         * intrinsics/signal.c: Likewise.
243         * intrinsics/symlnk.c: Likewise.
244         * intrinsics/random.c: Likewise.
245         * intrinsics/umask.c: Likewise.
246         * intrinsics/getXid.c: Likewise.
247         * intrinsics/rand.c: Likewise.
248         * intrinsics/chdir.c: Likewise.
249         * intrinsics/chmod.c: Likewise.
250         * intrinsics/clock.c: Likewise.
251         * intrinsics/args.c: Likewise.
252         * intrinsics/link.c: Likewise.
253         * c99_protos.h: Likewise.
254         * config/fpu-387.h: Likewise.
255         * config/fpu-aix.h: Likewise.
256         * config/fpu-sysv.h: Likewise.
257         * config/fpu-generic.h: Likewise.
258         * config/fpu-glibc.h: Likewise.
259         * io/file_pos.c: Likewise.
260         * io/open.c: Likewise.
261         * io/size_from_kind.c: Likewise.
262         * io/close.c: Likewise.
263         * io/list_read.c: Likewise.
264         * io/read.c: Likewise.
265         * io/inquire.c: Likewise.
266         * io/unit.c: Likewise.
267         * io/unix.c: Likewise.
268         * io/transfer.c: Likewise.
269         * io/intrinsics.c: Likewise.
270         * io/format.c: Likewise.
271         * io/lock.c: Likewise.
272         * io/write.c: Likewise.
273         * io/write_float.def: Likewise.
274         * fmain.c: Likewise.
275         * generated/minval_r8.c: Regenerate.
276         * generated/minloc1_16_r16.c: Regenerate.
277         * generated/maxloc1_4_r8.c: Regenerate.
278         * generated/sum_i8.c: Regenerate.
279         * generated/eoshift3_4.c: Regenerate.
280         * generated/transpose_c8.c: Regenerate.
281         * generated/any_l16.c: Regenerate.
282         * generated/eoshift1_8.c: Regenerate.
283         * generated/pow_r8_i8.c: Regenerate.
284         * generated/reshape_r16.c: Regenerate.
285         * generated/pow_i4_i16.c: Regenerate.
286         * generated/maxval_i2.c: Regenerate.
287         * generated/product_r4.c: Regenerate.
288         * generated/maxloc1_8_i4.c: Regenerate.
289         * generated/exponent_r16.c: Regenerate.
290         * generated/maxloc0_4_r4.c: Regenerate.
291         * generated/fraction_r16.c: Regenerate.
292         * generated/in_unpack_i8.c: Regenerate.
293         * generated/matmul_r8.c: Regenerate.
294         * generated/product_i2.c: Regenerate.
295         * generated/fraction_r4.c: Regenerate.
296         * generated/minloc0_4_r16.c: Regenerate.
297         * generated/reshape_c4.c: Regenerate.
298         * generated/minloc0_4_i1.c: Regenerate.
299         * generated/maxloc0_4_r16.c: Regenerate.
300         * generated/maxloc0_4_i2.c: Regenerate.
301         * generated/minloc1_8_r16.c: Regenerate.
302         * generated/maxloc1_8_r16.c: Regenerate.
303         * generated/set_exponent_r8.c: Regenerate.
304         * generated/in_unpack_i16.c: Regenerate.
305         * generated/transpose_c16.c: Regenerate.
306         * generated/maxloc0_8_i8.c: Regenerate.
307         * generated/pow_c4_i8.c: Regenerate.
308         * generated/sum_r16.c: Regenerate.
309         * generated/sum_i1.c: Regenerate.
310         * generated/minloc1_4_r8.c: Regenerate.
311         * generated/transpose_r10.c: Regenerate.
312         * generated/pow_i8_i4.c: Regenerate.
313         * generated/maxloc1_16_r16.c: Regenerate.
314         * generated/minloc1_16_i4.c: Regenerate.
315         * generated/maxloc1_16_i4.c: Regenerate.
316         * generated/minloc0_16_i8.c: Regenerate.
317         * generated/maxloc0_16_i8.c: Regenerate.
318         * generated/nearest_r8.c: Regenerate.
319         * generated/spacing_r16.c: Regenerate.
320         * generated/transpose_i8.c: Regenerate.
321         * generated/count_16_l16.c: Regenerate.
322         * generated/maxval_r16.c: Regenerate.
323         * generated/count_8_l8.c: Regenerate.
324         * generated/product_c10.c: Regenerate.
325         * generated/minloc1_8_i4.c: Regenerate.
326         * generated/minloc0_16_i16.c: Regenerate.
327         * generated/matmul_r16.c: Regenerate.
328         * generated/eoshift1_16.c: Regenerate.
329         * generated/minloc0_4_r4.c: Regenerate.
330         * generated/pow_c16_i16.c: Regenerate.
331         * generated/set_exponent_r10.c: Regenerate.
332         * generated/pow_i16_i16.c: Regenerate.
333         * generated/product_c4.c: Regenerate.
334         * generated/sum_r4.c: Regenerate.
335         * generated/pow_c16_i4.c: Regenerate.
336         * generated/rrspacing_r10.c: Regenerate.
337         * generated/in_pack_c16.c: Regenerate.
338         * generated/minloc0_4_i2.c: Regenerate.
339         * generated/maxloc0_8_i1.c: Regenerate.
340         * generated/reshape_i4.c: Regenerate.
341         * generated/minloc0_8_i8.c: Regenerate.
342         * generated/matmul_c8.c: Regenerate.
343         * generated/spacing_r4.c: Regenerate.
344         * generated/in_pack_c4.c: Regenerate.
345         * generated/all_l16.c: Regenerate.
346         * generated/minloc1_16_r10.c: Regenerate.
347         * generated/sum_i2.c: Regenerate.
348         * generated/minloc0_16_i1.c: Regenerate.
349         * generated/reshape_c16.c: Regenerate.
350         * generated/maxloc0_16_i1.c: Regenerate.
351         * generated/maxloc1_8_r8.c: Regenerate.
352         * generated/minval_i16.c: Regenerate.
353         * generated/reshape_r10.c: Regenerate.
354         * generated/exponent_r10.c: Regenerate.
355         * generated/maxval_i4.c: Regenerate.
356         * generated/any_l4.c: Regenerate.
357         * generated/minval_i8.c: Regenerate.
358         * generated/maxloc1_4_i8.c: Regenerate.
359         * generated/fraction_r10.c: Regenerate.
360         * generated/maxloc0_16_i16.c: Regenerate.
361         * generated/shape_i4.c: Regenerate.
362         * generated/pow_r16_i8.c: Regenerate.
363         * generated/maxloc0_8_r4.c: Regenerate.
364         * generated/rrspacing_r8.c: Regenerate.
365         * generated/pow_c10_i4.c: Regenerate.
366         * generated/minloc1_4_i16.c: Regenerate.
367         * generated/minloc0_4_r10.c: Regenerate.
368         * generated/maxloc1_4_i16.c: Regenerate.
369         * generated/minloc0_8_i16.c: Regenerate.
370         * generated/maxloc0_4_r10.c: Regenerate.
371         * generated/maxloc0_8_i16.c: Regenerate.
372         * generated/minloc1_8_r10.c: Regenerate.
373         * generated/product_i4.c: Regenerate.
374         * generated/minloc0_16_r4.c: Regenerate.
375         * generated/sum_c16.c: Regenerate.
376         * generated/maxloc1_8_r10.c: Regenerate.
377         * generated/maxloc0_16_r4.c: Regenerate.
378         * generated/transpose_c10.c: Regenerate.
379         * generated/minloc1_16_r8.c: Regenerate.
380         * generated/minloc0_8_i1.c: Regenerate.
381         * generated/maxloc0_4_i4.c: Regenerate.
382         * generated/transpose_r4.c: Regenerate.
383         * generated/maxloc1_16_r8.c: Regenerate.
384         * generated/pow_i16_i8.c: Regenerate.
385         * generated/cshift1_4.c: Regenerate.
386         * generated/maxloc0_8_i2.c: Regenerate.
387         * generated/sum_r10.c: Regenerate.
388         * generated/nearest_r16.c: Regenerate.
389         * generated/sum_c4.c: Regenerate.
390         * generated/maxloc1_16_r10.c: Regenerate.
391         * generated/count_4_l16.c: Regenerate.
392         * generated/pow_c8_i8.c: Regenerate.
393         * generated/matmul_i8.c: Regenerate.
394         * generated/in_pack_i4.c: Regenerate.
395         * generated/pow_i4_i8.c: Regenerate.
396         * generated/minloc0_16_i2.c: Regenerate.
397         * generated/minloc1_8_r8.c: Regenerate.
398         * generated/maxloc0_16_i2.c: Regenerate.
399         * generated/exponent_r4.c: Regenerate.
400         * generated/spacing_r10.c: Regenerate.
401         * generated/matmul_c16.c: Regenerate.
402         * generated/pow_c4_i16.c: Regenerate.
403         * generated/maxval_r10.c: Regenerate.
404         * generated/count_4_l4.c: Regenerate.
405         * generated/shape_i16.c: Regenerate.
406         * generated/minval_i1.c: Regenerate.
407         * generated/maxloc1_4_i1.c: Regenerate.
408         * generated/matmul_r10.c: Regenerate.
409         * generated/minloc1_4_i8.c: Regenerate.
410         * generated/pow_r10_i8.c: Regenerate.
411         * generated/minloc0_8_r4.c: Regenerate.
412         * generated/in_unpack_c4.c: Regenerate.
413         * generated/matmul_l4.c: Regenerate.
414         * generated/product_i16.c: Regenerate.
415         * generated/minloc0_16_r16.c: Regenerate.
416         * generated/reshape_r8.c: Regenerate.
417         * generated/pow_r10_i16.c: Regenerate.
418         * generated/all_l4.c: Regenerate.
419         * generated/in_pack_c10.c: Regenerate.
420         * generated/minloc0_4_i4.c: Regenerate.
421         * generated/minloc0_8_i2.c: Regenerate.
422         * generated/matmul_i1.c: Regenerate.
423         * generated/reshape_c10.c: Regenerate.
424         * generated/minval_r4.c: Regenerate.
425         * generated/maxloc1_4_r4.c: Regenerate.
426         * generated/pow_r8_i16.c: Regenerate.
427         * generated/sum_i4.c: Regenerate.
428         * generated/maxval_r8.c: Regenerate.
429         * generated/count_16_l8.c: Regenerate.
430         * generated/transpose_c4.c: Regenerate.
431         * generated/eoshift1_4.c: Regenerate.
432         * generated/eoshift3_8.c: Regenerate.
433         * generated/minval_r16.c: Regenerate.
434         * generated/minloc1_4_i1.c: Regenerate.
435         * generated/minval_i2.c: Regenerate.
436         * generated/maxloc1_4_i2.c: Regenerate.
437         * generated/pow_i8_i16.c: Regenerate.
438         * generated/product_r8.c: Regenerate.
439         * generated/maxloc1_8_i8.c: Regenerate.
440         * generated/maxloc0_4_r8.c: Regenerate.
441         * generated/maxloc0_16_r16.c: Regenerate.
442         * generated/in_unpack_i4.c: Regenerate.
443         * generated/matmul_r4.c: Regenerate.
444         * generated/sum_c10.c: Regenerate.
445         * generated/minloc1_4_r16.c: Regenerate.
446         * generated/fraction_r8.c: Regenerate.
447         * generated/maxloc1_4_r16.c: Regenerate.
448         * generated/set_exponent_r4.c: Regenerate.
449         * generated/minloc0_8_r16.c: Regenerate.
450         * generated/in_unpack_c16.c: Regenerate.
451         * generated/reshape_c8.c: Regenerate.
452         * generated/maxloc0_8_r16.c: Regenerate.
453         * generated/nearest_r10.c: Regenerate.
454         * generated/maxloc0_8_i4.c: Regenerate.
455         * generated/pow_c4_i4.c: Regenerate.
456         * generated/matmul_i2.c: Regenerate.
457         * generated/minloc1_4_r4.c: Regenerate.
458         * generated/transpose_i16.c: Regenerate.
459         * generated/matmul_c10.c: Regenerate.
460         * generated/minloc0_16_i4.c: Regenerate.
461         * generated/maxloc0_16_i4.c: Regenerate.
462         * generated/pow_i8_i8.c: Regenerate.
463         * generated/nearest_r4.c: Regenerate.
464         * generated/minloc1_16_i8.c: Regenerate.
465         * generated/maxloc1_16_i8.c: Regenerate.
466         * generated/transpose_i4.c: Regenerate.
467         * generated/count_8_l4.c: Regenerate.
468         * generated/minloc1_4_i2.c: Regenerate.
469         * generated/matmul_l16.c: Regenerate.
470         * generated/maxloc1_8_i1.c: Regenerate.
471         * generated/minloc0_16_r10.c: Regenerate.
472         * generated/minloc1_8_i8.c: Regenerate.
473         * generated/minloc0_4_r8.c: Regenerate.
474         * generated/product_r16.c: Regenerate.
475         * generated/product_c8.c: Regenerate.
476         * generated/pow_r16_i16.c: Regenerate.
477         * generated/sum_r8.c: Regenerate.
478         * generated/pow_c16_i8.c: Regenerate.
479         * generated/in_pack_i16.c: Regenerate.
480         * generated/minloc0_8_i4.c: Regenerate.
481         * generated/matmul_c4.c: Regenerate.
482         * generated/minloc1_16_i16.c: Regenerate.
483         * generated/reshape_i8.c: Regenerate.
484         * generated/spacing_r8.c: Regenerate.
485         * generated/in_pack_c8.c: Regenerate.
486         * generated/maxloc1_8_r4.c: Regenerate.
487         * generated/minloc1_16_i1.c: Regenerate.
488         * generated/maxloc1_16_i1.c: Regenerate.
489         * generated/reshape_i16.c: Regenerate.
490         * generated/minval_r10.c: Regenerate.
491         * generated/pow_r4_i8.c: Regenerate.
492         * generated/minloc1_8_i1.c: Regenerate.
493         * generated/minval_i4.c: Regenerate.
494         * generated/maxloc1_4_i4.c: Regenerate.
495         * generated/maxloc1_8_i2.c: Regenerate.
496         * generated/maxval_i8.c: Regenerate.
497         * generated/eoshift3_16.c: Regenerate.
498         * generated/any_l8.c: Regenerate.
499         * generated/maxloc0_16_r10.c: Regenerate.
500         * generated/rrspacing_r4.c: Regenerate.
501         * generated/shape_i8.c: Regenerate.
502         * generated/maxloc0_8_r8.c: Regenerate.
503         * generated/minloc0_4_i16.c: Regenerate.
504         * generated/maxloc0_4_i16.c: Regenerate.
505         * generated/minloc1_4_r10.c: Regenerate.
506         * generated/minloc1_8_i16.c: Regenerate.
507         * generated/pow_c10_i8.c: Regenerate.
508         * generated/maxloc1_4_r10.c: Regenerate.
509         * generated/maxloc1_8_i16.c: Regenerate.
510         * generated/in_unpack_c10.c: Regenerate.
511         * generated/minloc0_8_r10.c: Regenerate.
512         * generated/maxloc0_8_r10.c: Regenerate.
513         * generated/minloc1_16_r4.c: Regenerate.
514         * generated/maxloc1_16_r4.c: Regenerate.
515         * generated/minloc0_16_r8.c: Regenerate.
516         * generated/pow_i16_i4.c: Regenerate.
517         * generated/product_i8.c: Regenerate.
518         * generated/maxloc0_16_r8.c: Regenerate.
519         * generated/sum_i16.c: Regenerate.
520         * generated/maxloc0_4_i8.c: Regenerate.
521         * generated/transpose_r8.c: Regenerate.
522         * generated/cshift1_8.c: Regenerate.
523         * generated/maxloc1_16_i16.c: Regenerate.
524         * generated/matmul_i4.c: Regenerate.
525         * generated/pow_c8_i4.c: Regenerate.
526         * generated/pow_i4_i4.c: Regenerate.
527         * generated/minloc1_8_r4.c: Regenerate.
528         * generated/sum_c8.c: Regenerate.
529         * generated/count_8_l16.c: Regenerate.
530         * generated/minloc1_16_i2.c: Regenerate.
531         * generated/maxloc1_16_i2.c: Regenerate.
532         * generated/in_pack_i8.c: Regenerate.
533         * generated/transpose_r16.c: Regenerate.
534         * generated/maxval_i16.c: Regenerate.
535         * generated/exponent_r8.c: Regenerate.
536         * generated/matmul_i16.c: Regenerate.
537         * generated/count_4_l8.c: Regenerate.
538         * generated/pow_c8_i16.c: Regenerate.
539         * generated/maxval_i1.c: Regenerate.
540         * generated/minloc1_4_i4.c: Regenerate.
541         * generated/minloc1_8_i2.c: Regenerate.
542         * generated/pow_c10_i16.c: Regenerate.
543         * generated/product_c16.c: Regenerate.
544         * generated/reshape_r4.c: Regenerate.
545         * generated/in_unpack_c8.c: Regenerate.
546         * generated/minloc0_8_r8.c: Regenerate.
547         * generated/matmul_l8.c: Regenerate.
548         * generated/product_r10.c: Regenerate.
549         * generated/set_exponent_r16.c: Regenerate.
550         * generated/cshift1_16.c: Regenerate.
551         * generated/product_i1.c: Regenerate.
552         * generated/all_l8.c: Regenerate.
553         * generated/maxloc0_4_i1.c: Regenerate.
554         * generated/rrspacing_r16.c: Regenerate.
555         * generated/minloc0_4_i8.c: Regenerate.
556         * generated/pow_r4_i16.c: Regenerate.
557         * generated/count_16_l4.c: Regenerate.
558         * generated/maxval_r4.c: Regenerate.
560 2007-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
562         PR libfortran/33225
563         * io/write.c: Revert changes from patch of 2007-08-27.
564         * io/write_float.def: Remove file, reverting addition.
566 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
568         * runtime/memory.c (internal_realloc, allocate, allocate_array,
569         deallocate): Remove functions.
570         * gfortran.map (_gfortran_allocate, _gfortran_allocate_array,
571         _gfortran_deallocate, _gfortran_internal_realloc): Remove symbols.
572         * libgfortran.h (error_codes): Add comment.
574 2007-08-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
576         PR libfortran/33055
577         Revert previous patch.
579 2007-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
581         * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
582         new file write_float.def. Include write_float.def.
583         (extract_real): Delete. (calculate_sign): Delete.
584         (calculate_exp): Delete. (calculate_G_format): Delete.
585         (output_float): Delete. (write_float): Delete.
586         * io/write_float.def (calculate_sign): Added.
587         (output_float): Refactored to be independent of kind and added to this
588         file for inclusion. (write_infnan): New function to write "Infinite"
589         or "NaN" depending on flags passed, independent of kind.
590         (CALCULATE_EXP): New macro to build kind specific functions. Use it.
591         (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
592         (DTOA, DTOAL): Macros to implement "decimal to ascii".
593         (WRITE_FLOAT): New macro for kind specific write_float functions.
594         (write_float): Revised function to determine kind and use WRITE_FLOAT
595         to implement kind specific output.
597 2007-08-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
599         PR libfortran/33055
600         * io/inquire.c (inquire_via_unit):  If inquiring by unit, check for 
601         an error condition from the IOSTAT variable and set EXIST to false if
602         there was a bad unit number.
604 2007-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
606         PR fortran/32972
607         * libgfortran.h:  Remove GFOR_POINTER_L8_TO_L4 macro.
608         Add GFOR_POINTER_TO_L1 macro.
609         * m4/iforeach.m4(`m'name`'rtype_qual`_'atype_code):
610         Change argument 'mask' to gfc_array_l1.  Adjust prototype.
611         Change mask pointer to GFC_LOGICAL_1.  Multiply strides
612         by kind of mask
613         * m4/ifunction.m4:  Likewise.
614         * intrinsics/pack_generic.c(pack_internal):  Likewise.
615         * intrinsics/unpack_generic.c(unpack_internal):  Likewise.
616         * m4/matmull.m4:  Switch to GFC_LOGICAL_1.  Multiply strides by
617         kind of logical arguments a and b.
618         * generated/matmul_l16.c: Regenerated.
619         * generated/matmul_l4.c: Regenerated.
620         * generated/matmul_l8.c: Regenerated.
621         * generated/maxloc0_16_i1.c: Regenerated.
622         * generated/maxloc0_16_i16.c: Regenerated.
623         * generated/maxloc0_16_i2.c: Regenerated.
624         * generated/maxloc0_16_i4.c: Regenerated.
625         * generated/maxloc0_16_i8.c: Regenerated.
626         * generated/maxloc0_16_r10.c: Regenerated.
627         * generated/maxloc0_16_r16.c: Regenerated.
628         * generated/maxloc0_16_r4.c: Regenerated.
629         * generated/maxloc0_16_r8.c: Regenerated.
630         * generated/maxloc0_4_i1.c: Regenerated.
631         * generated/maxloc0_4_i16.c: Regenerated.
632         * generated/maxloc0_4_i2.c: Regenerated.
633         * generated/maxloc0_4_i4.c: Regenerated.
634         * generated/maxloc0_4_i8.c: Regenerated.
635         * generated/maxloc0_4_r10.c: Regenerated.
636         * generated/maxloc0_4_r16.c: Regenerated.
637         * generated/maxloc0_4_r4.c: Regenerated.
638         * generated/maxloc0_4_r8.c: Regenerated.
639         * generated/maxloc0_8_i1.c: Regenerated.
640         * generated/maxloc0_8_i16.c: Regenerated.
641         * generated/maxloc0_8_i2.c: Regenerated.
642         * generated/maxloc0_8_i4.c: Regenerated.
643         * generated/maxloc0_8_i8.c: Regenerated.
644         * generated/maxloc0_8_r10.c: Regenerated.
645         * generated/maxloc0_8_r16.c: Regenerated.
646         * generated/maxloc0_8_r4.c: Regenerated.
647         * generated/maxloc0_8_r8.c: Regenerated.
648         * generated/maxloc1_16_i1.c: Regenerated.
649         * generated/maxloc1_16_i16.c: Regenerated.
650         * generated/maxloc1_16_i2.c: Regenerated.
651         * generated/maxloc1_16_i4.c: Regenerated.
652         * generated/maxloc1_16_i8.c: Regenerated.
653         * generated/maxloc1_16_r10.c: Regenerated.
654         * generated/maxloc1_16_r16.c: Regenerated.
655         * generated/maxloc1_16_r4.c: Regenerated.
656         * generated/maxloc1_16_r8.c: Regenerated.
657         * generated/maxloc1_4_i1.c: Regenerated.
658         * generated/maxloc1_4_i16.c: Regenerated.
659         * generated/maxloc1_4_i2.c: Regenerated.
660         * generated/maxloc1_4_i4.c: Regenerated.
661         * generated/maxloc1_4_i8.c: Regenerated.
662         * generated/maxloc1_4_r10.c: Regenerated.
663         * generated/maxloc1_4_r16.c: Regenerated.
664         * generated/maxloc1_4_r4.c: Regenerated.
665         * generated/maxloc1_4_r8.c: Regenerated.
666         * generated/maxloc1_8_i1.c: Regenerated.
667         * generated/maxloc1_8_i16.c: Regenerated.
668         * generated/maxloc1_8_i2.c: Regenerated.
669         * generated/maxloc1_8_i4.c: Regenerated.
670         * generated/maxloc1_8_i8.c: Regenerated.
671         * generated/maxloc1_8_r10.c: Regenerated.
672         * generated/maxloc1_8_r16.c: Regenerated.
673         * generated/maxloc1_8_r4.c: Regenerated.
674         * generated/maxloc1_8_r8.c: Regenerated.
675         * generated/maxval_i1.c: Regenerated.
676         * generated/maxval_i16.c: Regenerated.
677         * generated/maxval_i2.c: Regenerated.
678         * generated/maxval_i4.c: Regenerated.
679         * generated/maxval_i8.c: Regenerated.
680         * generated/maxval_r10.c: Regenerated.
681         * generated/maxval_r16.c: Regenerated.
682         * generated/maxval_r4.c: Regenerated.
683         * generated/maxval_r8.c: Regenerated.
684         * generated/minloc0_16_i1.c: Regenerated.
685         * generated/minloc0_16_i16.c: Regenerated.
686         * generated/minloc0_16_i2.c: Regenerated.
687         * generated/minloc0_16_i4.c: Regenerated.
688         * generated/minloc0_16_i8.c: Regenerated.
689         * generated/minloc0_16_r10.c: Regenerated.
690         * generated/minloc0_16_r16.c: Regenerated.
691         * generated/minloc0_16_r4.c: Regenerated.
692         * generated/minloc0_16_r8.c: Regenerated.
693         * generated/minloc0_4_i1.c: Regenerated.
694         * generated/minloc0_4_i16.c: Regenerated.
695         * generated/minloc0_4_i2.c: Regenerated.
696         * generated/minloc0_4_i4.c: Regenerated.
697         * generated/minloc0_4_i8.c: Regenerated.
698         * generated/minloc0_4_r10.c: Regenerated.
699         * generated/minloc0_4_r16.c: Regenerated.
700         * generated/minloc0_4_r4.c: Regenerated.
701         * generated/minloc0_4_r8.c: Regenerated.
702         * generated/minloc0_8_i1.c: Regenerated.
703         * generated/minloc0_8_i16.c: Regenerated.
704         * generated/minloc0_8_i2.c: Regenerated.
705         * generated/minloc0_8_i4.c: Regenerated.
706         * generated/minloc0_8_i8.c: Regenerated.
707         * generated/minloc0_8_r10.c: Regenerated.
708         * generated/minloc0_8_r16.c: Regenerated.
709         * generated/minloc0_8_r4.c: Regenerated.
710         * generated/minloc0_8_r8.c: Regenerated.
711         * generated/minloc1_16_i1.c: Regenerated.
712         * generated/minloc1_16_i16.c: Regenerated.
713         * generated/minloc1_16_i2.c: Regenerated.
714         * generated/minloc1_16_i4.c: Regenerated.
715         * generated/minloc1_16_i8.c: Regenerated.
716         * generated/minloc1_16_r10.c: Regenerated.
717         * generated/minloc1_16_r16.c: Regenerated.
718         * generated/minloc1_16_r4.c: Regenerated.
719         * generated/minloc1_16_r8.c: Regenerated.
720         * generated/minloc1_4_i1.c: Regenerated.
721         * generated/minloc1_4_i16.c: Regenerated.
722         * generated/minloc1_4_i2.c: Regenerated.
723         * generated/minloc1_4_i4.c: Regenerated.
724         * generated/minloc1_4_i8.c: Regenerated.
725         * generated/minloc1_4_r10.c: Regenerated.
726         * generated/minloc1_4_r16.c: Regenerated.
727         * generated/minloc1_4_r4.c: Regenerated.
728         * generated/minloc1_4_r8.c: Regenerated.
729         * generated/minloc1_8_i1.c: Regenerated.
730         * generated/minloc1_8_i16.c: Regenerated.
731         * generated/minloc1_8_i2.c: Regenerated.
732         * generated/minloc1_8_i4.c: Regenerated.
733         * generated/minloc1_8_i8.c: Regenerated.
734         * generated/minloc1_8_r10.c: Regenerated.
735         * generated/minloc1_8_r16.c: Regenerated.
736         * generated/minloc1_8_r4.c: Regenerated.
737         * generated/minloc1_8_r8.c: Regenerated.
738         * generated/minval_i1.c: Regenerated.
739         * generated/minval_i16.c: Regenerated.
740         * generated/minval_i2.c: Regenerated.
741         * generated/minval_i4.c: Regenerated.
742         * generated/minval_i8.c: Regenerated.
743         * generated/minval_r10.c: Regenerated.
744         * generated/minval_r16.c: Regenerated.
745         * generated/minval_r4.c: Regenerated.
746         * generated/minval_r8.c: Regenerated.
747         * generated/product_c10.c: Regenerated.
748         * generated/product_c16.c: Regenerated.
749         * generated/product_c4.c: Regenerated.
750         * generated/product_c8.c: Regenerated.
751         * generated/product_i1.c: Regenerated.
752         * generated/product_i16.c: Regenerated.
753         * generated/product_i2.c: Regenerated.
754         * generated/product_i4.c: Regenerated.
755         * generated/product_i8.c: Regenerated.
756         * generated/product_r10.c: Regenerated.
757         * generated/product_r16.c: Regenerated.
758         * generated/product_r4.c: Regenerated.
759         * generated/product_r8.c: Regenerated.
760         * generated/sum_c10.c: Regenerated.
761         * generated/sum_c16.c: Regenerated.
762         * generated/sum_c4.c: Regenerated.
763         * generated/sum_c8.c: Regenerated.
764         * generated/sum_i1.c: Regenerated.
765         * generated/sum_i16.c: Regenerated.
766         * generated/sum_i2.c: Regenerated.
767         * generated/sum_i4.c: Regenerated.
768         * generated/sum_i8.c: Regenerated.
769         * generated/sum_r10.c: Regenerated.
770         * generated/sum_r16.c: Regenerated.
771         * generated/sum_r4.c: Regenerated.
772         * generated/sum_r8.c: Regenerated.
773         
774 2007-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
776         PR libfortran/23138
777         * acinclude.m4 (LIBGFOR_CHECK_MINGW_SNPRINTF): New check.
778         * configure.ac: Use LIBGFOR_CHECK_MINGW_SNPRINTF.
779         * libgfortran.h: If HAVE_MINGW_SNPRINTF is true, use __mingw_snprintf
780         instead of snprintf.
781         * config.h.in: Regenerate.
782         * configure: Regenerate.
784 2007-08-22  Bernhard Fischer  <rep.dot.nop@gmail.com>
786         * libgfortran/Makefile.am (AM_CPPFLAGS): Commentary typo fix.
788 2007-08-17  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
790         PR fortran/33079
791         * intrinsics/string_intrinsics.c (string_trim, string_minmax): Fix
792         the zero-length result case.
794 2007-08-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
796         PR fortran/33077
797         * intrinsics/random.c (random_seed_i8): Fix code logic.
799 2007-08-13  Danny Smith  <dannysmit@users.sourceforge.net>
801         * acinclude.m4 (GTHREAD_USE_WEAK) Define to 0 for mingw32.
802         * configure: Regenerate.
804 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
806         PR fortran/30964
807         PR fortran/33054
808         * intrinsics/random.c (random_seed): Rename into random_seed_i4.
809         (random_seed_i8): New function.
810         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_random_seed,
811         add _gfortran_random_seed_i4 and _gfortran_random_seed_i8.
812         * libgfortran.h (iexport_proto): Replace random_seed by
813         random_seed_i4 and random_seed_i8.
814         * runtime/main.c (init): Call the new random_seed_i4.
816 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
817             Tobias Burnus  <burnus@gcc.gnu.org>
819         PR fortran/31189
820         * runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
821         when displaying backtrace.
822         * runtime/compile_options.c: Include <signal.h>.
823         (handler): New function.
824         (set_options): Set signal handlers for backtrace.
825         * libgfortran.h (handler): Add prototype.
827 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
829         * intrinsics/string_intrinsics.c (compare_string): Return an int.
830         * libgfortran.h (compare_string): Likewise.
832 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
834         PR fortran/31270
835         * runtime/error.c (runtime_error_at): Add a variable number of
836         arguments.
837         * libgfortran.h (runtime_error_at): Update prototype.
839 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
841         PR fortran/32933
842         * intrinsics/associated.c: Change return type of associated into
843         a C int.
845 2007-08-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
847         PR libfortran/33039
848         * io/list_read.c (find_nml_name): Check for a space after a namelist
849         name match.
851 2007-08-09  Tobias Burnus  <burnus@net-b.de>
853         PR fortran/32987
854         * io/format.c (next_char): Treat '\t' as ' ' in format specification.
856 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
858         PR fortran/30947
859         * intrinsics/signal.c: Create specific versions of alarm_sub and
860         alarm_sub_int according to the integer kind of the last argument.
861         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_alarm_sub and
862         _gfortran_alarm_sub_int, add _gfortran_alarm_sub_i4,
863         _gfortran_alarm_sub_i8, _gfortran_alarm_sub_int_i4 and
864         _gfortran_alarm_sub_int_i8.
866 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
868         PR fortran/29828
869         * intrinsics/string_intrinsics.c (string_minmax): New function
870         and prototype.
871         * gfortran.map (GFORTRAN_1.0): Add _gfortran_string_minmax
873 2007-08-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
875         PR fortran/31202
876         * intrinsics/c99_functions.c (roundl): Provide fallback
877         implementation for systems without ceill.
878         * c99_protos.h (roundl): Define prototype in all cases.
880 2007-08-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
882         PR libfortran/32977
883         * io/unix.c:  If there is no vsnprintf, use vsprintf and issue
884         a fatal error when a buffer overrun occurs.
886 2007-08-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
888         PR fortran/31202
889         * intrinsics/c99_functions.c (roundl,lroundf,lround,lroundl,
890         llroundf,llround,llroundl): New functions.
891         * c99_protos.h (roundl,lroundf,lround,lroundl,llroundf,llround,
892         llroundl): New prototypes.
893         * configure.ac: Check for lroundf, lround, lroundl, llroundf,
894         llround and llroundl.
895         * configure: Regenerate.
896         * Makefile.in: Regenerate.
897         * config.h.in: Regenerate.
899 2007-07-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
901         * libgfortran.h: Include <stdarg.h>.
903 2007-07-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
905         PR libfortran/32858
906         PR libfortran/30814
907         * configure.ac:  Added checks for presence of stdio.h and
908         stdarg.h.  Test presence of vsnprintf().
909         * configure: Regenerated.
910         * config.h.in:  Regenerated.
911         * libgfortran.h:  Include <stdio.h>.  Add printf attribute to
912         prototype of runtime_error.  Remove prototype for st_sprintf.
913         Add prototype for st_vprintf.
914         * runtime/main.c (store_exec_path):  Replace st_sprintf by sprintf.
915         * runtime/error.c (st_sprintf):  Remove.
916         (runtime_error):  Rewrite as a variadic function.  Call
917         st_vprintf().
918         * intrinsics/pack_generic.c:  Output extents of LHS and RHS for
919         bounds error.
920         * io/open.c (new_unit):  Replace st_sprintf by sprintf.
921         * io/list_read.c (convert_integer):  Likewise.
922         (parse_repeat):  Likewise.
923         (read_logical):  Likewise.
924         (read_character):  Likewise.
925         (parse_real):  Likewise.
926         (read_real):  Likewise.
927         (check_type):  Likewise.
928         (nml_parse_qualifyer):  Likewise.
929         (nml_read_obj):  Likewise.
930         (nml_get_ojb_data):  Likewise.
931         * io/unix.c (init_error_stream):  Remove.
932         (tempfile):  Replace st_sprintf by sprintf.
933         (st_vprintf):  New function.
934         (st_printf):  Rewrite to call st_vprintf.
935         * io/transfer.c (require_type):  Replace st_sprintf by sprintf.
936         * io/format.c (format_error):  Likewise.
937         * io/write.c (nml_write_obj):  Likewise.
939 2007-07-27  Janne Blomqvist  <jb@gcc.gnu.org>
941         * io/transfer.c (st_set_nml_var_dim): Use index_type instead of
942         GFC_INTEGER_4 for array descriptor triplets.
944 2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
946         * io/unix.c (stream_ttyname): Mark argument as potentialy unused.
948 2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
950         PR fortran/32035
951         * runtime/select.c (select_string): Adjust prototype and function
952         so that the return value is an integer, not a pointer.
954 2007-07-24  Tobias Burnus  <burnus@net-b.de>
956         * libgfortran.h:  Add bounds_check to compile_options_t.
958 2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
960         PR fortran/30814
961         * libgfortran.h:  Add bounds_check to compile_options_t.
962         * runtime/compile_options.c (set_options):  Add handling
963         of compile_options.bounds_check.
964         * intrinsics/pack_generic.c (pack_internal):  Also determine
965         the number of elements if compile_options.bounds_check is
966         true.  Raise runtime error if a different array shape is
967         detected.
969 2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
971         PR fortran/32600
972         * intrinsics/iso_c_binding.c (c_funloc): Remove.
973         * intrinsics/iso_c_binding.h: Remove c_funloc.
974         * gfortran.map: Ditto.
976 2007-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
978         * io/read.c (convert_real): Generate error only on EINVAL.
980 2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>
982         PR fortran/32627
983         * libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
984         for character/string arguments.
985         * libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
986         the optional SHAPE arg to be any valid integer kind.
987         * libgfortran/gfortran.map: Add c_f_pointer_s0.
988         * libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
989         character kind.
990         * libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
991         c_f_pointer for complex and logical types.
992         * libgfortran/gfortran.map: Add c_f_pointer versions for logical
993         and complex types.
995 2007-07-19  Christopher D. Rickett  <crickett@lanl.gov>
997         PR fortran/32600
998         * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
999         * libgfortran/intrinsics/iso_c_binding.h: Ditto.
1000         * libgfortran/gfortran.map: Ditto.
1002 2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1003             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1005         PR fortran/32611
1006         * runtime/compile_options.c (set_std): Remove.
1007         (set_options): New function.
1008         (init_compile_options): Add initialization for -fsign-zero option.
1009         * gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
1010         _gfortran_set_options.
1011         * libgfortran.h (compile_options_t): Add sign_zero field.
1012         * io/write.c (output_float): Use the sign bit of the value to determine
1013         if a negative sign should be emitted for zero values.  Do not emit the
1014         negative sign for zero if -fno-sign-zero was set during compile.
1015         
1016 2007-07-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1018         PR libgfortran/32752
1019         * io/unix.c (unix_stream): Move buffer pointer adjacent to
1020         small_buffer.
1021         * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
1022         bytes_used to zero. Fix off by one error in calculation of pos and
1023         skips. Eliminate duplicate pending_spaces check.
1025 2007-07-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1027         PR fortran/32357
1028         * intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
1029         TOPOS arguments are C int.
1031 2007-07-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1033         PR libgfortran/32702
1034         * io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
1035         (fd_alloc): If the number of bytes needed is greater than the default
1036         BUFFER_SIZE, allocate a new buffer large enough.  Free the old buffer
1037         if necessary. (fd_sfree): Restore use of buffer pointer.
1038         (fd_close): Likewise. (fd_open): Likewise.
1039         (init_error_stream): Likewise.
1040         
1041 2007-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
1043         PR libfortran/32336
1044         * m4/matmul.m4:  When the dimension of b is incorrect,
1045         raise a runtime error instead of a failed assertion.
1046         * generated/matmul_i1.c:  Regenerated.
1047         * generated/matmul_i2.c:  Regenerated.
1048         * generated/matmul_i4.c:  Regenerated.
1049         * generated/matmul_i8.c:  Regenerated.
1050         * generated/matmul_i16.c:  Regenerated.
1051         * generated/matmul_r4.c:  Regenerated.
1052         * generated/matmul_r8.c:  Regenerated.
1053         * generated/matmul_r10.c:  Regenerated.
1054         * generated/matmul_r16.c:  Regenerated.
1056 2007-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1058         PR libgfortran/32678
1059         * io/transfer.c (formatted_transfer_scalar): Don't allow
1060         pending_spaces to go negative.
1062 2007-07-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
1064         PR libfortran/32217
1065         * intrinsics/unpack_generic.c:  If the destination array is
1066         empty, return early.
1068 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1070         * aclocal.m4: Regenerated.
1072 2007-07-04  David Edelsohn  <edelsohn@gnu.org>
1074         * configure.ac: SUBST CFLAGS.
1075         * configure: Regenerate.
1077 2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
1079         * libgfortran.h: Mark internal_malloc_size as a malloc function.
1080         * runtime/memory.c (internal_realloc_size): Remove.
1081         (internal_realloc): Call realloc directly instead of
1082         internal_realloc_size.
1083         (allocate_size): Remove.
1084         (allocate): Call malloc directly instead of allocate_size, mark as
1085         malloc function.
1087 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1089         Restore collateral damage from ISO C Binding merge.
1091 2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1093         PR libgfortran/32456
1094         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1095         for unit directly.
1097 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1099         * Makefile.in:  Regenerated with automake 1.9.6.
1101 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1103         * Makefile.in:  Remove extraneous kill.lo rule.
1105 2007-07-02  Janne Blomqvist  <jb@gcc.gnu.org>
1107         PR fortran/32239
1108         * generated/pow_r*_i4.c: Removed.
1110 2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
1112         * Makefile.in: Add support for iso_c_generated_procs.c and
1113         iso_c_binding.c.
1114         * Makefile.am: Ditto.
1115         * intrinsics/iso_c_generated_procs.c: New file containing helper
1116         functions.
1117         * intrinsics/iso_c_binding.c: Ditto.
1118         * intrinsics/iso_c_binding.h: New file
1119         * gfortran.map: Include the __iso_c_binding_c_* functions.
1120         * libgfortran.h: define GFC_NUM_RANK_BITS.
1122 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1124         PR fortran/32239
1125         * Makefile.am: Don't generate real**int4 pow functions.
1126         * gfortran.map: Remove real**int4 pow symbols.
1127         * Makefile.in: Regenerated.
1129 2007-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1131         PR libgfortran/32554
1132         * io/write.c (output_float): Set edigits to a fixed size, avoiding
1133         variation in field width calculation and eliminate buffer overrun.
1135 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1137         * runtime/memory.c (internal_realloc): Use index_type for size
1138         argument instead of GFC_INTEGER_4.
1139         (allocate_array): Likewise.
1140         (allocate): Likewise, add ifdef around unnecessary check.
1141         (internal_reallo64): Remove.
1142         (allocate_array64): Remove.
1143         (allocate64): Remove.
1144         * gfortran.map: Remove symbols for 64-bit allocation functions.
1146 2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1148         PR libgfortran/32456
1149         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1150         for unit directly.
1152 2007-06-24  Adam Nemet  <anemet@caviumnetworks.com>
1154         PR libfortran/32495
1155         * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
1156         (show_backtrace): Rename strcasestr to local_strcasestr.
1158 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1160         PR libgfortran/32456
1161         * runtime/error.c (show_locus): Update to emit the unit number
1162         and file name involved with the error.  Use new function
1163         filename_from_unit.
1164         * libgfortran.h (filename_from_unit): Declare new function.
1165         * io/unit.c (init_units): Set the unit file name for stdin, stdout,
1166         and stderr for use later in error reporting.
1167         (filename_from_unit): Add this new function.
1169 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1171         PR libgfortran/32446
1172         * io/write.c (output_float): Calculate ndigits correctly for large
1173         numbered formats that must pad zeros before the decimal point.
1175 2007-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1177         PR libfortran/32345
1178         * runtime/backtrace.c (show_backtrace): Only use snprintf if
1179         available.
1181 2007-06-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1183         PR libgfortran/32235
1184         * io/transfer.c (st_read): Remove test for end of file condition.
1185         (next_record_r): Add test for end of file condition.
1187 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1189         * configure: Regenerate.
1191 2007-05-28  Tobias Burnus  <burnus@net-b.de>
1193         PR fortran/32124
1194         * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
1195         (allocate,allocate64): Use stat variable if present.
1197 2007-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1199         * runtime/string.c (compare0): Use gfc_charlen_type instead of
1200         int.
1201         (fstrlen): Likewise.
1202         (find_option): Likewise.
1203         (fstrcpy): Use gfc_charlen_type instead of int, return length.
1204         (cf_strcpy): Likewise.
1205         * libgfortran.h: Change string prototypes to use gfc_charlen_type.
1206         * io/open.c (new_unit): Use snprintf if available.
1207         * io/list_read.c (nml_touch_nodes): Use memcpy instead of
1208         strcpy/strcat.
1209         (nml_read_obj): Likewise.
1210         * io/transfer.c (st_set_nml_var): Likewise.
1211         * io/write.c (output_float): Use snprintf if available.
1212         (nml_write_obj) Use memcpy instead of strcpy/strcat.
1214 2007-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
1216         * io/unix.c (unix_stream): Rearrange struct members, remove
1217         small_buffer.
1218         (int_stream): New struct.
1219         (fd_alloc): Always use existing buffer, never reallocate.
1220         (fd_sfree): Remove check for buffer != small_buffer.
1221         (fd_close): Likewise.
1222         (mem_alloc_r_at): Change to use int_stream.
1223         (mem_alloc_w_at): Likewise.
1224         (mem_read): Likewise.
1225         (mem_write): Likewise.
1226         (mem_set): Likewise.
1227         (mem_truncate): Likewise.
1228         (mem_close): Likewise.
1229         (mem_sfree): Likewise.
1230         (empty_internal_buffer): Likewise.
1231         (open_internal): Likewise.
1232         
1233 2007-05-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1235         * io/transfer.c (unformatted_read): Use size from front end
1236         eliminating use of size_from_real_kind.
1237         (unformatted_write): Ditto.
1239 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1241         * Makefile.in: Regenerate.
1242         * configure: Regenerate.
1243         * aclocal.m4: Regenerate.
1245 2007-05-22  Tobias Burnus  <burnus@net-b.de>
1247         * libgfortran.h: Mark stop_numeric as noreturn.
1249 2007-05-22  Tobias Burnus  <burnus@net-b.de>
1251         PR libgfortran/31295
1252         * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
1253         * intrinsics/eoshift2.c (eoshift2): Ditto.
1255 2007-05-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1257         PR libfortran/31964
1258         * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
1259         shift of bit-size number of bits.
1261 2007-05-17  Tobias Burnus <burnus@net-b.de>
1263         PR fortran/31917
1264         * runtime/environ.c (mark_range): Fix setting default convert unit.
1266 2007-05-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1268         PR libfortran/31922
1269         * intrinsics/string_intrinsics.c (string_trim): Set result to null if
1270         string length is zero.
1272 2007-05-15  Tobias Burnus  <burnus@net-b.de>
1274         PR libfortran/31915
1275         * io/transfer.c (unformatted_read): Use proper size for real(10).
1276           (unformatted_write): Ditto.
1278 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1280         PR fortran/30723
1281         * runtime/memory.c (internal_malloc, internal_malloc64,
1282         internal_free): Remove.
1283         * runtime/error.c (os_error): Export function.
1284         * intrinsics/move_alloc.c: Include stdlib.h.
1285         (move_alloc): Call free instead of internal_free.
1286         (move_alloc_c): Wrap long lines.
1287         * libgfortran.h (os_error): Export prototype.
1288         (internal_free): Remove prototype.
1289         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
1290         _gfortran_internal_malloc and _gfortran_internal_malloc64.
1291         Add _gfortran_os_error.
1293 2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1295         PR libfortran/31880
1296         * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
1298 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1300         PR libfortran/31607
1301         * intrinsics/system.c (system_sub): Call flush_all_units.
1302         * io/io.h (flush_all_units): Move prototype to libgfortran.h.
1303         * libgfortran.h (flush_all_units): Add prototype.
1305 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1307         PR libfortran/31201
1308         * runtime/error.c (runtime_error_at): New function.
1309         (generate_error): Export this function.
1310         * gfortran.map: Add _gfortran_generate_error and
1311         _gfortran_runtime_error_at.
1312         * libgfortran.h: Add comment to reference error codes in front end.
1313         (library_start): Locate prototype with library_end macro and add
1314         a new comment.  Add prototype for runtime_error_at. Export prototype
1315         for generate_error.
1316         * io/lock.c (library_start): Fix check for error condition.
1317         * io/transfer.c (data_transfer_init): Add library check.
1319 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
1321         PR fortran/22359
1322         * io/intrinsics.c (fseek_sub): New.
1323         * io/unix.c (fd_fseek): Change logical and physical offsets only
1324         if seek succeeds.
1325         * gfortran.map (fseek_sub): New.
1327 2007-05-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1329         PR libfortran/31210
1330         * io/transfer.c (transfer_character): Avoid passing a NULL
1331         pointer as source to the transfer routines, if the string length
1332         is zero.
1334 2007-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1336         PR libfortran/31501
1337         * io/list_read.c (next_char): Fix whitespace.
1338         * io/io.h: Remove prototypes and define macros for is_array_io,
1339         is_stream_io, and is_internal_unit.
1340         * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
1341         these functions.
1342         * io/transfer.c (read_sf): Change handling of internal_unit to make a
1343         single call to salloc_r and use memcpy to transfer the data. 
1345 2007-04-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1347         PR libfortran/31532
1348         * io/file_pos.c (st_backspace): Set flags.position for end of file
1349         condition and use new function update_position.
1350         (st_endfile): Use new function update_position.
1351         * io/io.h: Add prototype for new function.
1352         * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
1353         to zero.
1354         * io/unit.c (update_position): New function to update position info
1355         used by inquire.
1356         * io/transfer.c (next_record): Fix typo and use new function.
1358 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1360         PR libfortran/31299
1361         * intrinsics/getlog.c: Use getpwuid and geteuid instead of
1362         getlogin if they are available.
1363         * configure.ac: Add checks for getpwuid and geteuid.
1364         * configure: Regenerate.
1365         * config.h.in: Regenerate.
1367 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
1369         * configure: Regenerate using autoconf 2.59.
1370         * Makefile.in: Likewise.  
1371         * config.h.in: Likewise.
1373 2007-04-24  Janne Blomqvist  <jb@gcc.gnu.org>
1375         PR libfortran/27740
1376         * configure.ac: New test to determine if symbol versioning is
1377         supported.
1378         * Makefile.am: Use result of above test to add appropriate linker
1379         flags.
1380         * gfortran.map: New file.
1381         * configure: Regenerated.
1382         * Makefile.in: Regenerated.
1383         * config.h.in: Regenerated.
1385 2007-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1387         PR fortran/31618
1388         * io/transfer.c (read_block_direct):  Instead of calling us_read,
1389         set dtp->u.p.current_unit->current_record = 0 so that pre_position
1390         will read the record marker.
1391         (data_transfer_init):  For different error conditions, call
1392         generate_error, then return.
1394 2007-04-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1396         * runtime/main.c (please_free_exe_path_when_done): New variable.
1397         (store_exe_path): Initialize character buffer, and mark whether
1398         exe_path should be free'd by the library destructor function.
1399         (cleanup): Only free exe_path if needed.
1401 2007-04-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1402             Tobias Burnus  <burnus@net-b.de>
1404         PR libfortran/31286
1405         PR libfortran/31296
1406         * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
1407         * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
1408         array structures we pass to unpack_internal.
1410 2007-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1412         * io/open.c (test_endfile): Revert changes for 31052, restoring this
1413         function. 
1415 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1417         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.  Add libgfortran_la_LINK.
1418         * Makefile.in: Regenerate.
1420 2007-04-11  Kai Tietz  <kai.tietz@onevision.com>
1422         * configure: Regenerate.
1424 2007-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1426         * intrinsics/cpu_time.c: Don't include headers already included
1427         by libgfortran.h. Protect inclusion of sys/times.h.
1428         * configure.ac: Remove unneeded checks for finit, stdio.h,
1429         stddef.h, math.h and sys/params.h.
1430         * config/fpu-aix.h: Don't include headers already included by
1431         libgfortran.h.
1432         * config/fpu-sysv.h: Likewise.
1433         * io/write.c: Likewise.
1434         * m4/minloc1.m4: Likewise.
1435         * m4/maxloc1.m4: Likewise.
1436         * m4/fraction.m4: Likewise.
1437         * m4/set_exponent.m4: Likewise.
1438         * m4/spacing.m4: Likewise.
1439         * m4/minval.m4: Likewise.
1440         * m4/maxval.m4: Likewise.
1441         * m4/exponent.m4: Likewise.
1442         * m4/nearest.m4: Likewise.
1443         * m4/minloc0.m4: Likewise.
1444         * m4/maxloc0.m4: Likewise.
1445         * m4/rrspacing.m4: Likewise.
1446         * runtime/main.c: Likewise.
1447         * runtime/error.c: Likewise.
1448         * intrinsics/system_clock.c: Likewise.
1449         * intrinsics/etime.c: Likewise.
1450         * intrinsics/stat.c: Likewise.
1451         * intrinsics/date_and_time.c: Likewise.
1452         * intrinsics/env.c: Likewise.
1453         * intrinsics/kill.c: Likewise.
1454         * intrinsics/getXid.c: Likewise.
1455         * intrinsics/chmod.c: Likewise.
1456         * intrinsics/args.c: Likewise.
1457         * intrinsics/c99_functions.c: Likewise.
1458         * generated/minval_r8.c: Regenerate.
1459         * generated/maxloc1_4_r8.c: Regenerate.
1460         * generated/minloc1_16_r16.c: Regenerate.
1461         * generated/maxval_i2.c: Regenerate.
1462         * generated/maxloc1_8_i4.c: Regenerate.
1463         * generated/exponent_r16.c: Regenerate.
1464         * generated/maxloc0_4_r4.c: Regenerate.
1465         * generated/fraction_r16.c: Regenerate.
1466         * generated/fraction_r4.c: Regenerate.
1467         * generated/minloc0_4_r16.c: Regenerate.
1468         * generated/minloc0_4_i1.c: Regenerate.
1469         * generated/maxloc0_4_r16.c: Regenerate.
1470         * generated/maxloc0_4_i2.c: Regenerate.
1471         * generated/minloc1_8_r16.c: Regenerate.
1472         * generated/maxloc1_8_r16.c: Regenerate.
1473         * generated/set_exponent_r8.c: Regenerate.
1474         * generated/maxloc0_8_i8.c: Regenerate.
1475         * generated/minloc1_4_r8.c: Regenerate.
1476         * generated/maxloc1_16_r16.c: Regenerate.
1477         * generated/minloc1_16_i4.c: Regenerate.
1478         * generated/maxloc1_16_i4.c: Regenerate.
1479         * generated/minloc0_16_i8.c: Regenerate.
1480         * generated/maxloc0_16_i8.c: Regenerate.
1481         * generated/nearest_r8.c: Regenerate.
1482         * generated/spacing_r16.c: Regenerate.
1483         * generated/maxval_r16.c: Regenerate.
1484         * generated/minloc1_8_i4.c: Regenerate.
1485         * generated/minloc0_16_i16.c: Regenerate.
1486         * generated/minloc0_4_r4.c: Regenerate.
1487         * generated/set_exponent_r10.c: Regenerate.
1488         * generated/rrspacing_r10.c: Regenerate.
1489         * generated/minloc0_4_i2.c: Regenerate.
1490         * generated/maxloc0_8_i1.c: Regenerate.
1491         * generated/minloc0_8_i8.c: Regenerate.
1492         * generated/spacing_r4.c: Regenerate.
1493         * generated/minloc1_16_r10.c: Regenerate.
1494         * generated/minloc0_16_i1.c: Regenerate.
1495         * generated/maxloc0_16_i1.c: Regenerate.
1496         * generated/maxloc1_8_r8.c: Regenerate.
1497         * generated/minval_i16.c: Regenerate.
1498         * generated/exponent_r10.c: Regenerate.
1499         * generated/maxval_i4.c: Regenerate.
1500         * generated/minval_i8.c: Regenerate.
1501         * generated/maxloc1_4_i8.c: Regenerate.
1502         * generated/fraction_r10.c: Regenerate.
1503         * generated/maxloc0_16_i16.c: Regenerate.
1504         * generated/maxloc0_8_r4.c: Regenerate.
1505         * generated/rrspacing_r8.c: Regenerate.
1506         * generated/minloc1_4_i16.c: Regenerate.
1507         * generated/minloc0_4_r10.c: Regenerate.
1508         * generated/maxloc1_4_i16.c: Regenerate.
1509         * generated/minloc0_8_i16.c: Regenerate.
1510         * generated/maxloc0_4_r10.c: Regenerate.
1511         * generated/maxloc0_8_i16.c: Regenerate.
1512         * generated/minloc1_8_r10.c: Regenerate.
1513         * generated/minloc0_16_r4.c: Regenerate.
1514         * generated/maxloc1_8_r10.c: Regenerate.
1515         * generated/maxloc0_16_r4.c: Regenerate.
1516         * generated/minloc1_16_r8.c: Regenerate.
1517         * generated/minloc0_8_i1.c: Regenerate.
1518         * generated/maxloc0_4_i4.c: Regenerate.
1519         * generated/maxloc1_16_r8.c: Regenerate.
1520         * generated/maxloc0_8_i2.c: Regenerate.
1521         * generated/nearest_r16.c: Regenerate.
1522         * generated/maxloc1_16_r10.c: Regenerate.
1523         * generated/minloc0_16_i2.c: Regenerate.
1524         * generated/minloc1_8_r8.c: Regenerate.
1525         * generated/maxloc0_16_i2.c: Regenerate.
1526         * generated/exponent_r4.c: Regenerate.
1527         * generated/spacing_r10.c: Regenerate.
1528         * generated/maxval_r10.c: Regenerate.
1529         * generated/minval_i1.c: Regenerate.
1530         * generated/maxloc1_4_i1.c: Regenerate.
1531         * generated/minloc1_4_i8.c: Regenerate.
1532         * generated/minloc0_8_r4.c: Regenerate.
1533         * generated/minloc0_16_r16.c: Regenerate.
1534         * generated/minloc0_4_i4.c: Regenerate.
1535         * generated/minloc0_8_i2.c: Regenerate.
1536         * generated/minval_r4.c: Regenerate.
1537         * generated/maxloc1_4_r4.c: Regenerate.
1538         * generated/maxval_r8.c: Regenerate.
1539         * generated/minval_r16.c: Regenerate.
1540         * generated/minloc1_4_i1.c: Regenerate.
1541         * generated/minval_i2.c: Regenerate.
1542         * generated/maxloc1_4_i2.c: Regenerate.
1543         * generated/maxloc1_8_i8.c: Regenerate.
1544         * generated/maxloc0_4_r8.c: Regenerate.
1545         * generated/maxloc0_16_r16.c: Regenerate.
1546         * generated/minloc1_4_r16.c: Regenerate.
1547         * generated/fraction_r8.c: Regenerate.
1548         * generated/maxloc1_4_r16.c: Regenerate.
1549         * generated/set_exponent_r4.c: Regenerate.
1550         * generated/minloc0_8_r16.c: Regenerate.
1551         * generated/maxloc0_8_r16.c: Regenerate.
1552         * generated/nearest_r10.c: Regenerate.
1553         * generated/maxloc0_8_i4.c: Regenerate.
1554         * generated/minloc1_4_r4.c: Regenerate.
1555         * generated/minloc0_16_i4.c: Regenerate.
1556         * generated/maxloc0_16_i4.c: Regenerate.
1557         * generated/nearest_r4.c: Regenerate.
1558         * generated/minloc1_16_i8.c: Regenerate.
1559         * generated/maxloc1_16_i8.c: Regenerate.
1560         * generated/minloc1_4_i2.c: Regenerate.
1561         * generated/maxloc1_8_i1.c: Regenerate.
1562         * generated/minloc0_16_r10.c: Regenerate.
1563         * generated/minloc1_8_i8.c: Regenerate.
1564         * generated/minloc0_4_r8.c: Regenerate.
1565         * generated/minloc0_8_i4.c: Regenerate.
1566         * generated/minloc1_16_i16.c: Regenerate.
1567         * generated/spacing_r8.c: Regenerate.
1568         * generated/maxloc1_8_r4.c: Regenerate.
1569         * generated/minloc1_16_i1.c: Regenerate.
1570         * generated/maxloc1_16_i1.c: Regenerate.
1571         * generated/minval_r10.c: Regenerate.
1572         * generated/minval_i4.c: Regenerate.
1573         * generated/minloc1_8_i1.c: Regenerate.
1574         * generated/maxloc1_4_i4.c: Regenerate.
1575         * generated/maxloc1_8_i2.c: Regenerate.
1576         * generated/maxval_i8.c: Regenerate.
1577         * generated/maxloc0_16_r10.c: Regenerate.
1578         * generated/rrspacing_r4.c: Regenerate.
1579         * generated/minloc0_4_i16.c: Regenerate.
1580         * generated/maxloc0_8_r8.c: Regenerate.
1581         * generated/maxloc0_4_i16.c: Regenerate.
1582         * generated/minloc1_4_r10.c: Regenerate.
1583         * generated/minloc1_8_i16.c: Regenerate.
1584         * generated/maxloc1_4_r10.c: Regenerate.
1585         * generated/minloc0_8_r10.c: Regenerate.
1586         * generated/maxloc1_8_i16.c: Regenerate.
1587         * generated/maxloc0_8_r10.c: Regenerate.
1588         * generated/minloc1_16_r4.c: Regenerate.
1589         * generated/maxloc1_16_r4.c: Regenerate.
1590         * generated/minloc0_16_r8.c: Regenerate.
1591         * generated/maxloc0_16_r8.c: Regenerate.
1592         * generated/maxloc0_4_i8.c: Regenerate.
1593         * generated/maxloc1_16_i16.c: Regenerate.
1594         * generated/minloc1_8_r4.c: Regenerate.
1595         * generated/minloc1_16_i2.c: Regenerate.
1596         * generated/maxloc1_16_i2.c: Regenerate.
1597         * generated/maxval_i16.c: Regenerate.
1598         * generated/exponent_r8.c: Regenerate.
1599         * generated/minloc1_4_i4.c: Regenerate.
1600         * generated/maxval_i1.c: Regenerate.
1601         * generated/minloc1_8_i2.c: Regenerate.
1602         * generated/minloc0_8_r8.c: Regenerate.
1603         * generated/set_exponent_r16.c: Regenerate.
1604         * generated/maxloc0_4_i1.c: Regenerate.
1605         * generated/rrspacing_r16.c: Regenerate.
1606         * generated/minloc0_4_i8.c: Regenerate.
1607         * generated/maxval_r4.c: Regenerate.
1608         * configure: Regenerate.
1609         * config.h.in: Regenerate.
1611 2007-04-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1613         PR libfortran/31395
1614         * io/format.c (parse_format_list): Fix parsing.
1616 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1618         PR fortran/31304
1619         intrinsics/string_intrinsics.c (string_repeat): Remove.
1621 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1623         PR libfortran/31052
1624         * io/open.c (test_endfile): Delete this function.
1625         (edit_modes): Delete call to test_endfile.
1626         (new_unit): Likewise.
1627         * io/io.h: Delete prototype for test_endfile.
1628         * io/transfer.c (next_record_r): Remove use of test_endfile.
1629         (st_read):  Add test for end file condition and adjust status. 
1631 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1633         PR libfortran/31366
1634         * io/transfer.c (read_block_direct): Do not generate error when reading
1635         past EOF on a short record that is less than the RECL= specified.
1636         
1637 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1639         PR libfortran/31207
1640         * io/unit.c (close_unit_1): If there are bytes previously written from
1641         ADVANCE="no", move to the end before closing.
1643 2007-03-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1645         PR libfortran/31335
1646         * intrinsics/stat.c: Only provide STAT and FSTAT library routines
1647         if stat() and fstat() library functions are available. When lstat()
1648         is not available, use stat() instead.
1649         * configure.ac: Add checks for stat, fstat and lstat.
1650         * configure: Regenerate.
1651         * config.h.in: Regenerate.
1653 2007-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1655         PR libfortran/31052
1656         * io/transfer.c (next_record_r): Do not call test_endfile if in
1657         namelist mode.
1659 2007-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1661         PR libfortran/31199
1662         * io/io.h: Add saved_pos to gfc_unit structure.
1663         * io/open.c (new_unit): Initialize saved_pos.
1664         * io/transfer.c (data_transfer_init): Set max_pos to value in
1665         saved_pos.
1666         (next_record_w): Fix whitespace.
1667         (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
1668         later use.  If not ADVANCE="no" set saved_pos to zero.
1670 2007-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
1672         PR libfortran/31196
1673         * intrinsics/reshape_generic.c (reshape_internal):  Increment
1674         correct variable.
1676 2007-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1678         PR libfortran/31052
1679         * file_pos.c: Update Copyright year.
1680         * io/open.c (test_endfile): Restore test_endfile to fix SPEC
1681         regression.  Update Copyright year.
1682         * io/io.h: Same.
1683         * io/unix.c (is_special): Add missing type for this function.
1684         Update Copyright year.
1685         * io/transfer.c (next_record_r): Restore test_endfile.
1686         (st_read): Fix whitespace.  Update Copyright year
1688 2007-03-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1690         * configure.ac: Add missing check for gettimeofday.
1691         * config.h.in: Renegerate.
1692         * configure: Regenerate.
1694 2007-03-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1696         PR libfortran/31052
1697         * io/file_position (st_rewind): Fix comments. Remove use of
1698         test_endfile. Don't seek if already at 0 position.  Use new is_special
1699         function to set endfile state.
1700         * io/open.c (test_endfile): Delete this function.
1701         * io/io.h: Delete prototype for test_endfile.  Add prototype
1702         for is_special.
1703         * io/unix.c (is_special): New function. Fix whitespace.
1704         * io/transfer.c (next_record_r): Remove use of test_endfile.
1706 2007-03-16  David Edelsohn  <edelsohn@gnu.org>
1708         * runtime/main.c: Include "config.h" first.
1710 2007-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1712         PR libfortran/31099
1713         * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
1715 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1717         * runtime/backtrace.c: New file.
1718         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
1719         environment variable.
1720         * runtime/compile_options.c (set_std): Add new argument.
1721         * runtime/main.c (store_exe_path, full_exe_path): New functions.
1722         * runtime/error.c (sys_exit): Add call to show_backtrace.
1723         * libgfortran.h (options_t): New backtrace field.
1724         (store_exe_path, full_exe_path, show_backtrace): New prototypes.
1725         * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
1726         close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
1727         and getppid.
1728         * Makefile.am: Add runtime/backtrace.c.
1729         * fmain.c (main): Add call to store_exe_path.
1730         * Makefile.in: Renegerate.
1731         * config.h.in: Renegerate.
1732         * configure: Regenerate.
1734 2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1736         PR libfortran/31051
1737         * io/transfer.c (formatted_transfer_scalar): Adjust position for
1738         pending spaces when in writing mode.  Clean up some formatting.
1740 2007-03-14  Thomas Koenig  <Thomas.Koenig@online.de>
1742         PR libfortran/30690
1743         * all.m4: Quote everything, except for m4 macros.
1744         * any.m4: Likewise.
1745         * count.m4: Likewise.
1746         * cshift1.m4: Likewise.
1747         * eoshift1.m4: Likewise.
1748         * eoshift3.m4: Likewise.
1749         * exponent.m4: Likewise.
1750         * fraction.m4: Likewise.
1751         * in_pack.m4: Likewise.
1752         * in_unpack.m4: Likewise.
1753         * matmul.m4: Likewise.
1754         * matmull.m4: Likewise.
1755         * nearest.m4: Likewise.
1756         * pow.m4: Likewise.
1757         * product.m4: Likewise.
1758         * reshape.m4: Likewise.
1759         * rrspacing.m4: Likewise.
1760         * set_exponent.m4: Likewise.
1761         * shape.m4: Likewise.
1762         * spacing.m4: Likewise.
1763         * transpose.m4: Likewise.
1765 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
1767         * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
1768         O_RDONLY even if errno is EROFS.
1770 2007-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1772         PR libfortran/31099
1773         * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
1774         * io/transfer.c (next_record_w): Set bytes left to record length for
1775         sequential unformatted I/O.
1776         (next_record_r): Ditto.
1777         (read_block_direct): Fix test for exceeding bytes_left.
1779 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1781         PR fortran/30947
1782         * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with 
1783         integer arguments.
1785 2007-03-04  Thomas Koenig  <Thomas.Koenig@online.de>
1787         PR libfortran/30981
1788         * m4/pow_m4: Use appropriate unsigned int type for u.
1789         * generated/pow_c10_i16.c: Regenerated.
1790         * generated/pow_c10_i4.c: Regenerated.
1791         * generated/pow_c10_i8.c: Regenerated.
1792         * generated/pow_c16_i16.c: Regenerated.
1793         * generated/pow_c16_i4.c: Regenerated.
1794         * generated/pow_c16_i8.c: Regenerated.
1795         * generated/pow_c4_i16.c: Regenerated.
1796         * generated/pow_c4_i4.c: Regenerated.
1797         * generated/pow_c4_i8.c: Regenerated.
1798         * generated/pow_c8_i16.c: Regenerated.
1799         * generated/pow_c8_i4.c: Regenerated.
1800         * generated/pow_c8_i8.c: Regenerated.
1801         * generated/pow_i16_i16.c: Regenerated.
1802         * generated/pow_i16_i4.c: Regenerated.
1803         * generated/pow_i16_i8.c: Regenerated.
1804         * generated/pow_i4_i16.c: Regenerated.
1805         * generated/pow_i4_i4.c: Regenerated.
1806         * generated/pow_i4_i8.c: Regenerated.
1807         * generated/pow_i8_i16.c: Regenerated.
1808         * generated/pow_i8_i4.c: Regenerated.
1809         * generated/pow_i8_i8.c: Regenerated.
1810         * generated/pow_r10_i16.c: Regenerated.
1811         * generated/pow_r10_i4.c: Regenerated.
1812         * generated/pow_r10_i8.c: Regenerated.
1813         * generated/pow_r16_i16.c: Regenerated.
1814         * generated/pow_r16_i4.c: Regenerated.
1815         * generated/pow_r16_i8.c: Regenerated.
1816         * generated/pow_r4_i16.c: Regenerated.
1817         * generated/pow_r4_i4.c: Regenerated.
1818         * generated/pow_r4_i8.c: Regenerated.
1819         * generated/pow_r8_i16.c: Regenerated.
1820         * generated/pow_r8_i4.c: Regenerated.
1821         * generated/pow_r8_i8.c: Regenerated.
1823 2007-03-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1825         PR libfortran/31001
1826         * intrinsics/pack_generic.c (pack_internal): Add special checks
1827         for zero-sized arrays.
1829 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1831         * Makefile.am: Add dummy install-pdf target.
1832         * Makefile.in: Regenerate
1834 2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1836         PR libfortran/30918
1837         * io/listread.c (namelist_read): Eat comment line.
1839 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1841         PR libfortran/30910
1842         * io/write.c (output_float): Add condition of format F only for
1843         special case rounding with zero precision.
1845 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
1847         PR libfortran/30533
1848         PR libfortran/30765
1849         * Makefile.am: Add $(srcdir) too all files in generated/.
1850         (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
1851         maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
1852         maxloc0_16_i2.c.
1853         (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
1854         maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
1855         maxloc1_16_i2.c.
1856         (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
1857         (i_minloc0_c):  Add minloc0_4_i1.c, minloc0_8_i1.c,
1858         minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
1859         minloc0_16_i2.c.
1860         (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
1861         minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
1862         minloc1_16_i2.c.
1863         (i_minval_c):  Add minval_i1.c and minval_i2.c.
1864         (i_sum_c):  Add sum_i1.c and sum_i2.c.
1865         (i_product_c):  Add product_i1.c and product_i2.c.
1866         (i_matmul_c):  Add matmul_i1.c and matmul_i2.c.
1867         (gfor_built_specific_src):  Remove $(srcdir) from target.
1868         (gfor_bulit_specific2_src):  Likewise.
1869         Makefile.in:  Regenerated.
1870         libgfortran.h:  Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
1871         Add gfc_array_i1 and gfc_array_i2.
1872         * generated/matmul_i1.c: New file.
1873         * generated/matmul_i2.c: New file.
1874         * generated/maxloc0_16_i1.c: New file.
1875         * generated/maxloc0_16_i2.c: New file.
1876         * generated/maxloc0_4_i1.c: New file.
1877         * generated/maxloc0_4_i2.c: New file.
1878         * generated/maxloc0_8_i1.c: New file.
1879         * generated/maxloc0_8_i2.c: New file.
1880         * generated/maxloc1_16_i1.c: New file.
1881         * generated/maxloc1_16_i2.c: New file.
1882         * generated/maxloc1_4_i1.c: New file.
1883         * generated/maxloc1_4_i2.c: New file.
1884         * generated/maxloc1_8_i1.c: New file.
1885         * generated/maxloc1_8_i2.c: New file.
1886         * generated/maxval_i1.c: New file.
1887         * generated/maxval_i2.c: New file.
1888         * generated/minloc0_16_i1.c: New file.
1889         * generated/minloc0_16_i2.c: New file.
1890         * generated/minloc0_4_i1.c: New file.
1891         * generated/minloc0_4_i2.c: New file.
1892         * generated/minloc0_8_i1.c: New file.
1893         * generated/minloc0_8_i2.c: New file.
1894         * generated/minloc1_16_i1.c: New file.
1895         * generated/minloc1_16_i2.c: New file.
1896         * generated/minloc1_4_i1.c: New file.
1897         * generated/minloc1_4_i2.c: New file.
1898         * generated/minloc1_8_i1.c: New file.
1899         * generated/minloc1_8_i2.c: New file.
1900         * generated/minval_i1.c: New file.
1901         * generated/minval_i2.c: New file.
1902         * generated/product_i1.c: New file.
1903         * generated/product_i2.c: New file.
1904         * generated/sum_i1.c: New file.
1905         * generated/sum_i2.c: New file.
1907 2007-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1909         * runtime/memory.c (deallocate): Correct comment.
1911 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
1913         * Makefile.am:  Use $(M4) instead of m4.
1914         * Makefile.in:  Regenerate.
1916 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
1918         * Makefile.am: Remove $(srcdir) from assorted targets
1919         in maintainer mode.
1920         * Makefile.in: Regenerate.
1922 2007-02-09  Thomas Koenig  <Thomas.Koenig@online.de>
1923             Tobias Burnus  <burnus@net-b.de>
1925         PR fortran/30512
1926         * m4/iparm.m4: Use HUGE-1 for most negative integer.
1927         * generated/maxloc1_8_i4.c: Regenerate.
1928         * generated/maxloc0_8_i8.c: Regenerate.
1929         * generated/maxloc1_16_i4.c: Regenerate.
1930         * generated/maxloc0_16_i8.c: Regenerate.
1931         * generated/maxval_i4.c: Regenerate.
1932         * generated/maxloc1_4_i8.c: Regenerate.
1933         * generated/maxloc0_16_i16.c: Regenerate.
1934         * generated/maxloc1_4_i16.c: Regenerate.
1935         * generated/maxloc0_8_i16.c: Regenerate.
1936         * generated/maxloc0_4_i4.c: Regenerate.
1937         * generated/maxloc1_8_i8.c: Regenerate.
1938         * generated/maxloc0_8_i4.c: Regenerate.
1939         * generated/maxloc0_16_i4.c: Regenerate.
1940         * generated/maxloc1_16_i8.c: Regenerate.
1941         * generated/maxloc1_4_i4.c: Regenerate.
1942         * generated/maxval_i8.c: Regenerate.
1943         * generated/maxloc0_4_i16.c: Regenerate.
1944         * generated/maxloc1_8_i16.c: Regenerate.
1945         * generated/maxloc0_4_i8.c: Regenerate.
1946         * generated/maxloc1_16_i16.c: Regenerate.
1947         * generated/maxval_i16.c: Regenerate.
1949 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1951         PR fortran/30611
1952         * intrinsics/string_intrinsics.c (string_repeat): Don't check
1953         if ncopies is negative.
1955 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1957         PR libfortran/30007
1958         * libgfortran.h: Do not prefix symbol name with
1959         __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
1961 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
1963         PR fortran/30284
1964         PR fortran/30626
1965         * io/transfer.c (init_loop_spec, next_array_record): Change to
1966         lbound rather than unity base.
1968 2007-01-21  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1970         * runtime/error.c: Include sys/time.h before sys/resource.h.
1972 2007-01-21  Thomas Koenig  <Thomas.Koenig@online.de>
1974         PR libfortran/30525
1975         * intrinsics/string_intrinsics.c(compare_string):  Make
1976         sure that comparisons are done unsigned.
1978 2007-01-21  Tobias Burnus  <burnus@net-b.de>
1980         PR libfortran/30015
1981         * intrinsics/date_and_time.c (date_and_time): Fix case where time
1982           can go backwards.
1983         * configure.ac: Remove AC_TRY_RUN test for timezone in
1984           gettimeofday.
1985         * acinclude.m4: Ditto.
1986         * configure: Regenerate.
1987         * config.h.in: Regenerate.
1989 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1991         * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
1992         * m4/specific2.m4: Likewise.
1993         * m4/specific.m4: Likewise.
1994         * intrinsics/f2c_specifics.F90: Likewise.
1995         * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
1996         * intrinsics/selected_real_kind.f90: Likewise.
1997         * intrinsics/dprod_r8.f90: Likewise.
1998         * Makefile.am: Add -fallow-leading-underscore to the
1999         gfor_specific_src files, as well as selected_real_kind.F90
2000         and selected_int_kind.F90
2001         * Makefile.in: Regenerate.
2002         * generated/_sqrt_c8.F90: Regenerate.
2003         * generated/_sign_r16.F90: Regenerate.
2004         * generated/_log_c16.F90: Regenerate.
2005         * generated/_sin_c10.F90: Regenerate.
2006         * generated/_tanh_r4.F90: Regenerate.
2007         * generated/_tanh_r8.F90: Regenerate.
2008         * generated/_log10_r10.F90: Regenerate.
2009         * generated/_aimag_c4.F90: Regenerate.
2010         * generated/_sign_r4.F90: Regenerate.
2011         * generated/_aimag_c8.F90: Regenerate.
2012         * generated/_sign_r8.F90: Regenerate.
2013         * generated/_mod_i4.F90: Regenerate.
2014         * generated/_cos_r16.F90: Regenerate.
2015         * generated/_aint_r10.F90: Regenerate.
2016         * generated/_mod_i8.F90: Regenerate.
2017         * generated/_abs_i16.F90: Regenerate.
2018         * generated/_sqrt_c10.F90: Regenerate.
2019         * generated/_atan2_r4.F90: Regenerate.
2020         * generated/_cos_c4.F90: Regenerate.
2021         * generated/_atan_r16.F90: Regenerate.
2022         * generated/_tanh_r10.F90: Regenerate.
2023         * generated/_atan2_r8.F90: Regenerate.
2024         * generated/_cos_c8.F90: Regenerate.
2025         * generated/_exp_r4.F90: Regenerate.
2026         * generated/_log_r10.F90: Regenerate.
2027         * generated/_exp_r8.F90: Regenerate.
2028         * generated/_abs_r4.F90: Regenerate.
2029         * generated/_abs_r8.F90: Regenerate.
2030         * generated/_sin_r16.F90: Regenerate.
2031         * generated/_tan_r4.F90: Regenerate.
2032         * generated/_tan_r8.F90: Regenerate.
2033         * generated/_sign_i4.F90: Regenerate.
2034         * generated/_sign_i8.F90: Regenerate.
2035         * generated/_exp_c16.F90: Regenerate.
2036         * generated/_sqrt_r16.F90: Regenerate.
2037         * generated/_conjg_c4.F90: Regenerate.
2038         * generated/_conjg_c8.F90: Regenerate.
2039         * generated/_dim_r16.F90: Regenerate.
2040         * generated/_mod_r10.F90: Regenerate.
2041         * generated/_abs_c10.F90: Regenerate.
2042         * generated/_conjg_c16.F90: Regenerate.
2043         * generated/_tan_r16.F90: Regenerate.
2044         * generated/_asinh_r10.F90: Regenerate.
2045         * generated/_abs_i4.F90: Regenerate.
2046         * generated/_abs_i8.F90: Regenerate.
2047         * generated/_acos_r10.F90: Regenerate.
2048         * generated/_exp_r10.F90: Regenerate.
2049         * generated/_acosh_r16.F90: Regenerate.
2050         * generated/_atan2_r16.F90: Regenerate.
2051         * generated/_cos_c16.F90: Regenerate.
2052         * generated/_mod_i16.F90: Regenerate.
2053         * generated/_asin_r4.F90: Regenerate.
2054         * generated/_anint_r16.F90: Regenerate.
2055         * generated/_asin_r8.F90: Regenerate.
2056         * generated/_aimag_c10.F90: Regenerate.
2057         * generated/_exp_c4.F90: Regenerate.
2058         * generated/_sinh_r10.F90: Regenerate.
2059         * generated/_exp_c8.F90: Regenerate.
2060         * generated/_log10_r4.F90: Regenerate.
2061         * generated/_log10_r8.F90: Regenerate.
2062         * generated/_abs_c4.F90: Regenerate.
2063         * generated/_abs_r16.F90: Regenerate.
2064         * generated/_abs_c8.F90: Regenerate.
2065         * generated/_asin_r10.F90: Regenerate.
2066         * generated/_sign_r10.F90: Regenerate.
2067         * generated/_atanh_r16.F90: Regenerate.
2068         * generated/_log_c10.F90: Regenerate.
2069         * generated/_cosh_r16.F90: Regenerate.
2070         * generated/_sin_c16.F90: Regenerate.
2071         * generated/_cos_r10.F90: Regenerate.
2072         * generated/_log10_r16.F90: Regenerate.
2073         * generated/_aint_r16.F90: Regenerate.
2074         * generated/_acos_r4.F90: Regenerate.
2075         * generated/_acos_r8.F90: Regenerate.
2076         * generated/_sqrt_c16.F90: Regenerate.
2077         * generated/_acosh_r4.F90: Regenerate.
2078         * generated/_atan_r10.F90: Regenerate.
2079         * generated/_acosh_r8.F90: Regenerate.
2080         * generated/_sign_i16.F90: Regenerate.
2081         * generated/_tanh_r16.F90: Regenerate.
2082         * generated/_log_r4.F90: Regenerate.
2083         * generated/_log_r8.F90: Regenerate.
2084         * generated/_sin_r4.F90: Regenerate.
2085         * generated/_sin_r8.F90: Regenerate.
2086         * generated/_log_r16.F90: Regenerate.
2087         * generated/_sin_r10.F90: Regenerate.
2088         * generated/_sqrt_r4.F90: Regenerate.
2089         * generated/_exp_c10.F90: Regenerate.
2090         * generated/_sqrt_r8.F90: Regenerate.
2091         * generated/_asinh_r4.F90: Regenerate.
2092         * generated/_sqrt_r10.F90: Regenerate.
2093         * generated/_asinh_r8.F90: Regenerate.
2094         * generated/_dim_r4.F90: Regenerate.
2095         * generated/_dim_r8.F90: Regenerate.
2096         * generated/_dim_r10.F90: Regenerate.
2097         * generated/_cosh_r4.F90: Regenerate.
2098         * generated/_conjg_c10.F90: Regenerate.
2099         * generated/_tan_r10.F90: Regenerate.
2100         * generated/_cosh_r8.F90: Regenerate.
2101         * generated/_mod_r16.F90: Regenerate.
2102         * generated/_abs_c16.F90: Regenerate.
2103         * generated/_cos_r4.F90: Regenerate.
2104         * generated/_asinh_r16.F90: Regenerate.
2105         * generated/_cos_r8.F90: Regenerate.
2106         * generated/_atanh_r4.F90: Regenerate.
2107         * generated/_atanh_r8.F90: Regenerate.
2108         * generated/_acos_r16.F90: Regenerate.
2109         * generated/_anint_r4.F90: Regenerate.
2110         * generated/_acosh_r10.F90: Regenerate.
2111         * generated/_anint_r8.F90: Regenerate.
2112         * generated/_exp_r16.F90: Regenerate.
2113         * generated/_mod_r4.F90: Regenerate.
2114         * generated/_cos_c10.F90: Regenerate.
2115         * generated/_atan2_r10.F90: Regenerate.
2116         * generated/_dim_i16.F90: Regenerate.
2117         * generated/_mod_r8.F90: Regenerate.
2118         * generated/_anint_r10.F90: Regenerate.
2119         * generated/_aint_r4.F90: Regenerate.
2120         * generated/_aint_r8.F90: Regenerate.
2121         * generated/_dim_i4.F90: Regenerate.
2122         * generated/_sinh_r4.F90: Regenerate.
2123         * generated/_log_c4.F90: Regenerate.
2124         * generated/_dim_i8.F90: Regenerate.
2125         * generated/_sinh_r8.F90: Regenerate.
2126         * generated/_log_c8.F90: Regenerate.
2127         * generated/_sin_c4.F90: Regenerate.
2128         * generated/_sin_c8.F90: Regenerate.
2129         * generated/misc_specifics.F90: Regenerate.
2130         * generated/_abs_r10.F90: Regenerate.
2131         * generated/_aimag_c16.F90: Regenerate.
2132         * generated/_atan_r4.F90: Regenerate.
2133         * generated/_sinh_r16.F90: Regenerate.
2134         * generated/_atan_r8.F90: Regenerate.
2135         * generated/_atanh_r10.F90: Regenerate.
2136         * generated/_cosh_r10.F90: Regenerate.
2137         * generated/_sqrt_c4.F90: Regenerate.
2138         * generated/_asin_r16.F90: Regenerate.
2140 2007-01-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2142         PR libfortran/26893
2143         * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
2144         * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
2145         * configure: Regenerate.
2146         * config.h.in: Regenerate because it was forgottent in the last
2147         commit.
2149 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2150             Tobias Burnus  <burnus@net-b.de>
2152         PR libfortran/29649
2153         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
2154         environment variable.
2155         * runtime/compile_options.c (set_std): Add new argument.
2156         * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
2157         functionality.
2158         * libgfortran.h (options_t): New dump_core and backtrace members.
2159         (sys_exit): Move prototype.
2160         * io/unix.c (sys_exit): Move to runtime/error.c.
2161         * configure.ac: Add check for getrlimit.
2162         * configure: Regenerate.
2164 2007-01-17  Tom Tromey  <tromey@redhat.com>
2166         PR libfortran/27107:
2167         * aclocal.m4, configure, Makefile.in: Rebuilt.
2168         * configure.ac: Enable automake dependency tracking.  Update
2169         minimum automake version.
2171 2007-01-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2173         PR libfortran/27107
2174         * runtime/environ.c: Don't include io/io.h.
2175         * runtime/string.c: Don't include io/io.h.
2176         (compare0): Add cast to avoid warning.
2177         * runtime/error.c: Don't include io/io.h.
2178         (st_printf): Move to io/unix.c.
2179         * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
2180         * intrinsics/fget.c: Likewise.
2181         * intrinsics/ftell.c: Likewise.
2182         * intrinsics/tty.c: Likewise.
2183         * libgfortran.h (DEFAULT_RECL, notification_std,
2184         get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
2185         DEFAULT_TEMPDIR): New declarations.
2186         * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
2187         IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
2188         Move to libgfortran.h.
2189         * io/unix.c: Add io/unix.h content.
2190         (st_printf): New function.
2191         * io/intrinsics.c: New file.
2192         * io/unix.h: Remove, contents moved into unix.c.
2193         * libtool-version: Update library version to 3.0.0.
2194         * configure.ac: Update library version to 0.3.
2195         * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
2196         intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
2197         * Makefile.in: Regenerate.
2198         * configure: Regenerate.
2200 2007-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2202         PR libfortran/30435
2203         * io/list_read.c (finish_separator): Don't call next_record.
2204         (list_formatted_read_scalar): Clean up some comments and whitespace.
2205         (nml_read_obj): Whitespace fix.
2207 2007-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2209         PR libfortran/30162
2210         * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
2211         s->file_length == -1.
2212         (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
2213         (fd_seek): If not seekable, just return success.
2214         (fd_truncate): If not seekable, no need to truncate.  Return failure
2215         if seek fails and the stream is not a pipe.
2216         (fd_to_stream): Make test for non-seekable file more robust.
2218 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
2220         * ChangeLog: Copied to ...
2221         * ChangeLog-2006: here.