OSDN Git Service

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