OSDN Git Service

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