OSDN Git Service

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