OSDN Git Service

2008-11-18 Thomas Koenig <tkoenig@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2008-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
2
3         PR libfortran/38135
4         * m4/reshape.m4:  Correct bounds checking when PAD is present.
5         Treat PAD as if it were SOURCE when SOURCE is empty.
6         * intrinsics/reshape_generic.c:  Likewise.
7         * generated/reshape_c10.c Regenerated.
8         * generated/reshape_c16.c Regenerated.
9         * generated/reshape_c4.c Regenerated.
10         * generated/reshape_c8.c Regenerated.
11         * generated/reshape_i16.c Regenerated.
12         * generated/reshape_i4.c Regenerated.
13         * generated/reshape_i8.c Regenerated.
14         * generated/reshape_r10.c Regenerated.
15         * generated/reshape_r16.c Regenerated.
16         * generated/reshape_r4.c Regenerated.
17         * generated/reshape_r8.c Regenerated.
18
19 2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
20
21         PR libfortran/38097
22         * io/read.c (read_f): Initialize exponent. Fix comment. Set loop
23         conditions for BZ/BN.
24         * io/unit.c (get_internal_unit): Initialize flags.blank.
25         * io/transfer.c (data_transfer_init): Fix whitespace.
26
27 2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
28
29         PR libfortran/37294
30         * io/write.c (namelist_write_newline): Use array loop specification to
31         advance to next internal array unit record. (namelist_write): Adjust to
32         accomodate the internal array unit behavior.
33
34 2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
35
36         PR fortran/37159
37         * intrinsics/random.c: Added comment to adapt check.c, should
38         kiss_size change.
39         Few cosmetic changes to existing comments.
40
41 2008-10-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
42
43         PR libfortran/37707
44         * io/list_read.c (read_character): Remove code to look ahead in namelist
45         reads to descriminate non-delimited strings from namelist objects.
46         * io/write.c (namelist_write): Delimit character strings with quote or
47         apostrophe, defaulting to quote.
48
49 2008-10-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
50
51         PR libfortran/34670
52         * intrinsics/transpose_generic.c:  Implement bounds checking.
53         * m4/transpose.m4:  Likewise.
54         * generated/transpose_c8.c: Regenerated.
55         * generated/transpose_c16.c: Regenerated.
56         * generated/transpose_r10.c: Regenerated.
57         * generated/transpose_i8.c: Regenerated.
58         * generated/transpose_c10.c: Regenerated.
59         * generated/transpose_r4.c: Regenerated.
60         * generated/transpose_c4.c: Regenerated.
61         * generated/transpose_i16.c: Regenerated.
62         * generated/transpose_i4.c: Regenerated.
63         * generated/transpose_r8.c: Regenerated.
64         * generated/transpose_r16.c: Regenerated.
65
66 2008-10-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org
67
68         PR libfortran/37834
69         * io/write_float.def (output_float): Emit '0.' for special case of
70         format specifier 'f0.0' and value of zero. Likewise emit '0' for 'f1.0'.
71
72 2008-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org
73
74         PR libfortran/37863
75         * io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
76         * io/io.h (st_parameter_44): Fix id type declaration.
77
78 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
79
80         * io/file_pos.c (unformatted_backspace): Normal case is
81         GFC_CONVERT_NATIVE.
82         * io/transfer.c (read_sf):  Mark paths leading to generate_error()
83         as unlikely.
84         (readl_block_form):  Likewise.
85         (read_block_direct):  Likewise.
86         (write_block):  Likewise.
87         (write_buf):  Likewise.
88         (us_read):  Likewise.  Normal case is GFC_CONVERT_NATIVE.
89         (next_record_w_unf):  Mark paths leading to generate_error()
90         as unlikely.
91
92 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
93
94         PR libfortran/34670
95         * generated/spread_r4.c: Regenerated.
96
97 2008-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
98
99         PR libfortran/34670
100         * intrinsics/reshape_generic.c:  Add bounds checking.
101         * m4/reshape.m4:  Likewise.
102         * generated/reshape_c10.c: Regenerated.
103         * generated/reshape_c16.c: Regenerated.
104         * generated/reshape_c4.c: Regenerated.
105         * generated/reshape_c8.c: Regenerated.
106         * generated/reshape_i16.c: Regenerated.
107         * generated/reshape_i4.c: Regenerated.
108         * generated/reshape_i8.c: Regenerated.
109         * generated/reshape_r10.c: Regenerated.
110         * generated/reshape_r16.c: Regenerated.
111         * generated/reshape_r4.c: Regenerated.
112         * generated/reshape_r8.c: Regenerated.
113         * generated/spread_r4.c: Regenerated.
114
115 2008-10-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org
116
117         PR libfortran/37083
118         * io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
119         (finish_list_read): Add EOF check.
120
121 2008-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
122
123         PR libfortran/37753
124         * io/transfer.c (unformatted_read):  CONVERT_NATIVE
125         is the usual case.  Check for kind==1 for non-byte-reversing
126         operation.
127         (unformatted_write):  Likewise.
128
129 2008-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org
130
131         PR libfortran/37707
132         * io/list_read.c (nml_get_obj_data): If the first namelist object rank
133         is greater than zero, call nml_object_read with the first object rather
134         than the sub-object.
135
136 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
137             Steve Ellcey  <sje@cup.hp.com>
138
139         * configure: Regenerate for new libtool.
140         * Makefile.in: Ditto.
141
142 2008-09-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org
143
144         PR libfortran/37498
145         * list_read.c (eat_separator): Revert previous patch and move
146         delim_status, decimal_status, and pad_status to gfc_unit.
147         (parse_real): Ditto. (read_real): Ditto.
148         * read.c (read_a): Likewise. (read_a_char4): Likewise.
149         (read_f): Likewise.
150         * inquire.c (inquire_via_unit): Add missing check for
151         IOPARM_INQUIRE_HAS_FLAGS2. (inquire_via_filename): Likewise.
152         * io.h (unit_sign_s): Move delim_status, decimal_status, and pad_status
153         to gfc_unit.
154         * transfer.c (read_sf): Ditto. (read_block_form): Ditto.
155         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto.
156         * write.c (write_default_char4): Ditto. (write_utf8_char4): Ditto.
157         (write_character): Ditto. (write_real_g0): Ditto.
158         (list_formatted_write_scalar): Ditto. (nml_write_obj): Ditto.
159         (namelist_write): Ditto.
160         * write_float.def (calculate_sign): Ditto. (output_float): Ditto.
161
162 2008-09-24  Tobias Burnus  <burnus@net-b.de>
163
164         * runtime/compile_options.c (init_compile_options):
165         Sync flags with front end.
166
167 2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org
168
169         PR libfortran/37498
170         * file_pos (st_endfile): Clear memory only for libfortran 4.3 private
171         area.
172         * list_read.c (eat_separator): Only access F2003 I/O parameters if
173         IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
174         (read_real): Ditto.
175         * read.c (read_a): Likewise. (read_a_char4): Likewise though not
176         strictly necessary. (read_f): Likewise.
177         * io.h (unit_sign_s): New enumerator to allow duplication of
178         st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
179         (st_parameter_43): New structure copied from 4.3 version of 
180         st_paramater_dt private section. (st_parameter_44): New structure with
181         F2003 items added. (st_parameter_dt): Modified to create union of new
182         and old structures to allow correct memory setting for 4.3 ABI
183         compatibility. Bumped the pad size.
184         * transfer.c (read_sf): Do not use F2003 I/O memory areas unless
185         IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
186         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
187         add comment, fix formatting.
188         * write.c (write_default_char4): Likewise though not strictly necessary.
189         (write_utf8_char4): Ditto. (write_character): Ditto.
190         (write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
191         (nml_write_obj): Ditto. (namelist_write): Ditto.
192         * write_float.def (calculate_sign): Eliminate warning by including all
193         cases in switch. (output_float): Output only decimal point of F2003 flag
194         is not set.
195
196 2008-09-10  Tobias Burnus  <burnus@net-b.de>
197             H. J. Lu  <hongjiu.lu@intel.com>
198
199         * mk-sik-inc.sh: Make -Wunused-variable proof.
200         * mk-srk-inc.sh: Make -Wunused-variable proof.
201
202 2008-09-10  Tobias Burnus  <burnus@net-b.de>
203
204         * mk-kinds-h.sh: Make -Wunused-variable proof.
205
206 2008-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
207
208         PR fortran/37203
209         * intrinsics/reshape_generic.c:  Add checking on
210         out-of-bounds and duplicate values of order argument.
211         * m4/reshape.m4:  Likewise.
212         * generated/reshape_c10.c: Regenerated.
213         * generated/reshape_c16.c: Regenerated.
214         * generated/reshape_c4.c: Regenerated.
215         * generated/reshape_c8.c: Regenerated.
216         * generated/reshape_i16.c: Regenerated.
217         * generated/reshape_i4.c: Regenerated.
218         * generated/reshape_i8.c: Regenerated.
219         * generated/reshape_r10.c: Regenerated.
220         * generated/reshape_r16.c: Regenerated.
221         * generated/reshape_r4.c: Regenerated.
222         * generated/reshape_r8.c: Regenerated.
223
224 2008-09-06  Tobias Burnus  <burnus@net-b.de>
225
226         * libgfortran.h (likely,unlikely): New makros.
227         (runtime_warning_at,__mingw_snprintf): Add __attribute__(format()).
228         * m4/spread.m4 (spread_'rtype_code`): Use unlikely for bounds_check.
229         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto.
230         * m4/matmull.m4 (matmul_'rtype_code`): Ditto.
231         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto.
232         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto.
233         * m4/matmul.m4 (matmul_'rtype_code`): Ditto.
234
235         * generated/minval_r8.c: Regenerated.
236         * generated/spread_r10.c: Regenerated.
237         * generated/minloc1_16_r16.c: Regenerated.
238         * generated/maxloc1_4_r8.c: Regenerated.
239         * generated/sum_i8.c: Regenerated.
240         * generated/any_l16.c: Regenerated.
241         * generated/spread_i8.c: Regenerated.
242         * generated/maxval_i2.c: Regenerated.
243         * generated/any_l2.c: Regenerated.
244         * generated/product_r4.c: Regenerated.
245         * generated/maxloc1_8_i4.c: Regenerated.
246         * generated/maxloc0_4_r4.c: Regenerated.
247         * generated/all_l1.c: Regenerated.
248         * generated/matmul_r8.c: Regenerated.
249         * generated/product_i2.c: Regenerated.
250         * generated/minloc0_4_r16.c: Regenerated.
251         * generated/minloc0_4_i1.c: Regenerated.
252         * generated/maxloc0_4_r16.c: Regenerated.
253         * generated/maxloc0_4_i2.c: Regenerated.
254         * generated/minloc1_8_r16.c: Regenerated.
255         * generated/maxloc1_8_r16.c: Regenerated.
256         * generated/maxloc0_8_i8.c: Regenerated.
257         * generated/sum_r16.c: Regenerated.
258         * generated/sum_i1.c: Regenerated.
259         * generated/minloc1_4_r8.c: Regenerated.
260         * generated/maxloc1_16_r16.c: Regenerated.
261         * generated/minloc1_16_i4.c: Regenerated.
262         * generated/maxloc1_16_i4.c: Regenerated.
263         * generated/minloc0_16_i8.c: Regenerated.
264         * generated/spread_i1.c: Regenerated.
265         * generated/maxloc0_16_i8.c: Regenerated.
266         * generated/maxval_r16.c: Regenerated.
267         * generated/product_c10.c: Regenerated.
268         * generated/minloc1_8_i4.c: Regenerated.
269         * generated/minloc0_16_i16.c: Regenerated.
270         * generated/matmul_r16.c: Regenerated.
271         * generated/minloc0_4_r4.c: Regenerated.
272         * generated/all_l2.c: Regenerated.
273         * generated/product_c4.c: Regenerated.
274         * generated/sum_r4.c: Regenerated.
275         * generated/minloc0_4_i2.c: Regenerated.
276         * generated/spread_c10.c: Regenerated.
277         * generated/maxloc0_8_i1.c: Regenerated.
278         * generated/spread_r4.c: Regenerated.
279         * generated/minloc0_8_i8.c: Regenerated.
280         * generated/matmul_c8.c: Regenerated.
281         * generated/all_l16.c: Regenerated.
282         * generated/minloc1_16_r10.c: Regenerated.
283         * generated/sum_i2.c: Regenerated.
284         * generated/minloc0_16_i1.c: Regenerated.
285         * generated/maxloc0_16_i1.c: Regenerated.
286         * generated/maxloc1_8_r8.c: Regenerated.
287         * generated/minval_i16.c: Regenerated.
288         * generated/spread_i2.c: Regenerated.
289         * generated/maxval_i4.c: Regenerated.
290         * generated/minval_i8.c: Regenerated.
291         * generated/any_l4.c: Regenerated.
292         * generated/maxloc1_4_i8.c: Regenerated.
293         * generated/maxloc0_16_i16.c: Regenerated.
294         * generated/maxloc0_8_r4.c: Regenerated.
295         * generated/minloc1_4_i16.c: Regenerated.
296         * generated/maxloc1_4_i16.c: Regenerated.
297         * generated/minloc0_4_r10.c: Regenerated.
298         * generated/minloc0_8_i16.c: Regenerated.
299         * generated/maxloc0_4_r10.c: Regenerated.
300         * generated/maxloc0_8_i16.c: Regenerated.
301         * generated/minloc1_8_r10.c: Regenerated.
302         * generated/product_i4.c: Regenerated.
303         * generated/minloc0_16_r4.c: Regenerated.
304         * generated/sum_c16.c: Regenerated.
305         * generated/maxloc1_8_r10.c: Regenerated.
306         * generated/maxloc0_16_r4.c: Regenerated.
307         * generated/minloc1_16_r8.c: Regenerated.
308         * generated/minloc0_8_i1.c: Regenerated.
309         * generated/maxloc0_4_i4.c: Regenerated.
310         * generated/maxloc1_16_r8.c: Regenerated.
311         * generated/maxloc0_8_i2.c: Regenerated.
312         * generated/sum_r10.c: Regenerated.
313         * generated/count_4_l.c: Regenerated.
314         * generated/sum_c4.c: Regenerated.
315         * generated/count_8_l.c: Regenerated.
316         * generated/maxloc1_16_r10.c: Regenerated.
317         * generated/matmul_i8.c: Regenerated.
318         * generated/minloc0_16_i2.c: Regenerated.
319         * generated/minloc1_8_r8.c: Regenerated.
320         * generated/maxloc0_16_i2.c: Regenerated.
321         * generated/spread_c4.c: Regenerated.
322         * generated/matmul_c16.c: Regenerated.
323         * generated/maxval_r10.c: Regenerated.
324         * generated/minval_i1.c: Regenerated.
325         * generated/maxloc1_4_i1.c: Regenerated.
326         * generated/matmul_r10.c: Regenerated.
327         * generated/minloc1_4_i8.c: Regenerated.
328         * generated/minloc0_8_r4.c: Regenerated.
329         * generated/matmul_l4.c: Regenerated.
330         * generated/product_i16.c: Regenerated.
331         * generated/minloc0_16_r16.c: Regenerated.
332         * generated/all_l4.c: Regenerated.
333         * generated/minloc0_4_i4.c: Regenerated.
334         * generated/minloc0_8_i2.c: Regenerated.
335         * generated/matmul_i1.c: Regenerated.
336         * generated/minval_r4.c: Regenerated.
337         * generated/maxloc1_4_r4.c: Regenerated.
338         * generated/spread_i16.c: Regenerated.
339         * generated/sum_i4.c: Regenerated.
340         * generated/maxval_r8.c: Regenerated.
341         * generated/spread_i4.c: Regenerated.
342         * generated/minloc1_4_i1.c: Regenerated.
343         * generated/minval_r16.c: Regenerated.
344         * generated/minval_i2.c: Regenerated.
345         * generated/maxloc1_4_i2.c: Regenerated.
346         * generated/product_r8.c: Regenerated.
347         * generated/maxloc1_8_i8.c: Regenerated.
348         * generated/maxloc0_4_r8.c: Regenerated.
349         * generated/maxloc0_16_r16.c: Regenerated.
350         * generated/matmul_r4.c: Regenerated.
351         * generated/sum_c10.c: Regenerated.
352         * generated/minloc1_4_r16.c: Regenerated.
353         * generated/maxloc1_4_r16.c: Regenerated.
354         * generated/minloc0_8_r16.c: Regenerated.
355         * generated/maxloc0_8_r16.c: Regenerated.
356         * generated/count_1_l.c: Regenerated.
357         * generated/maxloc0_8_i4.c: Regenerated.
358         * generated/matmul_i2.c: Regenerated.
359         * generated/minloc1_4_r4.c: Regenerated.
360         * generated/matmul_c10.c: Regenerated.
361         * generated/minloc0_16_i4.c: Regenerated.
362         * generated/maxloc0_16_i4.c: Regenerated.
363         * generated/minloc1_16_i8.c: Regenerated.
364         * generated/maxloc1_16_i8.c: Regenerated.
365         * generated/minloc1_4_i2.c: Regenerated.
366         * generated/matmul_l16.c: Regenerated.
367         * generated/maxloc1_8_i1.c: Regenerated.
368         * generated/minloc0_16_r10.c: Regenerated.
369         * generated/minloc1_8_i8.c: Regenerated.
370         * generated/minloc0_4_r8.c: Regenerated.
371         * generated/product_r16.c: Regenerated.
372         * generated/product_c8.c: Regenerated.
373         * generated/sum_r8.c: Regenerated.
374         * generated/minloc0_8_i4.c: Regenerated.
375         * generated/matmul_c4.c: Regenerated.
376         * generated/minloc1_16_i16.c: Regenerated.
377         * generated/spread_r8.c: Regenerated.
378         * generated/maxloc1_8_r4.c: Regenerated.
379         * generated/minloc1_16_i1.c: Regenerated.
380         * generated/maxloc1_16_i1.c: Regenerated.
381         * generated/spread_r16.c: Regenerated.
382         * generated/minval_r10.c: Regenerated.
383         * generated/count_16_l.c: Regenerated.
384         * generated/minval_i4.c: Regenerated.
385         * generated/minloc1_8_i1.c: Regenerated.
386         * generated/maxloc1_4_i4.c: Regenerated.
387         * generated/maxloc1_8_i2.c: Regenerated.
388         * generated/maxval_i8.c: Regenerated.
389         * generated/any_l8.c: Regenerated.
390         * generated/maxloc0_16_r10.c: Regenerated.
391         * generated/minloc0_4_i16.c: Regenerated.
392         * generated/maxloc0_8_r8.c: Regenerated.
393         * generated/maxloc0_4_i16.c: Regenerated.
394         * generated/minloc1_4_r10.c: Regenerated.
395         * generated/minloc1_8_i16.c: Regenerated.
396         * generated/maxloc1_4_r10.c: Regenerated.
397         * generated/maxloc1_8_i16.c: Regenerated.
398         * generated/minloc0_8_r10.c: Regenerated.
399         * generated/maxloc0_8_r10.c: Regenerated.
400         * generated/minloc1_16_r4.c: Regenerated.
401         * generated/maxloc1_16_r4.c: Regenerated.
402         * generated/minloc0_16_r8.c: Regenerated.
403         * generated/product_i8.c: Regenerated.
404         * generated/maxloc0_16_r8.c: Regenerated.
405         * generated/sum_i16.c: Regenerated.
406         * generated/count_2_l.c: Regenerated.
407         * generated/maxloc0_4_i8.c: Regenerated.
408         * generated/maxloc1_16_i16.c: Regenerated.
409         * generated/matmul_i4.c: Regenerated.
410         * generated/minloc1_8_r4.c: Regenerated.
411         * generated/sum_c8.c: Regenerated.
412         * generated/minloc1_16_i2.c: Regenerated.
413         * generated/maxloc1_16_i2.c: Regenerated.
414         * generated/maxval_i16.c: Regenerated.
415         * generated/spread_c8.c: Regenerated.
416         * generated/matmul_i16.c: Regenerated.
417         * generated/minloc1_4_i4.c: Regenerated.
418         * generated/maxval_i1.c: Regenerated.
419         * generated/minloc1_8_i2.c: Regenerated.
420         * generated/any_l1.c: Regenerated.
421         * generated/product_c16.c: Regenerated.
422         * generated/minloc0_8_r8.c: Regenerated.
423         * generated/matmul_l8.c: Regenerated.
424         * generated/product_r10.c: Regenerated.
425         * generated/product_i1.c: Regenerated.
426         * generated/all_l8.c: Regenerated.
427         * generated/maxloc0_4_i1.c: Regenerated.
428         * generated/minloc0_4_i8.c: Regenerated.
429         * generated/spread_c16.c: Regenerated.
430         * generated/maxval_r4.c: Regenerated.
431
432 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
433
434         PR libfortran/37301
435         PR libfortran/37228
436         * io/io.h (write_real_g0): Declare new function to handle g0.d format.
437         * io/transfer.c (formatted_transfer_scalar): Use new function.
438         * io/format.c (parse_format_list): Enable g0.d.
439         * io/write.c (write_a_char4): Delete unused var.
440         (set_fnode_default): New function to set the default fnode w, d, and e
441         factored from write_real. (write_real): Use new factored function.
442         (write_real_g0): New function that sets d to that passed by g0.d format
443         specifier and set format to ES.  Default values for w and e are used
444         from the new function, set_fnode_default.
445
446 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
447
448         * runtime/error.c: Fix cast for printf.
449
450 2008-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
451
452         PR libfortran/36895
453         * io/write.c (namelist_write_newline): New function to correctly mark
454         next records in both external and internal units.
455         (nml_write_obj): Use new function.
456         (namelist_write: Use new function.
457
458 2008-08-19  Tobias Burnus  <burnus@net-b.de>
459
460         PR libfortran/35863
461         * io/write.c (write_a_char4): Add missing variable declaration
462         in HAVE_CRLF block.
463
464 2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
465
466         PR libfortran/35863
467         * intrinsics/selected_char_kind.c: Enable iso_10646.
468         * io/read.c (typedef uchar): New type.
469         (read_utf8): New function to read a single UTF-8 encoded character.
470         (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
471         (read_default_char1): New functio to read default into KIND=1 string.
472         (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
473         (read_default_char4): New function to read UTF-8 into a KIND=4 string.
474         (read_a): Modify to use the new functions.
475         (read_a_char4): Modify to use the new functions.
476         * io/write.c (error.h): Add include. (typedef uchar): New type.
477         (write_default_char4): New function to default write KIND=4 string.
478         (write_utf8_char4): New function to UTF-8 write KIND=4 string.
479         (write_a_char4): Modify to use new functions.
480         (write_character): Modify to use new functions.
481
482 2008-08-14  H.J. Lu  <hongjiu.lu@intel.com>
483
484         PR libfortran/37123
485         * intrinsics/cshift0.c (cshift0): Fix 2 typos.
486
487 2008-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
488
489         PR libfortran/36886
490         * Makefile.am:  Added $(i_cshift0_c).
491         Added $(i_cshift0_c) to gfor_built_specific_src.
492         Add rule to build from cshift0.m4.
493         * Makefile.in:  Regenerated.
494         * libgfortran.h:  Addedd prototypes for cshift0_i1,
495         cshift0_i2, cshift0_i4, cshift0_i8, cshift0_i16,
496         cshift0_r4, cshift0_r8, cshift0_r10, cshift0_r16,
497         cshift0_c4, cshift0_c8, cshift0_c10, cshift0_c16.
498         Define Macros GFC_UNALIGNED_C4 and GFC_UNALIGNED_C8.
499         * intrinsics/cshift0.c:  Remove helper functions for
500         the innter shift loop.
501         (cshift0):  Call specific functions depending on type
502         of array argument.  Only call specific functions for
503         correct alignment for other types.
504         * m4/cshift0.m4:  New file.
505         * generated/cshift0_i1.c:  New file.
506         * generated/cshift0_i2.c:  New file.
507         * generated/cshift0_i4.c:  New file.
508         * generated/cshift0_i8:.c  New file.
509         * generated/cshift0_i16.c:  New file.
510         * generated/cshift0_r4.c:  New file.
511         * generated/cshift0_r8.c:  New file.
512         * generated/cshift0_r10.c:  New file.
513         * generated/cshift0_r16.c:  New file.
514         * generated/cshift0_c4.c:  New file.
515         * generated/cshift0_c8.c:  New file.
516         * generated/cshift0_c10.c:  New file.
517         * generated/cshift0_c16.c:  New file.
518
519 2008-07-27  Tobias Burnus  <burnus@net-b.de>
520
521         PR fortran/36132
522         PR fortran/29952
523         PR fortran/36909
524         * runtime/error.c: New function runtime_error_at.
525         * gfortran.map: Ditto.
526         * libgfortran.h: Ditto.
527
528 2008-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
529
530         PR fortran/36582
531         * io/list_read.c: If variable rank is zero, do not adjust the found
532         namelist object pointer.
533
534 2008-07-22  Daniel Kraft  <d@domob.eu>
535
536         PR fortran/29835
537         * io/format.c (struct format_data):  New member error_element.
538         (unexpected_element):  Added '%c' to message.
539         (next_char):  Keep track of last parsed character in fmt->error_element.
540         (format_error):  If the message is unexpected_element, output the
541         offending character, too.
542
543 2008-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
544
545         PR libfortran/36890
546         * io/file_pos.c:  Declare READ_CHUNK as signed to avoid
547         signed/unsigned comparison warning in formatted_backspace.
548
549 2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
550
551         PR libfortran/36773
552         * intrinsics/cshift0.c (cshift0):  Return early if size of array
553         is zero.
554         * intrinsics/eoshift0.c (eoshift0):  Return early if size of
555         return array is zero.
556         * intrinsics/eoshift2.c (eoshift2):  Likewise.
557         * m4/eoshift1.m4 (eoshift1):  Return early if size of array
558         is zero.
559         * m4/eoshift3.m4 (eoshift3):  Likewise.
560         * m4/eoshift2.m4 (eoshift2):  Return early if size of return
561         array is zero.
562         * m4/eoshift4.m4 (eoshift2):  Return early if size of return
563         array is zero.
564         * generated/cshift1_16.c: Regenerated.
565         * generated/cshift1_4.c: Regenerated.
566         * generated/cshift1_8.c: Regenerated.
567         * generated/eoshift1_16.c: Regenerated.
568         * generated/eoshift1_4.c: Regenerated.
569         * generated/eoshift1_8.c: Regenerated.
570         * generated/eoshift3_16.c: Regenerated.
571         * generated/eoshift3_4.c: Regenerated.
572         * generated/eoshift3_8.c: Regenerated.
573
574 2008-07-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
575
576         PR fortran/36857
577         * io/write_float.def: Comment out locale dependent code and fix general
578         comments.
579         
580 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
581
582         PR fortran/36341
583         PR fortran/34670
584         * m4/matmul.m4:  Add bounds checking.
585         * m4/matmull.m4:  Likewise.
586         * generated/matmul_c10.c: Regenerated.
587         * generated/matmul_c16.c: Regenerated.
588         * generated/matmul_c4.c: Regenerated.
589         * generated/matmul_c8.c: Regenerated.
590         * generated/matmul_i1.c: Regenerated.
591         * generated/matmul_i16.c: Regenerated.
592         * generated/matmul_i2.c: Regenerated.
593         * generated/matmul_i4.c: Regenerated.
594         * generated/matmul_i8.c: Regenerated.
595         * generated/matmul_l16.c: Regenerated.
596         * generated/matmul_l4.c: Regenerated.
597         * generated/matmul_l8.c: Regenerated.
598         * generated/matmul_r10.c: Regenerated.
599         * generated/matmul_r16.c: Regenerated.
600         * generated/matmul_r4.c: Regenerated.
601         * generated/matmul_r8.c: Regenerated.
602
603 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
604
605         * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
606         variable name.
607         * configure: Regenerate.
608
609 2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
610
611         PR fortran/36676
612         * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
613         
614 2008-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
615
616         PR fortran/36657
617         * io/list_read.c (read_character): Check for '!' along with separators.
618         (find_nml_name): Likewise and eat the comment if found.
619
620 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
621
622         * configure: Regenerate.
623
624 2008-06-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
625
626         PR fortran/36546
627         * io/list_read.c (eat_separator): Add tab character to condition
628         for looping past whitespace.
629
630 2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
631
632         PR fortran/36515
633         * libgfortran.h (compile_options_t): Add int range_check to structure.
634         * runtime/compile_options.c (set_options): Add range_check option.
635         (init_compile_options): Likewise.
636         *io/read.c (read_decimal): Change overflow checks to include
637         range_check.
638         
639 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
640
641         PR fortran/36538
642         * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
643         tabs.
644
645 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
646
647         PR fortran/35863
648         * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
649         * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
650         big_endian. (determine_endianness): Add endian_off and set its value
651         according to big_endian.
652         * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
653         * io/io.h: Add prototype declarations for new functions.
654         * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
655         (list_formatted_read): Calculate stride based on kind for character type
656         and use it when calling list_formatted_read_scalar.
657         * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
658         * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
659         * io/read.c (read_a_char4): New function to handle formatted read.
660         * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
661         (write_a_char4): New function to handle formatted write.
662         (write_character): Modify to accept the kind parameter and adjust for
663         endianess of the machine. (list_formatted_write): Calculate the stride
664         resulting from the kind and adjust the list_formatted_write_scalar call
665         accordingly. (nml_write_obj): Adjust calls to write_character.
666         (namelist_write): Likewise.
667         * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
668         'kind' argument to better describe what it is. Add calls to new
669         functions for kind == 4. (formatted_transfer): Modify to handle the case
670         of type character and kind equals 4 to pass in the kind to the transfer
671         routines. (transfer_character_wide): Add this new function.
672         (transfer_array): Don't set kind to the character string length. Adjust
673         strides bases on character kind.
674         (unformatted_read): Adjust size based on kind for character types.
675         (unformatted_write): Likewise. (data_transfer_init): Change
676         l8_to_l4_offset to big_endian.
677         io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
678
679 2008-06-13  Tobias Burnus  <burnus@net-b.de>
680
681         * configure.ac (AM_CFLAGS): Remove -Werror again.
682         * configure: Regenerate.
683
684 2008-06-13  Tobias Burnus  <burnus@net-b.de>
685
686         PR libgfortran/36518
687         * configure.ac (AM_CFLAGS): Add -Werror.
688         * configure: Regenerate.
689         * m4/ifunction_logical.m4: Cast "n" to "(int)".
690         * generated/any_l16.c: Regenerate.
691         * generated/any_l2.c: Regenerate.
692         * generated/all_l1.c: Regenerate.
693         * generated/all_l2.c: Regenerate.
694         * generated/all_l16.c: Regenerate.
695         * generated/any_l4.c: Regenerate.
696         * generated/count_4_l.c: Regenerate.
697         * generated/count_8_l.c: Regenerate.
698         * generated/all_l4.c: Regenerate.
699         * generated/count_1_l.c: Regenerate.
700         * generated/count_16_l.c: Regenerate.
701         * generated/any_l8.c: Regenerate.
702         * generated/count_2_l.c: Regenerate.
703         * generated/any_l1.c: Regenerate.
704         * generated/all_l8.c: Regenerate.
705
706 2008-06-13  Tobias Burnus  <burnus@net-b.de>
707
708         PR fortran/36495
709         * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
710         * configure: (generated) ditto.
711         * intrinsics/dprod_r8.f90: Add "implicit none".
712
713 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
714
715         PR libfortran/36420
716         PR libfortran/36421
717         PR libfortran/36422
718         * io/io.h: Add prototype for write_real.
719         * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
720         use write_real.
721         * io/format.c: Add zero width error message. (parse_format_list): Use
722         error message for FMT_A if followed by FMT_ZERO. Use zero width error
723         message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
724         Fix typo in comment.
725         * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
726         (write_l): Add wlen variable and use it if FMT_G and width is zero.
727         (write_decimal): If FMT_G, set m to -1 to flag processor dependent
728         formatting. (write_real): Remove static declaration.
729
730 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
731
732         PR fortran/36319
733         * intrinsics/string_intrinsics_inc.c (string_index): Return
734         correct value for zero-length substring.
735         * intrinsics/cshift0.c: Add _char4 variant.
736         * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
737         wider than a single byte. Add _char4 variant and use above
738         functionality.
739         * intrinsics/eoshift2.c (eoshift2): Likewise.
740         * m4/eoshift1.m4: Likewise.
741         * m4/eoshift3.m4: Likewise.
742         * m4/cshift1.m4: Add _char4 variants.
743         * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
744         _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
745         _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
746         _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
747         _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
748         _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
749         _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
750         _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
751         _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
752         _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
753         _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
754         * generated/eoshift3_4.c: Regenerate.
755         * generated/eoshift1_8.c: Regenerate.
756         * generated/eoshift1_16.c: Regenerate.
757         * generated/cshift1_4.c: Regenerate.
758         * generated/eoshift1_4.c: Regenerate.
759         * generated/eoshift3_8.c: Regenerate.
760         * generated/eoshift3_16.c: Regenerate.
761         * generated/cshift1_8.c: Regenerate.
762         * generated/cshift1_16.c: Regenerate.
763
764 2008-05-25  Tobias Burnus  <burnus@net-b.de>
765
766         PR fortran/32600
767         * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
768         * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
769         * gfortran.map (c_f_procpointer): Remove.
770
771 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
772
773         PR libgfortran/36302
774         * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
775         _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
776         _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
777         _gfortran_cshift0_16_char.  Sort alphabetically.
778         * intrinsics/eoshift0.c:  Add function for kind=16 integer.
779         * intrinsics/eoshift2.c:  Likewise.
780         * intrinsics/cshift0.c:  Likewise.
781
782 2008-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
783
784         * m4/in_pack.m4 (internal_pack_'rtype_code`):  Destination
785         pointer is restrict.
786         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
787         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
788         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
789         (spread_scalar_'rtype_code`): Likewise.
790         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
791         * m4/eoshift1.m4 (eoshift1):  Likewise.
792         * m4/eoshift3.m4 (eoshift3):  Likewise.
793         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):  Likewise.
794         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
795         (unpack1_'rtype_code`):  Likewise.
796         * intrinsics/pack_generic.c (pack_generic.c):  Likewise.
797         * intrinsics/unpack_generic.c (unpack_internal):  Likewise.
798         * intrinsics/eoshift0.c (eoshift0):  Likewise.
799         * intrinsics/eoshift2.c (eoshift2):  Likewise.
800         * intrinsics/reshape_generic.c (reshape_internal):  Likewise.
801         * intrinsics/reshape_packed.c (reshape_packed):  Likewise.
802         * generated/eoshift1_16.c: Regenerated.
803         * generated/eoshift1_4.c: Regenerated.
804         * generated/eoshift1_8.c: Regenerated.
805         * generated/eoshift3_16.c: Regenerated.
806         * generated/eoshift3_4.c: Regenerated.
807         * generated/eoshift3_8.c: Regenerated.
808         * generated/in_pack_c10.c: Regenerated.
809         * generated/in_pack_c16.c: Regenerated.
810         * generated/in_pack_c4.c: Regenerated.
811         * generated/in_pack_c8.c: Regenerated.
812         * generated/in_pack_i1.c: Regenerated.
813         * generated/in_pack_i16.c: Regenerated.
814         * generated/in_pack_i2.c: Regenerated.
815         * generated/in_pack_i4.c: Regenerated.
816         * generated/in_pack_i8.c: Regenerated.
817         * generated/in_pack_r10.c: Regenerated.
818         * generated/in_pack_r16.c: Regenerated.
819         * generated/in_pack_r4.c: Regenerated.
820         * generated/in_pack_r8.c: Regenerated.
821         * generated/in_unpack_c10.c: Regenerated.
822         * generated/in_unpack_c16.c: Regenerated.
823         * generated/in_unpack_c4.c: Regenerated.
824         * generated/in_unpack_c8.c: Regenerated.
825         * generated/in_unpack_i1.c: Regenerated.
826         * generated/in_unpack_i16.c: Regenerated.
827         * generated/in_unpack_i2.c: Regenerated.
828         * generated/in_unpack_i4.c: Regenerated.
829         * generated/in_unpack_i8.c: Regenerated.
830         * generated/in_unpack_r10.c: Regenerated.
831         * generated/in_unpack_r16.c: Regenerated.
832         * generated/in_unpack_r4.c: Regenerated.
833         * generated/in_unpack_r8.c: Regenerated.
834         * generated/maxloc0_16_i1.c: Regenerated.
835         * generated/maxloc0_16_i16.c: Regenerated.
836         * generated/maxloc0_16_i2.c: Regenerated.
837         * generated/maxloc0_16_i4.c: Regenerated.
838         * generated/maxloc0_16_i8.c: Regenerated.
839         * generated/maxloc0_16_r10.c: Regenerated.
840         * generated/maxloc0_16_r16.c: Regenerated.
841         * generated/maxloc0_16_r4.c: Regenerated.
842         * generated/maxloc0_16_r8.c: Regenerated.
843         * generated/maxloc0_4_i1.c: Regenerated.
844         * generated/maxloc0_4_i16.c: Regenerated.
845         * generated/maxloc0_4_i2.c: Regenerated.
846         * generated/maxloc0_4_i4.c: Regenerated.
847         * generated/maxloc0_4_i8.c: Regenerated.
848         * generated/maxloc0_4_r10.c: Regenerated.
849         * generated/maxloc0_4_r16.c: Regenerated.
850         * generated/maxloc0_4_r4.c: Regenerated.
851         * generated/maxloc0_4_r8.c: Regenerated.
852         * generated/maxloc0_8_i1.c: Regenerated.
853         * generated/maxloc0_8_i16.c: Regenerated.
854         * generated/maxloc0_8_i2.c: Regenerated.
855         * generated/maxloc0_8_i4.c: Regenerated.
856         * generated/maxloc0_8_i8.c: Regenerated.
857         * generated/maxloc0_8_r10.c: Regenerated.
858         * generated/maxloc0_8_r16.c: Regenerated.
859         * generated/maxloc0_8_r4.c: Regenerated.
860         * generated/maxloc0_8_r8.c: Regenerated.
861         * generated/minloc0_16_i1.c: Regenerated.
862         * generated/minloc0_16_i16.c: Regenerated.
863         * generated/minloc0_16_i2.c: Regenerated.
864         * generated/minloc0_16_i4.c: Regenerated.
865         * generated/minloc0_16_i8.c: Regenerated.
866         * generated/minloc0_16_r10.c: Regenerated.
867         * generated/minloc0_16_r16.c: Regenerated.
868         * generated/minloc0_16_r4.c: Regenerated.
869         * generated/minloc0_16_r8.c: Regenerated.
870         * generated/minloc0_4_i1.c: Regenerated.
871         * generated/minloc0_4_i16.c: Regenerated.
872         * generated/minloc0_4_i2.c: Regenerated.
873         * generated/minloc0_4_i4.c: Regenerated.
874         * generated/minloc0_4_i8.c: Regenerated.
875         * generated/minloc0_4_r10.c: Regenerated.
876         * generated/minloc0_4_r16.c: Regenerated.
877         * generated/minloc0_4_r4.c: Regenerated.
878         * generated/minloc0_4_r8.c: Regenerated.
879         * generated/minloc0_8_i1.c: Regenerated.
880         * generated/minloc0_8_i16.c: Regenerated.
881         * generated/minloc0_8_i2.c: Regenerated.
882         * generated/minloc0_8_i4.c: Regenerated.
883         * generated/minloc0_8_i8.c: Regenerated.
884         * generated/minloc0_8_r10.c: Regenerated.
885         * generated/minloc0_8_r16.c: Regenerated.
886         * generated/minloc0_8_r4.c: Regenerated.
887         * generated/minloc0_8_r8.c: Regenerated.
888         * generated/pack_c10.c: Regenerated.
889         * generated/pack_c16.c: Regenerated.
890         * generated/pack_c4.c: Regenerated.
891         * generated/pack_c8.c: Regenerated.
892         * generated/pack_i1.c: Regenerated.
893         * generated/pack_i16.c: Regenerated.
894         * generated/pack_i2.c: Regenerated.
895         * generated/pack_i4.c: Regenerated.
896         * generated/pack_i8.c: Regenerated.
897         * generated/pack_r10.c: Regenerated.
898         * generated/pack_r16.c: Regenerated.
899         * generated/pack_r4.c: Regenerated.
900         * generated/pack_r8.c: Regenerated.
901         * generated/spread_c10.c: Regenerated.
902         * generated/spread_c16.c: Regenerated.
903         * generated/spread_c4.c: Regenerated.
904         * generated/spread_c8.c: Regenerated.
905         * generated/spread_i1.c: Regenerated.
906         * generated/spread_i16.c: Regenerated.
907         * generated/spread_i2.c: Regenerated.
908         * generated/spread_i4.c: Regenerated.
909         * generated/spread_i8.c: Regenerated.
910         * generated/spread_r10.c: Regenerated.
911         * generated/spread_r16.c: Regenerated.
912         * generated/spread_r4.c: Regenerated.
913         * generated/spread_r8.c: Regenerated.
914         * generated/transpose_c10.c: Regenerated.
915         * generated/transpose_c16.c: Regenerated.
916         * generated/transpose_c4.c: Regenerated.
917         * generated/transpose_c8.c: Regenerated.
918         * generated/transpose_i16.c: Regenerated.
919         * generated/transpose_i4.c: Regenerated.
920         * generated/transpose_i8.c: Regenerated.
921         * generated/transpose_r10.c: Regenerated.
922         * generated/transpose_r16.c: Regenerated.
923         * generated/transpose_r4.c: Regenerated.
924         * generated/transpose_r8.c: Regenerated.
925         * generated/unpack_c10.c: Regenerated.
926         * generated/unpack_c16.c: Regenerated.
927         * generated/unpack_c4.c: Regenerated.
928         * generated/unpack_c8.c: Regenerated.
929         * generated/unpack_i1.c: Regenerated.
930         * generated/unpack_i16.c: Regenerated.
931         * generated/unpack_i2.c: Regenerated.
932         * generated/unpack_i4.c: Regenerated.
933         * generated/unpack_i8.c: Regenerated.
934         * generated/unpack_r10.c: Regenerated.
935         * generated/unpack_r16.c: Regenerated.
936         * generated/unpack_r4.c: Regenerated.
937         * generated/unpack_r8.c: Regenerated.
938
939 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
940
941         * runtime/select.c: Moved content to select_inc.c. Include it. 
942         Add macros for different character types.
943         * runtime/select_inc.c: New file.
944         * runtime/convert_char.c: New file.
945         * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
946         functions.
947         * intrinsics/transpose_generic.c (transpose_char4): New function.
948         * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
949         New functions.
950         * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4): 
951         New functions.
952         * intrinsics/reshape_generic.c (reshape_char): Use
953         gfc_charlen_type as type for length variables.
954         (reshape_char4): New function.
955         * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
956         _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
957         _gfortran_transpose_char4, _gfortran_spread_char4,
958         _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
959         _gfortran_pack_char4, _gfortran_pack_s_char4,
960         _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
961         * Makefile.am: Add runtime/convert_char.c.
962         * Makefile.in: Regenerate.
963
964 2008-05-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
965
966         * io/list_read.c (list_formatted_read_scalar):  Declare
967         type as volatile to shut up compiler warning.
968
969 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
970
971         PR libfortran/25561
972         * io/io.h (struct fbuf): Change pointer to position offset.
973         * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
974         changes.
975         (fbuf_reset): ptr=>pos changes.
976         (fbuf_alloc): If the request doesn't fit, don't waste memory by
977         keeping flushed bytes. ptr=>pos changes.
978         (fbuf_flush): ptr=>pos changes.
979         (fbuf_seek): Don't seek past the left tab limit, don't update active
980         byte count.
981         * io/open.c (new_unit): If RECL has been specified, used that as
982         initial buffer size.
983
984 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
985
986         PR libfortran/35632
987         * io/open.c (new_unit): Set stream position to correct value.
988
989 2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>
990
991         PR libfortran/25561
992         * Makefile.am: Add fbuf.c to gfor_io_src.
993         * Makefile.in: Regenerate.
994         * io/io.h (read_block): Remove.
995         (struct stream): Remove alloc_r_at function pointer.
996         (salloc_r): Remove.
997         (salloc_r_at): Remove.
998         (salloc_w_at): Remove.
999         (salloc_w): Remove offset argument.
1000         (struct fbuf): New struct for format buffer.
1001         (struct gfc_unit): Add fbuf.
1002         (read_block_form): New prototype.
1003         (fbuf_init): Likewise.
1004         (fbuf_destroy): Likewise.
1005         (fbuf_reset): Likewise.
1006         (fbuf_alloc): Likewise.
1007         (fbuf_flush): Likewise.
1008         (fbuf_seek): Likewise.
1009         * io/file_pos.c (formatted_backspace): Change to use sread.
1010         (unformatted_backspace): Likewise.
1011         (st_backspace): Flush format buffer.
1012         (st_rewind): Likewise.
1013         * io/list_read.c (next_char): Likewise.
1014         (nml_query): Tidying, flush format buffer.
1015         * io/open.c (new_unit): Init format buffer.
1016         * io/read.c (read_l): Change to use read_block_form.
1017         (read_a): Likewise.
1018         (read_decimal): Likewise.
1019         (read_radix): Likewise.
1020         (read_f): Likewise.
1021         (read_x): Empty reads also for stream I/O.
1022         * io/transfer.c (read_sf): Change to use sread.
1023         (read_block): Rename to read_block_form, change prototype, use sread.
1024         (read_block_direct): Don't seek stream files.
1025         (write_block): Change to use fbuf if external file, don't seek stream
1026         files.
1027         (write_buf): Don't seek stream files.
1028         (formatted_transfer_scalar): Use fbuf for external files.
1029         (us_read): Change to use sread.
1030         (pre_position): Do nothing for stream I/O.
1031         (data_transfer_init): Flush fbuf when switching from write to read, if
1032         POS is specified, seek stream file to correct offset.
1033         (skip_record): Change to use sread.
1034         (min_off): New function.
1035         (next_record_r): Change to use sread.
1036         (next_record_w): Change to use sset/sseek, flush fbuf.
1037         (finalize_transfer): Flush fbuf.
1038         * io/unit.c (init_units): Init fbuf for stdout, stderr.
1039         (close_unit_1): Destroy fbuf.
1040         (finish_last_advance_record): Flush fbuf, no need to seek.
1041         * io/unix.c (fd_alloc_r_at): Remove unused where argument.
1042         (fd_alloc_w_at): Likewise.
1043         (fd_read): Remove third argument to fd_alloc_r_at.
1044         (fd_write): Remove third argument to fd_alloc_w_at.
1045         (fd_sset): Likewise.
1046         (fd_open): Don't set alloc_r_at.
1047         (mem_alloc_r_at): Remove unused where argument.
1048         (mem_alloc_w_at): Likewise.
1049         (mem_read): Don't incorrectly return previous errno, remove unused
1050         third argument to alloc function.
1051         (mem_write): Likewise.
1052         (mem_set): Likewise.
1053         (open_internal): Don't set alloc_r_at pointer.
1054         * io/fbuf.c: New file.
1055
1056 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1057
1058         * libgfortran.h (gfc_char4_t): New type.
1059         (GFC_SIZE_OF_CHAR_KIND): New macro.
1060         (compare_string): Adjust prototype.
1061         (compare_string_char4): New prototype.
1062         * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
1063         _gfortran_adjustr_char4, _gfortran_compare_string_char4,
1064         _gfortran_concat_string_char4, _gfortran_string_index_char4,
1065         _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
1066         _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
1067         _gfortran_string_verify_char4.
1068         * intrinsics/string_intrinsics_inc.c: New file from content of
1069         string_intrinsics.c with types replaced by macros.
1070         * intrinsics/string_intrinsics.c: Move content to
1071         string_intrinsics_inc.c.
1072
1073 2008-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1074
1075         PR libfortran/36202
1076         * io/list_read (eat_separator): Handle the CR-LF case correctly.
1077
1078 2008-05-09  Julian Brown  <julian@codesourcery.com>
1079
1080         * Makefile.am (LTLDFLAGS): New.
1081         (libgfortran_la_LDFLAGS): Use above.
1082         * Makefile.in: Regenerate.
1083
1084 2008-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1085
1086         PR libfortran/36131
1087         * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
1088         (next_record_w): Likewise.
1089
1090 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
1091
1092         PR libfortran/35995
1093         * m4/ifunction_logical.m4:  If the extent of "array"
1094         is less than zero, set it to zero.  Use an explicit
1095         flag for breaking out of the main loop to avoid, because
1096         the data pointer for "array" may be NULL for an empty
1097         array.
1098         * m4/ifunction.m4:  Likewise.
1099         * generated/all_l1.c: Regenerated.
1100         * generated/all_l16.c: Regenerated.
1101         * generated/all_l2.c: Regenerated.
1102         * generated/all_l4.c: Regenerated.
1103         * generated/all_l8.c: Regenerated.
1104         * generated/any_l1.c: Regenerated.
1105         * generated/any_l16.c: Regenerated.
1106         * generated/any_l2.c: Regenerated.
1107         * generated/any_l4.c: Regenerated.
1108         * generated/any_l8.c: Regenerated.
1109         * generated/count_16_l.c: Regenerated.
1110         * generated/count_1_l.c: Regenerated.
1111         * generated/count_2_l.c: Regenerated.
1112         * generated/count_4_l.c: Regenerated.
1113         * generated/count_8_l.c: Regenerated.
1114         * generated/maxloc1_16_i1.c: Regenerated.
1115         * generated/maxloc1_16_i16.c: Regenerated.
1116         * generated/maxloc1_16_i2.c: Regenerated.
1117         * generated/maxloc1_16_i4.c: Regenerated.
1118         * generated/maxloc1_16_i8.c: Regenerated.
1119         * generated/maxloc1_16_r10.c: Regenerated.
1120         * generated/maxloc1_16_r16.c: Regenerated.
1121         * generated/maxloc1_16_r4.c: Regenerated.
1122         * generated/maxloc1_16_r8.c: Regenerated.
1123         * generated/maxloc1_4_i1.c: Regenerated.
1124         * generated/maxloc1_4_i16.c: Regenerated.
1125         * generated/maxloc1_4_i2.c: Regenerated.
1126         * generated/maxloc1_4_i4.c: Regenerated.
1127         * generated/maxloc1_4_i8.c: Regenerated.
1128         * generated/maxloc1_4_r10.c: Regenerated.
1129         * generated/maxloc1_4_r16.c: Regenerated.
1130         * generated/maxloc1_4_r4.c: Regenerated.
1131         * generated/maxloc1_4_r8.c: Regenerated.
1132         * generated/maxloc1_8_i1.c: Regenerated.
1133         * generated/maxloc1_8_i16.c: Regenerated.
1134         * generated/maxloc1_8_i2.c: Regenerated.
1135         * generated/maxloc1_8_i4.c: Regenerated.
1136         * generated/maxloc1_8_i8.c: Regenerated.
1137         * generated/maxloc1_8_r10.c: Regenerated.
1138         * generated/maxloc1_8_r16.c: Regenerated.
1139         * generated/maxloc1_8_r4.c: Regenerated.
1140         * generated/maxloc1_8_r8.c: Regenerated.
1141         * generated/maxval_i1.c: Regenerated.
1142         * generated/maxval_i16.c: Regenerated.
1143         * generated/maxval_i2.c: Regenerated.
1144         * generated/maxval_i4.c: Regenerated.
1145         * generated/maxval_i8.c: Regenerated.
1146         * generated/maxval_r10.c: Regenerated.
1147         * generated/maxval_r16.c: Regenerated.
1148         * generated/maxval_r4.c: Regenerated.
1149         * generated/maxval_r8.c: Regenerated.
1150         * generated/minloc1_16_i1.c: Regenerated.
1151         * generated/minloc1_16_i16.c: Regenerated.
1152         * generated/minloc1_16_i2.c: Regenerated.
1153         * generated/minloc1_16_i4.c: Regenerated.
1154         * generated/minloc1_16_i8.c: Regenerated.
1155         * generated/minloc1_16_r10.c: Regenerated.
1156         * generated/minloc1_16_r16.c: Regenerated.
1157         * generated/minloc1_16_r4.c: Regenerated.
1158         * generated/minloc1_16_r8.c: Regenerated.
1159         * generated/minloc1_4_i1.c: Regenerated.
1160         * generated/minloc1_4_i16.c: Regenerated.
1161         * generated/minloc1_4_i2.c: Regenerated.
1162         * generated/minloc1_4_i4.c: Regenerated.
1163         * generated/minloc1_4_i8.c: Regenerated.
1164         * generated/minloc1_4_r10.c: Regenerated.
1165         * generated/minloc1_4_r16.c: Regenerated.
1166         * generated/minloc1_4_r4.c: Regenerated.
1167         * generated/minloc1_4_r8.c: Regenerated.
1168         * generated/minloc1_8_i1.c: Regenerated.
1169         * generated/minloc1_8_i16.c: Regenerated.
1170         * generated/minloc1_8_i2.c: Regenerated.
1171         * generated/minloc1_8_i4.c: Regenerated.
1172         * generated/minloc1_8_i8.c: Regenerated.
1173         * generated/minloc1_8_r10.c: Regenerated.
1174         * generated/minloc1_8_r16.c: Regenerated.
1175         * generated/minloc1_8_r4.c: Regenerated.
1176         * generated/minloc1_8_r8.c: Regenerated.
1177         * generated/minval_i1.c: Regenerated.
1178         * generated/minval_i16.c: Regenerated.
1179         * generated/minval_i2.c: Regenerated.
1180         * generated/minval_i4.c: Regenerated.
1181         * generated/minval_i8.c: Regenerated.
1182         * generated/minval_r10.c: Regenerated.
1183         * generated/minval_r16.c: Regenerated.
1184         * generated/minval_r4.c: Regenerated.
1185         * generated/minval_r8.c: Regenerated.
1186         * generated/product_c10.c: Regenerated.
1187         * generated/product_c16.c: Regenerated.
1188         * generated/product_c4.c: Regenerated.
1189         * generated/product_c8.c: Regenerated.
1190         * generated/product_i1.c: Regenerated.
1191         * generated/product_i16.c: Regenerated.
1192         * generated/product_i2.c: Regenerated.
1193         * generated/product_i4.c: Regenerated.
1194         * generated/product_i8.c: Regenerated.
1195         * generated/product_r10.c: Regenerated.
1196         * generated/product_r16.c: Regenerated.
1197         * generated/product_r4.c: Regenerated.
1198         * generated/product_r8.c: Regenerated.
1199         * generated/sum_c10.c: Regenerated.
1200         * generated/sum_c16.c: Regenerated.
1201         * generated/sum_c4.c: Regenerated.
1202         * generated/sum_c8.c: Regenerated.
1203         * generated/sum_i1.c: Regenerated.
1204         * generated/sum_i16.c: Regenerated.
1205         * generated/sum_i2.c: Regenerated.
1206         * generated/sum_i4.c: Regenerated.
1207         * generated/sum_i8.c: Regenerated.
1208         * generated/sum_r10.c: Regenerated.
1209         * generated/sum_r16.c: Regenerated.
1210         * generated/sum_r4.c: Regenerated.
1211         * generated/sum_r8.c: Regenerated.
1212
1213 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
1214
1215         PR libfortran/35990
1216         * intrinsics/pack_generic.c:  Really commit.
1217
1218 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
1219
1220         PR libfortran/35990
1221         * intrinsics/pack_generic.c:  If an extent of the source
1222         array is less then zero, set it to zero.  Set the source
1223         pointer to NULL if the source size is zero.  Set the total
1224         number of elements to zero if the vector has an extent
1225         less or equal to zero.
1226         * m4/pack.m4:  Set the source pointer to NULL if the
1227         source array is zero-sized.  Set the total number of
1228         elemements to zero if the vector has an extent less or
1229         equal to zero.
1230         * generated/pack_i1.c:  Regenerated.
1231         * generated/pack_i2.c:  Regenerated.
1232         * generated/pack_i4.c:  Regenerated.
1233         * generated/pack_i8.c:  Regenerated.
1234         * generated/pack_i16.c:  Regenerated.
1235         * generated/pack_r4.c:  Regenerated.
1236         * generated/pack_r8.c:  Regenerated.
1237         * generated/pack_r10.c:  Regenerated.
1238         * generated/pack_r16.c:  Regenerated.
1239         * generated/pack_c4.c:  Regenerated.
1240         * generated/pack_c8.c:  Regenerated.
1241         * generated/pack_c10.c:  Regenerated.
1242         * generated/pack_c16.c:  Regenerated.
1243
1244 2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1245
1246         PR libfortran/36094
1247         * runtime/error.c (show_locus): Provide modified error message when
1248         filename has not yet been associated with a unit number.
1249         * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
1250
1251 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1252
1253         * intrinsics/selected_char_kind.c: New file.
1254         * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
1255         * Makefile.am: Add intrinsics/selected_char_kind.c.
1256         * Makefile.in: Regenerate.
1257
1258 2008-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
1259
1260         PR libfortran/35993
1261         * ifunction.m4 (SCALAR_ARRAY_FUNCTION):  Use correct
1262         implementation for multi-dimensional return arrays when
1263         the mask is .false.
1264         * generated/maxloc1_16_i1.c: Regenerated.
1265         * generated/maxloc1_16_i16.c: Regenerated.
1266         * generated/maxloc1_16_i2.c: Regenerated.
1267         * generated/maxloc1_16_i4.c: Regenerated.
1268         * generated/maxloc1_16_i8.c: Regenerated.
1269         * generated/maxloc1_16_r10.c: Regenerated.
1270         * generated/maxloc1_16_r16.c: Regenerated.
1271         * generated/maxloc1_16_r4.c: Regenerated.
1272         * generated/maxloc1_16_r8.c: Regenerated.
1273         * generated/maxloc1_4_i1.c: Regenerated.
1274         * generated/maxloc1_4_i16.c: Regenerated.
1275         * generated/maxloc1_4_i2.c: Regenerated.
1276         * generated/maxloc1_4_i4.c: Regenerated.
1277         * generated/maxloc1_4_i8.c: Regenerated.
1278         * generated/maxloc1_4_r10.c: Regenerated.
1279         * generated/maxloc1_4_r16.c: Regenerated.
1280         * generated/maxloc1_4_r4.c: Regenerated.
1281         * generated/maxloc1_4_r8.c: Regenerated.
1282         * generated/maxloc1_8_i1.c: Regenerated.
1283         * generated/maxloc1_8_i16.c: Regenerated.
1284         * generated/maxloc1_8_i2.c: Regenerated.
1285         * generated/maxloc1_8_i4.c: Regenerated.
1286         * generated/maxloc1_8_i8.c: Regenerated.
1287         * generated/maxloc1_8_r10.c: Regenerated.
1288         * generated/maxloc1_8_r16.c: Regenerated.
1289         * generated/maxloc1_8_r4.c: Regenerated.
1290         * generated/maxloc1_8_r8.c: Regenerated.
1291         * generated/maxval_i1.c: Regenerated.
1292         * generated/maxval_i16.c: Regenerated.
1293         * generated/maxval_i2.c: Regenerated.
1294         * generated/maxval_i4.c: Regenerated.
1295         * generated/maxval_i8.c: Regenerated.
1296         * generated/maxval_r10.c: Regenerated.
1297         * generated/maxval_r16.c: Regenerated.
1298         * generated/maxval_r4.c: Regenerated.
1299         * generated/maxval_r8.c: Regenerated.
1300         * generated/minloc1_16_i1.c: Regenerated.
1301         * generated/minloc1_16_i16.c: Regenerated.
1302         * generated/minloc1_16_i2.c: Regenerated.
1303         * generated/minloc1_16_i4.c: Regenerated.
1304         * generated/minloc1_16_i8.c: Regenerated.
1305         * generated/minloc1_16_r10.c: Regenerated.
1306         * generated/minloc1_16_r16.c: Regenerated.
1307         * generated/minloc1_16_r4.c: Regenerated.
1308         * generated/minloc1_16_r8.c: Regenerated.
1309         * generated/minloc1_4_i1.c: Regenerated.
1310         * generated/minloc1_4_i16.c: Regenerated.
1311         * generated/minloc1_4_i2.c: Regenerated.
1312         * generated/minloc1_4_i4.c: Regenerated.
1313         * generated/minloc1_4_i8.c: Regenerated.
1314         * generated/minloc1_4_r10.c: Regenerated.
1315         * generated/minloc1_4_r16.c: Regenerated.
1316         * generated/minloc1_4_r4.c: Regenerated.
1317         * generated/minloc1_4_r8.c: Regenerated.
1318         * generated/minloc1_8_i1.c: Regenerated.
1319         * generated/minloc1_8_i16.c: Regenerated.
1320         * generated/minloc1_8_i2.c: Regenerated.
1321         * generated/minloc1_8_i4.c: Regenerated.
1322         * generated/minloc1_8_i8.c: Regenerated.
1323         * generated/minloc1_8_r10.c: Regenerated.
1324         * generated/minloc1_8_r16.c: Regenerated.
1325         * generated/minloc1_8_r4.c: Regenerated.
1326         * generated/minloc1_8_r8.c: Regenerated.
1327         * generated/minval_i1.c: Regenerated.
1328         * generated/minval_i16.c: Regenerated.
1329         * generated/minval_i2.c: Regenerated.
1330         * generated/minval_i4.c: Regenerated.
1331         * generated/minval_i8.c: Regenerated.
1332         * generated/minval_r10.c: Regenerated.
1333         * generated/minval_r16.c: Regenerated.
1334         * generated/minval_r4.c: Regenerated.
1335         * generated/minval_r8.c: Regenerated.
1336         * generated/product_c10.c: Regenerated.
1337         * generated/product_c16.c: Regenerated.
1338         * generated/product_c4.c: Regenerated.
1339         * generated/product_c8.c: Regenerated.
1340         * generated/product_i1.c: Regenerated.
1341         * generated/product_i16.c: Regenerated.
1342         * generated/product_i2.c: Regenerated.
1343         * generated/product_i4.c: Regenerated.
1344         * generated/product_i8.c: Regenerated.
1345         * generated/product_r10.c: Regenerated.
1346         * generated/product_r16.c: Regenerated.
1347         * generated/product_r4.c: Regenerated.
1348         * generated/product_r8.c: Regenerated.
1349         * generated/sum_c10.c: Regenerated.
1350         * generated/sum_c16.c: Regenerated.
1351         * generated/sum_c4.c: Regenerated.
1352         * generated/sum_c8.c: Regenerated.
1353         * generated/sum_i1.c: Regenerated.
1354         * generated/sum_i16.c: Regenerated.
1355         * generated/sum_i2.c: Regenerated.
1356         * generated/sum_i4.c: Regenerated.
1357         * generated/sum_i8.c: Regenerated.
1358         * generated/sum_r10.c: Regenerated.
1359         * generated/sum_r16.c: Regenerated.
1360         * generated/sum_r4.c: Regenerated.
1361         * generated/sum_r8.c: Regenerated.
1362
1363 2008-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
1364
1365         PR libfortran/35960
1366         * m4/reshape.m4:  Fix typo in last commit.
1367         * generated/reshape_i4.c:  Regererated.
1368         * generated/reshape_i8.c:  Regenerated.
1369         * generated/reshape_i16.c:  Regenerated.
1370         * generated/reshape_r4.c:  Regenerated.
1371         * generated/reshape_r8.c:  Regenerated.
1372         * generated/reshape_r10.c:  Regenerated.
1373         * generated/reshape_r16.c:  Regenerated.
1374         * generated/reshape_c4.c:  Regenerated.
1375         * generated/reshape_c8.c:  Regenerated.
1376         * generated/reshape_c10.c:  Regenerated.
1377         * generated/reshape_c16.c:  Regenerated.
1378
1379 2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1380
1381         * intrinsics/time_1.h (__time_1): Remove unused variable.
1382
1383 2008-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1384
1385         PR libfortran/35988
1386         * m4/matmul.m4:  Only issue a runtime error if extents are
1387         non-zero.
1388         * generated/matmul_i1.c:  Regenerated.
1389         * generated/matmul_i2.c:  Regenerated.
1390         * generated/matmul_i4.c:  Regenerated.
1391         * generated/matmul_i8.c:  Regenerated.
1392         * generated/matmul_i16.c:  Regenerated.
1393         * generated/matmul_r4.c:  Regenerated.
1394         * generated/matmul_r8.c:  Regenerated.
1395         * generated/matmul_r10.c:  Regenerated.
1396         * generated/matmul_r16.c:  Regenerated.
1397         * generated/matmul_c4.c:  Regenerated.
1398         * generated/matmul_c8.c:  Regenerated.
1399         * generated/matmul_c10.c:  Regenerated.
1400         * generated/matmul_c16.c:  Regenerated.
1401
1402 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1403
1404         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
1405         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
1406         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
1407         (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
1408         (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
1409         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
1410         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
1411         (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
1412         Fix cache variable names.
1413         * configure, Makefile.in: Regenerate.
1414
1415 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1416
1417         PR fortran/35991
1418         * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
1419
1420 2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
1421
1422         PR libfortran/35960
1423         * intrinsics/reshape_generic.c (reshape_internal): If the size
1424         of the resized array is zero, as determined by the SHAPE
1425         argument, return early.
1426         * m4/reshape.m4:  Likewise.
1427         * generated/reshape_i4.c:  Regererated.
1428         * generated/reshape_i8.c:  Regenerated.
1429         * generated/reshape_i16.c:  Regenerated.
1430         * generated/reshape_r4.c:  Regenerated.
1431         * generated/reshape_r8.c:  Regenerated.
1432         * generated/reshape_r10.c:  Regenerated.
1433         * generated/reshape_r16.c:  Regenerated.
1434         * generated/reshape_c4.c:  Regenerated.
1435         * generated/reshape_c8.c:  Regenerated.
1436         * generated/reshape_c10.c:  Regenerated.
1437         * generated/reshape_c16.c:  Regenerated.
1438
1439 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1440
1441         PR bootstrap/35457
1442         * aclocal.m4: Regenerate.
1443         * configure: Regenerate.
1444
1445 2008-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1446
1447         PR libfortran/32972
1448         * intrinsics/spread_generic.c (spread):  Use spread_i2()
1449         for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
1450
1451 2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
1452         Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1453
1454         PR libfortran/32972
1455         PR libfortran/32512
1456         configure.ac:  Add test for uintptr_t.
1457         configure:  Regenerated.
1458         config.h.in:  Regenerated.
1459         * libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
1460         GFC_DTYPE_DERIVED_2:  New macro.
1461         GFC_DTYPE_DERIVED_4:  New macro.
1462         GFC_DTYPE_DERIVED_8:  New macro.
1463         GFC_DTYPE_DERIVED_16:  New macro.
1464         GFC_UNALIGNED_2:  New macro.
1465         GFC_UNALIGNED_4:  New macro.
1466         GFC_UNALIGNED_8:  New macro.
1467         GFC_UNALIGNED_16:  New macro.
1468         intptr_t:  Define if we don't have it.
1469         uintptr_t:  Likewise.
1470         * runtime/backtrace.c (show_backtrace):  Use intptr_t.
1471         * intrinsics/signal.c (signal_sub):  Likewise.
1472         (signal_sub_int):  Likewise.
1473         (alarm_sub_int_i4):  Likewise.
1474         * intrinsics/spread_generic.c (spread):  Use the integer
1475         routines for handling derived types of sizes 1, 2, 4, 8 and 16
1476         if the alignment of all pointers is correct.
1477         (spread_scalar):  Likewise.
1478         * intrinsics/pack_generic.c (pack):  Likewise.
1479         Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
1480         * intrinsics/unpack_generic.c (unpack1):  Likewise.
1481         (unpack0):  Likewise.
1482         * runtime/in_pack_generic.c (internal_pack):  Likewise.
1483         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
1484
1485 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
1486
1487         * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
1488         (nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
1489         recursive call.  Use snprintf instead of sprintf when %s nl->var_name
1490         is used.
1491         (nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
1492         nml_read_obj call.  Use snprintf instead of sprintf when %s
1493         nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
1494         of parse_err_msg array.  Append " for namelist variable " and
1495         nl->var_name to it.
1496         (namelist_read): Increase size of nml_err_msg array to 200.  Pass
1497         sizeof nml_err_msg as extra argument to nml_get_obj_data.
1498
1499 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1500
1501         PR fortran/25829 28655
1502         * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
1503         and flags.status. (st_open): Initialize flags.async.
1504         * io/list_read.c (read_charactor): Use delim_status instead of
1505         flags.delim.
1506         * io/read.c (read_x): Use pad_status instead of flags.pad.
1507         * io/inquire.c (inquire_via_unit): Add new checks.
1508         (inquire_via_filename): Likewise.
1509         * io/io.h (st_parameter_inquire): Add new flags.
1510         (st_parameter_dt): Likewise.
1511         * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
1512         flags.async.
1513         * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
1514         pad_status instead of flags.pad. (read_block): Likewise.
1515         (data_transfer_init): Set flags.async and add checks.
1516         * io/write.c (write_character): Use delim_status.
1517         (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
1518         (namelist_write): Likewise.
1519
1520 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1521
1522         PR fortran/25829 28655
1523         * gfortran.map: Add new symbol, _gfortran_st_wait.
1524         * libgfortran.h (st_paramter_common): Add new I/O parameters.
1525         * open.c (st_option decimal_opt[], st_option encoding_opt[],
1526         st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
1527         parameter option arrays. (edit_modes): Add checks for new parameters.
1528         (new_unit): Likewise. (st_open): Likewise.
1529         * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
1530         (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
1531         (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
1532         * read.c (read_a): Use decimal status flag to allow comma in place of a
1533         decimal point. (read_f): Allow comma as acceptable character in float.
1534         According to decimal flag, substitute a period for a comma.
1535         (read_x): If decimal status flag is comma, disable the read_comma flag,
1536         not allowing comma as a delimiter, an extension otherwise.
1537         * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
1538         unit_async): New enumerators. Add all new I/O parameters.
1539         * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
1540         (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
1541         (fd_sfree): Use new enumerator. (fd_read): Likewise.
1542         (fd_write): Likewise. (fd_close): Fix whitespace.
1543         (fd_open): Use new enumertors. (tempfile, regular_file,
1544         open_external): Fix whitespace. (output_stream, error_stream): Set
1545         method. (stream_offset): Fix whitespace.
1546         * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
1547         option arrays.  (formatted_transfer_scalar): Set sf_read_comma flag
1548         based on new decimal_status flag. (data_transfer_init): Initialize new
1549         parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
1550         * format.c: (format_lex): Add format specifiers DP, DC, and D.
1551         (parse_format_list): Parse the new specifiers.
1552         * write.c (write_decimal): Use new sign enumerators to set the sign.
1553         (write_complex): Handle decimal comma and semi-colon separator.
1554         (nml_write_obj): Likewise.
1555         * write_float.def: Revise sign enumerators. (calculate_sign): Use new
1556         sign enumerators. (output_float): Likewise. Use new decimal_status flag
1557         to set the decimal character to a point or a comma.
1558         
1559 2008-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
1560
1561         PR libfortran/32972
1562         PR libfortran/32512
1563         * Makefile.am:  Add new variable, i_spread_c, containing
1564         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
1565         spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
1566         spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
1567         * Makefile.in:  Regenerated.
1568         * libgfortran.h:  Add prototypes for spread_i1, spread_i2,
1569         spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
1570         spread_c4, spread_c8, spread_c10, spread_c16,
1571         spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
1572         spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
1573         spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
1574         spread_scalar_c10 and spread_scalar_c16.
1575         Add macros to isolate both type and size information
1576         from array descriptors with a single mask operation.
1577         * intrinsics/spread_generic.c:  Add calls to specific
1578         spread functions.
1579         * m4/spread.m4:  New file.
1580         * generated/spread_i1.c:  New file.
1581         * generated/spread_i2.c:  New file.
1582         * generated/spread_i4.c:  New file.
1583         * generated/spread_i8.c:  New file.
1584         * generated/spread_i16.c:  New file.
1585         * generated/spread_r4.c:  New file.
1586         * generated/spread_r8.c:  New file.
1587         * generated/spread_r10.c:  New file.
1588         * generated/spread_r16.c:  New file.
1589         * generated/spread_c4.c:  New file.
1590         * generated/spread_c8.c:  New file.
1591         * generated/spread_c10.c:  New file.
1592         * generated/spread_c16.c:  New file.
1593
1594 2008-03-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1595
1596         PR libfortran/35699
1597         * io/transfer.c (write_buf):  Don't pad the record, just return if the
1598         data is NULL.  (next_record_w): If there are bytes left in the record
1599         for unformatted direct I/O, pad out the record with zero bytes.
1600
1601 2008-03-28  Tobias Burnus  <burnus@net-b.de>
1602
1603         PR fortran/35721
1604         * intrinsics/associated.c (associated): Ignore different
1605         stride of pointer vs. target if only one element is referred.
1606
1607 2008-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1608
1609         * io/unix.c (fd_close):  Do not close STDIN.
1610
1611 2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org
1612
1613         PR libfortran/32972
1614         * Makefile.am:  Add new variable, i_unpack_c, containing
1615         unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
1616         unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
1617         unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
1618         and unpack_c16.c
1619         Add i_unpack_c to gfor_built_src.
1620         Add rule to generate i_unpack_c from m4/unpack.m4.
1621         * Makefile.in:  Regenerated.
1622         * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
1623         unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
1624         unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
1625         unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
1626         unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
1627         unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
1628         * intrinsics/pack_generic.c (unpack1):  Add calls to specific
1629         unpack1 functions.
1630         (unpack0):  Add calls to specific unpack0 functions.
1631         * m4/unpack.m4:  New file.
1632         * generated/unpack_i1.c:  New file.
1633         * generated/unpack_i2.c:  New file.
1634         * generated/unpack_i4.c:  New file.
1635         * generated/unpack_i8.c:  New file.
1636         * generated/unpack_i16.c:  New file.
1637         * generated/unpack_r4.c:  New file.
1638         * generated/unpack_r8.c:  New file.
1639         * generated/unpack_r10.c:  New file.
1640         * generated/unpack_r16.c:  New file.
1641         * generated/unpack_c4.c:  New file.
1642         * generated/unpack_c8.c:  New file.
1643         * generated/unpack_c10.c:  New file.
1644         * generated/unpack_c16.c:  New file.
1645
1646 2008-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1647
1648         PR libfortran/35632
1649         * io/transfer.c (data_transfer_init):  Fix whitespace.
1650         (next_record_w): Truncate the file only if the stream
1651         position is short of the file end.
1652
1653 2008-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1654
1655         * intrinsics/pack_generic.c:  Fix typo.
1656
1657 2008-03-21  Janne Blomqvist  <jb@gcc.gnu.org>
1658
1659         * gfortran.map: Move erfc_scaled symbols to new symbol node
1660         GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
1661
1662 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1663
1664         PR libfortran/32972
1665         * runtime/in_pack_generic.c (internal_pack):  Call correct
1666         function, pack_i16, for GFC_INTEGER_16.
1667
1668 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1669
1670         PR libfortran/32972
1671         * Makefile.am:  Add new variable, i_pack_c, containing
1672         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
1673         pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
1674         pack_c8.c, pack_c10.c, pack_c16.c.
1675         Add m4/pack.m4 to m4_files.
1676         Add i_pack_c to gfor_built_src.
1677         Add rule to generate i_pack_c from m4/pack.m4.
1678         * Makefile.in:  Regenerated.
1679         * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
1680         pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
1681         pack_c10, pack_c16.
1682         * intrinsics/pack_generic.c:  Add calls to specific
1683         pack functions.
1684         * m4/pack.m4:  New file.
1685         * generated/pack_i1.c:  New file.
1686         * generated/pack_i2.c:  New file.
1687         * generated/pack_i4.c:  New file.
1688         * generated/pack_i8.c:  New file.
1689         * generated/pack_i16.c:  New file.
1690         * generated/pack_r4.c:  New file.
1691         * generated/pack_r8.c:  New file.
1692         * generated/pack_r10.c:  New file.
1693         * generated/pack_r16.c:  New file.
1694         * generated/pack_c4.c:  New file.
1695         * generated/pack_c8.c:  New file.
1696         * generated/pack_c10.c:  New file.
1697         * generated/pack_c16.c:  New file.
1698
1699 2008-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1700
1701         PR libfortran/35627
1702         * io/list_read.c (free_line): Clear the line buffer enable flag and
1703         reset the index into line_buffer, aka item_count.
1704         (next_char): Cleanup whitespace.
1705         (read_logical): Use unget_char to assure that the first character of the
1706         bad logical is saved in case it is part of an object name. Remove the
1707         clearing of index and flag that is now in free_line.
1708         (read_real): Likewise.
1709
1710 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
1711
1712         PR libfortran/32972
1713         * runtime/in_pack_generic.c (internal_pack):  Fix typo in
1714         last commit.
1715
1716 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
1717
1718         PR libfortran/32972
1719         * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
1720         in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
1721         (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
1722         in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
1723         in_unpack_r16.c.
1724         * Makefile.in: Regenerate.
1725         * libgfortran.h:  Add prototypes for internal_pack_1,
1726         internal_pack_2, internal_pack_16, internal_pack_r4,
1727         internal_pack_r8, internal_pack_r10, internal_pack_r16,
1728         internal_pack_c10 and internal_pack_c16.  Add prototypes for
1729         internal_unpack_1, internal_unpack_2, internal_unpack_16,
1730         internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
1731         internal_unpack_r16, internal_unpack_c10 and
1732         internal_unpack_c16.
1733         * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
1734         of hardwired sizes.
1735         Add calls to internal_pack_1, internal_pack_2,
1736         internal_pack_16, internal_pack_r4, internal_pack_r8,
1737         internal_pack_r10, internal_pack_r16, internal_pack_c10 and
1738         internal_pack_c16.
1739         * runtime/in_unpack_generic.c (internal_unpack):  Use sizeof
1740         instead of hardwired sizes.
1741         Add calls to internal_unpack_1, internal_unpack_2,
1742         internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
1743         internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
1744         and internal_unpack_c16.
1745         * generated/in_pack_r4.c:  New file.
1746         * generated/in_pack_i2.c:  New file.
1747         * generated/in_unpack_i1.c:  New file.
1748         * generated/in_pack_r10.c:  New file.
1749         * generated/in_unpack_r4.c:  New file.
1750         * generated/in_unpack_i2.c:  New file.
1751         * generated/in_unpack_r16.c:  New file.
1752         * generated/in_pack_r8.c:  New file.
1753         * generated/in_unpack_r10.c:  New file.
1754         * generated/in_unpack_r8.c:  New file.
1755         * generated/in_pack_r16.c:  New file.
1756         * generated/in_pack_i1.c:  New file.
1757
1758 2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1759
1760         PR libfortran/35617
1761         * io/list_read.c (eat_separator): If next character after eatline is '!'
1762         then eatline again. 
1763
1764 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1765
1766         * aclocal.m4: Regenerate.
1767         * configure: Likewise.
1768         * Makefile.in: Likewise.
1769
1770 2008-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1771
1772         PR libfortran/35524
1773         * intrinsics/erfc_scaled_inc.c: Only define the long double
1774         variant of erfc_scaled if expl is available.
1775
1776 2008-03-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1777
1778         PR libfortran/32812
1779         * intrinsics/random.c (scramble_seed, unscramble_seed): New
1780         functions.
1781         (random_seed_i4): Scramble the seed the user gives us before
1782         storing it, and unscramble it when we return it back later.
1783
1784 2008-03-05  Hans-Peter Nilsson  <hp@axis.com>
1785
1786         PR libfortran/35293
1787         * io/unix.c (fd_truncate): Fold s->special_file case into
1788         success case of ftruncate/chsize call instead of the failure case.
1789         Make failure case actually return failure.  Properly update stream
1790         pointers on failure.  Call runtime_error for targets without
1791         neither ftruncate nor chsize where such a call would be needed.
1792
1793 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1794
1795         PR fortran/33197
1796         * intrinsics/erfc_scaled_inc.c: New file.
1797         * intrinsics/erfc_scaled.c: New file.
1798         * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
1799         * Makefile.am: Add intrinsics/erfc_scaled.c.
1800         * config.h.in: Regenerate.
1801         * configure: Regenerate.
1802         * Makefile.in: Regenerate.
1803
1804 2008-03-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1805
1806         PR libfortran/35355
1807         * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
1808         for mingw.
1809
1810 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1811
1812         PR libfortran/35063
1813         * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
1814         instead of macro kludge.
1815         
1816 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
1817
1818         PR fortran/29549
1819         * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
1820         libgfortran.
1821         * Makefile.in: Regenerated.
1822
1823 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1824
1825         * m4/ifunction_logical.m4: Add casts to get rid of warnings.
1826         * generated/all_l1.c: Regenerate.
1827         * generated/all_l2.c: Regenerate.
1828         * generated/all_l4.c: Regenerate.
1829         * generated/all_l8.c: Regenerate.
1830         * generated/all_l16.c: Regenerate.
1831         * generated/any_l1.c: Regenerate.
1832         * generated/any_l2.c: Regenerate.
1833         * generated/any_l4.c: Regenerate.
1834         * generated/any_l8.c: Regenerate.
1835         * generated/any_l16.c: Regenerate.
1836         * generated/count_1_l.c: Regenerate.
1837         * generated/count_2_l.c: Regenerate.
1838         * generated/count_4_l.c: Regenerate.
1839         * generated/count_8_l.c: Regenerate.
1840         * generated/count_16_l.c: Regenerate.
1841
1842 2008-02-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1843
1844         PR libfortran/32841
1845         * acinclude.m4: Don't use HAVE_MATH_H.
1846         * configure: Regenerate.
1847
1848 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1849
1850         PR libfortran/35132
1851         * io/transfer.c (next_record_w): Truncate after the last record for
1852         STREAM I/O.
1853
1854         PR libfortran/34954
1855         * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
1856
1857         PR libfortran/34974
1858         * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
1859         is less than zero. (next_record_w): Use sseek to position the file to
1860         the max position reached.
1861
1862 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1863
1864         PR libfortran/35036
1865         * write_float.def (output_float):  Add error checks for zero digits
1866         after decimal point in E and D format specifiers.
1867         
1868 2008-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1869
1870         PR libfortran/35063
1871         * io/unit.c (destroy_unit_mutex): New function that uses
1872         __gthread_mutex_destroy_function or pthread_mutex_destroy after
1873         unlocking and before free_mem for final closure of I/O unit.
1874         (delete_root): Use new function.
1875         (free_internal_unit): Likewise.
1876         (close_unit_1): Likewise.
1877
1878 2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
1879
1880         PR libfortran/35001
1881         * m4/shape.m4:  Return 0 for extents <= 0.
1882         * generated/shape_i4.c:  Regenerated.
1883         * generated/shape_i8.c:  Regenerated.
1884         * generated/shape_i16.c:  Regenerated.
1885
1886 2008-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
1887
1888         PR libfortran/34980
1889         * m4/shape.m4:  If return array is empty, return early.
1890         * generated/shape_i4.c:  Regenerated.
1891         * generated/shape_i8.c:  Regenerated.
1892         * generated/shape_i16.c:  Regenerated.
1893
1894 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
1895
1896         PR libfofortran/34887
1897         * io/transfer.c (next_record_w): Always move to the farthest
1898         position when completing the record (also when we are
1899         processing a slash edit descriptor).
1900
1901 2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1902
1903         PR libfortran/34876
1904         * io/transfer.c (write_buf): Handle case of zero sized array.
1905         (transfer_array): Set data pointer to NULL and size to zero.  Then
1906         make a data transfer and return.
1907         
1908 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1909
1910         * configure: Regenerate.
1911
1912 2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1913
1914         PR libfortran/34795
1915         * io/inquire.c (inquire_via_unit): If a unit is opened, return values
1916         according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
1917         (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
1918         FORAMATTED, and UNFORMATTED inquiries.
1919         * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
1920         for files that are not opened. (inquire_direct): Same.
1921         (inquire_formatted): Same.
1922         
1923 2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1924
1925         PR libfortran/34782
1926         * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
1927         of the current max_pos or the newly calculated position.
1928
1929 2008-01-18  Tobias Burnus  <burnus@net-b.de>
1930
1931         * io/write.c (write_real): Increase default precision
1932         for REAL(16) by one.
1933
1934 2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>
1935
1936         PR libfortran/34669
1937         * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
1938         to avoid piping the -fdump-parse-tree output to the assembler
1939         when configuring with -pipe.
1940         * mk-sik-inc.sh: Likewise.
1941         * mk-srk-inc.sh: Likewise.
1942
1943 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
1944
1945         PR libfortran/34671
1946         * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
1947         _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
1948         _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
1949         _gfortran_count_8_l Removed _gfortran_count_16_l16,
1950         _gfortran_count_16_l4, _gfortran_count_16_l8,
1951         _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
1952         _gfortran_count_8_l16, _gfortran_count_8_l4 and
1953         _gfortran_count_8_l8.
1954         * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
1955         i_any_c.  Added generated/all_l1. and generated/all_l2.c to
1956         i_all_c.  Removed generated/count_4_l4.c, generated/count_8_l4.c,
1957         generated/count_16_l4.c, generated/count_4_l8.c,
1958         generated/count_8_l8.c, generated/count_16_l8.c,
1959         generated/count_4_l16.c, generated/count_8_l16.c, and
1960         generated/count_16_l16.c from i_count_c.  Added count_1_l.c,
1961         count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
1962         i_count_c.  I_M4_DEPS2 depends on ifunction_logical.m4, for
1963         any of the files generated from all.m4, any.m4 and count.m4.
1964         * Makefile.in:  Regenerated.
1965         * m4/ifunction_logical.m4:  New file.  Use
1966         GFC_LOGICAL_1 pointer for access to source arrays.
1967         * m4/any.m4:  Include ifunction_logical.m4 instead of
1968         ifunction.m4.  Don't check atype_name.
1969         * m4/all.m4:  Likewise.
1970         * m4/count.m4:  Likewise.
1971         * generated/any_l1.c:  New file.
1972         * generated/any_l2.c:  New file.
1973         * generated/all_l1.c:  New file.
1974         * generated/count_1_l.c:  New file.
1975         * generated/count_2_l.c:  New file.
1976         * generated/count_4_l.c:  New file.
1977         * generated/count_8_l.c:  New file.
1978         * generated/count_16_l.c:  New file.
1979         * generated/any_l4.c:  Regenerated.
1980         * generated/any_l8.c:  Regenerated.
1981         * generated/any_l16.c:  Regenerated.
1982         * generated/all_l4.c: Regenerated.
1983         * generated/all_l8.c: Regenerated.
1984         * generated/all_l16.c: Regenerated.
1985         * generated/count_4_l4.c:  Removed.
1986         * generated/count_4_l8.c:  Removed.
1987         * generated/count_4_l16.c:  Removed.
1988         * generated/count_8_l4.c:  Removed.
1989         * generated/count_8_l8.c:  Removed.
1990         * generated/count_8_l16.c:  Removed.
1991         * generated/count_16_l4.c:  Removed.
1992         * generated/count_16_l8.c:  Removed.
1993         * generated/count_16_l16.c:  Removed.
1994
1995 2008-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
1996
1997         PR libfortran/34746
1998         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Use %ld
1999         in printf format for all bounds checking; cast all
2000         integer-like arguments to runtime_error() to long int.
2001         (`m'name`'rtype_qual`_'atype_code):  Likewise.
2002         (`s'name`'rtype_qual`_'atype_code):  Likewise.
2003         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
2004         (`m'name`'rtype_qual`_'atype_code):  Likewise.
2005         (`s'name`'rtype_qual`_'atype_code):  Likewise.
2006         * generated/all_l16.c: Regenerated.
2007         * generated/all_l4.c: Regenerated.
2008         * generated/all_l8.c: Regenerated.
2009         * generated/any_l16.c: Regenerated.
2010         * generated/any_l4.c: Regenerated.
2011         * generated/any_l8.c: Regenerated.
2012         * generated/count_16_l16.c: Regenerated.
2013         * generated/count_16_l4.c: Regenerated.
2014         * generated/count_16_l8.c: Regenerated.
2015         * generated/count_4_l16.c: Regenerated.
2016         * generated/count_4_l4.c: Regenerated.
2017         * generated/count_4_l8.c: Regenerated.
2018         * generated/count_8_l16.c: Regenerated.
2019         * generated/count_8_l4.c: Regenerated.
2020         * generated/count_8_l8.c: Regenerated.
2021         * generated/maxloc0_16_i1.c: Regenerated.
2022         * generated/maxloc0_16_i16.c: Regenerated.
2023         * generated/maxloc0_16_i2.c: Regenerated.
2024         * generated/maxloc0_16_i4.c: Regenerated.
2025         * generated/maxloc0_16_i8.c: Regenerated.
2026         * generated/maxloc0_16_r10.c: Regenerated.
2027         * generated/maxloc0_16_r16.c: Regenerated.
2028         * generated/maxloc0_16_r4.c: Regenerated.
2029         * generated/maxloc0_16_r8.c: Regenerated.
2030         * generated/maxloc0_4_i1.c: Regenerated.
2031         * generated/maxloc0_4_i16.c: Regenerated.
2032         * generated/maxloc0_4_i2.c: Regenerated.
2033         * generated/maxloc0_4_i4.c: Regenerated.
2034         * generated/maxloc0_4_i8.c: Regenerated.
2035         * generated/maxloc0_4_r10.c: Regenerated.
2036         * generated/maxloc0_4_r16.c: Regenerated.
2037         * generated/maxloc0_4_r4.c: Regenerated.
2038         * generated/maxloc0_4_r8.c: Regenerated.
2039         * generated/maxloc0_8_i1.c: Regenerated.
2040         * generated/maxloc0_8_i16.c: Regenerated.
2041         * generated/maxloc0_8_i2.c: Regenerated.
2042         * generated/maxloc0_8_i4.c: Regenerated.
2043         * generated/maxloc0_8_i8.c: Regenerated.
2044         * generated/maxloc0_8_r10.c: Regenerated.
2045         * generated/maxloc0_8_r16.c: Regenerated.
2046         * generated/maxloc0_8_r4.c: Regenerated.
2047         * generated/maxloc0_8_r8.c: Regenerated.
2048         * generated/maxloc1_16_i1.c: Regenerated.
2049         * generated/maxloc1_16_i16.c: Regenerated.
2050         * generated/maxloc1_16_i2.c: Regenerated.
2051         * generated/maxloc1_16_i4.c: Regenerated.
2052         * generated/maxloc1_16_i8.c: Regenerated.
2053         * generated/maxloc1_16_r10.c: Regenerated.
2054         * generated/maxloc1_16_r16.c: Regenerated.
2055         * generated/maxloc1_16_r4.c: Regenerated.
2056         * generated/maxloc1_16_r8.c: Regenerated.
2057         * generated/maxloc1_4_i1.c: Regenerated.
2058         * generated/maxloc1_4_i16.c: Regenerated.
2059         * generated/maxloc1_4_i2.c: Regenerated.
2060         * generated/maxloc1_4_i4.c: Regenerated.
2061         * generated/maxloc1_4_i8.c: Regenerated.
2062         * generated/maxloc1_4_r10.c: Regenerated.
2063         * generated/maxloc1_4_r16.c: Regenerated.
2064         * generated/maxloc1_4_r4.c: Regenerated.
2065         * generated/maxloc1_4_r8.c: Regenerated.
2066         * generated/maxloc1_8_i1.c: Regenerated.
2067         * generated/maxloc1_8_i16.c: Regenerated.
2068         * generated/maxloc1_8_i2.c: Regenerated.
2069         * generated/maxloc1_8_i4.c: Regenerated.
2070         * generated/maxloc1_8_i8.c: Regenerated.
2071         * generated/maxloc1_8_r10.c: Regenerated.
2072         * generated/maxloc1_8_r16.c: Regenerated.
2073         * generated/maxloc1_8_r4.c: Regenerated.
2074         * generated/maxloc1_8_r8.c: Regenerated.
2075         * generated/maxval_i1.c: Regenerated.
2076         * generated/maxval_i16.c: Regenerated.
2077         * generated/maxval_i2.c: Regenerated.
2078         * generated/maxval_i4.c: Regenerated.
2079         * generated/maxval_i8.c: Regenerated.
2080         * generated/maxval_r10.c: Regenerated.
2081         * generated/maxval_r16.c: Regenerated.
2082         * generated/maxval_r4.c: Regenerated.
2083         * generated/maxval_r8.c: Regenerated.
2084         * generated/minloc0_16_i1.c: Regenerated.
2085         * generated/minloc0_16_i16.c: Regenerated.
2086         * generated/minloc0_16_i2.c: Regenerated.
2087         * generated/minloc0_16_i4.c: Regenerated.
2088         * generated/minloc0_16_i8.c: Regenerated.
2089         * generated/minloc0_16_r10.c: Regenerated.
2090         * generated/minloc0_16_r16.c: Regenerated.
2091         * generated/minloc0_16_r4.c: Regenerated.
2092         * generated/minloc0_16_r8.c: Regenerated.
2093         * generated/minloc0_4_i1.c: Regenerated.
2094         * generated/minloc0_4_i16.c: Regenerated.
2095         * generated/minloc0_4_i2.c: Regenerated.
2096         * generated/minloc0_4_i4.c: Regenerated.
2097         * generated/minloc0_4_i8.c: Regenerated.
2098         * generated/minloc0_4_r10.c: Regenerated.
2099         * generated/minloc0_4_r16.c: Regenerated.
2100         * generated/minloc0_4_r4.c: Regenerated.
2101         * generated/minloc0_4_r8.c: Regenerated.
2102         * generated/minloc0_8_i1.c: Regenerated.
2103         * generated/minloc0_8_i16.c: Regenerated.
2104         * generated/minloc0_8_i2.c: Regenerated.
2105         * generated/minloc0_8_i4.c: Regenerated.
2106         * generated/minloc0_8_i8.c: Regenerated.
2107         * generated/minloc0_8_r10.c: Regenerated.
2108         * generated/minloc0_8_r16.c: Regenerated.
2109         * generated/minloc0_8_r4.c: Regenerated.
2110         * generated/minloc0_8_r8.c: Regenerated.
2111         * generated/minloc1_16_i1.c: Regenerated.
2112         * generated/minloc1_16_i16.c: Regenerated.
2113         * generated/minloc1_16_i2.c: Regenerated.
2114         * generated/minloc1_16_i4.c: Regenerated.
2115         * generated/minloc1_16_i8.c: Regenerated.
2116         * generated/minloc1_16_r10.c: Regenerated.
2117         * generated/minloc1_16_r16.c: Regenerated.
2118         * generated/minloc1_16_r4.c: Regenerated.
2119         * generated/minloc1_16_r8.c: Regenerated.
2120         * generated/minloc1_4_i1.c: Regenerated.
2121         * generated/minloc1_4_i16.c: Regenerated.
2122         * generated/minloc1_4_i2.c: Regenerated.
2123         * generated/minloc1_4_i4.c: Regenerated.
2124         * generated/minloc1_4_i8.c: Regenerated.
2125         * generated/minloc1_4_r10.c: Regenerated.
2126         * generated/minloc1_4_r16.c: Regenerated.
2127         * generated/minloc1_4_r4.c: Regenerated.
2128         * generated/minloc1_4_r8.c: Regenerated.
2129         * generated/minloc1_8_i1.c: Regenerated.
2130         * generated/minloc1_8_i16.c: Regenerated.
2131         * generated/minloc1_8_i2.c: Regenerated.
2132         * generated/minloc1_8_i4.c: Regenerated.
2133         * generated/minloc1_8_i8.c: Regenerated.
2134         * generated/minloc1_8_r10.c: Regenerated.
2135         * generated/minloc1_8_r16.c: Regenerated.
2136         * generated/minloc1_8_r4.c: Regenerated.
2137         * generated/minloc1_8_r8.c: Regenerated.
2138         * generated/minval_i1.c: Regenerated.
2139         * generated/minval_i16.c: Regenerated.
2140         * generated/minval_i2.c: Regenerated.
2141         * generated/minval_i4.c: Regenerated.
2142         * generated/minval_i8.c: Regenerated.
2143         * generated/minval_r10.c: Regenerated.
2144         * generated/minval_r16.c: Regenerated.
2145         * generated/minval_r4.c: Regenerated.
2146         * generated/minval_r8.c: Regenerated.
2147         * generated/product_c10.c: Regenerated.
2148         * generated/product_c16.c: Regenerated.
2149         * generated/product_c4.c: Regenerated.
2150         * generated/product_c8.c: Regenerated.
2151         * generated/product_i1.c: Regenerated.
2152         * generated/product_i16.c: Regenerated.
2153         * generated/product_i2.c: Regenerated.
2154         * generated/product_i4.c: Regenerated.
2155         * generated/product_i8.c: Regenerated.
2156         * generated/product_r10.c: Regenerated.
2157         * generated/product_r16.c: Regenerated.
2158         * generated/product_r4.c: Regenerated.
2159         * generated/product_r8.c: Regenerated.
2160         * generated/sum_c10.c: Regenerated.
2161         * generated/sum_c16.c: Regenerated.
2162         * generated/sum_c4.c: Regenerated.
2163         * generated/sum_c8.c: Regenerated.
2164         * generated/sum_i1.c: Regenerated.
2165         * generated/sum_i16.c: Regenerated.
2166         * generated/sum_i2.c: Regenerated.
2167         * generated/sum_i4.c: Regenerated.
2168         * generated/sum_i8.c: Regenerated.
2169         * generated/sum_r10.c: Regenerated.
2170         * generated/sum_r16.c: Regenerated.
2171         * generated/sum_r4.c: Regenerated.
2172         * generated/sum_r8.c: Regenerated.
2173
2174 2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
2175
2176         PR libfortran/34670
2177         * m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
2178         (u_name):  New macro for the upper case name of the intrinsic.
2179         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
2180         bounds checking and rank check, depending on
2181         compile_options.bounds_check.
2182         (`m'name`'rtype_qual`_'atype_code):  Likewise.
2183         (`s'name`'rtype_qual`_'atype_code):  Likewise.
2184         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
2185         bounds checking and rank check, depending on
2186         compile_options.bounds_check.
2187         (`m'name`'rtype_qual`_'atype_code):  Likewise.
2188         (`s'name`'rtype_qual`_'atype_code):  Likewise.
2189         * generated/all_l16.c: Regenerated.
2190         * generated/all_l4.c: Regenerated.
2191         * generated/all_l8.c: Regenerated.
2192         * generated/any_l16.c: Regenerated.
2193         * generated/any_l4.c: Regenerated.
2194         * generated/any_l8.c: Regenerated.
2195         * generated/count_16_l16.c: Regenerated.
2196         * generated/count_16_l4.c: Regenerated.
2197         * generated/count_16_l8.c: Regenerated.
2198         * generated/count_4_l16.c: Regenerated.
2199         * generated/count_4_l4.c: Regenerated.
2200         * generated/count_4_l8.c: Regenerated.
2201         * generated/count_8_l16.c: Regenerated.
2202         * generated/count_8_l4.c: Regenerated.
2203         * generated/count_8_l8.c: Regenerated.
2204         * generated/maxloc0_16_i1.c: Regenerated.
2205         * generated/maxloc0_16_i16.c: Regenerated.
2206         * generated/maxloc0_16_i2.c: Regenerated.
2207         * generated/maxloc0_16_i4.c: Regenerated.
2208         * generated/maxloc0_16_i8.c: Regenerated.
2209         * generated/maxloc0_16_r10.c: Regenerated.
2210         * generated/maxloc0_16_r16.c: Regenerated.
2211         * generated/maxloc0_16_r4.c: Regenerated.
2212         * generated/maxloc0_16_r8.c: Regenerated.
2213         * generated/maxloc0_4_i1.c: Regenerated.
2214         * generated/maxloc0_4_i16.c: Regenerated.
2215         * generated/maxloc0_4_i2.c: Regenerated.
2216         * generated/maxloc0_4_i4.c: Regenerated.
2217         * generated/maxloc0_4_i8.c: Regenerated.
2218         * generated/maxloc0_4_r10.c: Regenerated.
2219         * generated/maxloc0_4_r16.c: Regenerated.
2220         * generated/maxloc0_4_r4.c: Regenerated.
2221         * generated/maxloc0_4_r8.c: Regenerated.
2222         * generated/maxloc0_8_i1.c: Regenerated.
2223         * generated/maxloc0_8_i16.c: Regenerated.
2224         * generated/maxloc0_8_i2.c: Regenerated.
2225         * generated/maxloc0_8_i4.c: Regenerated.
2226         * generated/maxloc0_8_i8.c: Regenerated.
2227         * generated/maxloc0_8_r10.c: Regenerated.
2228         * generated/maxloc0_8_r16.c: Regenerated.
2229         * generated/maxloc0_8_r4.c: Regenerated.
2230         * generated/maxloc0_8_r8.c: Regenerated.
2231         * generated/maxloc1_16_i1.c: Regenerated.
2232         * generated/maxloc1_16_i16.c: Regenerated.
2233         * generated/maxloc1_16_i2.c: Regenerated.
2234         * generated/maxloc1_16_i4.c: Regenerated.
2235         * generated/maxloc1_16_i8.c: Regenerated.
2236         * generated/maxloc1_16_r10.c: Regenerated.
2237         * generated/maxloc1_16_r16.c: Regenerated.
2238         * generated/maxloc1_16_r4.c: Regenerated.
2239         * generated/maxloc1_16_r8.c: Regenerated.
2240         * generated/maxloc1_4_i1.c: Regenerated.
2241         * generated/maxloc1_4_i16.c: Regenerated.
2242         * generated/maxloc1_4_i2.c: Regenerated.
2243         * generated/maxloc1_4_i4.c: Regenerated.
2244         * generated/maxloc1_4_i8.c: Regenerated.
2245         * generated/maxloc1_4_r10.c: Regenerated.
2246         * generated/maxloc1_4_r16.c: Regenerated.
2247         * generated/maxloc1_4_r4.c: Regenerated.
2248         * generated/maxloc1_4_r8.c: Regenerated.
2249         * generated/maxloc1_8_i1.c: Regenerated.
2250         * generated/maxloc1_8_i16.c: Regenerated.
2251         * generated/maxloc1_8_i2.c: Regenerated.
2252         * generated/maxloc1_8_i4.c: Regenerated.
2253         * generated/maxloc1_8_i8.c: Regenerated.
2254         * generated/maxloc1_8_r10.c: Regenerated.
2255         * generated/maxloc1_8_r16.c: Regenerated.
2256         * generated/maxloc1_8_r4.c: Regenerated.
2257         * generated/maxloc1_8_r8.c: Regenerated.
2258         * generated/maxval_i1.c: Regenerated.
2259         * generated/maxval_i16.c: Regenerated.
2260         * generated/maxval_i2.c: Regenerated.
2261         * generated/maxval_i4.c: Regenerated.
2262         * generated/maxval_i8.c: Regenerated.
2263         * generated/maxval_r10.c: Regenerated.
2264         * generated/maxval_r16.c: Regenerated.
2265         * generated/maxval_r4.c: Regenerated.
2266         * generated/maxval_r8.c: Regenerated.
2267         * generated/minloc0_16_i1.c: Regenerated.
2268         * generated/minloc0_16_i16.c: Regenerated.
2269         * generated/minloc0_16_i2.c: Regenerated.
2270         * generated/minloc0_16_i4.c: Regenerated.
2271         * generated/minloc0_16_i8.c: Regenerated.
2272         * generated/minloc0_16_r10.c: Regenerated.
2273         * generated/minloc0_16_r16.c: Regenerated.
2274         * generated/minloc0_16_r4.c: Regenerated.
2275         * generated/minloc0_16_r8.c: Regenerated.
2276         * generated/minloc0_4_i1.c: Regenerated.
2277         * generated/minloc0_4_i16.c: Regenerated.
2278         * generated/minloc0_4_i2.c: Regenerated.
2279         * generated/minloc0_4_i4.c: Regenerated.
2280         * generated/minloc0_4_i8.c: Regenerated.
2281         * generated/minloc0_4_r10.c: Regenerated.
2282         * generated/minloc0_4_r16.c: Regenerated.
2283         * generated/minloc0_4_r4.c: Regenerated.
2284         * generated/minloc0_4_r8.c: Regenerated.
2285         * generated/minloc0_8_i1.c: Regenerated.
2286         * generated/minloc0_8_i16.c: Regenerated.
2287         * generated/minloc0_8_i2.c: Regenerated.
2288         * generated/minloc0_8_i4.c: Regenerated.
2289         * generated/minloc0_8_i8.c: Regenerated.
2290         * generated/minloc0_8_r10.c: Regenerated.
2291         * generated/minloc0_8_r16.c: Regenerated.
2292         * generated/minloc0_8_r4.c: Regenerated.
2293         * generated/minloc0_8_r8.c: Regenerated.
2294         * generated/minloc1_16_i1.c: Regenerated.
2295         * generated/minloc1_16_i16.c: Regenerated.
2296         * generated/minloc1_16_i2.c: Regenerated.
2297         * generated/minloc1_16_i4.c: Regenerated.
2298         * generated/minloc1_16_i8.c: Regenerated.
2299         * generated/minloc1_16_r10.c: Regenerated.
2300         * generated/minloc1_16_r16.c: Regenerated.
2301         * generated/minloc1_16_r4.c: Regenerated.
2302         * generated/minloc1_16_r8.c: Regenerated.
2303         * generated/minloc1_4_i1.c: Regenerated.
2304         * generated/minloc1_4_i16.c: Regenerated.
2305         * generated/minloc1_4_i2.c: Regenerated.
2306         * generated/minloc1_4_i4.c: Regenerated.
2307         * generated/minloc1_4_i8.c: Regenerated.
2308         * generated/minloc1_4_r10.c: Regenerated.
2309         * generated/minloc1_4_r16.c: Regenerated.
2310         * generated/minloc1_4_r4.c: Regenerated.
2311         * generated/minloc1_4_r8.c: Regenerated.
2312         * generated/minloc1_8_i1.c: Regenerated.
2313         * generated/minloc1_8_i16.c: Regenerated.
2314         * generated/minloc1_8_i2.c: Regenerated.
2315         * generated/minloc1_8_i4.c: Regenerated.
2316         * generated/minloc1_8_i8.c: Regenerated.
2317         * generated/minloc1_8_r10.c: Regenerated.
2318         * generated/minloc1_8_r16.c: Regenerated.
2319         * generated/minloc1_8_r4.c: Regenerated.
2320         * generated/minloc1_8_r8.c: Regenerated.
2321         * generated/minval_i1.c: Regenerated.
2322         * generated/minval_i16.c: Regenerated.
2323         * generated/minval_i2.c: Regenerated.
2324         * generated/minval_i4.c: Regenerated.
2325         * generated/minval_i8.c: Regenerated.
2326         * generated/minval_r10.c: Regenerated.
2327         * generated/minval_r16.c: Regenerated.
2328         * generated/minval_r4.c: Regenerated.
2329         * generated/minval_r8.c: Regenerated.
2330         * generated/product_c10.c: Regenerated.
2331         * generated/product_c16.c: Regenerated.
2332         * generated/product_c4.c: Regenerated.
2333         * generated/product_c8.c: Regenerated.
2334         * generated/product_i1.c: Regenerated.
2335         * generated/product_i16.c: Regenerated.
2336         * generated/product_i2.c: Regenerated.
2337         * generated/product_i4.c: Regenerated.
2338         * generated/product_i8.c: Regenerated.
2339         * generated/product_r10.c: Regenerated.
2340         * generated/product_r16.c: Regenerated.
2341         * generated/product_r4.c: Regenerated.
2342         * generated/product_r8.c: Regenerated.
2343         * generated/sum_c10.c: Regenerated.
2344         * generated/sum_c16.c: Regenerated.
2345         * generated/sum_c4.c: Regenerated.
2346         * generated/sum_c8.c: Regenerated.
2347         * generated/sum_i1.c: Regenerated.
2348         * generated/sum_i16.c: Regenerated.
2349         * generated/sum_i2.c: Regenerated.
2350         * generated/sum_i4.c: Regenerated.
2351         * generated/sum_i8.c: Regenerated.
2352         * generated/sum_r10.c: Regenerated.
2353         * generated/sum_r16.c: Regenerated.
2354         * generated/sum_r4.c: Regenerated.
2355         * generated/sum_r8.c: Regenerated.
2356
2357 2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2358
2359         PR libfortran/34676
2360         * io/list_read.c (next_char): Only save the EOF condition for later if
2361         advance="no".
2362
2363 2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
2364
2365         PR libfortran/34565
2366         * io/io.h:  Adjust protoypes for open_internal(),
2367         next_array_record() and init_loop_spec().
2368         * io/list_read.c (next_char):  Use argument "finished"
2369         of next_array_record to check for end on internal file.
2370         * io/unit.c:  Calculate the offset for an array
2371         internal file and supply this informatin to open_internal().
2372         * io/unix.c (open_internal):  Set the offset for the internal
2373         file on open.
2374         * io/transfer.c (init_loop_spec):  Calculate the starting
2375         record in case of negative strides.  Return size of 0 for
2376         an empty array.
2377         (next_array_record):  Use an extra flag to signal that the
2378         array is finished.
2379         (next_record_r):  Use the new flag to next_array_record().
2380         (next_record_w):  Likewise.