OSDN Git Service

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