OSDN Git Service

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