2009-04-10 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git] / libgfortran / ChangeLog
blobb3fb58cb338417e613a3ea8d86cb80cf5f29748d
1 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
3         * io/io.h (move_pos_offset): Remove prototype.
4         * io/transfer.c (formatted_transfer_scalar_read): Use sseek
5         instead of move_pos_offset.
6         * io/unix.c (move_pos_offset): Remove.
8 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
10         PR libfortran/39665 libfortran/39702 libfortran/39709
11         * io/io.h (st_parameter_dt): Revert aligned attribute from u.p.value.
12         * io/list_read.c (read_complex): Read directly into user pointer.
13         (read_real): Likewise.
14         (list_formatted_read_scalar): Update read_complex and read_real calls.
15         (nml_read_obj): Read directly into user pointer.
17 2009-04-09  Janne Blomqvist  <jb@gcc.gnu.org>
19         PR libfortran/39665
20         * io/io.h (st_parameter_dt): Add aligned attribute to u.p.value.
21         * io/read.c (convert_real): Add note about alignment requirements.
23 2009-04-09  Nick Clifton  <nickc@redhat.com>
25         * m4/cshift0.m4: Change copyright header to refer to version 3
26         of the GNU General Public License with version 3.1 of the GCC
27         Runtime Library Exception and to point readers at the COPYING3
28         and COPYING3.RUNTIME files and the FSF's license web page.
29         * c99_protos.h: Likewise.
30         * config/fpu-387.h: Likewise.
31         * config/fpu-aix.h: Likewise.
32         * config/fpu-generic.h: Likewise.
33         * config/fpu-glibc.h: Likewise.
34         * config/fpu-sysv.h: Likewise.
35         * intrinsics/abort.c: Likewise.
36         * intrinsics/access.c: Likewise.
37         * intrinsics/args.c: Likewise.
38         * intrinsics/associated.c: Likewise.
39         * intrinsics/c99_functions.c: Likewise.
40         * intrinsics/chdir.c: Likewise.
41         * intrinsics/chmod.c: Likewise.
42         * intrinsics/clock.c: Likewise.
43         * intrinsics/cpu_time.c: Likewise.
44         * intrinsics/cshift0.c: Likewise.
45         * intrinsics/ctime.c: Likewise.
46         * intrinsics/date_and_time.c: Likewise.
47         * intrinsics/dprod_r8.f90: Likewise.
48         * intrinsics/dtime.c: Likewise.
49         * intrinsics/env.c: Likewise.
50         * intrinsics/eoshift0.c: Likewise.
51         * intrinsics/eoshift2.c: Likewise.
52         * intrinsics/erfc_scaled.c: Likewise.
53         * intrinsics/erfc_scaled_inc.c: Likewise.
54         * intrinsics/etime.c: Likewise.
55         * intrinsics/exit.c: Likewise.
56         * intrinsics/f2c_specifics.F90: Likewise.
57         * intrinsics/fnum.c: Likewise.
58         * intrinsics/gerror.c: Likewise.
59         * intrinsics/getXid.c: Likewise.
60         * intrinsics/getcwd.c: Likewise.
61         * intrinsics/getlog.c: Likewise.
62         * intrinsics/hostnm.c: Likewise.
63         * intrinsics/ierrno.c: Likewise.
64         * intrinsics/ishftc.c: Likewise.
65         * intrinsics/iso_c_binding.c: Likewise.
66         * intrinsics/iso_c_binding.h: Likewise.
67         * intrinsics/iso_c_generated_procs.c: Likewise.
68         * intrinsics/kill.c: Likewise.
69         * intrinsics/link.c: Likewise.
70         * intrinsics/malloc.c: Likewise.
71         * intrinsics/move_alloc.c: Likewise.
72         * intrinsics/mvbits.c: Likewise.
73         * intrinsics/pack_generic.c: Likewise.
74         * intrinsics/perror.c: Likewise.
75         * intrinsics/rand.c: Likewise.
76         * intrinsics/random.c: Likewise.
77         * intrinsics/rename.c: Likewise.
78         * intrinsics/reshape_generic.c: Likewise.
79         * intrinsics/reshape_packed.c: Likewise.
80         * intrinsics/selected_char_kind.c: Likewise.
81         * intrinsics/selected_int_kind.f90: Likewise.
82         * intrinsics/selected_real_kind.f90: Likewise.
83         * intrinsics/signal.c: Likewise.
84         * intrinsics/size.c: Likewise.
85         * intrinsics/sleep.c: Likewise.
86         * intrinsics/spread_generic.c: Likewise.
87         * intrinsics/stat.c: Likewise.
88         * intrinsics/string_intrinsics.c: Likewise.
89         * intrinsics/string_intrinsics_inc.c: Likewise.
90         * intrinsics/symlnk.c: Likewise.
91         * intrinsics/system.c: Likewise.
92         * intrinsics/system_clock.c: Likewise.
93         * intrinsics/time.c: Likewise.
94         * intrinsics/time_1.h: Likewise.
95         * intrinsics/transpose_generic.c: Likewise.
96         * intrinsics/umask.c: Likewise.
97         * intrinsics/unlink.c: Likewise.
98         * intrinsics/unpack_generic.c: Likewise.
99         * io/close.c: Likewise.
100         * io/fbuf.c: Likewise.
101         * io/file_pos.c: Likewise.
102         * io/format.c: Likewise.
103         * io/inquire.c: Likewise.
104         * io/intrinsics.c: Likewise.
105         * io/io.h: Likewise.
106         * io/list_read.c: Likewise.
107         * io/lock.c: Likewise.
108         * io/open.c: Likewise.
109         * io/read.c: Likewise.
110         * io/size_from_kind.c: Likewise.
111         * io/transfer.c: Likewise.
112         * io/unit.c: Likewise.
113         * io/unix.c: Likewise.
114         * io/write.c: Likewise.
115         * io/write_float.def: Likewise.
116         * libgfortran.h: Likewise.
117         * m4/all.m4: Likewise.
118         * m4/any.m4: Likewise.
119         * m4/count.m4: Likewise.
120         * m4/cshift1.m4: Likewise.
121         * m4/eoshift1.m4: Likewise.
122         * m4/eoshift3.m4: Likewise.
123         * m4/exponent.m4: Likewise.
124         * m4/fraction.m4: Likewise.
125         * m4/head.m4: Likewise.
126         * m4/in_pack.m4: Likewise.
127         * m4/in_unpack.m4: Likewise.
128         * m4/matmul.m4: Likewise.
129         * m4/matmull.m4: Likewise.
130         * m4/maxloc0.m4: Likewise.
131         * m4/maxloc1.m4: Likewise.
132         * m4/maxval.m4: Likewise.
133         * m4/minloc0.m4: Likewise.
134         * m4/minloc1.m4: Likewise.
135         * m4/minval.m4: Likewise.
136         * m4/nearest.m4: Likewise.
137         * m4/pack.m4: Likewise.
138         * m4/pow.m4: Likewise.
139         * m4/product.m4: Likewise.
140         * m4/reshape.m4: Likewise.
141         * m4/rrspacing.m4: Likewise.
142         * m4/set_exponent.m4: Likewise.
143         * m4/shape.m4: Likewise.
144         * m4/spacing.m4: Likewise.
145         * m4/spread.m4: Likewise.
146         * m4/sum.m4: Likewise.
147         * m4/transpose.m4: Likewise.
148         * m4/unpack.m4: Likewise.
149         * runtime/backtrace.c: Likewise.
150         * runtime/compile_options.c: Likewise.
151         * runtime/convert_char.c: Likewise.
152         * runtime/environ.c: Likewise.
153         * runtime/error.c: Likewise.
154         * runtime/in_pack_generic.c: Likewise.
155         * runtime/in_unpack_generic.c: Likewise.
156         * runtime/main.c: Likewise.
157         * runtime/memory.c: Likewise.
158         * runtime/pause.c: Likewise.
159         * runtime/select.c: Likewise.
160         * runtime/select_inc.c: Likewise.
161         * runtime/stop.c: Likewise.
162         * runtime/string.c: Likewise.
163         * generated/_abs_c10.F90: Regenerate.
164         * generated/_abs_c16.F90: Regenerate.
165         * generated/_abs_c4.F90: Regenerate.
166         * generated/_abs_c8.F90: Regenerate.
167         * generated/_abs_i16.F90: Regenerate.
168         * generated/_abs_i4.F90: Regenerate.
169         * generated/_abs_i8.F90: Regenerate.
170         * generated/_abs_r10.F90: Regenerate.
171         * generated/_abs_r16.F90: Regenerate.
172         * generated/_abs_r4.F90: Regenerate.
173         * generated/_abs_r8.F90: Regenerate.
174         * generated/_acos_r10.F90: Regenerate.
175         * generated/_acos_r16.F90: Regenerate.
176         * generated/_acos_r4.F90: Regenerate.
177         * generated/_acos_r8.F90: Regenerate.
178         * generated/_acosh_r10.F90: Regenerate.
179         * generated/_acosh_r16.F90: Regenerate.
180         * generated/_acosh_r4.F90: Regenerate.
181         * generated/_acosh_r8.F90: Regenerate.
182         * generated/_aimag_c10.F90: Regenerate.
183         * generated/_aimag_c16.F90: Regenerate.
184         * generated/_aimag_c4.F90: Regenerate.
185         * generated/_aimag_c8.F90: Regenerate.
186         * generated/_aint_r10.F90: Regenerate.
187         * generated/_aint_r16.F90: Regenerate.
188         * generated/_aint_r4.F90: Regenerate.
189         * generated/_aint_r8.F90: Regenerate.
190         * generated/_anint_r10.F90: Regenerate.
191         * generated/_anint_r16.F90: Regenerate.
192         * generated/_anint_r4.F90: Regenerate.
193         * generated/_anint_r8.F90: Regenerate.
194         * generated/_asin_r10.F90: Regenerate.
195         * generated/_asin_r16.F90: Regenerate.
196         * generated/_asin_r4.F90: Regenerate.
197         * generated/_asin_r8.F90: Regenerate.
198         * generated/_asinh_r10.F90: Regenerate.
199         * generated/_asinh_r16.F90: Regenerate.
200         * generated/_asinh_r4.F90: Regenerate.
201         * generated/_asinh_r8.F90: Regenerate.
202         * generated/_atan2_r10.F90: Regenerate.
203         * generated/_atan2_r16.F90: Regenerate.
204         * generated/_atan2_r4.F90: Regenerate.
205         * generated/_atan2_r8.F90: Regenerate.
206         * generated/_atan_r10.F90: Regenerate.
207         * generated/_atan_r16.F90: Regenerate.
208         * generated/_atan_r4.F90: Regenerate.
209         * generated/_atan_r8.F90: Regenerate.
210         * generated/_atanh_r10.F90: Regenerate.
211         * generated/_atanh_r16.F90: Regenerate.
212         * generated/_atanh_r4.F90: Regenerate.
213         * generated/_atanh_r8.F90: Regenerate.
214         * generated/_conjg_c10.F90: Regenerate.
215         * generated/_conjg_c16.F90: Regenerate.
216         * generated/_conjg_c4.F90: Regenerate.
217         * generated/_conjg_c8.F90: Regenerate.
218         * generated/_cos_c10.F90: Regenerate.
219         * generated/_cos_c16.F90: Regenerate.
220         * generated/_cos_c4.F90: Regenerate.
221         * generated/_cos_c8.F90: Regenerate.
222         * generated/_cos_r10.F90: Regenerate.
223         * generated/_cos_r16.F90: Regenerate.
224         * generated/_cos_r4.F90: Regenerate.
225         * generated/_cos_r8.F90: Regenerate.
226         * generated/_cosh_r10.F90: Regenerate.
227         * generated/_cosh_r16.F90: Regenerate.
228         * generated/_cosh_r4.F90: Regenerate.
229         * generated/_cosh_r8.F90: Regenerate.
230         * generated/_dim_i16.F90: Regenerate.
231         * generated/_dim_i4.F90: Regenerate.
232         * generated/_dim_i8.F90: Regenerate.
233         * generated/_dim_r10.F90: Regenerate.
234         * generated/_dim_r16.F90: Regenerate.
235         * generated/_dim_r4.F90: Regenerate.
236         * generated/_dim_r8.F90: Regenerate.
237         * generated/_exp_c10.F90: Regenerate.
238         * generated/_exp_c16.F90: Regenerate.
239         * generated/_exp_c4.F90: Regenerate.
240         * generated/_exp_c8.F90: Regenerate.
241         * generated/_exp_r10.F90: Regenerate.
242         * generated/_exp_r16.F90: Regenerate.
243         * generated/_exp_r4.F90: Regenerate.
244         * generated/_exp_r8.F90: Regenerate.
245         * generated/_log10_r10.F90: Regenerate.
246         * generated/_log10_r16.F90: Regenerate.
247         * generated/_log10_r4.F90: Regenerate.
248         * generated/_log10_r8.F90: Regenerate.
249         * generated/_log_c10.F90: Regenerate.
250         * generated/_log_c16.F90: Regenerate.
251         * generated/_log_c4.F90: Regenerate.
252         * generated/_log_c8.F90: Regenerate.
253         * generated/_log_r10.F90: Regenerate.
254         * generated/_log_r16.F90: Regenerate.
255         * generated/_log_r4.F90: Regenerate.
256         * generated/_log_r8.F90: Regenerate.
257         * generated/_mod_i16.F90: Regenerate.
258         * generated/_mod_i4.F90: Regenerate.
259         * generated/_mod_i8.F90: Regenerate.
260         * generated/_mod_r10.F90: Regenerate.
261         * generated/_mod_r16.F90: Regenerate.
262         * generated/_mod_r4.F90: Regenerate.
263         * generated/_mod_r8.F90: Regenerate.
264         * generated/_sign_i16.F90: Regenerate.
265         * generated/_sign_i4.F90: Regenerate.
266         * generated/_sign_i8.F90: Regenerate.
267         * generated/_sign_r10.F90: Regenerate.
268         * generated/_sign_r16.F90: Regenerate.
269         * generated/_sign_r4.F90: Regenerate.
270         * generated/_sign_r8.F90: Regenerate.
271         * generated/_sin_c10.F90: Regenerate.
272         * generated/_sin_c16.F90: Regenerate.
273         * generated/_sin_c4.F90: Regenerate.
274         * generated/_sin_c8.F90: Regenerate.
275         * generated/_sin_r10.F90: Regenerate.
276         * generated/_sin_r16.F90: Regenerate.
277         * generated/_sin_r4.F90: Regenerate.
278         * generated/_sin_r8.F90: Regenerate.
279         * generated/_sinh_r10.F90: Regenerate.
280         * generated/_sinh_r16.F90: Regenerate.
281         * generated/_sinh_r4.F90: Regenerate.
282         * generated/_sinh_r8.F90: Regenerate.
283         * generated/_sqrt_c10.F90: Regenerate.
284         * generated/_sqrt_c16.F90: Regenerate.
285         * generated/_sqrt_c4.F90: Regenerate.
286         * generated/_sqrt_c8.F90: Regenerate.
287         * generated/_sqrt_r10.F90: Regenerate.
288         * generated/_sqrt_r16.F90: Regenerate.
289         * generated/_sqrt_r4.F90: Regenerate.
290         * generated/_sqrt_r8.F90: Regenerate.
291         * generated/_tan_r10.F90: Regenerate.
292         * generated/_tan_r16.F90: Regenerate.
293         * generated/_tan_r4.F90: Regenerate.
294         * generated/_tan_r8.F90: Regenerate.
295         * generated/_tanh_r10.F90: Regenerate.
296         * generated/_tanh_r16.F90: Regenerate.
297         * generated/_tanh_r4.F90: Regenerate.
298         * generated/_tanh_r8.F90: Regenerate.
299         * generated/all_l1.c: Regenerate.
300         * generated/all_l16.c: Regenerate.
301         * generated/all_l2.c: Regenerate.
302         * generated/all_l4.c: Regenerate.
303         * generated/all_l8.c: Regenerate.
304         * generated/any_l1.c: Regenerate.
305         * generated/any_l16.c: Regenerate.
306         * generated/any_l2.c: Regenerate.
307         * generated/any_l4.c: Regenerate.
308         * generated/any_l8.c: Regenerate.
309         * generated/count_16_l.c: Regenerate.
310         * generated/count_1_l.c: Regenerate.
311         * generated/count_2_l.c: Regenerate.
312         * generated/count_4_l.c: Regenerate.
313         * generated/count_8_l.c: Regenerate.
314         * generated/cshift0_c10.c: Regenerate.
315         * generated/cshift0_c16.c: Regenerate.
316         * generated/cshift0_c4.c: Regenerate.
317         * generated/cshift0_c8.c: Regenerate.
318         * generated/cshift0_i1.c: Regenerate.
319         * generated/cshift0_i16.c: Regenerate.
320         * generated/cshift0_i2.c: Regenerate.
321         * generated/cshift0_i4.c: Regenerate.
322         * generated/cshift0_i8.c: Regenerate.
323         * generated/cshift0_r10.c: Regenerate.
324         * generated/cshift0_r16.c: Regenerate.
325         * generated/cshift0_r4.c: Regenerate.
326         * generated/cshift0_r8.c: Regenerate.
327         * generated/cshift1_16.c: Regenerate.
328         * generated/cshift1_4.c: Regenerate.
329         * generated/cshift1_8.c: Regenerate.
330         * generated/eoshift1_16.c: Regenerate.
331         * generated/eoshift1_4.c: Regenerate.
332         * generated/eoshift1_8.c: Regenerate.
333         * generated/eoshift3_16.c: Regenerate.
334         * generated/eoshift3_4.c: Regenerate.
335         * generated/eoshift3_8.c: Regenerate.
336         * generated/exponent_r10.c: Regenerate.
337         * generated/exponent_r16.c: Regenerate.
338         * generated/exponent_r4.c: Regenerate.
339         * generated/exponent_r8.c: Regenerate.
340         * generated/fraction_r10.c: Regenerate.
341         * generated/fraction_r16.c: Regenerate.
342         * generated/fraction_r4.c: Regenerate.
343         * generated/fraction_r8.c: Regenerate.
344         * generated/in_pack_c10.c: Regenerate.
345         * generated/in_pack_c16.c: Regenerate.
346         * generated/in_pack_c4.c: Regenerate.
347         * generated/in_pack_c8.c: Regenerate.
348         * generated/in_pack_i1.c: Regenerate.
349         * generated/in_pack_i16.c: Regenerate.
350         * generated/in_pack_i2.c: Regenerate.
351         * generated/in_pack_i4.c: Regenerate.
352         * generated/in_pack_i8.c: Regenerate.
353         * generated/in_pack_r10.c: Regenerate.
354         * generated/in_pack_r16.c: Regenerate.
355         * generated/in_pack_r4.c: Regenerate.
356         * generated/in_pack_r8.c: Regenerate.
357         * generated/in_unpack_c10.c: Regenerate.
358         * generated/in_unpack_c16.c: Regenerate.
359         * generated/in_unpack_c4.c: Regenerate.
360         * generated/in_unpack_c8.c: Regenerate.
361         * generated/in_unpack_i1.c: Regenerate.
362         * generated/in_unpack_i16.c: Regenerate.
363         * generated/in_unpack_i2.c: Regenerate.
364         * generated/in_unpack_i4.c: Regenerate.
365         * generated/in_unpack_i8.c: Regenerate.
366         * generated/in_unpack_r10.c: Regenerate.
367         * generated/in_unpack_r16.c: Regenerate.
368         * generated/in_unpack_r4.c: Regenerate.
369         * generated/in_unpack_r8.c: Regenerate.
370         * generated/matmul_c10.c: Regenerate.
371         * generated/matmul_c16.c: Regenerate.
372         * generated/matmul_c4.c: Regenerate.
373         * generated/matmul_c8.c: Regenerate.
374         * generated/matmul_i1.c: Regenerate.
375         * generated/matmul_i16.c: Regenerate.
376         * generated/matmul_i2.c: Regenerate.
377         * generated/matmul_i4.c: Regenerate.
378         * generated/matmul_i8.c: Regenerate.
379         * generated/matmul_l16.c: Regenerate.
380         * generated/matmul_l4.c: Regenerate.
381         * generated/matmul_l8.c: Regenerate.
382         * generated/matmul_r10.c: Regenerate.
383         * generated/matmul_r16.c: Regenerate.
384         * generated/matmul_r4.c: Regenerate.
385         * generated/matmul_r8.c: Regenerate.
386         * generated/maxloc0_16_i1.c: Regenerate.
387         * generated/maxloc0_16_i16.c: Regenerate.
388         * generated/maxloc0_16_i2.c: Regenerate.
389         * generated/maxloc0_16_i4.c: Regenerate.
390         * generated/maxloc0_16_i8.c: Regenerate.
391         * generated/maxloc0_16_r10.c: Regenerate.
392         * generated/maxloc0_16_r16.c: Regenerate.
393         * generated/maxloc0_16_r4.c: Regenerate.
394         * generated/maxloc0_16_r8.c: Regenerate.
395         * generated/maxloc0_4_i1.c: Regenerate.
396         * generated/maxloc0_4_i16.c: Regenerate.
397         * generated/maxloc0_4_i2.c: Regenerate.
398         * generated/maxloc0_4_i4.c: Regenerate.
399         * generated/maxloc0_4_i8.c: Regenerate.
400         * generated/maxloc0_4_r10.c: Regenerate.
401         * generated/maxloc0_4_r16.c: Regenerate.
402         * generated/maxloc0_4_r4.c: Regenerate.
403         * generated/maxloc0_4_r8.c: Regenerate.
404         * generated/maxloc0_8_i1.c: Regenerate.
405         * generated/maxloc0_8_i16.c: Regenerate.
406         * generated/maxloc0_8_i2.c: Regenerate.
407         * generated/maxloc0_8_i4.c: Regenerate.
408         * generated/maxloc0_8_i8.c: Regenerate.
409         * generated/maxloc0_8_r10.c: Regenerate.
410         * generated/maxloc0_8_r16.c: Regenerate.
411         * generated/maxloc0_8_r4.c: Regenerate.
412         * generated/maxloc0_8_r8.c: Regenerate.
413         * generated/maxloc1_16_i1.c: Regenerate.
414         * generated/maxloc1_16_i16.c: Regenerate.
415         * generated/maxloc1_16_i2.c: Regenerate.
416         * generated/maxloc1_16_i4.c: Regenerate.
417         * generated/maxloc1_16_i8.c: Regenerate.
418         * generated/maxloc1_16_r10.c: Regenerate.
419         * generated/maxloc1_16_r16.c: Regenerate.
420         * generated/maxloc1_16_r4.c: Regenerate.
421         * generated/maxloc1_16_r8.c: Regenerate.
422         * generated/maxloc1_4_i1.c: Regenerate.
423         * generated/maxloc1_4_i16.c: Regenerate.
424         * generated/maxloc1_4_i2.c: Regenerate.
425         * generated/maxloc1_4_i4.c: Regenerate.
426         * generated/maxloc1_4_i8.c: Regenerate.
427         * generated/maxloc1_4_r10.c: Regenerate.
428         * generated/maxloc1_4_r16.c: Regenerate.
429         * generated/maxloc1_4_r4.c: Regenerate.
430         * generated/maxloc1_4_r8.c: Regenerate.
431         * generated/maxloc1_8_i1.c: Regenerate.
432         * generated/maxloc1_8_i16.c: Regenerate.
433         * generated/maxloc1_8_i2.c: Regenerate.
434         * generated/maxloc1_8_i4.c: Regenerate.
435         * generated/maxloc1_8_i8.c: Regenerate.
436         * generated/maxloc1_8_r10.c: Regenerate.
437         * generated/maxloc1_8_r16.c: Regenerate.
438         * generated/maxloc1_8_r4.c: Regenerate.
439         * generated/maxloc1_8_r8.c: Regenerate.
440         * generated/maxval_i1.c: Regenerate.
441         * generated/maxval_i16.c: Regenerate.
442         * generated/maxval_i2.c: Regenerate.
443         * generated/maxval_i4.c: Regenerate.
444         * generated/maxval_i8.c: Regenerate.
445         * generated/maxval_r10.c: Regenerate.
446         * generated/maxval_r16.c: Regenerate.
447         * generated/maxval_r4.c: Regenerate.
448         * generated/maxval_r8.c: Regenerate.
449         * generated/minloc0_16_i1.c: Regenerate.
450         * generated/minloc0_16_i16.c: Regenerate.
451         * generated/minloc0_16_i2.c: Regenerate.
452         * generated/minloc0_16_i4.c: Regenerate.
453         * generated/minloc0_16_i8.c: Regenerate.
454         * generated/minloc0_16_r10.c: Regenerate.
455         * generated/minloc0_16_r16.c: Regenerate.
456         * generated/minloc0_16_r4.c: Regenerate.
457         * generated/minloc0_16_r8.c: Regenerate.
458         * generated/minloc0_4_i1.c: Regenerate.
459         * generated/minloc0_4_i16.c: Regenerate.
460         * generated/minloc0_4_i2.c: Regenerate.
461         * generated/minloc0_4_i4.c: Regenerate.
462         * generated/minloc0_4_i8.c: Regenerate.
463         * generated/minloc0_4_r10.c: Regenerate.
464         * generated/minloc0_4_r16.c: Regenerate.
465         * generated/minloc0_4_r4.c: Regenerate.
466         * generated/minloc0_4_r8.c: Regenerate.
467         * generated/minloc0_8_i1.c: Regenerate.
468         * generated/minloc0_8_i16.c: Regenerate.
469         * generated/minloc0_8_i2.c: Regenerate.
470         * generated/minloc0_8_i4.c: Regenerate.
471         * generated/minloc0_8_i8.c: Regenerate.
472         * generated/minloc0_8_r10.c: Regenerate.
473         * generated/minloc0_8_r16.c: Regenerate.
474         * generated/minloc0_8_r4.c: Regenerate.
475         * generated/minloc0_8_r8.c: Regenerate.
476         * generated/minloc1_16_i1.c: Regenerate.
477         * generated/minloc1_16_i16.c: Regenerate.
478         * generated/minloc1_16_i2.c: Regenerate.
479         * generated/minloc1_16_i4.c: Regenerate.
480         * generated/minloc1_16_i8.c: Regenerate.
481         * generated/minloc1_16_r10.c: Regenerate.
482         * generated/minloc1_16_r16.c: Regenerate.
483         * generated/minloc1_16_r4.c: Regenerate.
484         * generated/minloc1_16_r8.c: Regenerate.
485         * generated/minloc1_4_i1.c: Regenerate.
486         * generated/minloc1_4_i16.c: Regenerate.
487         * generated/minloc1_4_i2.c: Regenerate.
488         * generated/minloc1_4_i4.c: Regenerate.
489         * generated/minloc1_4_i8.c: Regenerate.
490         * generated/minloc1_4_r10.c: Regenerate.
491         * generated/minloc1_4_r16.c: Regenerate.
492         * generated/minloc1_4_r4.c: Regenerate.
493         * generated/minloc1_4_r8.c: Regenerate.
494         * generated/minloc1_8_i1.c: Regenerate.
495         * generated/minloc1_8_i16.c: Regenerate.
496         * generated/minloc1_8_i2.c: Regenerate.
497         * generated/minloc1_8_i4.c: Regenerate.
498         * generated/minloc1_8_i8.c: Regenerate.
499         * generated/minloc1_8_r10.c: Regenerate.
500         * generated/minloc1_8_r16.c: Regenerate.
501         * generated/minloc1_8_r4.c: Regenerate.
502         * generated/minloc1_8_r8.c: Regenerate.
503         * generated/minval_i1.c: Regenerate.
504         * generated/minval_i16.c: Regenerate.
505         * generated/minval_i2.c: Regenerate.
506         * generated/minval_i4.c: Regenerate.
507         * generated/minval_i8.c: Regenerate.
508         * generated/minval_r10.c: Regenerate.
509         * generated/minval_r16.c: Regenerate.
510         * generated/minval_r4.c: Regenerate.
511         * generated/minval_r8.c: Regenerate.
512         * generated/misc_specifics.F90: Regenerate.
513         * generated/nearest_r10.c: Regenerate.
514         * generated/nearest_r16.c: Regenerate.
515         * generated/nearest_r4.c: Regenerate.
516         * generated/nearest_r8.c: Regenerate.
517         * generated/pack_c10.c: Regenerate.
518         * generated/pack_c16.c: Regenerate.
519         * generated/pack_c4.c: Regenerate.
520         * generated/pack_c8.c: Regenerate.
521         * generated/pack_i1.c: Regenerate.
522         * generated/pack_i16.c: Regenerate.
523         * generated/pack_i2.c: Regenerate.
524         * generated/pack_i4.c: Regenerate.
525         * generated/pack_i8.c: Regenerate.
526         * generated/pack_r10.c: Regenerate.
527         * generated/pack_r16.c: Regenerate.
528         * generated/pack_r4.c: Regenerate.
529         * generated/pack_r8.c: Regenerate.
530         * generated/pow_c10_i16.c: Regenerate.
531         * generated/pow_c10_i4.c: Regenerate.
532         * generated/pow_c10_i8.c: Regenerate.
533         * generated/pow_c16_i16.c: Regenerate.
534         * generated/pow_c16_i4.c: Regenerate.
535         * generated/pow_c16_i8.c: Regenerate.
536         * generated/pow_c4_i16.c: Regenerate.
537         * generated/pow_c4_i4.c: Regenerate.
538         * generated/pow_c4_i8.c: Regenerate.
539         * generated/pow_c8_i16.c: Regenerate.
540         * generated/pow_c8_i4.c: Regenerate.
541         * generated/pow_c8_i8.c: Regenerate.
542         * generated/pow_i16_i16.c: Regenerate.
543         * generated/pow_i16_i4.c: Regenerate.
544         * generated/pow_i16_i8.c: Regenerate.
545         * generated/pow_i4_i16.c: Regenerate.
546         * generated/pow_i4_i4.c: Regenerate.
547         * generated/pow_i4_i8.c: Regenerate.
548         * generated/pow_i8_i16.c: Regenerate.
549         * generated/pow_i8_i4.c: Regenerate.
550         * generated/pow_i8_i8.c: Regenerate.
551         * generated/pow_r10_i16.c: Regenerate.
552         * generated/pow_r10_i8.c: Regenerate.
553         * generated/pow_r16_i16.c: Regenerate.
554         * generated/pow_r16_i8.c: Regenerate.
555         * generated/pow_r4_i16.c: Regenerate.
556         * generated/pow_r4_i8.c: Regenerate.
557         * generated/pow_r8_i16.c: Regenerate.
558         * generated/pow_r8_i8.c: Regenerate.
559         * generated/product_c10.c: Regenerate.
560         * generated/product_c16.c: Regenerate.
561         * generated/product_c4.c: Regenerate.
562         * generated/product_c8.c: Regenerate.
563         * generated/product_i1.c: Regenerate.
564         * generated/product_i16.c: Regenerate.
565         * generated/product_i2.c: Regenerate.
566         * generated/product_i4.c: Regenerate.
567         * generated/product_i8.c: Regenerate.
568         * generated/product_r10.c: Regenerate.
569         * generated/product_r16.c: Regenerate.
570         * generated/product_r4.c: Regenerate.
571         * generated/product_r8.c: Regenerate.
572         * generated/reshape_c10.c: Regenerate.
573         * generated/reshape_c16.c: Regenerate.
574         * generated/reshape_c4.c: Regenerate.
575         * generated/reshape_c8.c: Regenerate.
576         * generated/reshape_i16.c: Regenerate.
577         * generated/reshape_i4.c: Regenerate.
578         * generated/reshape_i8.c: Regenerate.
579         * generated/reshape_r10.c: Regenerate.
580         * generated/reshape_r16.c: Regenerate.
581         * generated/reshape_r4.c: Regenerate.
582         * generated/reshape_r8.c: Regenerate.
583         * generated/rrspacing_r10.c: Regenerate.
584         * generated/rrspacing_r16.c: Regenerate.
585         * generated/rrspacing_r4.c: Regenerate.
586         * generated/rrspacing_r8.c: Regenerate.
587         * generated/set_exponent_r10.c: Regenerate.
588         * generated/set_exponent_r16.c: Regenerate.
589         * generated/set_exponent_r4.c: Regenerate.
590         * generated/set_exponent_r8.c: Regenerate.
591         * generated/shape_i16.c: Regenerate.
592         * generated/shape_i4.c: Regenerate.
593         * generated/shape_i8.c: Regenerate.
594         * generated/spacing_r10.c: Regenerate.
595         * generated/spacing_r16.c: Regenerate.
596         * generated/spacing_r4.c: Regenerate.
597         * generated/spacing_r8.c: Regenerate.
598         * generated/spread_c10.c: Regenerate.
599         * generated/spread_c16.c: Regenerate.
600         * generated/spread_c4.c: Regenerate.
601         * generated/spread_c8.c: Regenerate.
602         * generated/spread_i1.c: Regenerate.
603         * generated/spread_i16.c: Regenerate.
604         * generated/spread_i2.c: Regenerate.
605         * generated/spread_i4.c: Regenerate.
606         * generated/spread_i8.c: Regenerate.
607         * generated/spread_r10.c: Regenerate.
608         * generated/spread_r16.c: Regenerate.
609         * generated/spread_r4.c: Regenerate.
610         * generated/spread_r8.c: Regenerate.
611         * generated/sum_c10.c: Regenerate.
612         * generated/sum_c16.c: Regenerate.
613         * generated/sum_c4.c: Regenerate.
614         * generated/sum_c8.c: Regenerate.
615         * generated/sum_i1.c: Regenerate.
616         * generated/sum_i16.c: Regenerate.
617         * generated/sum_i2.c: Regenerate.
618         * generated/sum_i4.c: Regenerate.
619         * generated/sum_i8.c: Regenerate.
620         * generated/sum_r10.c: Regenerate.
621         * generated/sum_r16.c: Regenerate.
622         * generated/sum_r4.c: Regenerate.
623         * generated/sum_r8.c: Regenerate.
624         * generated/transpose_c10.c: Regenerate.
625         * generated/transpose_c16.c: Regenerate.
626         * generated/transpose_c4.c: Regenerate.
627         * generated/transpose_c8.c: Regenerate.
628         * generated/transpose_i16.c: Regenerate.
629         * generated/transpose_i4.c: Regenerate.
630         * generated/transpose_i8.c: Regenerate.
631         * generated/transpose_r10.c: Regenerate.
632         * generated/transpose_r16.c: Regenerate.
633         * generated/transpose_r4.c: Regenerate.
634         * generated/transpose_r8.c: Regenerate.
635         * generated/unpack_c10.c: Regenerate.
636         * generated/unpack_c16.c: Regenerate.
637         * generated/unpack_c4.c: Regenerate.
638         * generated/unpack_c8.c: Regenerate.
639         * generated/unpack_i1.c: Regenerate.
640         * generated/unpack_i16.c: Regenerate.
641         * generated/unpack_i2.c: Regenerate.
642         * generated/unpack_i4.c: Regenerate.
643         * generated/unpack_i8.c: Regenerate.
644         * generated/unpack_r10.c: Regenerate.
645         * generated/unpack_r16.c: Regenerate.
646         * generated/unpack_r4.c: Regenerate.
647         * generated/unpack_r8.c: Regenerate.
649 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
651         * io/open.c (already_open): Test for POSIX close return value.
652         * io/unit.c (close_unit_1): Likewise.
653         * io/unix.c (raw_close): Return 0 for success for preconnected units.
655 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
657         * runtime/string.c (compare0): Use gfc_charlen_type.
658         * runtime/error.c (gfc_itoa): Move to io/write.c
659         (xtoa): Rename to gfc_xtoa.
660         * runtime/backtrace.c (show_backtrace): Call gfc_xtoa.
661         * intrinsics/cshift0.c (cshift0): Use index_type for shift arg.
662         * intrinsics/date_and_time.c (date_and_time): Use index_type.
663         (itime_i4): Likewise.
664         (itime_i8): Likewise.
665         (idate_i4): Likewise.
666         (idate_i8): Likewise.
667         (gmtime_i4): Likewise.
668         (gmtime_i8): Likewise.
669         (ltime_i4): Likewise.
670         (ltime_i8): Likewise.
671         * libgfortran.h (gfc_itoa): Remove prototype.
672         (xtoa): Rename prototype to gfc_xtoa.
673         * io/list_read.c (nml_read_obj): Use size_t for string length.
674         * io/transfer.c (read_block_direct): Change nbytes arg from
675         pointer to value.
676         (unformatted_read): Minor cleanup, call read_block_directly properly.
677         (skip_record): Use ssize_t.
678         (next_record_w_unf): Avoid stell() call by calling sseek with SEEK_CUR.
679         (iolength_transfer): Make sure to multiply before cast.
680         * io/intrinsics.c (fgetc): Remove unnecessary variable.
681         * io/format.c (format_hash): Use gfc_charlen_type.
682         * io/write.c (itoa): Move from runtime/error.c:gfc_itoa, rename,
683         make static.
684         (write_i): Call with pointer to itoa.
685         (write_z): Call with pointer to gfc_xtoa.
686         (write_integer): Pointer to itoa.
687         (nml_write_obj): Type cleanup, don't call strlen in loop.
688         
689 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
691         PR libgfortran/39664
692         * io/unix.c (raw_close): Don't close STDOUT_FILENO,
693         STDERR_FILENO nor STDIN_FILENO.
695 2009-04-06  David Edelsohn  <edelsohn@gnu.org>
696         
697         * io/io.h (struct stream): Rename truncate to trunc.
698         (struncate): Same.
699         * io/unix.c (raw_init): Rename truncate to trunc.
700         (buf_init): Same.
701         (open_internal): Same.
702         
703 2009-04-05  Daniel Kraft  <d@domob.eu>
705         PR fortran/38654
706         * io/read.c (read_f): Reworked to speed up floating point parsing.
707         (convert_real): Use pointer-casting instead of memcpy and temporaries.
709 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
711         PR libfortran/37754
712         * io/io.h (format_hash_entry): New structure for hash table.
713         (format_hash_table): The hash table itself.
714         (free_format_data): Revise function prototype.
715         (free_format_hash_table, init_format_hash,
716         free_format_hash): New function prototypes.
717         * io/unit.c (close_unit_1): Use free_format_hash_table.
718         * io/transfer.c (st_read_done, st_write_done): Free format data if
719         internal unit.
720         * io/format.c (free_format_hash_table): New function that frees any
721         memory allocated previously for cached format data.
722         (reset_node): New static helper function to reset the format counters
723         for a format node.
724         (reset_fnode_counters): New static function recursively calls reset_node
725         to traverse the fnode tree.
726         (format_hash): New simple hash function based on XOR, probabalistic,
727         tosses collisions.
728         (save_parsed_format): New static function to save the parsed format
729         data to use again.
730         (find_parsed_format): New static function searches the hash table
731         looking for a match.
732         (free_format_data): Revised to accept pointer to format data rather than
733         the dtp pointer so that the function can be used in more places.
734         (format_lex): Editorial.
735         (parse_format_list): Set flag used to determine of format data hashing
736         is to be used.  Internal units are not persistent enough for this.
737         (revert): Move to ne location in file.
738         (parse_format): Use new functions to look for previously parsed
739         format strings and use them rather than re-parse.  If not found, saves
740         the parsed format data for later use.
741         
742 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
744         PR libfortran/37754
745         * io/transfer.c (formatted_transfer_scalar): Remove this function by
746         factoring it into two new functions, one for read and one for write,
747         eliminating all the conditionals for read or write mode.
748         (formatted transfer_scalar_read): New function.
749         (formatted transfer_scalar_write): New function.
750         (formatted_transfer): Use new functions.
752 2009-04-05  Janne Blomqvist  <jb@gcc.gnu.org>
754         PR libfortran/25561 libfortran/37754
755         * io/io.h (struct stream): Define new stream interface function
756         pointers, and inline functions for accessing it.
757         (struct fbuf): Use int instead of size_t, remove flushed element.
758         (mem_alloc_w): New prototype.
759         (mem_alloc_r): New prototype.
760         (stream_at_bof): Remove prototype.
761         (stream_at_eof): Remove prototype.
762         (file_position): Remove prototype.
763         (flush): Remove prototype.
764         (stream_offset): Remove prototype.
765         (unit_truncate): New prototype.
766         (read_block_form): Change to return pointer, int* argument.
767         (hit_eof): New prototype.
768         (fbuf_init): Change prototype.
769         (fbuf_reset): Change prototype.
770         (fbuf_alloc): Change prototype.
771         (fbuf_flush): Change prototype.
772         (fbuf_seek): Change prototype.
773         (fbuf_read): New prototype.
774         (fbuf_getc_refill): New prototype.
775         (fbuf_getc): New inline function.
776         * io/fbuf.c (fbuf_init): Use int, get rid of flushed.
777         (fbuf_debug): New function.
778         (fbuf_reset): Flush, and return position offset.
779         (fbuf_alloc): Simplify, don't flush, just realloc.
780         (fbuf_flush): Make usable for read mode, salvage remaining bytes.
781         (fbuf_seek): New whence argument.
782         (fbuf_read): New function.
783         (fbuf_getc_refill): New function.
784         * io/file_pos.c (formatted_backspace): Use new stream interface.
785         (unformatted_backspace): Likewise.
786         (st_backspace): Make sure format buffer is reset, use new stream
787         interface, use unit_truncate.
788         (st_endfile): Likewise.
789         (st_rewind): Likewise.
790         * io/intrinsics.c: Use new stream interface.
791         * io/list_read.c (push_char): Don't use u.p.scratch, use realloc
792         to resize.
793         (free_saved): Don't check u.p.scratch.
794         (next_char): Use new stream interface, use fbuf_getc() for external files.
795         (finish_list_read): flush format buffer.
796         (nml_query): Update to use modified interface:s
797         * io/open.c (test_endfile): Use new stream interface.
798         (edit_modes): Likewise.
799         (new_unit): Likewise, set bytes_left to 1 for stream files.
800         * io/read.c (read_l): Use new read_block_form interface.
801         (read_utf8): Likewise.
802         (read_utf8_char1): Likewise.
803         (read_default_char1): Likewise.
804         (read_utf8_char4): Likewise.
805         (read_default_char4): Likewise.
806         (read_a): Likewise.
807         (read_a_char4): Likewise.
808         (read_decimal): Likewise.
809         (read_radix): Likewise.
810         (read_f): Likewise.
811         * io/transfer.c (read_sf): Use fbuf_read and mem_alloc_r, remove
812         usage of u.p.line_buffer.
813         (read_block_form): Update interface to return pointer, use
814         fbuf_read for direct access.
815         (read_block_direct): Update to new stream interface.
816         (write_block): Use mem_alloc_w for internal I/O.
817         (write_buf): Update to new stream interface.
818         (formatted_transfer_scalar): Don't use u.p.line_buffer, use
819         fbuf_seek for external files.
820         (us_read): Update to new stream interface.
821         (us_write): Likewise.
822         (data_transfer_init): Always check if we switch modes and flush.
823         (skip_record): Use new stream interface, fix comparison.
824         (next_record_r): Check for and reset u.p.at_eof, use new stream
825         interface, use fbuf_getc for spacing.
826         (write_us_marker): Update to new stream interface, don't inline.
827         (next_record_w_unf): Likewise.
828         (sset): New function.
829         (next_record_w): Use new stream interface, use fbuf for printing
830         newline.
831         (next_record): Use new stream interface.
832         (finalize_transfer): Remove sfree call, use new stream interface.
833         (st_iolength_done): Don't use u.p.scratch.
834         (st_read): Don't check for end of file.
835         (st_read_done): Don't use u.p.scratch, use unit_truncate.
836         (hit_eof): New function.
837         * io/unit.c (init_units): Always init fbuf for formatted units.
838         (update_position): Use new stream interface.
839         (unit_truncate): New function.
840         (finish_last_advance_record): Use fbuf to print newline.
841         * io/unix.c: Remove unused SSIZE_MAX macro.
842         (BUFFER_SIZE): Make static const variable rather than macro.
843         (struct unix_stream): Remove dirty_offset, len, method,
844         small_buffer. Order elements by decreasing size.
845         (struct int_stream): Remove.
846         (move_pos_offset): Remove usage of dirty_offset.
847         (reset_stream): Remove.
848         (do_read): Rename to raw_read, update to match new stream
849         interface.
850         (do_write): Rename to raw_write, update to new stream interface.
851         (raw_seek): New function.
852         (raw_tell): New function.
853         (raw_truncate): New function.
854         (raw_close): New function.
855         (raw_flush): New function.
856         (raw_init): New function.
857         (fd_alloc): Remove.
858         (fd_alloc_r_at): Remove.
859         (fd_alloc_w_at): Remove.
860         (fd_sfree): Remove.
861         (fd_seek): Remove.
862         (fd_truncate): Remove.
863         (fd_sset): Remove.
864         (fd_read): Remove.
865         (fd_write): Remove.
866         (fd_close): Remove.
867         (fd_open): Remove.
868         (fd_flush): Rename to buf_flush, update to new stream interface
869         and unix_stream.
870         (buf_read): New function.
871         (buf_write): New function.
872         (buf_seek): New function.
873         (buf_tell): New function.
874         (buf_truncate): New function.
875         (buf_close): New function.
876         (buf_init): New function.
877         (mem_alloc_r_at): Rename to mem_alloc_r, change prototype.
878         (mem_alloc_w_at): Rename to mem_alloc_w, change prototype.
879         (mem_read): Change to match new stream interface.
880         (mem_write): Likewise.
881         (mem_seek): Likewise.
882         (mem_tell): Likewise.
883         (mem_truncate): Likewise.
884         (mem_close): Likewise.
885         (mem_flush): New function.
886         (mem_sfree): Remove.
887         (empty_internal_buffer): Cast to correct type.
888         (open_internal): Use correct type, init function pointers.
889         (fd_to_stream): Test whether to open file as buffered or raw.
890         (output_stream): Remove mode set.
891         (error_stream): Likewise.
892         (flush_all_units_1): Use new stream interface.
893         (flush_all_units): Likewise.
894         (stream_at_bof): Remove.
895         (stream_at_eof): Remove.
896         (file_position): Remove.
897         (file_length): Update logic to use stream interface.
898         (flush): Remove.
899         (stream_offset): Remove.
900         * io/write.c (write_utf8_char4): Use int instead of size_t.
901         (write_x): Extra safety check.
902         (namelist_write_newline): Use new stream interface.
904 2009-03-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
906         PR fortran/33595
907         * intrinsics/c99_functions.c (round): Use floor instead of ceil.
908         Revise checks to round up.
909         (roundf): Likewise.
911 2009-03-28  Daniel Kraft  <d@domob.eu>
913         * intrinsics/string_intrinsics.c: #include <assert.h>
914         * intrinsics/string_intrinsics_inc.c (string_trim): Use string_len_trim
915         instead of calculating the length directly.
916         (string_len_trim): For KIND=1, speed search up.
918 2009-03-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
920         PR libfortran/39528
921         * io/list_read.c (list_formatted_read_scalar): Move check for read
922         completion to just after the check for a repeated value.
924 2009-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
926         PR libfortran/39402
927         * io/write_float.def (output_float): Handle F0.d formatting correctly
928         for any d when value is 0.0.
930 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
932         * configure: Regenerate.
934 2009-01-21  Daniel Kraft  <d@domob.eu>
936         PR fortran/38887
937         * runtime/in_unpack_generic.c (internal_unpack):  Return instead of
938         abort when called with empty array.
939         * m4/in_unpack.m4:  Ditto.
940         * generated/in_unpack_i1.c:  Regenerated.
941         * generated/in_unpack_i2.c:  Regenerated.
942         * generated/in_unpack_i4.c:  Regenerated.
943         * generated/in_unpack_i8.c:  Regenerated.
944         * generated/in_unpack_i16.c: Regenerated.
945         * generated/in_unpack_r4.c:  Regenerated.
946         * generated/in_unpack_r8.c:  Regenerated.
947         * generated/in_unpack_r10.c: Regenerated.
948         * generated/in_unpack_r16.c: Regenerated.
949         * generated/in_unpack_c4.c:  Regenerated.
950         * generated/in_unpack_c8.c:  Regenerated.
951         * generated/in_unpack_c10.c: Regenerated.
952         * generated/in_unpack_c16.c: Regenerated.
954 2009-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
956         PR libfortran/38772
957         * io/read.c (read_f): Clean up loop conditions for BZ/BN,
958         allowing proper digit testing. White space fix.
960 2009-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
962         PR libfortran/38735
963         * io/unit.c (get_internal_unit): Set default BLANK= status to NULL for
964         internal units.
966 2008-12-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
968         PR fortran/31832
969         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): New autoconf check for
970         broken powf.
971         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Use it.
972         * intrinsics/c99_functions.c: Use internal powf implementation if
973         HAVE_BROKEN_POWF is defined.
974         * configure: Rebuilt.
975         * config.h.in: Rebuilt.
977 2008-12-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
979         PR libfortran/37472
980         * io/write_float.def (output_float_FMT_G_): Modify calculation of temp
981         to avoid sensitivity to round-off.
983 2008-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
985         PR libfortran/38398
986         * io/io.h (st_parameter_dt): Add new bit to keep track of when to
987         suppress blanks for g0 formatting.
988         * io/transfer.c (formatted_transfer_scalar): Always call write_real_g0
989         for g0 formatting.
990         * io.c (write.c): Do not use ES formatting and use new bit to suppress
991         blanks.
992         * io/write_float.def (output_float): Adjust the location of setting the
993         width so that it can be adjusted when suppressing blanks.  Set number of
994         blanks to zero when dtp->u.p.g0_no_blanks is set. Do some minor code
995         clean-up and add some white space for readability.
996         
997 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
999         * configure: Regenerate.
1001 2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1003         PR libfortran/38504
1004         io/write.c (write_decimal): Skip extra sign '-' at beginning of string
1005         returned by gfc_itoa.
1007 2008-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1009         PR libfortran/38430
1010         * io/transfer.c (data_transfer_init): Move constraint check for REC=
1011         and STREAM access into condition for other REC= constraints to simplify.
1012         Comment out this constraint to avoid breaking compatibility with 4.3
1013         until later.  Added a TODO for above comment and this one.
1014         Fix test for max pos.
1016 2008-12-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1018         PR libfortran/38291
1019         * io/transfer.c (data_transfer_init): Add fbuf_flush inadvertently
1020         ommitted.  Add check for invalid use of REC= with ACCESS="stream".  Fix
1021         comment.
1023 2008-12-06  Adam Nemet  <anemet@caviumnetworks.com>
1025         * runtime/main.c (store_exe_path): Don't crash if argv0 is NULL.
1027 2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1029         PR libfortran/38291
1030         * io/transfer.c (data_transfer_init): Add checks for POS= valid range.
1031         Add check for unit opened with ACCESS="stream". Flush and seek if
1032         current stream position does not match. Check ENDFILE on read.
1034 2008-12-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1036         PR fortran/38285
1037         * write_float.def (WRITE_FLOAT): Zero the float value for special case
1038         only if scale_factor = 0.
1039         
1040 2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1042         PR libfortran/38234
1043         * intrinsics/reshape_generic.c (reshape_internal):
1044         Source can be larger than shape.
1045         * m4/reshape.m4:  Likewise.
1046         * generated/reshape_c10.c Regenerated.
1047         * generated/reshape_c16.c Regenerated.
1048         * generated/reshape_c4.c Regenerated.
1049         * generated/reshape_c8.c Regenerated.
1050         * generated/reshape_i16.c Regenerated.
1051         * generated/reshape_i4.c Regenerated.
1052         * generated/reshape_i8.c Regenerated.
1053         * generated/reshape_r10.c Regenerated.
1054         * generated/reshape_r16.c Regenerated.
1055         * generated/reshape_r4.c Regenerated.
1056         * generated/reshape_r8.c Regenerated.
1058 2008-11-22  Danny Smith  <dannysmith@users.sourceforge.net>
1060         * libgfortran.h (__mingw_snprintf): Declare with gnu_printf
1061         format attribute.
1064 2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1066         PR libfortran/38225
1067         * intrinsics/reshape_generic.c (reshape_internal):
1068         Use all dimensions of source for bounds checking.
1069         * m4/reshape.m4:  Likewise.
1070         * generated/reshape_c10.c Regenerated.
1071         * generated/reshape_c16.c Regenerated.
1072         * generated/reshape_c4.c Regenerated.
1073         * generated/reshape_c8.c Regenerated.
1074         * generated/reshape_i16.c Regenerated.
1075         * generated/reshape_i4.c Regenerated.
1076         * generated/reshape_i8.c Regenerated.
1077         * generated/reshape_r10.c Regenerated.
1078         * generated/reshape_r16.c Regenerated.
1079         * generated/reshape_r4.c Regenerated.
1080         * generated/reshape_r8.c Regenerated.
1082 2008-11-22  Jakub Jelinek  <jakub@redhat.com>
1084         PR libfortran/37839
1085         * io/io.h (IOPARM_INQUIRE_HAS_ROUND, IOPARM_INQUIRE_HAS_SIGN,
1086         IOPARM_INQUIRE_HAS_PENDING): Adjust values.
1087         (st_parameter_inquire): Reorder and fix types of round, sign and
1088         pending fields.
1089         (st_parameter_43, st_parameter_44): Removed.
1090         (st_parameter_dt): Put back struct definition directly to u.p
1091         declaration.  Change type of u.p.size_used from gfc_offset to
1092         GFC_IO_INT.  Decrease back size of u.pad to 16 pointers and
1093         32 ints.  Put id, pos, asynchronous, blank, decimal, delim,
1094         pad, round and sign fields after the union.
1095         * io/inquire.c (inquire_via_unit, inquire_via_filename): Only read
1096         flags2 if it is defined.
1097         * io/transfer.c (read_sf, read_block_form, write_block): Cast
1098         additions to size_used to GFC_IO_INT instead of gfc_offset.
1099         (data_transfer_init): Clear whole u.p struct.  Adjust
1100         for moving id, pos, asynchronous, blank, decimal, delim, pad,
1101         round and sign fields from u.p directly into st_parameter_dt.
1102         (finalize_transfer): Don't cast size_used to GFC_IO_INT.
1103         * io/file_pos.c (st_endfile): Clear whole u.p struct.
1105 2008-11-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1107         PR libfortran/37472
1108         * io/write_float.def (output_float_FMT_G_): Adjust conversion of
1109         G format specification to F format.
1111 2008-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
1113         PR libfortran/38135
1114         * m4/reshape.m4:  Correct bounds checking when PAD is present.
1115         Treat PAD as if it were SOURCE when SOURCE is empty.
1116         * intrinsics/reshape_generic.c:  Likewise.
1117         * generated/reshape_c10.c Regenerated.
1118         * generated/reshape_c16.c Regenerated.
1119         * generated/reshape_c4.c Regenerated.
1120         * generated/reshape_c8.c Regenerated.
1121         * generated/reshape_i16.c Regenerated.
1122         * generated/reshape_i4.c Regenerated.
1123         * generated/reshape_i8.c Regenerated.
1124         * generated/reshape_r10.c Regenerated.
1125         * generated/reshape_r16.c Regenerated.
1126         * generated/reshape_r4.c Regenerated.
1127         * generated/reshape_r8.c Regenerated.
1129 2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1131         PR libfortran/38097
1132         * io/read.c (read_f): Initialize exponent. Fix comment. Set loop
1133         conditions for BZ/BN.
1134         * io/unit.c (get_internal_unit): Initialize flags.blank.
1135         * io/transfer.c (data_transfer_init): Fix whitespace.
1137 2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1139         PR libfortran/37294
1140         * io/write.c (namelist_write_newline): Use array loop specification to
1141         advance to next internal array unit record. (namelist_write): Adjust to
1142         accomodate the internal array unit behavior.
1144 2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
1146         PR fortran/37159
1147         * intrinsics/random.c: Added comment to adapt check.c, should
1148         kiss_size change.
1149         Few cosmetic changes to existing comments.
1151 2008-10-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1153         PR libfortran/37707
1154         * io/list_read.c (read_character): Remove code to look ahead in namelist
1155         reads to descriminate non-delimited strings from namelist objects.
1156         * io/write.c (namelist_write): Delimit character strings with quote or
1157         apostrophe, defaulting to quote.
1159 2008-10-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1161         PR libfortran/34670
1162         * intrinsics/transpose_generic.c:  Implement bounds checking.
1163         * m4/transpose.m4:  Likewise.
1164         * generated/transpose_c8.c: Regenerated.
1165         * generated/transpose_c16.c: Regenerated.
1166         * generated/transpose_r10.c: Regenerated.
1167         * generated/transpose_i8.c: Regenerated.
1168         * generated/transpose_c10.c: Regenerated.
1169         * generated/transpose_r4.c: Regenerated.
1170         * generated/transpose_c4.c: Regenerated.
1171         * generated/transpose_i16.c: Regenerated.
1172         * generated/transpose_i4.c: Regenerated.
1173         * generated/transpose_r8.c: Regenerated.
1174         * generated/transpose_r16.c: Regenerated.
1176 2008-10-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1178         PR libfortran/37834
1179         * io/write_float.def (output_float): Emit '0.' for special case of
1180         format specifier 'f0.0' and value of zero. Likewise emit '0' for 'f1.0'.
1182 2008-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1184         PR libfortran/37863
1185         * io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
1186         * io/io.h (st_parameter_44): Fix id type declaration.
1188 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
1190         * io/file_pos.c (unformatted_backspace): Normal case is
1191         GFC_CONVERT_NATIVE.
1192         * io/transfer.c (read_sf):  Mark paths leading to generate_error()
1193         as unlikely.
1194         (readl_block_form):  Likewise.
1195         (read_block_direct):  Likewise.
1196         (write_block):  Likewise.
1197         (write_buf):  Likewise.
1198         (us_read):  Likewise.  Normal case is GFC_CONVERT_NATIVE.
1199         (next_record_w_unf):  Mark paths leading to generate_error()
1200         as unlikely.
1202 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
1204         PR libfortran/34670
1205         * generated/spread_r4.c: Regenerated.
1207 2008-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
1209         PR libfortran/34670
1210         * intrinsics/reshape_generic.c:  Add bounds checking.
1211         * m4/reshape.m4:  Likewise.
1212         * generated/reshape_c10.c: Regenerated.
1213         * generated/reshape_c16.c: Regenerated.
1214         * generated/reshape_c4.c: Regenerated.
1215         * generated/reshape_c8.c: Regenerated.
1216         * generated/reshape_i16.c: Regenerated.
1217         * generated/reshape_i4.c: Regenerated.
1218         * generated/reshape_i8.c: Regenerated.
1219         * generated/reshape_r10.c: Regenerated.
1220         * generated/reshape_r16.c: Regenerated.
1221         * generated/reshape_r4.c: Regenerated.
1222         * generated/reshape_r8.c: Regenerated.
1223         * generated/spread_r4.c: Regenerated.
1225 2008-10-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1227         PR libfortran/37083
1228         * io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
1229         (finish_list_read): Add EOF check.
1231 2008-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
1233         PR libfortran/37753
1234         * io/transfer.c (unformatted_read):  CONVERT_NATIVE
1235         is the usual case.  Check for kind==1 for non-byte-reversing
1236         operation.
1237         (unformatted_write):  Likewise.
1239 2008-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1241         PR libfortran/37707
1242         * io/list_read.c (nml_get_obj_data): If the first namelist object rank
1243         is greater than zero, call nml_object_read with the first object rather
1244         than the sub-object.
1246 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1247             Steve Ellcey  <sje@cup.hp.com>
1249         * configure: Regenerate for new libtool.
1250         * Makefile.in: Ditto.
1252 2008-09-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1254         PR libfortran/37498
1255         * list_read.c (eat_separator): Revert previous patch and move
1256         delim_status, decimal_status, and pad_status to gfc_unit.
1257         (parse_real): Ditto. (read_real): Ditto.
1258         * read.c (read_a): Likewise. (read_a_char4): Likewise.
1259         (read_f): Likewise.
1260         * inquire.c (inquire_via_unit): Add missing check for
1261         IOPARM_INQUIRE_HAS_FLAGS2. (inquire_via_filename): Likewise.
1262         * io.h (unit_sign_s): Move delim_status, decimal_status, and pad_status
1263         to gfc_unit.
1264         * transfer.c (read_sf): Ditto. (read_block_form): Ditto.
1265         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto.
1266         * write.c (write_default_char4): Ditto. (write_utf8_char4): Ditto.
1267         (write_character): Ditto. (write_real_g0): Ditto.
1268         (list_formatted_write_scalar): Ditto. (nml_write_obj): Ditto.
1269         (namelist_write): Ditto.
1270         * write_float.def (calculate_sign): Ditto. (output_float): Ditto.
1272 2008-09-24  Tobias Burnus  <burnus@net-b.de>
1274         * runtime/compile_options.c (init_compile_options):
1275         Sync flags with front end.
1277 2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1279         PR libfortran/37498
1280         * file_pos (st_endfile): Clear memory only for libfortran 4.3 private
1281         area.
1282         * list_read.c (eat_separator): Only access F2003 I/O parameters if
1283         IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
1284         (read_real): Ditto.
1285         * read.c (read_a): Likewise. (read_a_char4): Likewise though not
1286         strictly necessary. (read_f): Likewise.
1287         * io.h (unit_sign_s): New enumerator to allow duplication of
1288         st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
1289         (st_parameter_43): New structure copied from 4.3 version of 
1290         st_paramater_dt private section. (st_parameter_44): New structure with
1291         F2003 items added. (st_parameter_dt): Modified to create union of new
1292         and old structures to allow correct memory setting for 4.3 ABI
1293         compatibility. Bumped the pad size.
1294         * transfer.c (read_sf): Do not use F2003 I/O memory areas unless
1295         IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
1296         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
1297         add comment, fix formatting.
1298         * write.c (write_default_char4): Likewise though not strictly necessary.
1299         (write_utf8_char4): Ditto. (write_character): Ditto.
1300         (write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
1301         (nml_write_obj): Ditto. (namelist_write): Ditto.
1302         * write_float.def (calculate_sign): Eliminate warning by including all
1303         cases in switch. (output_float): Output only decimal point of F2003 flag
1304         is not set.
1306 2008-09-10  Tobias Burnus  <burnus@net-b.de>
1307             H. J. Lu  <hongjiu.lu@intel.com>
1309         * mk-sik-inc.sh: Make -Wunused-variable proof.
1310         * mk-srk-inc.sh: Make -Wunused-variable proof.
1312 2008-09-10  Tobias Burnus  <burnus@net-b.de>
1314         * mk-kinds-h.sh: Make -Wunused-variable proof.
1316 2008-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1318         PR fortran/37203
1319         * intrinsics/reshape_generic.c:  Add checking on
1320         out-of-bounds and duplicate values of order argument.
1321         * m4/reshape.m4:  Likewise.
1322         * generated/reshape_c10.c: Regenerated.
1323         * generated/reshape_c16.c: Regenerated.
1324         * generated/reshape_c4.c: Regenerated.
1325         * generated/reshape_c8.c: Regenerated.
1326         * generated/reshape_i16.c: Regenerated.
1327         * generated/reshape_i4.c: Regenerated.
1328         * generated/reshape_i8.c: Regenerated.
1329         * generated/reshape_r10.c: Regenerated.
1330         * generated/reshape_r16.c: Regenerated.
1331         * generated/reshape_r4.c: Regenerated.
1332         * generated/reshape_r8.c: Regenerated.
1334 2008-09-06  Tobias Burnus  <burnus@net-b.de>
1336         * libgfortran.h (likely,unlikely): New makros.
1337         (runtime_warning_at,__mingw_snprintf): Add __attribute__(format()).
1338         * m4/spread.m4 (spread_'rtype_code`): Use unlikely for bounds_check.
1339         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto.
1340         * m4/matmull.m4 (matmul_'rtype_code`): Ditto.
1341         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto.
1342         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto.
1343         * m4/matmul.m4 (matmul_'rtype_code`): Ditto.
1345         * generated/minval_r8.c: Regenerated.
1346         * generated/spread_r10.c: Regenerated.
1347         * generated/minloc1_16_r16.c: Regenerated.
1348         * generated/maxloc1_4_r8.c: Regenerated.
1349         * generated/sum_i8.c: Regenerated.
1350         * generated/any_l16.c: Regenerated.
1351         * generated/spread_i8.c: Regenerated.
1352         * generated/maxval_i2.c: Regenerated.
1353         * generated/any_l2.c: Regenerated.
1354         * generated/product_r4.c: Regenerated.
1355         * generated/maxloc1_8_i4.c: Regenerated.
1356         * generated/maxloc0_4_r4.c: Regenerated.
1357         * generated/all_l1.c: Regenerated.
1358         * generated/matmul_r8.c: Regenerated.
1359         * generated/product_i2.c: Regenerated.
1360         * generated/minloc0_4_r16.c: Regenerated.
1361         * generated/minloc0_4_i1.c: Regenerated.
1362         * generated/maxloc0_4_r16.c: Regenerated.
1363         * generated/maxloc0_4_i2.c: Regenerated.
1364         * generated/minloc1_8_r16.c: Regenerated.
1365         * generated/maxloc1_8_r16.c: Regenerated.
1366         * generated/maxloc0_8_i8.c: Regenerated.
1367         * generated/sum_r16.c: Regenerated.
1368         * generated/sum_i1.c: Regenerated.
1369         * generated/minloc1_4_r8.c: Regenerated.
1370         * generated/maxloc1_16_r16.c: Regenerated.
1371         * generated/minloc1_16_i4.c: Regenerated.
1372         * generated/maxloc1_16_i4.c: Regenerated.
1373         * generated/minloc0_16_i8.c: Regenerated.
1374         * generated/spread_i1.c: Regenerated.
1375         * generated/maxloc0_16_i8.c: Regenerated.
1376         * generated/maxval_r16.c: Regenerated.
1377         * generated/product_c10.c: Regenerated.
1378         * generated/minloc1_8_i4.c: Regenerated.
1379         * generated/minloc0_16_i16.c: Regenerated.
1380         * generated/matmul_r16.c: Regenerated.
1381         * generated/minloc0_4_r4.c: Regenerated.
1382         * generated/all_l2.c: Regenerated.
1383         * generated/product_c4.c: Regenerated.
1384         * generated/sum_r4.c: Regenerated.
1385         * generated/minloc0_4_i2.c: Regenerated.
1386         * generated/spread_c10.c: Regenerated.
1387         * generated/maxloc0_8_i1.c: Regenerated.
1388         * generated/spread_r4.c: Regenerated.
1389         * generated/minloc0_8_i8.c: Regenerated.
1390         * generated/matmul_c8.c: Regenerated.
1391         * generated/all_l16.c: Regenerated.
1392         * generated/minloc1_16_r10.c: Regenerated.
1393         * generated/sum_i2.c: Regenerated.
1394         * generated/minloc0_16_i1.c: Regenerated.
1395         * generated/maxloc0_16_i1.c: Regenerated.
1396         * generated/maxloc1_8_r8.c: Regenerated.
1397         * generated/minval_i16.c: Regenerated.
1398         * generated/spread_i2.c: Regenerated.
1399         * generated/maxval_i4.c: Regenerated.
1400         * generated/minval_i8.c: Regenerated.
1401         * generated/any_l4.c: Regenerated.
1402         * generated/maxloc1_4_i8.c: Regenerated.
1403         * generated/maxloc0_16_i16.c: Regenerated.
1404         * generated/maxloc0_8_r4.c: Regenerated.
1405         * generated/minloc1_4_i16.c: Regenerated.
1406         * generated/maxloc1_4_i16.c: Regenerated.
1407         * generated/minloc0_4_r10.c: Regenerated.
1408         * generated/minloc0_8_i16.c: Regenerated.
1409         * generated/maxloc0_4_r10.c: Regenerated.
1410         * generated/maxloc0_8_i16.c: Regenerated.
1411         * generated/minloc1_8_r10.c: Regenerated.
1412         * generated/product_i4.c: Regenerated.
1413         * generated/minloc0_16_r4.c: Regenerated.
1414         * generated/sum_c16.c: Regenerated.
1415         * generated/maxloc1_8_r10.c: Regenerated.
1416         * generated/maxloc0_16_r4.c: Regenerated.
1417         * generated/minloc1_16_r8.c: Regenerated.
1418         * generated/minloc0_8_i1.c: Regenerated.
1419         * generated/maxloc0_4_i4.c: Regenerated.
1420         * generated/maxloc1_16_r8.c: Regenerated.
1421         * generated/maxloc0_8_i2.c: Regenerated.
1422         * generated/sum_r10.c: Regenerated.
1423         * generated/count_4_l.c: Regenerated.
1424         * generated/sum_c4.c: Regenerated.
1425         * generated/count_8_l.c: Regenerated.
1426         * generated/maxloc1_16_r10.c: Regenerated.
1427         * generated/matmul_i8.c: Regenerated.
1428         * generated/minloc0_16_i2.c: Regenerated.
1429         * generated/minloc1_8_r8.c: Regenerated.
1430         * generated/maxloc0_16_i2.c: Regenerated.
1431         * generated/spread_c4.c: Regenerated.
1432         * generated/matmul_c16.c: Regenerated.
1433         * generated/maxval_r10.c: Regenerated.
1434         * generated/minval_i1.c: Regenerated.
1435         * generated/maxloc1_4_i1.c: Regenerated.
1436         * generated/matmul_r10.c: Regenerated.
1437         * generated/minloc1_4_i8.c: Regenerated.
1438         * generated/minloc0_8_r4.c: Regenerated.
1439         * generated/matmul_l4.c: Regenerated.
1440         * generated/product_i16.c: Regenerated.
1441         * generated/minloc0_16_r16.c: Regenerated.
1442         * generated/all_l4.c: Regenerated.
1443         * generated/minloc0_4_i4.c: Regenerated.
1444         * generated/minloc0_8_i2.c: Regenerated.
1445         * generated/matmul_i1.c: Regenerated.
1446         * generated/minval_r4.c: Regenerated.
1447         * generated/maxloc1_4_r4.c: Regenerated.
1448         * generated/spread_i16.c: Regenerated.
1449         * generated/sum_i4.c: Regenerated.
1450         * generated/maxval_r8.c: Regenerated.
1451         * generated/spread_i4.c: Regenerated.
1452         * generated/minloc1_4_i1.c: Regenerated.
1453         * generated/minval_r16.c: Regenerated.
1454         * generated/minval_i2.c: Regenerated.
1455         * generated/maxloc1_4_i2.c: Regenerated.
1456         * generated/product_r8.c: Regenerated.
1457         * generated/maxloc1_8_i8.c: Regenerated.
1458         * generated/maxloc0_4_r8.c: Regenerated.
1459         * generated/maxloc0_16_r16.c: Regenerated.
1460         * generated/matmul_r4.c: Regenerated.
1461         * generated/sum_c10.c: Regenerated.
1462         * generated/minloc1_4_r16.c: Regenerated.
1463         * generated/maxloc1_4_r16.c: Regenerated.
1464         * generated/minloc0_8_r16.c: Regenerated.
1465         * generated/maxloc0_8_r16.c: Regenerated.
1466         * generated/count_1_l.c: Regenerated.
1467         * generated/maxloc0_8_i4.c: Regenerated.
1468         * generated/matmul_i2.c: Regenerated.
1469         * generated/minloc1_4_r4.c: Regenerated.
1470         * generated/matmul_c10.c: Regenerated.
1471         * generated/minloc0_16_i4.c: Regenerated.
1472         * generated/maxloc0_16_i4.c: Regenerated.
1473         * generated/minloc1_16_i8.c: Regenerated.
1474         * generated/maxloc1_16_i8.c: Regenerated.
1475         * generated/minloc1_4_i2.c: Regenerated.
1476         * generated/matmul_l16.c: Regenerated.
1477         * generated/maxloc1_8_i1.c: Regenerated.
1478         * generated/minloc0_16_r10.c: Regenerated.
1479         * generated/minloc1_8_i8.c: Regenerated.
1480         * generated/minloc0_4_r8.c: Regenerated.
1481         * generated/product_r16.c: Regenerated.
1482         * generated/product_c8.c: Regenerated.
1483         * generated/sum_r8.c: Regenerated.
1484         * generated/minloc0_8_i4.c: Regenerated.
1485         * generated/matmul_c4.c: Regenerated.
1486         * generated/minloc1_16_i16.c: Regenerated.
1487         * generated/spread_r8.c: Regenerated.
1488         * generated/maxloc1_8_r4.c: Regenerated.
1489         * generated/minloc1_16_i1.c: Regenerated.
1490         * generated/maxloc1_16_i1.c: Regenerated.
1491         * generated/spread_r16.c: Regenerated.
1492         * generated/minval_r10.c: Regenerated.
1493         * generated/count_16_l.c: Regenerated.
1494         * generated/minval_i4.c: Regenerated.
1495         * generated/minloc1_8_i1.c: Regenerated.
1496         * generated/maxloc1_4_i4.c: Regenerated.
1497         * generated/maxloc1_8_i2.c: Regenerated.
1498         * generated/maxval_i8.c: Regenerated.
1499         * generated/any_l8.c: Regenerated.
1500         * generated/maxloc0_16_r10.c: Regenerated.
1501         * generated/minloc0_4_i16.c: Regenerated.
1502         * generated/maxloc0_8_r8.c: Regenerated.
1503         * generated/maxloc0_4_i16.c: Regenerated.
1504         * generated/minloc1_4_r10.c: Regenerated.
1505         * generated/minloc1_8_i16.c: Regenerated.
1506         * generated/maxloc1_4_r10.c: Regenerated.
1507         * generated/maxloc1_8_i16.c: Regenerated.
1508         * generated/minloc0_8_r10.c: Regenerated.
1509         * generated/maxloc0_8_r10.c: Regenerated.
1510         * generated/minloc1_16_r4.c: Regenerated.
1511         * generated/maxloc1_16_r4.c: Regenerated.
1512         * generated/minloc0_16_r8.c: Regenerated.
1513         * generated/product_i8.c: Regenerated.
1514         * generated/maxloc0_16_r8.c: Regenerated.
1515         * generated/sum_i16.c: Regenerated.
1516         * generated/count_2_l.c: Regenerated.
1517         * generated/maxloc0_4_i8.c: Regenerated.
1518         * generated/maxloc1_16_i16.c: Regenerated.
1519         * generated/matmul_i4.c: Regenerated.
1520         * generated/minloc1_8_r4.c: Regenerated.
1521         * generated/sum_c8.c: Regenerated.
1522         * generated/minloc1_16_i2.c: Regenerated.
1523         * generated/maxloc1_16_i2.c: Regenerated.
1524         * generated/maxval_i16.c: Regenerated.
1525         * generated/spread_c8.c: Regenerated.
1526         * generated/matmul_i16.c: Regenerated.
1527         * generated/minloc1_4_i4.c: Regenerated.
1528         * generated/maxval_i1.c: Regenerated.
1529         * generated/minloc1_8_i2.c: Regenerated.
1530         * generated/any_l1.c: Regenerated.
1531         * generated/product_c16.c: Regenerated.
1532         * generated/minloc0_8_r8.c: Regenerated.
1533         * generated/matmul_l8.c: Regenerated.
1534         * generated/product_r10.c: Regenerated.
1535         * generated/product_i1.c: Regenerated.
1536         * generated/all_l8.c: Regenerated.
1537         * generated/maxloc0_4_i1.c: Regenerated.
1538         * generated/minloc0_4_i8.c: Regenerated.
1539         * generated/spread_c16.c: Regenerated.
1540         * generated/maxval_r4.c: Regenerated.
1542 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1544         PR libfortran/37301
1545         PR libfortran/37228
1546         * io/io.h (write_real_g0): Declare new function to handle g0.d format.
1547         * io/transfer.c (formatted_transfer_scalar): Use new function.
1548         * io/format.c (parse_format_list): Enable g0.d.
1549         * io/write.c (write_a_char4): Delete unused var.
1550         (set_fnode_default): New function to set the default fnode w, d, and e
1551         factored from write_real. (write_real): Use new factored function.
1552         (write_real_g0): New function that sets d to that passed by g0.d format
1553         specifier and set format to ES.  Default values for w and e are used
1554         from the new function, set_fnode_default.
1556 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1558         * runtime/error.c: Fix cast for printf.
1560 2008-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1562         PR libfortran/36895
1563         * io/write.c (namelist_write_newline): New function to correctly mark
1564         next records in both external and internal units.
1565         (nml_write_obj): Use new function.
1566         (namelist_write: Use new function.
1568 2008-08-19  Tobias Burnus  <burnus@net-b.de>
1570         PR libfortran/35863
1571         * io/write.c (write_a_char4): Add missing variable declaration
1572         in HAVE_CRLF block.
1574 2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1576         PR libfortran/35863
1577         * intrinsics/selected_char_kind.c: Enable iso_10646.
1578         * io/read.c (typedef uchar): New type.
1579         (read_utf8): New function to read a single UTF-8 encoded character.
1580         (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
1581         (read_default_char1): New functio to read default into KIND=1 string.
1582         (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
1583         (read_default_char4): New function to read UTF-8 into a KIND=4 string.
1584         (read_a): Modify to use the new functions.
1585         (read_a_char4): Modify to use the new functions.
1586         * io/write.c (error.h): Add include. (typedef uchar): New type.
1587         (write_default_char4): New function to default write KIND=4 string.
1588         (write_utf8_char4): New function to UTF-8 write KIND=4 string.
1589         (write_a_char4): Modify to use new functions.
1590         (write_character): Modify to use new functions.
1592 2008-08-14  H.J. Lu  <hongjiu.lu@intel.com>
1594         PR libfortran/37123
1595         * intrinsics/cshift0.c (cshift0): Fix 2 typos.
1597 2008-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1599         PR libfortran/36886
1600         * Makefile.am:  Added $(i_cshift0_c).
1601         Added $(i_cshift0_c) to gfor_built_specific_src.
1602         Add rule to build from cshift0.m4.
1603         * Makefile.in:  Regenerated.
1604         * libgfortran.h:  Addedd prototypes for cshift0_i1,
1605         cshift0_i2, cshift0_i4, cshift0_i8, cshift0_i16,
1606         cshift0_r4, cshift0_r8, cshift0_r10, cshift0_r16,
1607         cshift0_c4, cshift0_c8, cshift0_c10, cshift0_c16.
1608         Define Macros GFC_UNALIGNED_C4 and GFC_UNALIGNED_C8.
1609         * intrinsics/cshift0.c:  Remove helper functions for
1610         the innter shift loop.
1611         (cshift0):  Call specific functions depending on type
1612         of array argument.  Only call specific functions for
1613         correct alignment for other types.
1614         * m4/cshift0.m4:  New file.
1615         * generated/cshift0_i1.c:  New file.
1616         * generated/cshift0_i2.c:  New file.
1617         * generated/cshift0_i4.c:  New file.
1618         * generated/cshift0_i8:.c  New file.
1619         * generated/cshift0_i16.c:  New file.
1620         * generated/cshift0_r4.c:  New file.
1621         * generated/cshift0_r8.c:  New file.
1622         * generated/cshift0_r10.c:  New file.
1623         * generated/cshift0_r16.c:  New file.
1624         * generated/cshift0_c4.c:  New file.
1625         * generated/cshift0_c8.c:  New file.
1626         * generated/cshift0_c10.c:  New file.
1627         * generated/cshift0_c16.c:  New file.
1629 2008-07-27  Tobias Burnus  <burnus@net-b.de>
1631         PR fortran/36132
1632         PR fortran/29952
1633         PR fortran/36909
1634         * runtime/error.c: New function runtime_error_at.
1635         * gfortran.map: Ditto.
1636         * libgfortran.h: Ditto.
1638 2008-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1640         PR fortran/36582
1641         * io/list_read.c: If variable rank is zero, do not adjust the found
1642         namelist object pointer.
1644 2008-07-22  Daniel Kraft  <d@domob.eu>
1646         PR fortran/29835
1647         * io/format.c (struct format_data):  New member error_element.
1648         (unexpected_element):  Added '%c' to message.
1649         (next_char):  Keep track of last parsed character in fmt->error_element.
1650         (format_error):  If the message is unexpected_element, output the
1651         offending character, too.
1653 2008-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1655         PR libfortran/36890
1656         * io/file_pos.c:  Declare READ_CHUNK as signed to avoid
1657         signed/unsigned comparison warning in formatted_backspace.
1659 2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1661         PR libfortran/36773
1662         * intrinsics/cshift0.c (cshift0):  Return early if size of array
1663         is zero.
1664         * intrinsics/eoshift0.c (eoshift0):  Return early if size of
1665         return array is zero.
1666         * intrinsics/eoshift2.c (eoshift2):  Likewise.
1667         * m4/eoshift1.m4 (eoshift1):  Return early if size of array
1668         is zero.
1669         * m4/eoshift3.m4 (eoshift3):  Likewise.
1670         * m4/eoshift2.m4 (eoshift2):  Return early if size of return
1671         array is zero.
1672         * m4/eoshift4.m4 (eoshift2):  Return early if size of return
1673         array is zero.
1674         * generated/cshift1_16.c: Regenerated.
1675         * generated/cshift1_4.c: Regenerated.
1676         * generated/cshift1_8.c: Regenerated.
1677         * generated/eoshift1_16.c: Regenerated.
1678         * generated/eoshift1_4.c: Regenerated.
1679         * generated/eoshift1_8.c: Regenerated.
1680         * generated/eoshift3_16.c: Regenerated.
1681         * generated/eoshift3_4.c: Regenerated.
1682         * generated/eoshift3_8.c: Regenerated.
1684 2008-07-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1686         PR fortran/36857
1687         * io/write_float.def: Comment out locale dependent code and fix general
1688         comments.
1689         
1690 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1692         PR fortran/36341
1693         PR fortran/34670
1694         * m4/matmul.m4:  Add bounds checking.
1695         * m4/matmull.m4:  Likewise.
1696         * generated/matmul_c10.c: Regenerated.
1697         * generated/matmul_c16.c: Regenerated.
1698         * generated/matmul_c4.c: Regenerated.
1699         * generated/matmul_c8.c: Regenerated.
1700         * generated/matmul_i1.c: Regenerated.
1701         * generated/matmul_i16.c: Regenerated.
1702         * generated/matmul_i2.c: Regenerated.
1703         * generated/matmul_i4.c: Regenerated.
1704         * generated/matmul_i8.c: Regenerated.
1705         * generated/matmul_l16.c: Regenerated.
1706         * generated/matmul_l4.c: Regenerated.
1707         * generated/matmul_l8.c: Regenerated.
1708         * generated/matmul_r10.c: Regenerated.
1709         * generated/matmul_r16.c: Regenerated.
1710         * generated/matmul_r4.c: Regenerated.
1711         * generated/matmul_r8.c: Regenerated.
1713 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1715         * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
1716         variable name.
1717         * configure: Regenerate.
1719 2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1721         PR fortran/36676
1722         * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
1723         
1724 2008-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1726         PR fortran/36657
1727         * io/list_read.c (read_character): Check for '!' along with separators.
1728         (find_nml_name): Likewise and eat the comment if found.
1730 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1732         * configure: Regenerate.
1734 2008-06-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1736         PR fortran/36546
1737         * io/list_read.c (eat_separator): Add tab character to condition
1738         for looping past whitespace.
1740 2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1742         PR fortran/36515
1743         * libgfortran.h (compile_options_t): Add int range_check to structure.
1744         * runtime/compile_options.c (set_options): Add range_check option.
1745         (init_compile_options): Likewise.
1746         *io/read.c (read_decimal): Change overflow checks to include
1747         range_check.
1748         
1749 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1751         PR fortran/36538
1752         * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
1753         tabs.
1755 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1757         PR fortran/35863
1758         * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
1759         * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
1760         big_endian. (determine_endianness): Add endian_off and set its value
1761         according to big_endian.
1762         * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
1763         * io/io.h: Add prototype declarations for new functions.
1764         * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
1765         (list_formatted_read): Calculate stride based on kind for character type
1766         and use it when calling list_formatted_read_scalar.
1767         * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
1768         * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
1769         * io/read.c (read_a_char4): New function to handle formatted read.
1770         * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
1771         (write_a_char4): New function to handle formatted write.
1772         (write_character): Modify to accept the kind parameter and adjust for
1773         endianess of the machine. (list_formatted_write): Calculate the stride
1774         resulting from the kind and adjust the list_formatted_write_scalar call
1775         accordingly. (nml_write_obj): Adjust calls to write_character.
1776         (namelist_write): Likewise.
1777         * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
1778         'kind' argument to better describe what it is. Add calls to new
1779         functions for kind == 4. (formatted_transfer): Modify to handle the case
1780         of type character and kind equals 4 to pass in the kind to the transfer
1781         routines. (transfer_character_wide): Add this new function.
1782         (transfer_array): Don't set kind to the character string length. Adjust
1783         strides bases on character kind.
1784         (unformatted_read): Adjust size based on kind for character types.
1785         (unformatted_write): Likewise. (data_transfer_init): Change
1786         l8_to_l4_offset to big_endian.
1787         io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
1789 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1791         * configure.ac (AM_CFLAGS): Remove -Werror again.
1792         * configure: Regenerate.
1794 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1796         PR libgfortran/36518
1797         * configure.ac (AM_CFLAGS): Add -Werror.
1798         * configure: Regenerate.
1799         * m4/ifunction_logical.m4: Cast "n" to "(int)".
1800         * generated/any_l16.c: Regenerate.
1801         * generated/any_l2.c: Regenerate.
1802         * generated/all_l1.c: Regenerate.
1803         * generated/all_l2.c: Regenerate.
1804         * generated/all_l16.c: Regenerate.
1805         * generated/any_l4.c: Regenerate.
1806         * generated/count_4_l.c: Regenerate.
1807         * generated/count_8_l.c: Regenerate.
1808         * generated/all_l4.c: Regenerate.
1809         * generated/count_1_l.c: Regenerate.
1810         * generated/count_16_l.c: Regenerate.
1811         * generated/any_l8.c: Regenerate.
1812         * generated/count_2_l.c: Regenerate.
1813         * generated/any_l1.c: Regenerate.
1814         * generated/all_l8.c: Regenerate.
1816 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1818         PR fortran/36495
1819         * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
1820         * configure: (generated) ditto.
1821         * intrinsics/dprod_r8.f90: Add "implicit none".
1823 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1825         PR libfortran/36420
1826         PR libfortran/36421
1827         PR libfortran/36422
1828         * io/io.h: Add prototype for write_real.
1829         * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
1830         use write_real.
1831         * io/format.c: Add zero width error message. (parse_format_list): Use
1832         error message for FMT_A if followed by FMT_ZERO. Use zero width error
1833         message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
1834         Fix typo in comment.
1835         * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
1836         (write_l): Add wlen variable and use it if FMT_G and width is zero.
1837         (write_decimal): If FMT_G, set m to -1 to flag processor dependent
1838         formatting. (write_real): Remove static declaration.
1840 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1842         PR fortran/36319
1843         * intrinsics/string_intrinsics_inc.c (string_index): Return
1844         correct value for zero-length substring.
1845         * intrinsics/cshift0.c: Add _char4 variant.
1846         * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
1847         wider than a single byte. Add _char4 variant and use above
1848         functionality.
1849         * intrinsics/eoshift2.c (eoshift2): Likewise.
1850         * m4/eoshift1.m4: Likewise.
1851         * m4/eoshift3.m4: Likewise.
1852         * m4/cshift1.m4: Add _char4 variants.
1853         * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
1854         _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
1855         _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
1856         _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
1857         _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
1858         _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
1859         _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
1860         _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
1861         _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
1862         _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
1863         _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
1864         * generated/eoshift3_4.c: Regenerate.
1865         * generated/eoshift1_8.c: Regenerate.
1866         * generated/eoshift1_16.c: Regenerate.
1867         * generated/cshift1_4.c: Regenerate.
1868         * generated/eoshift1_4.c: Regenerate.
1869         * generated/eoshift3_8.c: Regenerate.
1870         * generated/eoshift3_16.c: Regenerate.
1871         * generated/cshift1_8.c: Regenerate.
1872         * generated/cshift1_16.c: Regenerate.
1874 2008-05-25  Tobias Burnus  <burnus@net-b.de>
1876         PR fortran/32600
1877         * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
1878         * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
1879         * gfortran.map (c_f_procpointer): Remove.
1881 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1883         PR libgfortran/36302
1884         * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
1885         _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
1886         _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
1887         _gfortran_cshift0_16_char.  Sort alphabetically.
1888         * intrinsics/eoshift0.c:  Add function for kind=16 integer.
1889         * intrinsics/eoshift2.c:  Likewise.
1890         * intrinsics/cshift0.c:  Likewise.
1892 2008-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
1894         * m4/in_pack.m4 (internal_pack_'rtype_code`):  Destination
1895         pointer is restrict.
1896         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
1897         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
1898         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
1899         (spread_scalar_'rtype_code`): Likewise.
1900         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
1901         * m4/eoshift1.m4 (eoshift1):  Likewise.
1902         * m4/eoshift3.m4 (eoshift3):  Likewise.
1903         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):  Likewise.
1904         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
1905         (unpack1_'rtype_code`):  Likewise.
1906         * intrinsics/pack_generic.c (pack_generic.c):  Likewise.
1907         * intrinsics/unpack_generic.c (unpack_internal):  Likewise.
1908         * intrinsics/eoshift0.c (eoshift0):  Likewise.
1909         * intrinsics/eoshift2.c (eoshift2):  Likewise.
1910         * intrinsics/reshape_generic.c (reshape_internal):  Likewise.
1911         * intrinsics/reshape_packed.c (reshape_packed):  Likewise.
1912         * generated/eoshift1_16.c: Regenerated.
1913         * generated/eoshift1_4.c: Regenerated.
1914         * generated/eoshift1_8.c: Regenerated.
1915         * generated/eoshift3_16.c: Regenerated.
1916         * generated/eoshift3_4.c: Regenerated.
1917         * generated/eoshift3_8.c: Regenerated.
1918         * generated/in_pack_c10.c: Regenerated.
1919         * generated/in_pack_c16.c: Regenerated.
1920         * generated/in_pack_c4.c: Regenerated.
1921         * generated/in_pack_c8.c: Regenerated.
1922         * generated/in_pack_i1.c: Regenerated.
1923         * generated/in_pack_i16.c: Regenerated.
1924         * generated/in_pack_i2.c: Regenerated.
1925         * generated/in_pack_i4.c: Regenerated.
1926         * generated/in_pack_i8.c: Regenerated.
1927         * generated/in_pack_r10.c: Regenerated.
1928         * generated/in_pack_r16.c: Regenerated.
1929         * generated/in_pack_r4.c: Regenerated.
1930         * generated/in_pack_r8.c: Regenerated.
1931         * generated/in_unpack_c10.c: Regenerated.
1932         * generated/in_unpack_c16.c: Regenerated.
1933         * generated/in_unpack_c4.c: Regenerated.
1934         * generated/in_unpack_c8.c: Regenerated.
1935         * generated/in_unpack_i1.c: Regenerated.
1936         * generated/in_unpack_i16.c: Regenerated.
1937         * generated/in_unpack_i2.c: Regenerated.
1938         * generated/in_unpack_i4.c: Regenerated.
1939         * generated/in_unpack_i8.c: Regenerated.
1940         * generated/in_unpack_r10.c: Regenerated.
1941         * generated/in_unpack_r16.c: Regenerated.
1942         * generated/in_unpack_r4.c: Regenerated.
1943         * generated/in_unpack_r8.c: Regenerated.
1944         * generated/maxloc0_16_i1.c: Regenerated.
1945         * generated/maxloc0_16_i16.c: Regenerated.
1946         * generated/maxloc0_16_i2.c: Regenerated.
1947         * generated/maxloc0_16_i4.c: Regenerated.
1948         * generated/maxloc0_16_i8.c: Regenerated.
1949         * generated/maxloc0_16_r10.c: Regenerated.
1950         * generated/maxloc0_16_r16.c: Regenerated.
1951         * generated/maxloc0_16_r4.c: Regenerated.
1952         * generated/maxloc0_16_r8.c: Regenerated.
1953         * generated/maxloc0_4_i1.c: Regenerated.
1954         * generated/maxloc0_4_i16.c: Regenerated.
1955         * generated/maxloc0_4_i2.c: Regenerated.
1956         * generated/maxloc0_4_i4.c: Regenerated.
1957         * generated/maxloc0_4_i8.c: Regenerated.
1958         * generated/maxloc0_4_r10.c: Regenerated.
1959         * generated/maxloc0_4_r16.c: Regenerated.
1960         * generated/maxloc0_4_r4.c: Regenerated.
1961         * generated/maxloc0_4_r8.c: Regenerated.
1962         * generated/maxloc0_8_i1.c: Regenerated.
1963         * generated/maxloc0_8_i16.c: Regenerated.
1964         * generated/maxloc0_8_i2.c: Regenerated.
1965         * generated/maxloc0_8_i4.c: Regenerated.
1966         * generated/maxloc0_8_i8.c: Regenerated.
1967         * generated/maxloc0_8_r10.c: Regenerated.
1968         * generated/maxloc0_8_r16.c: Regenerated.
1969         * generated/maxloc0_8_r4.c: Regenerated.
1970         * generated/maxloc0_8_r8.c: Regenerated.
1971         * generated/minloc0_16_i1.c: Regenerated.
1972         * generated/minloc0_16_i16.c: Regenerated.
1973         * generated/minloc0_16_i2.c: Regenerated.
1974         * generated/minloc0_16_i4.c: Regenerated.
1975         * generated/minloc0_16_i8.c: Regenerated.
1976         * generated/minloc0_16_r10.c: Regenerated.
1977         * generated/minloc0_16_r16.c: Regenerated.
1978         * generated/minloc0_16_r4.c: Regenerated.
1979         * generated/minloc0_16_r8.c: Regenerated.
1980         * generated/minloc0_4_i1.c: Regenerated.
1981         * generated/minloc0_4_i16.c: Regenerated.
1982         * generated/minloc0_4_i2.c: Regenerated.
1983         * generated/minloc0_4_i4.c: Regenerated.
1984         * generated/minloc0_4_i8.c: Regenerated.
1985         * generated/minloc0_4_r10.c: Regenerated.
1986         * generated/minloc0_4_r16.c: Regenerated.
1987         * generated/minloc0_4_r4.c: Regenerated.
1988         * generated/minloc0_4_r8.c: Regenerated.
1989         * generated/minloc0_8_i1.c: Regenerated.
1990         * generated/minloc0_8_i16.c: Regenerated.
1991         * generated/minloc0_8_i2.c: Regenerated.
1992         * generated/minloc0_8_i4.c: Regenerated.
1993         * generated/minloc0_8_i8.c: Regenerated.
1994         * generated/minloc0_8_r10.c: Regenerated.
1995         * generated/minloc0_8_r16.c: Regenerated.
1996         * generated/minloc0_8_r4.c: Regenerated.
1997         * generated/minloc0_8_r8.c: Regenerated.
1998         * generated/pack_c10.c: Regenerated.
1999         * generated/pack_c16.c: Regenerated.
2000         * generated/pack_c4.c: Regenerated.
2001         * generated/pack_c8.c: Regenerated.
2002         * generated/pack_i1.c: Regenerated.
2003         * generated/pack_i16.c: Regenerated.
2004         * generated/pack_i2.c: Regenerated.
2005         * generated/pack_i4.c: Regenerated.
2006         * generated/pack_i8.c: Regenerated.
2007         * generated/pack_r10.c: Regenerated.
2008         * generated/pack_r16.c: Regenerated.
2009         * generated/pack_r4.c: Regenerated.
2010         * generated/pack_r8.c: Regenerated.
2011         * generated/spread_c10.c: Regenerated.
2012         * generated/spread_c16.c: Regenerated.
2013         * generated/spread_c4.c: Regenerated.
2014         * generated/spread_c8.c: Regenerated.
2015         * generated/spread_i1.c: Regenerated.
2016         * generated/spread_i16.c: Regenerated.
2017         * generated/spread_i2.c: Regenerated.
2018         * generated/spread_i4.c: Regenerated.
2019         * generated/spread_i8.c: Regenerated.
2020         * generated/spread_r10.c: Regenerated.
2021         * generated/spread_r16.c: Regenerated.
2022         * generated/spread_r4.c: Regenerated.
2023         * generated/spread_r8.c: Regenerated.
2024         * generated/transpose_c10.c: Regenerated.
2025         * generated/transpose_c16.c: Regenerated.
2026         * generated/transpose_c4.c: Regenerated.
2027         * generated/transpose_c8.c: Regenerated.
2028         * generated/transpose_i16.c: Regenerated.
2029         * generated/transpose_i4.c: Regenerated.
2030         * generated/transpose_i8.c: Regenerated.
2031         * generated/transpose_r10.c: Regenerated.
2032         * generated/transpose_r16.c: Regenerated.
2033         * generated/transpose_r4.c: Regenerated.
2034         * generated/transpose_r8.c: Regenerated.
2035         * generated/unpack_c10.c: Regenerated.
2036         * generated/unpack_c16.c: Regenerated.
2037         * generated/unpack_c4.c: Regenerated.
2038         * generated/unpack_c8.c: Regenerated.
2039         * generated/unpack_i1.c: Regenerated.
2040         * generated/unpack_i16.c: Regenerated.
2041         * generated/unpack_i2.c: Regenerated.
2042         * generated/unpack_i4.c: Regenerated.
2043         * generated/unpack_i8.c: Regenerated.
2044         * generated/unpack_r10.c: Regenerated.
2045         * generated/unpack_r16.c: Regenerated.
2046         * generated/unpack_r4.c: Regenerated.
2047         * generated/unpack_r8.c: Regenerated.
2049 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2051         * runtime/select.c: Moved content to select_inc.c. Include it. 
2052         Add macros for different character types.
2053         * runtime/select_inc.c: New file.
2054         * runtime/convert_char.c: New file.
2055         * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
2056         functions.
2057         * intrinsics/transpose_generic.c (transpose_char4): New function.
2058         * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
2059         New functions.
2060         * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4): 
2061         New functions.
2062         * intrinsics/reshape_generic.c (reshape_char): Use
2063         gfc_charlen_type as type for length variables.
2064         (reshape_char4): New function.
2065         * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
2066         _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
2067         _gfortran_transpose_char4, _gfortran_spread_char4,
2068         _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
2069         _gfortran_pack_char4, _gfortran_pack_s_char4,
2070         _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
2071         * Makefile.am: Add runtime/convert_char.c.
2072         * Makefile.in: Regenerate.
2074 2008-05-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
2076         * io/list_read.c (list_formatted_read_scalar):  Declare
2077         type as volatile to shut up compiler warning.
2079 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
2081         PR libfortran/25561
2082         * io/io.h (struct fbuf): Change pointer to position offset.
2083         * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
2084         changes.
2085         (fbuf_reset): ptr=>pos changes.
2086         (fbuf_alloc): If the request doesn't fit, don't waste memory by
2087         keeping flushed bytes. ptr=>pos changes.
2088         (fbuf_flush): ptr=>pos changes.
2089         (fbuf_seek): Don't seek past the left tab limit, don't update active
2090         byte count.
2091         * io/open.c (new_unit): If RECL has been specified, used that as
2092         initial buffer size.
2094 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
2096         PR libfortran/35632
2097         * io/open.c (new_unit): Set stream position to correct value.
2099 2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>
2101         PR libfortran/25561
2102         * Makefile.am: Add fbuf.c to gfor_io_src.
2103         * Makefile.in: Regenerate.
2104         * io/io.h (read_block): Remove.
2105         (struct stream): Remove alloc_r_at function pointer.
2106         (salloc_r): Remove.
2107         (salloc_r_at): Remove.
2108         (salloc_w_at): Remove.
2109         (salloc_w): Remove offset argument.
2110         (struct fbuf): New struct for format buffer.
2111         (struct gfc_unit): Add fbuf.
2112         (read_block_form): New prototype.
2113         (fbuf_init): Likewise.
2114         (fbuf_destroy): Likewise.
2115         (fbuf_reset): Likewise.
2116         (fbuf_alloc): Likewise.
2117         (fbuf_flush): Likewise.
2118         (fbuf_seek): Likewise.
2119         * io/file_pos.c (formatted_backspace): Change to use sread.
2120         (unformatted_backspace): Likewise.
2121         (st_backspace): Flush format buffer.
2122         (st_rewind): Likewise.
2123         * io/list_read.c (next_char): Likewise.
2124         (nml_query): Tidying, flush format buffer.
2125         * io/open.c (new_unit): Init format buffer.
2126         * io/read.c (read_l): Change to use read_block_form.
2127         (read_a): Likewise.
2128         (read_decimal): Likewise.
2129         (read_radix): Likewise.
2130         (read_f): Likewise.
2131         (read_x): Empty reads also for stream I/O.
2132         * io/transfer.c (read_sf): Change to use sread.
2133         (read_block): Rename to read_block_form, change prototype, use sread.
2134         (read_block_direct): Don't seek stream files.
2135         (write_block): Change to use fbuf if external file, don't seek stream
2136         files.
2137         (write_buf): Don't seek stream files.
2138         (formatted_transfer_scalar): Use fbuf for external files.
2139         (us_read): Change to use sread.
2140         (pre_position): Do nothing for stream I/O.
2141         (data_transfer_init): Flush fbuf when switching from write to read, if
2142         POS is specified, seek stream file to correct offset.
2143         (skip_record): Change to use sread.
2144         (min_off): New function.
2145         (next_record_r): Change to use sread.
2146         (next_record_w): Change to use sset/sseek, flush fbuf.
2147         (finalize_transfer): Flush fbuf.
2148         * io/unit.c (init_units): Init fbuf for stdout, stderr.
2149         (close_unit_1): Destroy fbuf.
2150         (finish_last_advance_record): Flush fbuf, no need to seek.
2151         * io/unix.c (fd_alloc_r_at): Remove unused where argument.
2152         (fd_alloc_w_at): Likewise.
2153         (fd_read): Remove third argument to fd_alloc_r_at.
2154         (fd_write): Remove third argument to fd_alloc_w_at.
2155         (fd_sset): Likewise.
2156         (fd_open): Don't set alloc_r_at.
2157         (mem_alloc_r_at): Remove unused where argument.
2158         (mem_alloc_w_at): Likewise.
2159         (mem_read): Don't incorrectly return previous errno, remove unused
2160         third argument to alloc function.
2161         (mem_write): Likewise.
2162         (mem_set): Likewise.
2163         (open_internal): Don't set alloc_r_at pointer.
2164         * io/fbuf.c: New file.
2166 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2168         * libgfortran.h (gfc_char4_t): New type.
2169         (GFC_SIZE_OF_CHAR_KIND): New macro.
2170         (compare_string): Adjust prototype.
2171         (compare_string_char4): New prototype.
2172         * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
2173         _gfortran_adjustr_char4, _gfortran_compare_string_char4,
2174         _gfortran_concat_string_char4, _gfortran_string_index_char4,
2175         _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
2176         _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
2177         _gfortran_string_verify_char4.
2178         * intrinsics/string_intrinsics_inc.c: New file from content of
2179         string_intrinsics.c with types replaced by macros.
2180         * intrinsics/string_intrinsics.c: Move content to
2181         string_intrinsics_inc.c.
2183 2008-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2185         PR libfortran/36202
2186         * io/list_read (eat_separator): Handle the CR-LF case correctly.
2188 2008-05-09  Julian Brown  <julian@codesourcery.com>
2190         * Makefile.am (LTLDFLAGS): New.
2191         (libgfortran_la_LDFLAGS): Use above.
2192         * Makefile.in: Regenerate.
2194 2008-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2196         PR libfortran/36131
2197         * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
2198         (next_record_w): Likewise.
2200 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2202         PR libfortran/35995
2203         * m4/ifunction_logical.m4:  If the extent of "array"
2204         is less than zero, set it to zero.  Use an explicit
2205         flag for breaking out of the main loop to avoid, because
2206         the data pointer for "array" may be NULL for an empty
2207         array.
2208         * m4/ifunction.m4:  Likewise.
2209         * generated/all_l1.c: Regenerated.
2210         * generated/all_l16.c: Regenerated.
2211         * generated/all_l2.c: Regenerated.
2212         * generated/all_l4.c: Regenerated.
2213         * generated/all_l8.c: Regenerated.
2214         * generated/any_l1.c: Regenerated.
2215         * generated/any_l16.c: Regenerated.
2216         * generated/any_l2.c: Regenerated.
2217         * generated/any_l4.c: Regenerated.
2218         * generated/any_l8.c: Regenerated.
2219         * generated/count_16_l.c: Regenerated.
2220         * generated/count_1_l.c: Regenerated.
2221         * generated/count_2_l.c: Regenerated.
2222         * generated/count_4_l.c: Regenerated.
2223         * generated/count_8_l.c: Regenerated.
2224         * generated/maxloc1_16_i1.c: Regenerated.
2225         * generated/maxloc1_16_i16.c: Regenerated.
2226         * generated/maxloc1_16_i2.c: Regenerated.
2227         * generated/maxloc1_16_i4.c: Regenerated.
2228         * generated/maxloc1_16_i8.c: Regenerated.
2229         * generated/maxloc1_16_r10.c: Regenerated.
2230         * generated/maxloc1_16_r16.c: Regenerated.
2231         * generated/maxloc1_16_r4.c: Regenerated.
2232         * generated/maxloc1_16_r8.c: Regenerated.
2233         * generated/maxloc1_4_i1.c: Regenerated.
2234         * generated/maxloc1_4_i16.c: Regenerated.
2235         * generated/maxloc1_4_i2.c: Regenerated.
2236         * generated/maxloc1_4_i4.c: Regenerated.
2237         * generated/maxloc1_4_i8.c: Regenerated.
2238         * generated/maxloc1_4_r10.c: Regenerated.
2239         * generated/maxloc1_4_r16.c: Regenerated.
2240         * generated/maxloc1_4_r4.c: Regenerated.
2241         * generated/maxloc1_4_r8.c: Regenerated.
2242         * generated/maxloc1_8_i1.c: Regenerated.
2243         * generated/maxloc1_8_i16.c: Regenerated.
2244         * generated/maxloc1_8_i2.c: Regenerated.
2245         * generated/maxloc1_8_i4.c: Regenerated.
2246         * generated/maxloc1_8_i8.c: Regenerated.
2247         * generated/maxloc1_8_r10.c: Regenerated.
2248         * generated/maxloc1_8_r16.c: Regenerated.
2249         * generated/maxloc1_8_r4.c: Regenerated.
2250         * generated/maxloc1_8_r8.c: Regenerated.
2251         * generated/maxval_i1.c: Regenerated.
2252         * generated/maxval_i16.c: Regenerated.
2253         * generated/maxval_i2.c: Regenerated.
2254         * generated/maxval_i4.c: Regenerated.
2255         * generated/maxval_i8.c: Regenerated.
2256         * generated/maxval_r10.c: Regenerated.
2257         * generated/maxval_r16.c: Regenerated.
2258         * generated/maxval_r4.c: Regenerated.
2259         * generated/maxval_r8.c: Regenerated.
2260         * generated/minloc1_16_i1.c: Regenerated.
2261         * generated/minloc1_16_i16.c: Regenerated.
2262         * generated/minloc1_16_i2.c: Regenerated.
2263         * generated/minloc1_16_i4.c: Regenerated.
2264         * generated/minloc1_16_i8.c: Regenerated.
2265         * generated/minloc1_16_r10.c: Regenerated.
2266         * generated/minloc1_16_r16.c: Regenerated.
2267         * generated/minloc1_16_r4.c: Regenerated.
2268         * generated/minloc1_16_r8.c: Regenerated.
2269         * generated/minloc1_4_i1.c: Regenerated.
2270         * generated/minloc1_4_i16.c: Regenerated.
2271         * generated/minloc1_4_i2.c: Regenerated.
2272         * generated/minloc1_4_i4.c: Regenerated.
2273         * generated/minloc1_4_i8.c: Regenerated.
2274         * generated/minloc1_4_r10.c: Regenerated.
2275         * generated/minloc1_4_r16.c: Regenerated.
2276         * generated/minloc1_4_r4.c: Regenerated.
2277         * generated/minloc1_4_r8.c: Regenerated.
2278         * generated/minloc1_8_i1.c: Regenerated.
2279         * generated/minloc1_8_i16.c: Regenerated.
2280         * generated/minloc1_8_i2.c: Regenerated.
2281         * generated/minloc1_8_i4.c: Regenerated.
2282         * generated/minloc1_8_i8.c: Regenerated.
2283         * generated/minloc1_8_r10.c: Regenerated.
2284         * generated/minloc1_8_r16.c: Regenerated.
2285         * generated/minloc1_8_r4.c: Regenerated.
2286         * generated/minloc1_8_r8.c: Regenerated.
2287         * generated/minval_i1.c: Regenerated.
2288         * generated/minval_i16.c: Regenerated.
2289         * generated/minval_i2.c: Regenerated.
2290         * generated/minval_i4.c: Regenerated.
2291         * generated/minval_i8.c: Regenerated.
2292         * generated/minval_r10.c: Regenerated.
2293         * generated/minval_r16.c: Regenerated.
2294         * generated/minval_r4.c: Regenerated.
2295         * generated/minval_r8.c: Regenerated.
2296         * generated/product_c10.c: Regenerated.
2297         * generated/product_c16.c: Regenerated.
2298         * generated/product_c4.c: Regenerated.
2299         * generated/product_c8.c: Regenerated.
2300         * generated/product_i1.c: Regenerated.
2301         * generated/product_i16.c: Regenerated.
2302         * generated/product_i2.c: Regenerated.
2303         * generated/product_i4.c: Regenerated.
2304         * generated/product_i8.c: Regenerated.
2305         * generated/product_r10.c: Regenerated.
2306         * generated/product_r16.c: Regenerated.
2307         * generated/product_r4.c: Regenerated.
2308         * generated/product_r8.c: Regenerated.
2309         * generated/sum_c10.c: Regenerated.
2310         * generated/sum_c16.c: Regenerated.
2311         * generated/sum_c4.c: Regenerated.
2312         * generated/sum_c8.c: Regenerated.
2313         * generated/sum_i1.c: Regenerated.
2314         * generated/sum_i16.c: Regenerated.
2315         * generated/sum_i2.c: Regenerated.
2316         * generated/sum_i4.c: Regenerated.
2317         * generated/sum_i8.c: Regenerated.
2318         * generated/sum_r10.c: Regenerated.
2319         * generated/sum_r16.c: Regenerated.
2320         * generated/sum_r4.c: Regenerated.
2321         * generated/sum_r8.c: Regenerated.
2323 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2325         PR libfortran/35990
2326         * intrinsics/pack_generic.c:  Really commit.
2328 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2330         PR libfortran/35990
2331         * intrinsics/pack_generic.c:  If an extent of the source
2332         array is less then zero, set it to zero.  Set the source
2333         pointer to NULL if the source size is zero.  Set the total
2334         number of elements to zero if the vector has an extent
2335         less or equal to zero.
2336         * m4/pack.m4:  Set the source pointer to NULL if the
2337         source array is zero-sized.  Set the total number of
2338         elemements to zero if the vector has an extent less or
2339         equal to zero.
2340         * generated/pack_i1.c:  Regenerated.
2341         * generated/pack_i2.c:  Regenerated.
2342         * generated/pack_i4.c:  Regenerated.
2343         * generated/pack_i8.c:  Regenerated.
2344         * generated/pack_i16.c:  Regenerated.
2345         * generated/pack_r4.c:  Regenerated.
2346         * generated/pack_r8.c:  Regenerated.
2347         * generated/pack_r10.c:  Regenerated.
2348         * generated/pack_r16.c:  Regenerated.
2349         * generated/pack_c4.c:  Regenerated.
2350         * generated/pack_c8.c:  Regenerated.
2351         * generated/pack_c10.c:  Regenerated.
2352         * generated/pack_c16.c:  Regenerated.
2354 2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2356         PR libfortran/36094
2357         * runtime/error.c (show_locus): Provide modified error message when
2358         filename has not yet been associated with a unit number.
2359         * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
2361 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2363         * intrinsics/selected_char_kind.c: New file.
2364         * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
2365         * Makefile.am: Add intrinsics/selected_char_kind.c.
2366         * Makefile.in: Regenerate.
2368 2008-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
2370         PR libfortran/35993
2371         * ifunction.m4 (SCALAR_ARRAY_FUNCTION):  Use correct
2372         implementation for multi-dimensional return arrays when
2373         the mask is .false.
2374         * generated/maxloc1_16_i1.c: Regenerated.
2375         * generated/maxloc1_16_i16.c: Regenerated.
2376         * generated/maxloc1_16_i2.c: Regenerated.
2377         * generated/maxloc1_16_i4.c: Regenerated.
2378         * generated/maxloc1_16_i8.c: Regenerated.
2379         * generated/maxloc1_16_r10.c: Regenerated.
2380         * generated/maxloc1_16_r16.c: Regenerated.
2381         * generated/maxloc1_16_r4.c: Regenerated.
2382         * generated/maxloc1_16_r8.c: Regenerated.
2383         * generated/maxloc1_4_i1.c: Regenerated.
2384         * generated/maxloc1_4_i16.c: Regenerated.
2385         * generated/maxloc1_4_i2.c: Regenerated.
2386         * generated/maxloc1_4_i4.c: Regenerated.
2387         * generated/maxloc1_4_i8.c: Regenerated.
2388         * generated/maxloc1_4_r10.c: Regenerated.
2389         * generated/maxloc1_4_r16.c: Regenerated.
2390         * generated/maxloc1_4_r4.c: Regenerated.
2391         * generated/maxloc1_4_r8.c: Regenerated.
2392         * generated/maxloc1_8_i1.c: Regenerated.
2393         * generated/maxloc1_8_i16.c: Regenerated.
2394         * generated/maxloc1_8_i2.c: Regenerated.
2395         * generated/maxloc1_8_i4.c: Regenerated.
2396         * generated/maxloc1_8_i8.c: Regenerated.
2397         * generated/maxloc1_8_r10.c: Regenerated.
2398         * generated/maxloc1_8_r16.c: Regenerated.
2399         * generated/maxloc1_8_r4.c: Regenerated.
2400         * generated/maxloc1_8_r8.c: Regenerated.
2401         * generated/maxval_i1.c: Regenerated.
2402         * generated/maxval_i16.c: Regenerated.
2403         * generated/maxval_i2.c: Regenerated.
2404         * generated/maxval_i4.c: Regenerated.
2405         * generated/maxval_i8.c: Regenerated.
2406         * generated/maxval_r10.c: Regenerated.
2407         * generated/maxval_r16.c: Regenerated.
2408         * generated/maxval_r4.c: Regenerated.
2409         * generated/maxval_r8.c: Regenerated.
2410         * generated/minloc1_16_i1.c: Regenerated.
2411         * generated/minloc1_16_i16.c: Regenerated.
2412         * generated/minloc1_16_i2.c: Regenerated.
2413         * generated/minloc1_16_i4.c: Regenerated.
2414         * generated/minloc1_16_i8.c: Regenerated.
2415         * generated/minloc1_16_r10.c: Regenerated.
2416         * generated/minloc1_16_r16.c: Regenerated.
2417         * generated/minloc1_16_r4.c: Regenerated.
2418         * generated/minloc1_16_r8.c: Regenerated.
2419         * generated/minloc1_4_i1.c: Regenerated.
2420         * generated/minloc1_4_i16.c: Regenerated.
2421         * generated/minloc1_4_i2.c: Regenerated.
2422         * generated/minloc1_4_i4.c: Regenerated.
2423         * generated/minloc1_4_i8.c: Regenerated.
2424         * generated/minloc1_4_r10.c: Regenerated.
2425         * generated/minloc1_4_r16.c: Regenerated.
2426         * generated/minloc1_4_r4.c: Regenerated.
2427         * generated/minloc1_4_r8.c: Regenerated.
2428         * generated/minloc1_8_i1.c: Regenerated.
2429         * generated/minloc1_8_i16.c: Regenerated.
2430         * generated/minloc1_8_i2.c: Regenerated.
2431         * generated/minloc1_8_i4.c: Regenerated.
2432         * generated/minloc1_8_i8.c: Regenerated.
2433         * generated/minloc1_8_r10.c: Regenerated.
2434         * generated/minloc1_8_r16.c: Regenerated.
2435         * generated/minloc1_8_r4.c: Regenerated.
2436         * generated/minloc1_8_r8.c: Regenerated.
2437         * generated/minval_i1.c: Regenerated.
2438         * generated/minval_i16.c: Regenerated.
2439         * generated/minval_i2.c: Regenerated.
2440         * generated/minval_i4.c: Regenerated.
2441         * generated/minval_i8.c: Regenerated.
2442         * generated/minval_r10.c: Regenerated.
2443         * generated/minval_r16.c: Regenerated.
2444         * generated/minval_r4.c: Regenerated.
2445         * generated/minval_r8.c: Regenerated.
2446         * generated/product_c10.c: Regenerated.
2447         * generated/product_c16.c: Regenerated.
2448         * generated/product_c4.c: Regenerated.
2449         * generated/product_c8.c: Regenerated.
2450         * generated/product_i1.c: Regenerated.
2451         * generated/product_i16.c: Regenerated.
2452         * generated/product_i2.c: Regenerated.
2453         * generated/product_i4.c: Regenerated.
2454         * generated/product_i8.c: Regenerated.
2455         * generated/product_r10.c: Regenerated.
2456         * generated/product_r16.c: Regenerated.
2457         * generated/product_r4.c: Regenerated.
2458         * generated/product_r8.c: Regenerated.
2459         * generated/sum_c10.c: Regenerated.
2460         * generated/sum_c16.c: Regenerated.
2461         * generated/sum_c4.c: Regenerated.
2462         * generated/sum_c8.c: Regenerated.
2463         * generated/sum_i1.c: Regenerated.
2464         * generated/sum_i16.c: Regenerated.
2465         * generated/sum_i2.c: Regenerated.
2466         * generated/sum_i4.c: Regenerated.
2467         * generated/sum_i8.c: Regenerated.
2468         * generated/sum_r10.c: Regenerated.
2469         * generated/sum_r16.c: Regenerated.
2470         * generated/sum_r4.c: Regenerated.
2471         * generated/sum_r8.c: Regenerated.
2473 2008-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
2475         PR libfortran/35960
2476         * m4/reshape.m4:  Fix typo in last commit.
2477         * generated/reshape_i4.c:  Regererated.
2478         * generated/reshape_i8.c:  Regenerated.
2479         * generated/reshape_i16.c:  Regenerated.
2480         * generated/reshape_r4.c:  Regenerated.
2481         * generated/reshape_r8.c:  Regenerated.
2482         * generated/reshape_r10.c:  Regenerated.
2483         * generated/reshape_r16.c:  Regenerated.
2484         * generated/reshape_c4.c:  Regenerated.
2485         * generated/reshape_c8.c:  Regenerated.
2486         * generated/reshape_c10.c:  Regenerated.
2487         * generated/reshape_c16.c:  Regenerated.
2489 2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2491         * intrinsics/time_1.h (__time_1): Remove unused variable.
2493 2008-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2495         PR libfortran/35988
2496         * m4/matmul.m4:  Only issue a runtime error if extents are
2497         non-zero.
2498         * generated/matmul_i1.c:  Regenerated.
2499         * generated/matmul_i2.c:  Regenerated.
2500         * generated/matmul_i4.c:  Regenerated.
2501         * generated/matmul_i8.c:  Regenerated.
2502         * generated/matmul_i16.c:  Regenerated.
2503         * generated/matmul_r4.c:  Regenerated.
2504         * generated/matmul_r8.c:  Regenerated.
2505         * generated/matmul_r10.c:  Regenerated.
2506         * generated/matmul_r16.c:  Regenerated.
2507         * generated/matmul_c4.c:  Regenerated.
2508         * generated/matmul_c8.c:  Regenerated.
2509         * generated/matmul_c10.c:  Regenerated.
2510         * generated/matmul_c16.c:  Regenerated.
2512 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2514         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
2515         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
2516         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
2517         (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
2518         (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
2519         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
2520         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
2521         (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
2522         Fix cache variable names.
2523         * configure, Makefile.in: Regenerate.
2525 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2527         PR fortran/35991
2528         * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
2530 2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
2532         PR libfortran/35960
2533         * intrinsics/reshape_generic.c (reshape_internal): If the size
2534         of the resized array is zero, as determined by the SHAPE
2535         argument, return early.
2536         * m4/reshape.m4:  Likewise.
2537         * generated/reshape_i4.c:  Regererated.
2538         * generated/reshape_i8.c:  Regenerated.
2539         * generated/reshape_i16.c:  Regenerated.
2540         * generated/reshape_r4.c:  Regenerated.
2541         * generated/reshape_r8.c:  Regenerated.
2542         * generated/reshape_r10.c:  Regenerated.
2543         * generated/reshape_r16.c:  Regenerated.
2544         * generated/reshape_c4.c:  Regenerated.
2545         * generated/reshape_c8.c:  Regenerated.
2546         * generated/reshape_c10.c:  Regenerated.
2547         * generated/reshape_c16.c:  Regenerated.
2549 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2551         PR bootstrap/35457
2552         * aclocal.m4: Regenerate.
2553         * configure: Regenerate.
2555 2008-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2557         PR libfortran/32972
2558         * intrinsics/spread_generic.c (spread):  Use spread_i2()
2559         for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
2561 2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
2562         Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2564         PR libfortran/32972
2565         PR libfortran/32512
2566         configure.ac:  Add test for uintptr_t.
2567         configure:  Regenerated.
2568         config.h.in:  Regenerated.
2569         * libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
2570         GFC_DTYPE_DERIVED_2:  New macro.
2571         GFC_DTYPE_DERIVED_4:  New macro.
2572         GFC_DTYPE_DERIVED_8:  New macro.
2573         GFC_DTYPE_DERIVED_16:  New macro.
2574         GFC_UNALIGNED_2:  New macro.
2575         GFC_UNALIGNED_4:  New macro.
2576         GFC_UNALIGNED_8:  New macro.
2577         GFC_UNALIGNED_16:  New macro.
2578         intptr_t:  Define if we don't have it.
2579         uintptr_t:  Likewise.
2580         * runtime/backtrace.c (show_backtrace):  Use intptr_t.
2581         * intrinsics/signal.c (signal_sub):  Likewise.
2582         (signal_sub_int):  Likewise.
2583         (alarm_sub_int_i4):  Likewise.
2584         * intrinsics/spread_generic.c (spread):  Use the integer
2585         routines for handling derived types of sizes 1, 2, 4, 8 and 16
2586         if the alignment of all pointers is correct.
2587         (spread_scalar):  Likewise.
2588         * intrinsics/pack_generic.c (pack):  Likewise.
2589         Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
2590         * intrinsics/unpack_generic.c (unpack1):  Likewise.
2591         (unpack0):  Likewise.
2592         * runtime/in_pack_generic.c (internal_pack):  Likewise.
2593         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
2595 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2597         * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
2598         (nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
2599         recursive call.  Use snprintf instead of sprintf when %s nl->var_name
2600         is used.
2601         (nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
2602         nml_read_obj call.  Use snprintf instead of sprintf when %s
2603         nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
2604         of parse_err_msg array.  Append " for namelist variable " and
2605         nl->var_name to it.
2606         (namelist_read): Increase size of nml_err_msg array to 200.  Pass
2607         sizeof nml_err_msg as extra argument to nml_get_obj_data.
2609 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2611         PR fortran/25829 28655
2612         * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
2613         and flags.status. (st_open): Initialize flags.async.
2614         * io/list_read.c (read_charactor): Use delim_status instead of
2615         flags.delim.
2616         * io/read.c (read_x): Use pad_status instead of flags.pad.
2617         * io/inquire.c (inquire_via_unit): Add new checks.
2618         (inquire_via_filename): Likewise.
2619         * io/io.h (st_parameter_inquire): Add new flags.
2620         (st_parameter_dt): Likewise.
2621         * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
2622         flags.async.
2623         * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
2624         pad_status instead of flags.pad. (read_block): Likewise.
2625         (data_transfer_init): Set flags.async and add checks.
2626         * io/write.c (write_character): Use delim_status.
2627         (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
2628         (namelist_write): Likewise.
2630 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2632         PR fortran/25829 28655
2633         * gfortran.map: Add new symbol, _gfortran_st_wait.
2634         * libgfortran.h (st_paramter_common): Add new I/O parameters.
2635         * open.c (st_option decimal_opt[], st_option encoding_opt[],
2636         st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
2637         parameter option arrays. (edit_modes): Add checks for new parameters.
2638         (new_unit): Likewise. (st_open): Likewise.
2639         * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
2640         (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
2641         (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
2642         * read.c (read_a): Use decimal status flag to allow comma in place of a
2643         decimal point. (read_f): Allow comma as acceptable character in float.
2644         According to decimal flag, substitute a period for a comma.
2645         (read_x): If decimal status flag is comma, disable the read_comma flag,
2646         not allowing comma as a delimiter, an extension otherwise.
2647         * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
2648         unit_async): New enumerators. Add all new I/O parameters.
2649         * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
2650         (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
2651         (fd_sfree): Use new enumerator. (fd_read): Likewise.
2652         (fd_write): Likewise. (fd_close): Fix whitespace.
2653         (fd_open): Use new enumertors. (tempfile, regular_file,
2654         open_external): Fix whitespace. (output_stream, error_stream): Set
2655         method. (stream_offset): Fix whitespace.
2656         * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
2657         option arrays.  (formatted_transfer_scalar): Set sf_read_comma flag
2658         based on new decimal_status flag. (data_transfer_init): Initialize new
2659         parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
2660         * format.c: (format_lex): Add format specifiers DP, DC, and D.
2661         (parse_format_list): Parse the new specifiers.
2662         * write.c (write_decimal): Use new sign enumerators to set the sign.
2663         (write_complex): Handle decimal comma and semi-colon separator.
2664         (nml_write_obj): Likewise.
2665         * write_float.def: Revise sign enumerators. (calculate_sign): Use new
2666         sign enumerators. (output_float): Likewise. Use new decimal_status flag
2667         to set the decimal character to a point or a comma.
2668         
2669 2008-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
2671         PR libfortran/32972
2672         PR libfortran/32512
2673         * Makefile.am:  Add new variable, i_spread_c, containing
2674         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
2675         spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
2676         spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
2677         * Makefile.in:  Regenerated.
2678         * libgfortran.h:  Add prototypes for spread_i1, spread_i2,
2679         spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
2680         spread_c4, spread_c8, spread_c10, spread_c16,
2681         spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
2682         spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
2683         spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
2684         spread_scalar_c10 and spread_scalar_c16.
2685         Add macros to isolate both type and size information
2686         from array descriptors with a single mask operation.
2687         * intrinsics/spread_generic.c:  Add calls to specific
2688         spread functions.
2689         * m4/spread.m4:  New file.
2690         * generated/spread_i1.c:  New file.
2691         * generated/spread_i2.c:  New file.
2692         * generated/spread_i4.c:  New file.
2693         * generated/spread_i8.c:  New file.
2694         * generated/spread_i16.c:  New file.
2695         * generated/spread_r4.c:  New file.
2696         * generated/spread_r8.c:  New file.
2697         * generated/spread_r10.c:  New file.
2698         * generated/spread_r16.c:  New file.
2699         * generated/spread_c4.c:  New file.
2700         * generated/spread_c8.c:  New file.
2701         * generated/spread_c10.c:  New file.
2702         * generated/spread_c16.c:  New file.
2704 2008-03-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2706         PR libfortran/35699
2707         * io/transfer.c (write_buf):  Don't pad the record, just return if the
2708         data is NULL.  (next_record_w): If there are bytes left in the record
2709         for unformatted direct I/O, pad out the record with zero bytes.
2711 2008-03-28  Tobias Burnus  <burnus@net-b.de>
2713         PR fortran/35721
2714         * intrinsics/associated.c (associated): Ignore different
2715         stride of pointer vs. target if only one element is referred.
2717 2008-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2719         * io/unix.c (fd_close):  Do not close STDIN.
2721 2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org
2723         PR libfortran/32972
2724         * Makefile.am:  Add new variable, i_unpack_c, containing
2725         unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
2726         unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
2727         unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
2728         and unpack_c16.c
2729         Add i_unpack_c to gfor_built_src.
2730         Add rule to generate i_unpack_c from m4/unpack.m4.
2731         * Makefile.in:  Regenerated.
2732         * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
2733         unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
2734         unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
2735         unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
2736         unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
2737         unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
2738         * intrinsics/pack_generic.c (unpack1):  Add calls to specific
2739         unpack1 functions.
2740         (unpack0):  Add calls to specific unpack0 functions.
2741         * m4/unpack.m4:  New file.
2742         * generated/unpack_i1.c:  New file.
2743         * generated/unpack_i2.c:  New file.
2744         * generated/unpack_i4.c:  New file.
2745         * generated/unpack_i8.c:  New file.
2746         * generated/unpack_i16.c:  New file.
2747         * generated/unpack_r4.c:  New file.
2748         * generated/unpack_r8.c:  New file.
2749         * generated/unpack_r10.c:  New file.
2750         * generated/unpack_r16.c:  New file.
2751         * generated/unpack_c4.c:  New file.
2752         * generated/unpack_c8.c:  New file.
2753         * generated/unpack_c10.c:  New file.
2754         * generated/unpack_c16.c:  New file.
2756 2008-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2758         PR libfortran/35632
2759         * io/transfer.c (data_transfer_init):  Fix whitespace.
2760         (next_record_w): Truncate the file only if the stream
2761         position is short of the file end.
2763 2008-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2765         * intrinsics/pack_generic.c:  Fix typo.
2767 2008-03-21  Janne Blomqvist  <jb@gcc.gnu.org>
2769         * gfortran.map: Move erfc_scaled symbols to new symbol node
2770         GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
2772 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
2774         PR libfortran/32972
2775         * runtime/in_pack_generic.c (internal_pack):  Call correct
2776         function, pack_i16, for GFC_INTEGER_16.
2778 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
2780         PR libfortran/32972
2781         * Makefile.am:  Add new variable, i_pack_c, containing
2782         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
2783         pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
2784         pack_c8.c, pack_c10.c, pack_c16.c.
2785         Add m4/pack.m4 to m4_files.
2786         Add i_pack_c to gfor_built_src.
2787         Add rule to generate i_pack_c from m4/pack.m4.
2788         * Makefile.in:  Regenerated.
2789         * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
2790         pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
2791         pack_c10, pack_c16.
2792         * intrinsics/pack_generic.c:  Add calls to specific
2793         pack functions.
2794         * m4/pack.m4:  New file.
2795         * generated/pack_i1.c:  New file.
2796         * generated/pack_i2.c:  New file.
2797         * generated/pack_i4.c:  New file.
2798         * generated/pack_i8.c:  New file.
2799         * generated/pack_i16.c:  New file.
2800         * generated/pack_r4.c:  New file.
2801         * generated/pack_r8.c:  New file.
2802         * generated/pack_r10.c:  New file.
2803         * generated/pack_r16.c:  New file.
2804         * generated/pack_c4.c:  New file.
2805         * generated/pack_c8.c:  New file.
2806         * generated/pack_c10.c:  New file.
2807         * generated/pack_c16.c:  New file.
2809 2008-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2811         PR libfortran/35627
2812         * io/list_read.c (free_line): Clear the line buffer enable flag and
2813         reset the index into line_buffer, aka item_count.
2814         (next_char): Cleanup whitespace.
2815         (read_logical): Use unget_char to assure that the first character of the
2816         bad logical is saved in case it is part of an object name. Remove the
2817         clearing of index and flag that is now in free_line.
2818         (read_real): Likewise.
2820 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
2822         PR libfortran/32972
2823         * runtime/in_pack_generic.c (internal_pack):  Fix typo in
2824         last commit.
2826 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
2828         PR libfortran/32972
2829         * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
2830         in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
2831         (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
2832         in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
2833         in_unpack_r16.c.
2834         * Makefile.in: Regenerate.
2835         * libgfortran.h:  Add prototypes for internal_pack_1,
2836         internal_pack_2, internal_pack_16, internal_pack_r4,
2837         internal_pack_r8, internal_pack_r10, internal_pack_r16,
2838         internal_pack_c10 and internal_pack_c16.  Add prototypes for
2839         internal_unpack_1, internal_unpack_2, internal_unpack_16,
2840         internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
2841         internal_unpack_r16, internal_unpack_c10 and
2842         internal_unpack_c16.
2843         * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
2844         of hardwired sizes.
2845         Add calls to internal_pack_1, internal_pack_2,
2846         internal_pack_16, internal_pack_r4, internal_pack_r8,
2847         internal_pack_r10, internal_pack_r16, internal_pack_c10 and
2848         internal_pack_c16.
2849         * runtime/in_unpack_generic.c (internal_unpack):  Use sizeof
2850         instead of hardwired sizes.
2851         Add calls to internal_unpack_1, internal_unpack_2,
2852         internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
2853         internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
2854         and internal_unpack_c16.
2855         * generated/in_pack_r4.c:  New file.
2856         * generated/in_pack_i2.c:  New file.
2857         * generated/in_unpack_i1.c:  New file.
2858         * generated/in_pack_r10.c:  New file.
2859         * generated/in_unpack_r4.c:  New file.
2860         * generated/in_unpack_i2.c:  New file.
2861         * generated/in_unpack_r16.c:  New file.
2862         * generated/in_pack_r8.c:  New file.
2863         * generated/in_unpack_r10.c:  New file.
2864         * generated/in_unpack_r8.c:  New file.
2865         * generated/in_pack_r16.c:  New file.
2866         * generated/in_pack_i1.c:  New file.
2868 2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2870         PR libfortran/35617
2871         * io/list_read.c (eat_separator): If next character after eatline is '!'
2872         then eatline again. 
2874 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2876         * aclocal.m4: Regenerate.
2877         * configure: Likewise.
2878         * Makefile.in: Likewise.
2880 2008-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2882         PR libfortran/35524
2883         * intrinsics/erfc_scaled_inc.c: Only define the long double
2884         variant of erfc_scaled if expl is available.
2886 2008-03-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2888         PR libfortran/32812
2889         * intrinsics/random.c (scramble_seed, unscramble_seed): New
2890         functions.
2891         (random_seed_i4): Scramble the seed the user gives us before
2892         storing it, and unscramble it when we return it back later.
2894 2008-03-05  Hans-Peter Nilsson  <hp@axis.com>
2896         PR libfortran/35293
2897         * io/unix.c (fd_truncate): Fold s->special_file case into
2898         success case of ftruncate/chsize call instead of the failure case.
2899         Make failure case actually return failure.  Properly update stream
2900         pointers on failure.  Call runtime_error for targets without
2901         neither ftruncate nor chsize where such a call would be needed.
2903 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2905         PR fortran/33197
2906         * intrinsics/erfc_scaled_inc.c: New file.
2907         * intrinsics/erfc_scaled.c: New file.
2908         * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
2909         * Makefile.am: Add intrinsics/erfc_scaled.c.
2910         * config.h.in: Regenerate.
2911         * configure: Regenerate.
2912         * Makefile.in: Regenerate.
2914 2008-03-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2916         PR libfortran/35355
2917         * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
2918         for mingw.
2920 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
2922         PR libfortran/35063
2923         * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
2924         instead of macro kludge.
2925         
2926 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2928         PR fortran/29549
2929         * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
2930         libgfortran.
2931         * Makefile.in: Regenerated.
2933 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2935         * m4/ifunction_logical.m4: Add casts to get rid of warnings.
2936         * generated/all_l1.c: Regenerate.
2937         * generated/all_l2.c: Regenerate.
2938         * generated/all_l4.c: Regenerate.
2939         * generated/all_l8.c: Regenerate.
2940         * generated/all_l16.c: Regenerate.
2941         * generated/any_l1.c: Regenerate.
2942         * generated/any_l2.c: Regenerate.
2943         * generated/any_l4.c: Regenerate.
2944         * generated/any_l8.c: Regenerate.
2945         * generated/any_l16.c: Regenerate.
2946         * generated/count_1_l.c: Regenerate.
2947         * generated/count_2_l.c: Regenerate.
2948         * generated/count_4_l.c: Regenerate.
2949         * generated/count_8_l.c: Regenerate.
2950         * generated/count_16_l.c: Regenerate.
2952 2008-02-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2954         PR libfortran/32841
2955         * acinclude.m4: Don't use HAVE_MATH_H.
2956         * configure: Regenerate.
2958 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2960         PR libfortran/35132
2961         * io/transfer.c (next_record_w): Truncate after the last record for
2962         STREAM I/O.
2964         PR libfortran/34954
2965         * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
2967         PR libfortran/34974
2968         * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
2969         is less than zero. (next_record_w): Use sseek to position the file to
2970         the max position reached.
2972 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2974         PR libfortran/35036
2975         * write_float.def (output_float):  Add error checks for zero digits
2976         after decimal point in E and D format specifiers.
2977         
2978 2008-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2980         PR libfortran/35063
2981         * io/unit.c (destroy_unit_mutex): New function that uses
2982         __gthread_mutex_destroy_function or pthread_mutex_destroy after
2983         unlocking and before free_mem for final closure of I/O unit.
2984         (delete_root): Use new function.
2985         (free_internal_unit): Likewise.
2986         (close_unit_1): Likewise.
2988 2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
2990         PR libfortran/35001
2991         * m4/shape.m4:  Return 0 for extents <= 0.
2992         * generated/shape_i4.c:  Regenerated.
2993         * generated/shape_i8.c:  Regenerated.
2994         * generated/shape_i16.c:  Regenerated.
2996 2008-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
2998         PR libfortran/34980
2999         * m4/shape.m4:  If return array is empty, return early.
3000         * generated/shape_i4.c:  Regenerated.
3001         * generated/shape_i8.c:  Regenerated.
3002         * generated/shape_i16.c:  Regenerated.
3004 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
3006         PR libfofortran/34887
3007         * io/transfer.c (next_record_w): Always move to the farthest
3008         position when completing the record (also when we are
3009         processing a slash edit descriptor).
3011 2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3013         PR libfortran/34876
3014         * io/transfer.c (write_buf): Handle case of zero sized array.
3015         (transfer_array): Set data pointer to NULL and size to zero.  Then
3016         make a data transfer and return.
3017         
3018 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
3020         * configure: Regenerate.
3022 2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3024         PR libfortran/34795
3025         * io/inquire.c (inquire_via_unit): If a unit is opened, return values
3026         according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
3027         (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
3028         FORAMATTED, and UNFORMATTED inquiries.
3029         * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
3030         for files that are not opened. (inquire_direct): Same.
3031         (inquire_formatted): Same.
3032         
3033 2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3035         PR libfortran/34782
3036         * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
3037         of the current max_pos or the newly calculated position.
3039 2008-01-18  Tobias Burnus  <burnus@net-b.de>
3041         * io/write.c (write_real): Increase default precision
3042         for REAL(16) by one.
3044 2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>
3046         PR libfortran/34669
3047         * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
3048         to avoid piping the -fdump-parse-tree output to the assembler
3049         when configuring with -pipe.
3050         * mk-sik-inc.sh: Likewise.
3051         * mk-srk-inc.sh: Likewise.
3053 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
3055         PR libfortran/34671
3056         * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
3057         _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
3058         _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
3059         _gfortran_count_8_l Removed _gfortran_count_16_l16,
3060         _gfortran_count_16_l4, _gfortran_count_16_l8,
3061         _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
3062         _gfortran_count_8_l16, _gfortran_count_8_l4 and
3063         _gfortran_count_8_l8.
3064         * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
3065         i_any_c.  Added generated/all_l1. and generated/all_l2.c to
3066         i_all_c.  Removed generated/count_4_l4.c, generated/count_8_l4.c,
3067         generated/count_16_l4.c, generated/count_4_l8.c,
3068         generated/count_8_l8.c, generated/count_16_l8.c,
3069         generated/count_4_l16.c, generated/count_8_l16.c, and
3070         generated/count_16_l16.c from i_count_c.  Added count_1_l.c,
3071         count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
3072         i_count_c.  I_M4_DEPS2 depends on ifunction_logical.m4, for
3073         any of the files generated from all.m4, any.m4 and count.m4.
3074         * Makefile.in:  Regenerated.
3075         * m4/ifunction_logical.m4:  New file.  Use
3076         GFC_LOGICAL_1 pointer for access to source arrays.
3077         * m4/any.m4:  Include ifunction_logical.m4 instead of
3078         ifunction.m4.  Don't check atype_name.
3079         * m4/all.m4:  Likewise.
3080         * m4/count.m4:  Likewise.
3081         * generated/any_l1.c:  New file.
3082         * generated/any_l2.c:  New file.
3083         * generated/all_l1.c:  New file.
3084         * generated/count_1_l.c:  New file.
3085         * generated/count_2_l.c:  New file.
3086         * generated/count_4_l.c:  New file.
3087         * generated/count_8_l.c:  New file.
3088         * generated/count_16_l.c:  New file.
3089         * generated/any_l4.c:  Regenerated.
3090         * generated/any_l8.c:  Regenerated.
3091         * generated/any_l16.c:  Regenerated.
3092         * generated/all_l4.c: Regenerated.
3093         * generated/all_l8.c: Regenerated.
3094         * generated/all_l16.c: Regenerated.
3095         * generated/count_4_l4.c:  Removed.
3096         * generated/count_4_l8.c:  Removed.
3097         * generated/count_4_l16.c:  Removed.
3098         * generated/count_8_l4.c:  Removed.
3099         * generated/count_8_l8.c:  Removed.
3100         * generated/count_8_l16.c:  Removed.
3101         * generated/count_16_l4.c:  Removed.
3102         * generated/count_16_l8.c:  Removed.
3103         * generated/count_16_l16.c:  Removed.
3105 2008-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
3107         PR libfortran/34746
3108         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Use %ld
3109         in printf format for all bounds checking; cast all
3110         integer-like arguments to runtime_error() to long int.
3111         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3112         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3113         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
3114         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3115         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3116         * generated/all_l16.c: Regenerated.
3117         * generated/all_l4.c: Regenerated.
3118         * generated/all_l8.c: Regenerated.
3119         * generated/any_l16.c: Regenerated.
3120         * generated/any_l4.c: Regenerated.
3121         * generated/any_l8.c: Regenerated.
3122         * generated/count_16_l16.c: Regenerated.
3123         * generated/count_16_l4.c: Regenerated.
3124         * generated/count_16_l8.c: Regenerated.
3125         * generated/count_4_l16.c: Regenerated.
3126         * generated/count_4_l4.c: Regenerated.
3127         * generated/count_4_l8.c: Regenerated.
3128         * generated/count_8_l16.c: Regenerated.
3129         * generated/count_8_l4.c: Regenerated.
3130         * generated/count_8_l8.c: Regenerated.
3131         * generated/maxloc0_16_i1.c: Regenerated.
3132         * generated/maxloc0_16_i16.c: Regenerated.
3133         * generated/maxloc0_16_i2.c: Regenerated.
3134         * generated/maxloc0_16_i4.c: Regenerated.
3135         * generated/maxloc0_16_i8.c: Regenerated.
3136         * generated/maxloc0_16_r10.c: Regenerated.
3137         * generated/maxloc0_16_r16.c: Regenerated.
3138         * generated/maxloc0_16_r4.c: Regenerated.
3139         * generated/maxloc0_16_r8.c: Regenerated.
3140         * generated/maxloc0_4_i1.c: Regenerated.
3141         * generated/maxloc0_4_i16.c: Regenerated.
3142         * generated/maxloc0_4_i2.c: Regenerated.
3143         * generated/maxloc0_4_i4.c: Regenerated.
3144         * generated/maxloc0_4_i8.c: Regenerated.
3145         * generated/maxloc0_4_r10.c: Regenerated.
3146         * generated/maxloc0_4_r16.c: Regenerated.
3147         * generated/maxloc0_4_r4.c: Regenerated.
3148         * generated/maxloc0_4_r8.c: Regenerated.
3149         * generated/maxloc0_8_i1.c: Regenerated.
3150         * generated/maxloc0_8_i16.c: Regenerated.
3151         * generated/maxloc0_8_i2.c: Regenerated.
3152         * generated/maxloc0_8_i4.c: Regenerated.
3153         * generated/maxloc0_8_i8.c: Regenerated.
3154         * generated/maxloc0_8_r10.c: Regenerated.
3155         * generated/maxloc0_8_r16.c: Regenerated.
3156         * generated/maxloc0_8_r4.c: Regenerated.
3157         * generated/maxloc0_8_r8.c: Regenerated.
3158         * generated/maxloc1_16_i1.c: Regenerated.
3159         * generated/maxloc1_16_i16.c: Regenerated.
3160         * generated/maxloc1_16_i2.c: Regenerated.
3161         * generated/maxloc1_16_i4.c: Regenerated.
3162         * generated/maxloc1_16_i8.c: Regenerated.
3163         * generated/maxloc1_16_r10.c: Regenerated.
3164         * generated/maxloc1_16_r16.c: Regenerated.
3165         * generated/maxloc1_16_r4.c: Regenerated.
3166         * generated/maxloc1_16_r8.c: Regenerated.
3167         * generated/maxloc1_4_i1.c: Regenerated.
3168         * generated/maxloc1_4_i16.c: Regenerated.
3169         * generated/maxloc1_4_i2.c: Regenerated.
3170         * generated/maxloc1_4_i4.c: Regenerated.
3171         * generated/maxloc1_4_i8.c: Regenerated.
3172         * generated/maxloc1_4_r10.c: Regenerated.
3173         * generated/maxloc1_4_r16.c: Regenerated.
3174         * generated/maxloc1_4_r4.c: Regenerated.
3175         * generated/maxloc1_4_r8.c: Regenerated.
3176         * generated/maxloc1_8_i1.c: Regenerated.
3177         * generated/maxloc1_8_i16.c: Regenerated.
3178         * generated/maxloc1_8_i2.c: Regenerated.
3179         * generated/maxloc1_8_i4.c: Regenerated.
3180         * generated/maxloc1_8_i8.c: Regenerated.
3181         * generated/maxloc1_8_r10.c: Regenerated.
3182         * generated/maxloc1_8_r16.c: Regenerated.
3183         * generated/maxloc1_8_r4.c: Regenerated.
3184         * generated/maxloc1_8_r8.c: Regenerated.
3185         * generated/maxval_i1.c: Regenerated.
3186         * generated/maxval_i16.c: Regenerated.
3187         * generated/maxval_i2.c: Regenerated.
3188         * generated/maxval_i4.c: Regenerated.
3189         * generated/maxval_i8.c: Regenerated.
3190         * generated/maxval_r10.c: Regenerated.
3191         * generated/maxval_r16.c: Regenerated.
3192         * generated/maxval_r4.c: Regenerated.
3193         * generated/maxval_r8.c: Regenerated.
3194         * generated/minloc0_16_i1.c: Regenerated.
3195         * generated/minloc0_16_i16.c: Regenerated.
3196         * generated/minloc0_16_i2.c: Regenerated.
3197         * generated/minloc0_16_i4.c: Regenerated.
3198         * generated/minloc0_16_i8.c: Regenerated.
3199         * generated/minloc0_16_r10.c: Regenerated.
3200         * generated/minloc0_16_r16.c: Regenerated.
3201         * generated/minloc0_16_r4.c: Regenerated.
3202         * generated/minloc0_16_r8.c: Regenerated.
3203         * generated/minloc0_4_i1.c: Regenerated.
3204         * generated/minloc0_4_i16.c: Regenerated.
3205         * generated/minloc0_4_i2.c: Regenerated.
3206         * generated/minloc0_4_i4.c: Regenerated.
3207         * generated/minloc0_4_i8.c: Regenerated.
3208         * generated/minloc0_4_r10.c: Regenerated.
3209         * generated/minloc0_4_r16.c: Regenerated.
3210         * generated/minloc0_4_r4.c: Regenerated.
3211         * generated/minloc0_4_r8.c: Regenerated.
3212         * generated/minloc0_8_i1.c: Regenerated.
3213         * generated/minloc0_8_i16.c: Regenerated.
3214         * generated/minloc0_8_i2.c: Regenerated.
3215         * generated/minloc0_8_i4.c: Regenerated.
3216         * generated/minloc0_8_i8.c: Regenerated.
3217         * generated/minloc0_8_r10.c: Regenerated.
3218         * generated/minloc0_8_r16.c: Regenerated.
3219         * generated/minloc0_8_r4.c: Regenerated.
3220         * generated/minloc0_8_r8.c: Regenerated.
3221         * generated/minloc1_16_i1.c: Regenerated.
3222         * generated/minloc1_16_i16.c: Regenerated.
3223         * generated/minloc1_16_i2.c: Regenerated.
3224         * generated/minloc1_16_i4.c: Regenerated.
3225         * generated/minloc1_16_i8.c: Regenerated.
3226         * generated/minloc1_16_r10.c: Regenerated.
3227         * generated/minloc1_16_r16.c: Regenerated.
3228         * generated/minloc1_16_r4.c: Regenerated.
3229         * generated/minloc1_16_r8.c: Regenerated.
3230         * generated/minloc1_4_i1.c: Regenerated.
3231         * generated/minloc1_4_i16.c: Regenerated.
3232         * generated/minloc1_4_i2.c: Regenerated.
3233         * generated/minloc1_4_i4.c: Regenerated.
3234         * generated/minloc1_4_i8.c: Regenerated.
3235         * generated/minloc1_4_r10.c: Regenerated.
3236         * generated/minloc1_4_r16.c: Regenerated.
3237         * generated/minloc1_4_r4.c: Regenerated.
3238         * generated/minloc1_4_r8.c: Regenerated.
3239         * generated/minloc1_8_i1.c: Regenerated.
3240         * generated/minloc1_8_i16.c: Regenerated.
3241         * generated/minloc1_8_i2.c: Regenerated.
3242         * generated/minloc1_8_i4.c: Regenerated.
3243         * generated/minloc1_8_i8.c: Regenerated.
3244         * generated/minloc1_8_r10.c: Regenerated.
3245         * generated/minloc1_8_r16.c: Regenerated.
3246         * generated/minloc1_8_r4.c: Regenerated.
3247         * generated/minloc1_8_r8.c: Regenerated.
3248         * generated/minval_i1.c: Regenerated.
3249         * generated/minval_i16.c: Regenerated.
3250         * generated/minval_i2.c: Regenerated.
3251         * generated/minval_i4.c: Regenerated.
3252         * generated/minval_i8.c: Regenerated.
3253         * generated/minval_r10.c: Regenerated.
3254         * generated/minval_r16.c: Regenerated.
3255         * generated/minval_r4.c: Regenerated.
3256         * generated/minval_r8.c: Regenerated.
3257         * generated/product_c10.c: Regenerated.
3258         * generated/product_c16.c: Regenerated.
3259         * generated/product_c4.c: Regenerated.
3260         * generated/product_c8.c: Regenerated.
3261         * generated/product_i1.c: Regenerated.
3262         * generated/product_i16.c: Regenerated.
3263         * generated/product_i2.c: Regenerated.
3264         * generated/product_i4.c: Regenerated.
3265         * generated/product_i8.c: Regenerated.
3266         * generated/product_r10.c: Regenerated.
3267         * generated/product_r16.c: Regenerated.
3268         * generated/product_r4.c: Regenerated.
3269         * generated/product_r8.c: Regenerated.
3270         * generated/sum_c10.c: Regenerated.
3271         * generated/sum_c16.c: Regenerated.
3272         * generated/sum_c4.c: Regenerated.
3273         * generated/sum_c8.c: Regenerated.
3274         * generated/sum_i1.c: Regenerated.
3275         * generated/sum_i16.c: Regenerated.
3276         * generated/sum_i2.c: Regenerated.
3277         * generated/sum_i4.c: Regenerated.
3278         * generated/sum_i8.c: Regenerated.
3279         * generated/sum_r10.c: Regenerated.
3280         * generated/sum_r16.c: Regenerated.
3281         * generated/sum_r4.c: Regenerated.
3282         * generated/sum_r8.c: Regenerated.
3284 2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
3286         PR libfortran/34670
3287         * m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
3288         (u_name):  New macro for the upper case name of the intrinsic.
3289         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
3290         bounds checking and rank check, depending on
3291         compile_options.bounds_check.
3292         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3293         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3294         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
3295         bounds checking and rank check, depending on
3296         compile_options.bounds_check.
3297         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3298         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3299         * generated/all_l16.c: Regenerated.
3300         * generated/all_l4.c: Regenerated.
3301         * generated/all_l8.c: Regenerated.
3302         * generated/any_l16.c: Regenerated.
3303         * generated/any_l4.c: Regenerated.
3304         * generated/any_l8.c: Regenerated.
3305         * generated/count_16_l16.c: Regenerated.
3306         * generated/count_16_l4.c: Regenerated.
3307         * generated/count_16_l8.c: Regenerated.
3308         * generated/count_4_l16.c: Regenerated.
3309         * generated/count_4_l4.c: Regenerated.
3310         * generated/count_4_l8.c: Regenerated.
3311         * generated/count_8_l16.c: Regenerated.
3312         * generated/count_8_l4.c: Regenerated.
3313         * generated/count_8_l8.c: Regenerated.
3314         * generated/maxloc0_16_i1.c: Regenerated.
3315         * generated/maxloc0_16_i16.c: Regenerated.
3316         * generated/maxloc0_16_i2.c: Regenerated.
3317         * generated/maxloc0_16_i4.c: Regenerated.
3318         * generated/maxloc0_16_i8.c: Regenerated.
3319         * generated/maxloc0_16_r10.c: Regenerated.
3320         * generated/maxloc0_16_r16.c: Regenerated.
3321         * generated/maxloc0_16_r4.c: Regenerated.
3322         * generated/maxloc0_16_r8.c: Regenerated.
3323         * generated/maxloc0_4_i1.c: Regenerated.
3324         * generated/maxloc0_4_i16.c: Regenerated.
3325         * generated/maxloc0_4_i2.c: Regenerated.
3326         * generated/maxloc0_4_i4.c: Regenerated.
3327         * generated/maxloc0_4_i8.c: Regenerated.
3328         * generated/maxloc0_4_r10.c: Regenerated.
3329         * generated/maxloc0_4_r16.c: Regenerated.
3330         * generated/maxloc0_4_r4.c: Regenerated.
3331         * generated/maxloc0_4_r8.c: Regenerated.
3332         * generated/maxloc0_8_i1.c: Regenerated.
3333         * generated/maxloc0_8_i16.c: Regenerated.
3334         * generated/maxloc0_8_i2.c: Regenerated.
3335         * generated/maxloc0_8_i4.c: Regenerated.
3336         * generated/maxloc0_8_i8.c: Regenerated.
3337         * generated/maxloc0_8_r10.c: Regenerated.
3338         * generated/maxloc0_8_r16.c: Regenerated.
3339         * generated/maxloc0_8_r4.c: Regenerated.
3340         * generated/maxloc0_8_r8.c: Regenerated.
3341         * generated/maxloc1_16_i1.c: Regenerated.
3342         * generated/maxloc1_16_i16.c: Regenerated.
3343         * generated/maxloc1_16_i2.c: Regenerated.
3344         * generated/maxloc1_16_i4.c: Regenerated.
3345         * generated/maxloc1_16_i8.c: Regenerated.
3346         * generated/maxloc1_16_r10.c: Regenerated.
3347         * generated/maxloc1_16_r16.c: Regenerated.
3348         * generated/maxloc1_16_r4.c: Regenerated.
3349         * generated/maxloc1_16_r8.c: Regenerated.
3350         * generated/maxloc1_4_i1.c: Regenerated.
3351         * generated/maxloc1_4_i16.c: Regenerated.
3352         * generated/maxloc1_4_i2.c: Regenerated.
3353         * generated/maxloc1_4_i4.c: Regenerated.
3354         * generated/maxloc1_4_i8.c: Regenerated.
3355         * generated/maxloc1_4_r10.c: Regenerated.
3356         * generated/maxloc1_4_r16.c: Regenerated.
3357         * generated/maxloc1_4_r4.c: Regenerated.
3358         * generated/maxloc1_4_r8.c: Regenerated.
3359         * generated/maxloc1_8_i1.c: Regenerated.
3360         * generated/maxloc1_8_i16.c: Regenerated.
3361         * generated/maxloc1_8_i2.c: Regenerated.
3362         * generated/maxloc1_8_i4.c: Regenerated.
3363         * generated/maxloc1_8_i8.c: Regenerated.
3364         * generated/maxloc1_8_r10.c: Regenerated.
3365         * generated/maxloc1_8_r16.c: Regenerated.
3366         * generated/maxloc1_8_r4.c: Regenerated.
3367         * generated/maxloc1_8_r8.c: Regenerated.
3368         * generated/maxval_i1.c: Regenerated.
3369         * generated/maxval_i16.c: Regenerated.
3370         * generated/maxval_i2.c: Regenerated.
3371         * generated/maxval_i4.c: Regenerated.
3372         * generated/maxval_i8.c: Regenerated.
3373         * generated/maxval_r10.c: Regenerated.
3374         * generated/maxval_r16.c: Regenerated.
3375         * generated/maxval_r4.c: Regenerated.
3376         * generated/maxval_r8.c: Regenerated.
3377         * generated/minloc0_16_i1.c: Regenerated.
3378         * generated/minloc0_16_i16.c: Regenerated.
3379         * generated/minloc0_16_i2.c: Regenerated.
3380         * generated/minloc0_16_i4.c: Regenerated.
3381         * generated/minloc0_16_i8.c: Regenerated.
3382         * generated/minloc0_16_r10.c: Regenerated.
3383         * generated/minloc0_16_r16.c: Regenerated.
3384         * generated/minloc0_16_r4.c: Regenerated.
3385         * generated/minloc0_16_r8.c: Regenerated.
3386         * generated/minloc0_4_i1.c: Regenerated.
3387         * generated/minloc0_4_i16.c: Regenerated.
3388         * generated/minloc0_4_i2.c: Regenerated.
3389         * generated/minloc0_4_i4.c: Regenerated.
3390         * generated/minloc0_4_i8.c: Regenerated.
3391         * generated/minloc0_4_r10.c: Regenerated.
3392         * generated/minloc0_4_r16.c: Regenerated.
3393         * generated/minloc0_4_r4.c: Regenerated.
3394         * generated/minloc0_4_r8.c: Regenerated.
3395         * generated/minloc0_8_i1.c: Regenerated.
3396         * generated/minloc0_8_i16.c: Regenerated.
3397         * generated/minloc0_8_i2.c: Regenerated.
3398         * generated/minloc0_8_i4.c: Regenerated.
3399         * generated/minloc0_8_i8.c: Regenerated.
3400         * generated/minloc0_8_r10.c: Regenerated.
3401         * generated/minloc0_8_r16.c: Regenerated.
3402         * generated/minloc0_8_r4.c: Regenerated.
3403         * generated/minloc0_8_r8.c: Regenerated.
3404         * generated/minloc1_16_i1.c: Regenerated.
3405         * generated/minloc1_16_i16.c: Regenerated.
3406         * generated/minloc1_16_i2.c: Regenerated.
3407         * generated/minloc1_16_i4.c: Regenerated.
3408         * generated/minloc1_16_i8.c: Regenerated.
3409         * generated/minloc1_16_r10.c: Regenerated.
3410         * generated/minloc1_16_r16.c: Regenerated.
3411         * generated/minloc1_16_r4.c: Regenerated.
3412         * generated/minloc1_16_r8.c: Regenerated.
3413         * generated/minloc1_4_i1.c: Regenerated.
3414         * generated/minloc1_4_i16.c: Regenerated.
3415         * generated/minloc1_4_i2.c: Regenerated.
3416         * generated/minloc1_4_i4.c: Regenerated.
3417         * generated/minloc1_4_i8.c: Regenerated.
3418         * generated/minloc1_4_r10.c: Regenerated.
3419         * generated/minloc1_4_r16.c: Regenerated.
3420         * generated/minloc1_4_r4.c: Regenerated.
3421         * generated/minloc1_4_r8.c: Regenerated.
3422         * generated/minloc1_8_i1.c: Regenerated.
3423         * generated/minloc1_8_i16.c: Regenerated.
3424         * generated/minloc1_8_i2.c: Regenerated.
3425         * generated/minloc1_8_i4.c: Regenerated.
3426         * generated/minloc1_8_i8.c: Regenerated.
3427         * generated/minloc1_8_r10.c: Regenerated.
3428         * generated/minloc1_8_r16.c: Regenerated.
3429         * generated/minloc1_8_r4.c: Regenerated.
3430         * generated/minloc1_8_r8.c: Regenerated.
3431         * generated/minval_i1.c: Regenerated.
3432         * generated/minval_i16.c: Regenerated.
3433         * generated/minval_i2.c: Regenerated.
3434         * generated/minval_i4.c: Regenerated.
3435         * generated/minval_i8.c: Regenerated.
3436         * generated/minval_r10.c: Regenerated.
3437         * generated/minval_r16.c: Regenerated.
3438         * generated/minval_r4.c: Regenerated.
3439         * generated/minval_r8.c: Regenerated.
3440         * generated/product_c10.c: Regenerated.
3441         * generated/product_c16.c: Regenerated.
3442         * generated/product_c4.c: Regenerated.
3443         * generated/product_c8.c: Regenerated.
3444         * generated/product_i1.c: Regenerated.
3445         * generated/product_i16.c: Regenerated.
3446         * generated/product_i2.c: Regenerated.
3447         * generated/product_i4.c: Regenerated.
3448         * generated/product_i8.c: Regenerated.
3449         * generated/product_r10.c: Regenerated.
3450         * generated/product_r16.c: Regenerated.
3451         * generated/product_r4.c: Regenerated.
3452         * generated/product_r8.c: Regenerated.
3453         * generated/sum_c10.c: Regenerated.
3454         * generated/sum_c16.c: Regenerated.
3455         * generated/sum_c4.c: Regenerated.
3456         * generated/sum_c8.c: Regenerated.
3457         * generated/sum_i1.c: Regenerated.
3458         * generated/sum_i16.c: Regenerated.
3459         * generated/sum_i2.c: Regenerated.
3460         * generated/sum_i4.c: Regenerated.
3461         * generated/sum_i8.c: Regenerated.
3462         * generated/sum_r10.c: Regenerated.
3463         * generated/sum_r16.c: Regenerated.
3464         * generated/sum_r4.c: Regenerated.
3465         * generated/sum_r8.c: Regenerated.
3467 2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3469         PR libfortran/34676
3470         * io/list_read.c (next_char): Only save the EOF condition for later if
3471         advance="no".
3473 2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
3475         PR libfortran/34565
3476         * io/io.h:  Adjust protoypes for open_internal(),
3477         next_array_record() and init_loop_spec().
3478         * io/list_read.c (next_char):  Use argument "finished"
3479         of next_array_record to check for end on internal file.
3480         * io/unit.c:  Calculate the offset for an array
3481         internal file and supply this informatin to open_internal().
3482         * io/unix.c (open_internal):  Set the offset for the internal
3483         file on open.
3484         * io/transfer.c (init_loop_spec):  Calculate the starting
3485         record in case of negative strides.  Return size of 0 for
3486         an empty array.
3487         (next_array_record):  Use an extra flag to signal that the
3488         array is finished.
3489         (next_record_r):  Use the new flag to next_array_record().
3490         (next_record_w):  Likewise.