OSDN Git Service

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