OSDN Git Service

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