OSDN Git Service

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