OSDN Git Service

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