OSDN Git Service

0966d4874576df27a7e6a1297c6de4a921572b7a
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2
3         PR fortran/36538
4         * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
5         tabs.
6
7 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
8
9         PR fortran/35863
10         * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
11         * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
12         big_endian. (determine_endianness): Add endian_off and set its value
13         according to big_endian.
14         * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
15         * io/io.h: Add prototype declarations for new functions.
16         * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
17         (list_formatted_read): Calculate stride based on kind for character type
18         and use it when calling list_formatted_read_scalar.
19         * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
20         * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
21         * io/read.c (read_a_char4): New function to handle formatted read.
22         * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
23         (write_a_char4): New function to handle formatted write.
24         (write_character): Modify to accept the kind parameter and adjust for
25         endianess of the machine. (list_formatted_write): Calculate the stride
26         resulting from the kind and adjust the list_formatted_write_scalar call
27         accordingly. (nml_write_obj): Adjust calls to write_character.
28         (namelist_write): Likewise.
29         * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
30         'kind' argument to better describe what it is. Add calls to new
31         functions for kind == 4. (formatted_transfer): Modify to handle the case
32         of type character and kind equals 4 to pass in the kind to the transfer
33         routines. (transfer_character_wide): Add this new function.
34         (transfer_array): Don't set kind to the character string length. Adjust
35         strides bases on character kind.
36         (unformatted_read): Adjust size based on kind for character types.
37         (unformatted_write): Likewise. (data_transfer_init): Change
38         l8_to_l4_offset to big_endian.
39         io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
40
41 2008-06-13  Tobias Burnus  <burnus@net-b.de>
42
43         * configure.ac (AM_CFLAGS): Remove -Werror again.
44         * configure: Regenerate.
45
46 2008-06-13  Tobias Burnus  <burnus@net-b.de>
47
48         PR libgfortran/36518
49         * configure.ac (AM_CFLAGS): Add -Werror.
50         * configure: Regenerate.
51         * m4/ifunction_logical.m4: Cast "n" to "(int)".
52         * generated/any_l16.c: Regenerate.
53         * generated/any_l2.c: Regenerate.
54         * generated/all_l1.c: Regenerate.
55         * generated/all_l2.c: Regenerate.
56         * generated/all_l16.c: Regenerate.
57         * generated/any_l4.c: Regenerate.
58         * generated/count_4_l.c: Regenerate.
59         * generated/count_8_l.c: Regenerate.
60         * generated/all_l4.c: Regenerate.
61         * generated/count_1_l.c: Regenerate.
62         * generated/count_16_l.c: Regenerate.
63         * generated/any_l8.c: Regenerate.
64         * generated/count_2_l.c: Regenerate.
65         * generated/any_l1.c: Regenerate.
66         * generated/all_l8.c: Regenerate.
67
68 2008-06-13  Tobias Burnus  <burnus@net-b.de>
69
70         PR fortran/36495
71         * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
72         * configure: (generated) ditto.
73         * intrinsics/dprod_r8.f90: Add "implicit none".
74
75 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
76
77         PR libfortran/36420
78         PR libfortran/36421
79         PR libfortran/36422
80         * io/io.h: Add prototype for write_real.
81         * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
82         use write_real.
83         * io/format.c: Add zero width error message. (parse_format_list): Use
84         error message for FMT_A if followed by FMT_ZERO. Use zero width error
85         message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
86         Fix typo in comment.
87         * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
88         (write_l): Add wlen variable and use it if FMT_G and width is zero.
89         (write_decimal): If FMT_G, set m to -1 to flag processor dependent
90         formatting. (write_real): Remove static declaration.
91
92 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
93
94         PR fortran/36319
95         * intrinsics/string_intrinsics_inc.c (string_index): Return
96         correct value for zero-length substring.
97         * intrinsics/cshift0.c: Add _char4 variant.
98         * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
99         wider than a single byte. Add _char4 variant and use above
100         functionality.
101         * intrinsics/eoshift2.c (eoshift2): Likewise.
102         * m4/eoshift1.m4: Likewise.
103         * m4/eoshift3.m4: Likewise.
104         * m4/cshift1.m4: Add _char4 variants.
105         * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
106         _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
107         _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
108         _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
109         _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
110         _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
111         _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
112         _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
113         _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
114         _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
115         _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
116         * generated/eoshift3_4.c: Regenerate.
117         * generated/eoshift1_8.c: Regenerate.
118         * generated/eoshift1_16.c: Regenerate.
119         * generated/cshift1_4.c: Regenerate.
120         * generated/eoshift1_4.c: Regenerate.
121         * generated/eoshift3_8.c: Regenerate.
122         * generated/eoshift3_16.c: Regenerate.
123         * generated/cshift1_8.c: Regenerate.
124         * generated/cshift1_16.c: Regenerate.
125
126 2008-05-25  Tobias Burnus  <burnus@net-b.de>
127
128         PR fortran/32600
129         * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
130         * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
131         * gfortran.map (c_f_procpointer): Remove.
132
133 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
134
135         PR libgfortran/36302
136         * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
137         _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
138         _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
139         _gfortran_cshift0_16_char.  Sort alphabetically.
140         * intrinsics/eoshift0.c:  Add function for kind=16 integer.
141         * intrinsics/eoshift2.c:  Likewise.
142         * intrinsics/cshift0.c:  Likewise.
143
144 2008-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
145
146         * m4/in_pack.m4 (internal_pack_'rtype_code`):  Destination
147         pointer is restrict.
148         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
149         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
150         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
151         (spread_scalar_'rtype_code`): Likewise.
152         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
153         * m4/eoshift1.m4 (eoshift1):  Likewise.
154         * m4/eoshift3.m4 (eoshift3):  Likewise.
155         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):  Likewise.
156         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
157         (unpack1_'rtype_code`):  Likewise.
158         * intrinsics/pack_generic.c (pack_generic.c):  Likewise.
159         * intrinsics/unpack_generic.c (unpack_internal):  Likewise.
160         * intrinsics/eoshift0.c (eoshift0):  Likewise.
161         * intrinsics/eoshift2.c (eoshift2):  Likewise.
162         * intrinsics/reshape_generic.c (reshape_internal):  Likewise.
163         * intrinsics/reshape_packed.c (reshape_packed):  Likewise.
164         * generated/eoshift1_16.c: Regenerated.
165         * generated/eoshift1_4.c: Regenerated.
166         * generated/eoshift1_8.c: Regenerated.
167         * generated/eoshift3_16.c: Regenerated.
168         * generated/eoshift3_4.c: Regenerated.
169         * generated/eoshift3_8.c: Regenerated.
170         * generated/in_pack_c10.c: Regenerated.
171         * generated/in_pack_c16.c: Regenerated.
172         * generated/in_pack_c4.c: Regenerated.
173         * generated/in_pack_c8.c: Regenerated.
174         * generated/in_pack_i1.c: Regenerated.
175         * generated/in_pack_i16.c: Regenerated.
176         * generated/in_pack_i2.c: Regenerated.
177         * generated/in_pack_i4.c: Regenerated.
178         * generated/in_pack_i8.c: Regenerated.
179         * generated/in_pack_r10.c: Regenerated.
180         * generated/in_pack_r16.c: Regenerated.
181         * generated/in_pack_r4.c: Regenerated.
182         * generated/in_pack_r8.c: Regenerated.
183         * generated/in_unpack_c10.c: Regenerated.
184         * generated/in_unpack_c16.c: Regenerated.
185         * generated/in_unpack_c4.c: Regenerated.
186         * generated/in_unpack_c8.c: Regenerated.
187         * generated/in_unpack_i1.c: Regenerated.
188         * generated/in_unpack_i16.c: Regenerated.
189         * generated/in_unpack_i2.c: Regenerated.
190         * generated/in_unpack_i4.c: Regenerated.
191         * generated/in_unpack_i8.c: Regenerated.
192         * generated/in_unpack_r10.c: Regenerated.
193         * generated/in_unpack_r16.c: Regenerated.
194         * generated/in_unpack_r4.c: Regenerated.
195         * generated/in_unpack_r8.c: Regenerated.
196         * generated/maxloc0_16_i1.c: Regenerated.
197         * generated/maxloc0_16_i16.c: Regenerated.
198         * generated/maxloc0_16_i2.c: Regenerated.
199         * generated/maxloc0_16_i4.c: Regenerated.
200         * generated/maxloc0_16_i8.c: Regenerated.
201         * generated/maxloc0_16_r10.c: Regenerated.
202         * generated/maxloc0_16_r16.c: Regenerated.
203         * generated/maxloc0_16_r4.c: Regenerated.
204         * generated/maxloc0_16_r8.c: Regenerated.
205         * generated/maxloc0_4_i1.c: Regenerated.
206         * generated/maxloc0_4_i16.c: Regenerated.
207         * generated/maxloc0_4_i2.c: Regenerated.
208         * generated/maxloc0_4_i4.c: Regenerated.
209         * generated/maxloc0_4_i8.c: Regenerated.
210         * generated/maxloc0_4_r10.c: Regenerated.
211         * generated/maxloc0_4_r16.c: Regenerated.
212         * generated/maxloc0_4_r4.c: Regenerated.
213         * generated/maxloc0_4_r8.c: Regenerated.
214         * generated/maxloc0_8_i1.c: Regenerated.
215         * generated/maxloc0_8_i16.c: Regenerated.
216         * generated/maxloc0_8_i2.c: Regenerated.
217         * generated/maxloc0_8_i4.c: Regenerated.
218         * generated/maxloc0_8_i8.c: Regenerated.
219         * generated/maxloc0_8_r10.c: Regenerated.
220         * generated/maxloc0_8_r16.c: Regenerated.
221         * generated/maxloc0_8_r4.c: Regenerated.
222         * generated/maxloc0_8_r8.c: Regenerated.
223         * generated/minloc0_16_i1.c: Regenerated.
224         * generated/minloc0_16_i16.c: Regenerated.
225         * generated/minloc0_16_i2.c: Regenerated.
226         * generated/minloc0_16_i4.c: Regenerated.
227         * generated/minloc0_16_i8.c: Regenerated.
228         * generated/minloc0_16_r10.c: Regenerated.
229         * generated/minloc0_16_r16.c: Regenerated.
230         * generated/minloc0_16_r4.c: Regenerated.
231         * generated/minloc0_16_r8.c: Regenerated.
232         * generated/minloc0_4_i1.c: Regenerated.
233         * generated/minloc0_4_i16.c: Regenerated.
234         * generated/minloc0_4_i2.c: Regenerated.
235         * generated/minloc0_4_i4.c: Regenerated.
236         * generated/minloc0_4_i8.c: Regenerated.
237         * generated/minloc0_4_r10.c: Regenerated.
238         * generated/minloc0_4_r16.c: Regenerated.
239         * generated/minloc0_4_r4.c: Regenerated.
240         * generated/minloc0_4_r8.c: Regenerated.
241         * generated/minloc0_8_i1.c: Regenerated.
242         * generated/minloc0_8_i16.c: Regenerated.
243         * generated/minloc0_8_i2.c: Regenerated.
244         * generated/minloc0_8_i4.c: Regenerated.
245         * generated/minloc0_8_i8.c: Regenerated.
246         * generated/minloc0_8_r10.c: Regenerated.
247         * generated/minloc0_8_r16.c: Regenerated.
248         * generated/minloc0_8_r4.c: Regenerated.
249         * generated/minloc0_8_r8.c: Regenerated.
250         * generated/pack_c10.c: Regenerated.
251         * generated/pack_c16.c: Regenerated.
252         * generated/pack_c4.c: Regenerated.
253         * generated/pack_c8.c: Regenerated.
254         * generated/pack_i1.c: Regenerated.
255         * generated/pack_i16.c: Regenerated.
256         * generated/pack_i2.c: Regenerated.
257         * generated/pack_i4.c: Regenerated.
258         * generated/pack_i8.c: Regenerated.
259         * generated/pack_r10.c: Regenerated.
260         * generated/pack_r16.c: Regenerated.
261         * generated/pack_r4.c: Regenerated.
262         * generated/pack_r8.c: Regenerated.
263         * generated/spread_c10.c: Regenerated.
264         * generated/spread_c16.c: Regenerated.
265         * generated/spread_c4.c: Regenerated.
266         * generated/spread_c8.c: Regenerated.
267         * generated/spread_i1.c: Regenerated.
268         * generated/spread_i16.c: Regenerated.
269         * generated/spread_i2.c: Regenerated.
270         * generated/spread_i4.c: Regenerated.
271         * generated/spread_i8.c: Regenerated.
272         * generated/spread_r10.c: Regenerated.
273         * generated/spread_r16.c: Regenerated.
274         * generated/spread_r4.c: Regenerated.
275         * generated/spread_r8.c: Regenerated.
276         * generated/transpose_c10.c: Regenerated.
277         * generated/transpose_c16.c: Regenerated.
278         * generated/transpose_c4.c: Regenerated.
279         * generated/transpose_c8.c: Regenerated.
280         * generated/transpose_i16.c: Regenerated.
281         * generated/transpose_i4.c: Regenerated.
282         * generated/transpose_i8.c: Regenerated.
283         * generated/transpose_r10.c: Regenerated.
284         * generated/transpose_r16.c: Regenerated.
285         * generated/transpose_r4.c: Regenerated.
286         * generated/transpose_r8.c: Regenerated.
287         * generated/unpack_c10.c: Regenerated.
288         * generated/unpack_c16.c: Regenerated.
289         * generated/unpack_c4.c: Regenerated.
290         * generated/unpack_c8.c: Regenerated.
291         * generated/unpack_i1.c: Regenerated.
292         * generated/unpack_i16.c: Regenerated.
293         * generated/unpack_i2.c: Regenerated.
294         * generated/unpack_i4.c: Regenerated.
295         * generated/unpack_i8.c: Regenerated.
296         * generated/unpack_r10.c: Regenerated.
297         * generated/unpack_r16.c: Regenerated.
298         * generated/unpack_r4.c: Regenerated.
299         * generated/unpack_r8.c: Regenerated.
300
301 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
302
303         * runtime/select.c: Moved content to select_inc.c. Include it. 
304         Add macros for different character types.
305         * runtime/select_inc.c: New file.
306         * runtime/convert_char.c: New file.
307         * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
308         functions.
309         * intrinsics/transpose_generic.c (transpose_char4): New function.
310         * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
311         New functions.
312         * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4): 
313         New functions.
314         * intrinsics/reshape_generic.c (reshape_char): Use
315         gfc_charlen_type as type for length variables.
316         (reshape_char4): New function.
317         * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
318         _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
319         _gfortran_transpose_char4, _gfortran_spread_char4,
320         _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
321         _gfortran_pack_char4, _gfortran_pack_s_char4,
322         _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
323         * Makefile.am: Add runtime/convert_char.c.
324         * Makefile.in: Regenerate.
325
326 2008-05-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
327
328         * io/list_read.c (list_formatted_read_scalar):  Declare
329         type as volatile to shut up compiler warning.
330
331 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
332
333         PR libfortran/25561
334         * io/io.h (struct fbuf): Change pointer to position offset.
335         * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
336         changes.
337         (fbuf_reset): ptr=>pos changes.
338         (fbuf_alloc): If the request doesn't fit, don't waste memory by
339         keeping flushed bytes. ptr=>pos changes.
340         (fbuf_flush): ptr=>pos changes.
341         (fbuf_seek): Don't seek past the left tab limit, don't update active
342         byte count.
343         * io/open.c (new_unit): If RECL has been specified, used that as
344         initial buffer size.
345
346 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
347
348         PR libfortran/35632
349         * io/open.c (new_unit): Set stream position to correct value.
350
351 2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>
352
353         PR libfortran/25561
354         * Makefile.am: Add fbuf.c to gfor_io_src.
355         * Makefile.in: Regenerate.
356         * io/io.h (read_block): Remove.
357         (struct stream): Remove alloc_r_at function pointer.
358         (salloc_r): Remove.
359         (salloc_r_at): Remove.
360         (salloc_w_at): Remove.
361         (salloc_w): Remove offset argument.
362         (struct fbuf): New struct for format buffer.
363         (struct gfc_unit): Add fbuf.
364         (read_block_form): New prototype.
365         (fbuf_init): Likewise.
366         (fbuf_destroy): Likewise.
367         (fbuf_reset): Likewise.
368         (fbuf_alloc): Likewise.
369         (fbuf_flush): Likewise.
370         (fbuf_seek): Likewise.
371         * io/file_pos.c (formatted_backspace): Change to use sread.
372         (unformatted_backspace): Likewise.
373         (st_backspace): Flush format buffer.
374         (st_rewind): Likewise.
375         * io/list_read.c (next_char): Likewise.
376         (nml_query): Tidying, flush format buffer.
377         * io/open.c (new_unit): Init format buffer.
378         * io/read.c (read_l): Change to use read_block_form.
379         (read_a): Likewise.
380         (read_decimal): Likewise.
381         (read_radix): Likewise.
382         (read_f): Likewise.
383         (read_x): Empty reads also for stream I/O.
384         * io/transfer.c (read_sf): Change to use sread.
385         (read_block): Rename to read_block_form, change prototype, use sread.
386         (read_block_direct): Don't seek stream files.
387         (write_block): Change to use fbuf if external file, don't seek stream
388         files.
389         (write_buf): Don't seek stream files.
390         (formatted_transfer_scalar): Use fbuf for external files.
391         (us_read): Change to use sread.
392         (pre_position): Do nothing for stream I/O.
393         (data_transfer_init): Flush fbuf when switching from write to read, if
394         POS is specified, seek stream file to correct offset.
395         (skip_record): Change to use sread.
396         (min_off): New function.
397         (next_record_r): Change to use sread.
398         (next_record_w): Change to use sset/sseek, flush fbuf.
399         (finalize_transfer): Flush fbuf.
400         * io/unit.c (init_units): Init fbuf for stdout, stderr.
401         (close_unit_1): Destroy fbuf.
402         (finish_last_advance_record): Flush fbuf, no need to seek.
403         * io/unix.c (fd_alloc_r_at): Remove unused where argument.
404         (fd_alloc_w_at): Likewise.
405         (fd_read): Remove third argument to fd_alloc_r_at.
406         (fd_write): Remove third argument to fd_alloc_w_at.
407         (fd_sset): Likewise.
408         (fd_open): Don't set alloc_r_at.
409         (mem_alloc_r_at): Remove unused where argument.
410         (mem_alloc_w_at): Likewise.
411         (mem_read): Don't incorrectly return previous errno, remove unused
412         third argument to alloc function.
413         (mem_write): Likewise.
414         (mem_set): Likewise.
415         (open_internal): Don't set alloc_r_at pointer.
416         * io/fbuf.c: New file.
417
418 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
419
420         * libgfortran.h (gfc_char4_t): New type.
421         (GFC_SIZE_OF_CHAR_KIND): New macro.
422         (compare_string): Adjust prototype.
423         (compare_string_char4): New prototype.
424         * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
425         _gfortran_adjustr_char4, _gfortran_compare_string_char4,
426         _gfortran_concat_string_char4, _gfortran_string_index_char4,
427         _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
428         _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
429         _gfortran_string_verify_char4.
430         * intrinsics/string_intrinsics_inc.c: New file from content of
431         string_intrinsics.c with types replaced by macros.
432         * intrinsics/string_intrinsics.c: Move content to
433         string_intrinsics_inc.c.
434
435 2008-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
436
437         PR libfortran/36202
438         * io/list_read (eat_separator): Handle the CR-LF case correctly.
439
440 2008-05-09  Julian Brown  <julian@codesourcery.com>
441
442         * Makefile.am (LTLDFLAGS): New.
443         (libgfortran_la_LDFLAGS): Use above.
444         * Makefile.in: Regenerate.
445
446 2008-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
447
448         PR libfortran/36131
449         * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
450         (next_record_w): Likewise.
451
452 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
453
454         PR libfortran/35995
455         * m4/ifunction_logical.m4:  If the extent of "array"
456         is less than zero, set it to zero.  Use an explicit
457         flag for breaking out of the main loop to avoid, because
458         the data pointer for "array" may be NULL for an empty
459         array.
460         * m4/ifunction.m4:  Likewise.
461         * generated/all_l1.c: Regenerated.
462         * generated/all_l16.c: Regenerated.
463         * generated/all_l2.c: Regenerated.
464         * generated/all_l4.c: Regenerated.
465         * generated/all_l8.c: Regenerated.
466         * generated/any_l1.c: Regenerated.
467         * generated/any_l16.c: Regenerated.
468         * generated/any_l2.c: Regenerated.
469         * generated/any_l4.c: Regenerated.
470         * generated/any_l8.c: Regenerated.
471         * generated/count_16_l.c: Regenerated.
472         * generated/count_1_l.c: Regenerated.
473         * generated/count_2_l.c: Regenerated.
474         * generated/count_4_l.c: Regenerated.
475         * generated/count_8_l.c: Regenerated.
476         * generated/maxloc1_16_i1.c: Regenerated.
477         * generated/maxloc1_16_i16.c: Regenerated.
478         * generated/maxloc1_16_i2.c: Regenerated.
479         * generated/maxloc1_16_i4.c: Regenerated.
480         * generated/maxloc1_16_i8.c: Regenerated.
481         * generated/maxloc1_16_r10.c: Regenerated.
482         * generated/maxloc1_16_r16.c: Regenerated.
483         * generated/maxloc1_16_r4.c: Regenerated.
484         * generated/maxloc1_16_r8.c: Regenerated.
485         * generated/maxloc1_4_i1.c: Regenerated.
486         * generated/maxloc1_4_i16.c: Regenerated.
487         * generated/maxloc1_4_i2.c: Regenerated.
488         * generated/maxloc1_4_i4.c: Regenerated.
489         * generated/maxloc1_4_i8.c: Regenerated.
490         * generated/maxloc1_4_r10.c: Regenerated.
491         * generated/maxloc1_4_r16.c: Regenerated.
492         * generated/maxloc1_4_r4.c: Regenerated.
493         * generated/maxloc1_4_r8.c: Regenerated.
494         * generated/maxloc1_8_i1.c: Regenerated.
495         * generated/maxloc1_8_i16.c: Regenerated.
496         * generated/maxloc1_8_i2.c: Regenerated.
497         * generated/maxloc1_8_i4.c: Regenerated.
498         * generated/maxloc1_8_i8.c: Regenerated.
499         * generated/maxloc1_8_r10.c: Regenerated.
500         * generated/maxloc1_8_r16.c: Regenerated.
501         * generated/maxloc1_8_r4.c: Regenerated.
502         * generated/maxloc1_8_r8.c: Regenerated.
503         * generated/maxval_i1.c: Regenerated.
504         * generated/maxval_i16.c: Regenerated.
505         * generated/maxval_i2.c: Regenerated.
506         * generated/maxval_i4.c: Regenerated.
507         * generated/maxval_i8.c: Regenerated.
508         * generated/maxval_r10.c: Regenerated.
509         * generated/maxval_r16.c: Regenerated.
510         * generated/maxval_r4.c: Regenerated.
511         * generated/maxval_r8.c: Regenerated.
512         * generated/minloc1_16_i1.c: Regenerated.
513         * generated/minloc1_16_i16.c: Regenerated.
514         * generated/minloc1_16_i2.c: Regenerated.
515         * generated/minloc1_16_i4.c: Regenerated.
516         * generated/minloc1_16_i8.c: Regenerated.
517         * generated/minloc1_16_r10.c: Regenerated.
518         * generated/minloc1_16_r16.c: Regenerated.
519         * generated/minloc1_16_r4.c: Regenerated.
520         * generated/minloc1_16_r8.c: Regenerated.
521         * generated/minloc1_4_i1.c: Regenerated.
522         * generated/minloc1_4_i16.c: Regenerated.
523         * generated/minloc1_4_i2.c: Regenerated.
524         * generated/minloc1_4_i4.c: Regenerated.
525         * generated/minloc1_4_i8.c: Regenerated.
526         * generated/minloc1_4_r10.c: Regenerated.
527         * generated/minloc1_4_r16.c: Regenerated.
528         * generated/minloc1_4_r4.c: Regenerated.
529         * generated/minloc1_4_r8.c: Regenerated.
530         * generated/minloc1_8_i1.c: Regenerated.
531         * generated/minloc1_8_i16.c: Regenerated.
532         * generated/minloc1_8_i2.c: Regenerated.
533         * generated/minloc1_8_i4.c: Regenerated.
534         * generated/minloc1_8_i8.c: Regenerated.
535         * generated/minloc1_8_r10.c: Regenerated.
536         * generated/minloc1_8_r16.c: Regenerated.
537         * generated/minloc1_8_r4.c: Regenerated.
538         * generated/minloc1_8_r8.c: Regenerated.
539         * generated/minval_i1.c: Regenerated.
540         * generated/minval_i16.c: Regenerated.
541         * generated/minval_i2.c: Regenerated.
542         * generated/minval_i4.c: Regenerated.
543         * generated/minval_i8.c: Regenerated.
544         * generated/minval_r10.c: Regenerated.
545         * generated/minval_r16.c: Regenerated.
546         * generated/minval_r4.c: Regenerated.
547         * generated/minval_r8.c: Regenerated.
548         * generated/product_c10.c: Regenerated.
549         * generated/product_c16.c: Regenerated.
550         * generated/product_c4.c: Regenerated.
551         * generated/product_c8.c: Regenerated.
552         * generated/product_i1.c: Regenerated.
553         * generated/product_i16.c: Regenerated.
554         * generated/product_i2.c: Regenerated.
555         * generated/product_i4.c: Regenerated.
556         * generated/product_i8.c: Regenerated.
557         * generated/product_r10.c: Regenerated.
558         * generated/product_r16.c: Regenerated.
559         * generated/product_r4.c: Regenerated.
560         * generated/product_r8.c: Regenerated.
561         * generated/sum_c10.c: Regenerated.
562         * generated/sum_c16.c: Regenerated.
563         * generated/sum_c4.c: Regenerated.
564         * generated/sum_c8.c: Regenerated.
565         * generated/sum_i1.c: Regenerated.
566         * generated/sum_i16.c: Regenerated.
567         * generated/sum_i2.c: Regenerated.
568         * generated/sum_i4.c: Regenerated.
569         * generated/sum_i8.c: Regenerated.
570         * generated/sum_r10.c: Regenerated.
571         * generated/sum_r16.c: Regenerated.
572         * generated/sum_r4.c: Regenerated.
573         * generated/sum_r8.c: Regenerated.
574
575 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
576
577         PR libfortran/35990
578         * intrinsics/pack_generic.c:  Really commit.
579
580 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
581
582         PR libfortran/35990
583         * intrinsics/pack_generic.c:  If an extent of the source
584         array is less then zero, set it to zero.  Set the source
585         pointer to NULL if the source size is zero.  Set the total
586         number of elements to zero if the vector has an extent
587         less or equal to zero.
588         * m4/pack.m4:  Set the source pointer to NULL if the
589         source array is zero-sized.  Set the total number of
590         elemements to zero if the vector has an extent less or
591         equal to zero.
592         * generated/pack_i1.c:  Regenerated.
593         * generated/pack_i2.c:  Regenerated.
594         * generated/pack_i4.c:  Regenerated.
595         * generated/pack_i8.c:  Regenerated.
596         * generated/pack_i16.c:  Regenerated.
597         * generated/pack_r4.c:  Regenerated.
598         * generated/pack_r8.c:  Regenerated.
599         * generated/pack_r10.c:  Regenerated.
600         * generated/pack_r16.c:  Regenerated.
601         * generated/pack_c4.c:  Regenerated.
602         * generated/pack_c8.c:  Regenerated.
603         * generated/pack_c10.c:  Regenerated.
604         * generated/pack_c16.c:  Regenerated.
605
606 2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
607
608         PR libfortran/36094
609         * runtime/error.c (show_locus): Provide modified error message when
610         filename has not yet been associated with a unit number.
611         * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
612
613 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
614
615         * intrinsics/selected_char_kind.c: New file.
616         * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
617         * Makefile.am: Add intrinsics/selected_char_kind.c.
618         * Makefile.in: Regenerate.
619
620 2008-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
621
622         PR libfortran/35993
623         * ifunction.m4 (SCALAR_ARRAY_FUNCTION):  Use correct
624         implementation for multi-dimensional return arrays when
625         the mask is .false.
626         * generated/maxloc1_16_i1.c: Regenerated.
627         * generated/maxloc1_16_i16.c: Regenerated.
628         * generated/maxloc1_16_i2.c: Regenerated.
629         * generated/maxloc1_16_i4.c: Regenerated.
630         * generated/maxloc1_16_i8.c: Regenerated.
631         * generated/maxloc1_16_r10.c: Regenerated.
632         * generated/maxloc1_16_r16.c: Regenerated.
633         * generated/maxloc1_16_r4.c: Regenerated.
634         * generated/maxloc1_16_r8.c: Regenerated.
635         * generated/maxloc1_4_i1.c: Regenerated.
636         * generated/maxloc1_4_i16.c: Regenerated.
637         * generated/maxloc1_4_i2.c: Regenerated.
638         * generated/maxloc1_4_i4.c: Regenerated.
639         * generated/maxloc1_4_i8.c: Regenerated.
640         * generated/maxloc1_4_r10.c: Regenerated.
641         * generated/maxloc1_4_r16.c: Regenerated.
642         * generated/maxloc1_4_r4.c: Regenerated.
643         * generated/maxloc1_4_r8.c: Regenerated.
644         * generated/maxloc1_8_i1.c: Regenerated.
645         * generated/maxloc1_8_i16.c: Regenerated.
646         * generated/maxloc1_8_i2.c: Regenerated.
647         * generated/maxloc1_8_i4.c: Regenerated.
648         * generated/maxloc1_8_i8.c: Regenerated.
649         * generated/maxloc1_8_r10.c: Regenerated.
650         * generated/maxloc1_8_r16.c: Regenerated.
651         * generated/maxloc1_8_r4.c: Regenerated.
652         * generated/maxloc1_8_r8.c: Regenerated.
653         * generated/maxval_i1.c: Regenerated.
654         * generated/maxval_i16.c: Regenerated.
655         * generated/maxval_i2.c: Regenerated.
656         * generated/maxval_i4.c: Regenerated.
657         * generated/maxval_i8.c: Regenerated.
658         * generated/maxval_r10.c: Regenerated.
659         * generated/maxval_r16.c: Regenerated.
660         * generated/maxval_r4.c: Regenerated.
661         * generated/maxval_r8.c: Regenerated.
662         * generated/minloc1_16_i1.c: Regenerated.
663         * generated/minloc1_16_i16.c: Regenerated.
664         * generated/minloc1_16_i2.c: Regenerated.
665         * generated/minloc1_16_i4.c: Regenerated.
666         * generated/minloc1_16_i8.c: Regenerated.
667         * generated/minloc1_16_r10.c: Regenerated.
668         * generated/minloc1_16_r16.c: Regenerated.
669         * generated/minloc1_16_r4.c: Regenerated.
670         * generated/minloc1_16_r8.c: Regenerated.
671         * generated/minloc1_4_i1.c: Regenerated.
672         * generated/minloc1_4_i16.c: Regenerated.
673         * generated/minloc1_4_i2.c: Regenerated.
674         * generated/minloc1_4_i4.c: Regenerated.
675         * generated/minloc1_4_i8.c: Regenerated.
676         * generated/minloc1_4_r10.c: Regenerated.
677         * generated/minloc1_4_r16.c: Regenerated.
678         * generated/minloc1_4_r4.c: Regenerated.
679         * generated/minloc1_4_r8.c: Regenerated.
680         * generated/minloc1_8_i1.c: Regenerated.
681         * generated/minloc1_8_i16.c: Regenerated.
682         * generated/minloc1_8_i2.c: Regenerated.
683         * generated/minloc1_8_i4.c: Regenerated.
684         * generated/minloc1_8_i8.c: Regenerated.
685         * generated/minloc1_8_r10.c: Regenerated.
686         * generated/minloc1_8_r16.c: Regenerated.
687         * generated/minloc1_8_r4.c: Regenerated.
688         * generated/minloc1_8_r8.c: Regenerated.
689         * generated/minval_i1.c: Regenerated.
690         * generated/minval_i16.c: Regenerated.
691         * generated/minval_i2.c: Regenerated.
692         * generated/minval_i4.c: Regenerated.
693         * generated/minval_i8.c: Regenerated.
694         * generated/minval_r10.c: Regenerated.
695         * generated/minval_r16.c: Regenerated.
696         * generated/minval_r4.c: Regenerated.
697         * generated/minval_r8.c: Regenerated.
698         * generated/product_c10.c: Regenerated.
699         * generated/product_c16.c: Regenerated.
700         * generated/product_c4.c: Regenerated.
701         * generated/product_c8.c: Regenerated.
702         * generated/product_i1.c: Regenerated.
703         * generated/product_i16.c: Regenerated.
704         * generated/product_i2.c: Regenerated.
705         * generated/product_i4.c: Regenerated.
706         * generated/product_i8.c: Regenerated.
707         * generated/product_r10.c: Regenerated.
708         * generated/product_r16.c: Regenerated.
709         * generated/product_r4.c: Regenerated.
710         * generated/product_r8.c: Regenerated.
711         * generated/sum_c10.c: Regenerated.
712         * generated/sum_c16.c: Regenerated.
713         * generated/sum_c4.c: Regenerated.
714         * generated/sum_c8.c: Regenerated.
715         * generated/sum_i1.c: Regenerated.
716         * generated/sum_i16.c: Regenerated.
717         * generated/sum_i2.c: Regenerated.
718         * generated/sum_i4.c: Regenerated.
719         * generated/sum_i8.c: Regenerated.
720         * generated/sum_r10.c: Regenerated.
721         * generated/sum_r16.c: Regenerated.
722         * generated/sum_r4.c: Regenerated.
723         * generated/sum_r8.c: Regenerated.
724
725 2008-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
726
727         PR libfortran/35960
728         * m4/reshape.m4:  Fix typo in last commit.
729         * generated/reshape_i4.c:  Regererated.
730         * generated/reshape_i8.c:  Regenerated.
731         * generated/reshape_i16.c:  Regenerated.
732         * generated/reshape_r4.c:  Regenerated.
733         * generated/reshape_r8.c:  Regenerated.
734         * generated/reshape_r10.c:  Regenerated.
735         * generated/reshape_r16.c:  Regenerated.
736         * generated/reshape_c4.c:  Regenerated.
737         * generated/reshape_c8.c:  Regenerated.
738         * generated/reshape_c10.c:  Regenerated.
739         * generated/reshape_c16.c:  Regenerated.
740
741 2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
742
743         * intrinsics/time_1.h (__time_1): Remove unused variable.
744
745 2008-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
746
747         PR libfortran/35988
748         * m4/matmul.m4:  Only issue a runtime error if extents are
749         non-zero.
750         * generated/matmul_i1.c:  Regenerated.
751         * generated/matmul_i2.c:  Regenerated.
752         * generated/matmul_i4.c:  Regenerated.
753         * generated/matmul_i8.c:  Regenerated.
754         * generated/matmul_i16.c:  Regenerated.
755         * generated/matmul_r4.c:  Regenerated.
756         * generated/matmul_r8.c:  Regenerated.
757         * generated/matmul_r10.c:  Regenerated.
758         * generated/matmul_r16.c:  Regenerated.
759         * generated/matmul_c4.c:  Regenerated.
760         * generated/matmul_c8.c:  Regenerated.
761         * generated/matmul_c10.c:  Regenerated.
762         * generated/matmul_c16.c:  Regenerated.
763
764 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765
766         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
767         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
768         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
769         (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
770         (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
771         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
772         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
773         (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
774         Fix cache variable names.
775         * configure, Makefile.in: Regenerate.
776
777 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
778
779         PR fortran/35991
780         * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
781
782 2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
783
784         PR libfortran/35960
785         * intrinsics/reshape_generic.c (reshape_internal): If the size
786         of the resized array is zero, as determined by the SHAPE
787         argument, return early.
788         * m4/reshape.m4:  Likewise.
789         * generated/reshape_i4.c:  Regererated.
790         * generated/reshape_i8.c:  Regenerated.
791         * generated/reshape_i16.c:  Regenerated.
792         * generated/reshape_r4.c:  Regenerated.
793         * generated/reshape_r8.c:  Regenerated.
794         * generated/reshape_r10.c:  Regenerated.
795         * generated/reshape_r16.c:  Regenerated.
796         * generated/reshape_c4.c:  Regenerated.
797         * generated/reshape_c8.c:  Regenerated.
798         * generated/reshape_c10.c:  Regenerated.
799         * generated/reshape_c16.c:  Regenerated.
800
801 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
802
803         PR bootstrap/35457
804         * aclocal.m4: Regenerate.
805         * configure: Regenerate.
806
807 2008-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
808
809         PR libfortran/32972
810         * intrinsics/spread_generic.c (spread):  Use spread_i2()
811         for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
812
813 2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
814         Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
815
816         PR libfortran/32972
817         PR libfortran/32512
818         configure.ac:  Add test for uintptr_t.
819         configure:  Regenerated.
820         config.h.in:  Regenerated.
821         * libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
822         GFC_DTYPE_DERIVED_2:  New macro.
823         GFC_DTYPE_DERIVED_4:  New macro.
824         GFC_DTYPE_DERIVED_8:  New macro.
825         GFC_DTYPE_DERIVED_16:  New macro.
826         GFC_UNALIGNED_2:  New macro.
827         GFC_UNALIGNED_4:  New macro.
828         GFC_UNALIGNED_8:  New macro.
829         GFC_UNALIGNED_16:  New macro.
830         intptr_t:  Define if we don't have it.
831         uintptr_t:  Likewise.
832         * runtime/backtrace.c (show_backtrace):  Use intptr_t.
833         * intrinsics/signal.c (signal_sub):  Likewise.
834         (signal_sub_int):  Likewise.
835         (alarm_sub_int_i4):  Likewise.
836         * intrinsics/spread_generic.c (spread):  Use the integer
837         routines for handling derived types of sizes 1, 2, 4, 8 and 16
838         if the alignment of all pointers is correct.
839         (spread_scalar):  Likewise.
840         * intrinsics/pack_generic.c (pack):  Likewise.
841         Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
842         * intrinsics/unpack_generic.c (unpack1):  Likewise.
843         (unpack0):  Likewise.
844         * runtime/in_pack_generic.c (internal_pack):  Likewise.
845         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
846
847 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
848
849         * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
850         (nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
851         recursive call.  Use snprintf instead of sprintf when %s nl->var_name
852         is used.
853         (nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
854         nml_read_obj call.  Use snprintf instead of sprintf when %s
855         nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
856         of parse_err_msg array.  Append " for namelist variable " and
857         nl->var_name to it.
858         (namelist_read): Increase size of nml_err_msg array to 200.  Pass
859         sizeof nml_err_msg as extra argument to nml_get_obj_data.
860
861 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
862
863         PR fortran/25829 28655
864         * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
865         and flags.status. (st_open): Initialize flags.async.
866         * io/list_read.c (read_charactor): Use delim_status instead of
867         flags.delim.
868         * io/read.c (read_x): Use pad_status instead of flags.pad.
869         * io/inquire.c (inquire_via_unit): Add new checks.
870         (inquire_via_filename): Likewise.
871         * io/io.h (st_parameter_inquire): Add new flags.
872         (st_parameter_dt): Likewise.
873         * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
874         flags.async.
875         * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
876         pad_status instead of flags.pad. (read_block): Likewise.
877         (data_transfer_init): Set flags.async and add checks.
878         * io/write.c (write_character): Use delim_status.
879         (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
880         (namelist_write): Likewise.
881
882 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
883
884         PR fortran/25829 28655
885         * gfortran.map: Add new symbol, _gfortran_st_wait.
886         * libgfortran.h (st_paramter_common): Add new I/O parameters.
887         * open.c (st_option decimal_opt[], st_option encoding_opt[],
888         st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
889         parameter option arrays. (edit_modes): Add checks for new parameters.
890         (new_unit): Likewise. (st_open): Likewise.
891         * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
892         (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
893         (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
894         * read.c (read_a): Use decimal status flag to allow comma in place of a
895         decimal point. (read_f): Allow comma as acceptable character in float.
896         According to decimal flag, substitute a period for a comma.
897         (read_x): If decimal status flag is comma, disable the read_comma flag,
898         not allowing comma as a delimiter, an extension otherwise.
899         * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
900         unit_async): New enumerators. Add all new I/O parameters.
901         * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
902         (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
903         (fd_sfree): Use new enumerator. (fd_read): Likewise.
904         (fd_write): Likewise. (fd_close): Fix whitespace.
905         (fd_open): Use new enumertors. (tempfile, regular_file,
906         open_external): Fix whitespace. (output_stream, error_stream): Set
907         method. (stream_offset): Fix whitespace.
908         * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
909         option arrays.  (formatted_transfer_scalar): Set sf_read_comma flag
910         based on new decimal_status flag. (data_transfer_init): Initialize new
911         parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
912         * format.c: (format_lex): Add format specifiers DP, DC, and D.
913         (parse_format_list): Parse the new specifiers.
914         * write.c (write_decimal): Use new sign enumerators to set the sign.
915         (write_complex): Handle decimal comma and semi-colon separator.
916         (nml_write_obj): Likewise.
917         * write_float.def: Revise sign enumerators. (calculate_sign): Use new
918         sign enumerators. (output_float): Likewise. Use new decimal_status flag
919         to set the decimal character to a point or a comma.
920         
921 2008-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
922
923         PR libfortran/32972
924         PR libfortran/32512
925         * Makefile.am:  Add new variable, i_spread_c, containing
926         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
927         spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
928         spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
929         * Makefile.in:  Regenerated.
930         * libgfortran.h:  Add prototypes for spread_i1, spread_i2,
931         spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
932         spread_c4, spread_c8, spread_c10, spread_c16,
933         spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
934         spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
935         spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
936         spread_scalar_c10 and spread_scalar_c16.
937         Add macros to isolate both type and size information
938         from array descriptors with a single mask operation.
939         * intrinsics/spread_generic.c:  Add calls to specific
940         spread functions.
941         * m4/spread.m4:  New file.
942         * generated/spread_i1.c:  New file.
943         * generated/spread_i2.c:  New file.
944         * generated/spread_i4.c:  New file.
945         * generated/spread_i8.c:  New file.
946         * generated/spread_i16.c:  New file.
947         * generated/spread_r4.c:  New file.
948         * generated/spread_r8.c:  New file.
949         * generated/spread_r10.c:  New file.
950         * generated/spread_r16.c:  New file.
951         * generated/spread_c4.c:  New file.
952         * generated/spread_c8.c:  New file.
953         * generated/spread_c10.c:  New file.
954         * generated/spread_c16.c:  New file.
955
956 2008-03-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
957
958         PR libfortran/35699
959         * io/transfer.c (write_buf):  Don't pad the record, just return if the
960         data is NULL.  (next_record_w): If there are bytes left in the record
961         for unformatted direct I/O, pad out the record with zero bytes.
962
963 2008-03-28  Tobias Burnus  <burnus@net-b.de>
964
965         PR fortran/35721
966         * intrinsics/associated.c (associated): Ignore different
967         stride of pointer vs. target if only one element is referred.
968
969 2008-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
970
971         * io/unix.c (fd_close):  Do not close STDIN.
972
973 2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org
974
975         PR libfortran/32972
976         * Makefile.am:  Add new variable, i_unpack_c, containing
977         unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
978         unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
979         unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
980         and unpack_c16.c
981         Add i_unpack_c to gfor_built_src.
982         Add rule to generate i_unpack_c from m4/unpack.m4.
983         * Makefile.in:  Regenerated.
984         * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
985         unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
986         unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
987         unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
988         unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
989         unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
990         * intrinsics/pack_generic.c (unpack1):  Add calls to specific
991         unpack1 functions.
992         (unpack0):  Add calls to specific unpack0 functions.
993         * m4/unpack.m4:  New file.
994         * generated/unpack_i1.c:  New file.
995         * generated/unpack_i2.c:  New file.
996         * generated/unpack_i4.c:  New file.
997         * generated/unpack_i8.c:  New file.
998         * generated/unpack_i16.c:  New file.
999         * generated/unpack_r4.c:  New file.
1000         * generated/unpack_r8.c:  New file.
1001         * generated/unpack_r10.c:  New file.
1002         * generated/unpack_r16.c:  New file.
1003         * generated/unpack_c4.c:  New file.
1004         * generated/unpack_c8.c:  New file.
1005         * generated/unpack_c10.c:  New file.
1006         * generated/unpack_c16.c:  New file.
1007
1008 2008-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1009
1010         PR libfortran/35632
1011         * io/transfer.c (data_transfer_init):  Fix whitespace.
1012         (next_record_w): Truncate the file only if the stream
1013         position is short of the file end.
1014
1015 2008-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1016
1017         * intrinsics/pack_generic.c:  Fix typo.
1018
1019 2008-03-21  Janne Blomqvist  <jb@gcc.gnu.org>
1020
1021         * gfortran.map: Move erfc_scaled symbols to new symbol node
1022         GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
1023
1024 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1025
1026         PR libfortran/32972
1027         * runtime/in_pack_generic.c (internal_pack):  Call correct
1028         function, pack_i16, for GFC_INTEGER_16.
1029
1030 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1031
1032         PR libfortran/32972
1033         * Makefile.am:  Add new variable, i_pack_c, containing
1034         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
1035         pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
1036         pack_c8.c, pack_c10.c, pack_c16.c.
1037         Add m4/pack.m4 to m4_files.
1038         Add i_pack_c to gfor_built_src.
1039         Add rule to generate i_pack_c from m4/pack.m4.
1040         * Makefile.in:  Regenerated.
1041         * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
1042         pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
1043         pack_c10, pack_c16.
1044         * intrinsics/pack_generic.c:  Add calls to specific
1045         pack functions.
1046         * m4/pack.m4:  New file.
1047         * generated/pack_i1.c:  New file.
1048         * generated/pack_i2.c:  New file.
1049         * generated/pack_i4.c:  New file.
1050         * generated/pack_i8.c:  New file.
1051         * generated/pack_i16.c:  New file.
1052         * generated/pack_r4.c:  New file.
1053         * generated/pack_r8.c:  New file.
1054         * generated/pack_r10.c:  New file.
1055         * generated/pack_r16.c:  New file.
1056         * generated/pack_c4.c:  New file.
1057         * generated/pack_c8.c:  New file.
1058         * generated/pack_c10.c:  New file.
1059         * generated/pack_c16.c:  New file.
1060
1061 2008-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1062
1063         PR libfortran/35627
1064         * io/list_read.c (free_line): Clear the line buffer enable flag and
1065         reset the index into line_buffer, aka item_count.
1066         (next_char): Cleanup whitespace.
1067         (read_logical): Use unget_char to assure that the first character of the
1068         bad logical is saved in case it is part of an object name. Remove the
1069         clearing of index and flag that is now in free_line.
1070         (read_real): Likewise.
1071
1072 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
1073
1074         PR libfortran/32972
1075         * runtime/in_pack_generic.c (internal_pack):  Fix typo in
1076         last commit.
1077
1078 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
1079
1080         PR libfortran/32972
1081         * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
1082         in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
1083         (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
1084         in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
1085         in_unpack_r16.c.
1086         * Makefile.in: Regenerate.
1087         * libgfortran.h:  Add prototypes for internal_pack_1,
1088         internal_pack_2, internal_pack_16, internal_pack_r4,
1089         internal_pack_r8, internal_pack_r10, internal_pack_r16,
1090         internal_pack_c10 and internal_pack_c16.  Add prototypes for
1091         internal_unpack_1, internal_unpack_2, internal_unpack_16,
1092         internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
1093         internal_unpack_r16, internal_unpack_c10 and
1094         internal_unpack_c16.
1095         * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
1096         of hardwired sizes.
1097         Add calls to internal_pack_1, internal_pack_2,
1098         internal_pack_16, internal_pack_r4, internal_pack_r8,
1099         internal_pack_r10, internal_pack_r16, internal_pack_c10 and
1100         internal_pack_c16.
1101         * runtime/in_unpack_generic.c (internal_unpack):  Use sizeof
1102         instead of hardwired sizes.
1103         Add calls to internal_unpack_1, internal_unpack_2,
1104         internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
1105         internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
1106         and internal_unpack_c16.
1107         * generated/in_pack_r4.c:  New file.
1108         * generated/in_pack_i2.c:  New file.
1109         * generated/in_unpack_i1.c:  New file.
1110         * generated/in_pack_r10.c:  New file.
1111         * generated/in_unpack_r4.c:  New file.
1112         * generated/in_unpack_i2.c:  New file.
1113         * generated/in_unpack_r16.c:  New file.
1114         * generated/in_pack_r8.c:  New file.
1115         * generated/in_unpack_r10.c:  New file.
1116         * generated/in_unpack_r8.c:  New file.
1117         * generated/in_pack_r16.c:  New file.
1118         * generated/in_pack_i1.c:  New file.
1119
1120 2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1121
1122         PR libfortran/35617
1123         * io/list_read.c (eat_separator): If next character after eatline is '!'
1124         then eatline again. 
1125
1126 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1127
1128         * aclocal.m4: Regenerate.
1129         * configure: Likewise.
1130         * Makefile.in: Likewise.
1131
1132 2008-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1133
1134         PR libfortran/35524
1135         * intrinsics/erfc_scaled_inc.c: Only define the long double
1136         variant of erfc_scaled if expl is available.
1137
1138 2008-03-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1139
1140         PR libfortran/32812
1141         * intrinsics/random.c (scramble_seed, unscramble_seed): New
1142         functions.
1143         (random_seed_i4): Scramble the seed the user gives us before
1144         storing it, and unscramble it when we return it back later.
1145
1146 2008-03-05  Hans-Peter Nilsson  <hp@axis.com>
1147
1148         PR libfortran/35293
1149         * io/unix.c (fd_truncate): Fold s->special_file case into
1150         success case of ftruncate/chsize call instead of the failure case.
1151         Make failure case actually return failure.  Properly update stream
1152         pointers on failure.  Call runtime_error for targets without
1153         neither ftruncate nor chsize where such a call would be needed.
1154
1155 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1156
1157         PR fortran/33197
1158         * intrinsics/erfc_scaled_inc.c: New file.
1159         * intrinsics/erfc_scaled.c: New file.
1160         * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
1161         * Makefile.am: Add intrinsics/erfc_scaled.c.
1162         * config.h.in: Regenerate.
1163         * configure: Regenerate.
1164         * Makefile.in: Regenerate.
1165
1166 2008-03-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1167
1168         PR libfortran/35355
1169         * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
1170         for mingw.
1171
1172 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1173
1174         PR libfortran/35063
1175         * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
1176         instead of macro kludge.
1177         
1178 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
1179
1180         PR fortran/29549
1181         * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
1182         libgfortran.
1183         * Makefile.in: Regenerated.
1184
1185 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1186
1187         * m4/ifunction_logical.m4: Add casts to get rid of warnings.
1188         * generated/all_l1.c: Regenerate.
1189         * generated/all_l2.c: Regenerate.
1190         * generated/all_l4.c: Regenerate.
1191         * generated/all_l8.c: Regenerate.
1192         * generated/all_l16.c: Regenerate.
1193         * generated/any_l1.c: Regenerate.
1194         * generated/any_l2.c: Regenerate.
1195         * generated/any_l4.c: Regenerate.
1196         * generated/any_l8.c: Regenerate.
1197         * generated/any_l16.c: Regenerate.
1198         * generated/count_1_l.c: Regenerate.
1199         * generated/count_2_l.c: Regenerate.
1200         * generated/count_4_l.c: Regenerate.
1201         * generated/count_8_l.c: Regenerate.
1202         * generated/count_16_l.c: Regenerate.
1203
1204 2008-02-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1205
1206         PR libfortran/32841
1207         * acinclude.m4: Don't use HAVE_MATH_H.
1208         * configure: Regenerate.
1209
1210 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1211
1212         PR libfortran/35132
1213         * io/transfer.c (next_record_w): Truncate after the last record for
1214         STREAM I/O.
1215
1216         PR libfortran/34954
1217         * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
1218
1219         PR libfortran/34974
1220         * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
1221         is less than zero. (next_record_w): Use sseek to position the file to
1222         the max position reached.
1223
1224 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1225
1226         PR libfortran/35036
1227         * write_float.def (output_float):  Add error checks for zero digits
1228         after decimal point in E and D format specifiers.
1229         
1230 2008-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1231
1232         PR libfortran/35063
1233         * io/unit.c (destroy_unit_mutex): New function that uses
1234         __gthread_mutex_destroy_function or pthread_mutex_destroy after
1235         unlocking and before free_mem for final closure of I/O unit.
1236         (delete_root): Use new function.
1237         (free_internal_unit): Likewise.
1238         (close_unit_1): Likewise.
1239
1240 2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
1241
1242         PR libfortran/35001
1243         * m4/shape.m4:  Return 0 for extents <= 0.
1244         * generated/shape_i4.c:  Regenerated.
1245         * generated/shape_i8.c:  Regenerated.
1246         * generated/shape_i16.c:  Regenerated.
1247
1248 2008-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
1249
1250         PR libfortran/34980
1251         * m4/shape.m4:  If return array is empty, return early.
1252         * generated/shape_i4.c:  Regenerated.
1253         * generated/shape_i8.c:  Regenerated.
1254         * generated/shape_i16.c:  Regenerated.
1255
1256 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
1257
1258         PR libfofortran/34887
1259         * io/transfer.c (next_record_w): Always move to the farthest
1260         position when completing the record (also when we are
1261         processing a slash edit descriptor).
1262
1263 2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1264
1265         PR libfortran/34876
1266         * io/transfer.c (write_buf): Handle case of zero sized array.
1267         (transfer_array): Set data pointer to NULL and size to zero.  Then
1268         make a data transfer and return.
1269         
1270 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1271
1272         * configure: Regenerate.
1273
1274 2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1275
1276         PR libfortran/34795
1277         * io/inquire.c (inquire_via_unit): If a unit is opened, return values
1278         according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
1279         (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
1280         FORAMATTED, and UNFORMATTED inquiries.
1281         * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
1282         for files that are not opened. (inquire_direct): Same.
1283         (inquire_formatted): Same.
1284         
1285 2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1286
1287         PR libfortran/34782
1288         * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
1289         of the current max_pos or the newly calculated position.
1290
1291 2008-01-18  Tobias Burnus  <burnus@net-b.de>
1292
1293         * io/write.c (write_real): Increase default precision
1294         for REAL(16) by one.
1295
1296 2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>
1297
1298         PR libfortran/34669
1299         * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
1300         to avoid piping the -fdump-parse-tree output to the assembler
1301         when configuring with -pipe.
1302         * mk-sik-inc.sh: Likewise.
1303         * mk-srk-inc.sh: Likewise.
1304
1305 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
1306
1307         PR libfortran/34671
1308         * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
1309         _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
1310         _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
1311         _gfortran_count_8_l Removed _gfortran_count_16_l16,
1312         _gfortran_count_16_l4, _gfortran_count_16_l8,
1313         _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
1314         _gfortran_count_8_l16, _gfortran_count_8_l4 and
1315         _gfortran_count_8_l8.
1316         * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
1317         i_any_c.  Added generated/all_l1. and generated/all_l2.c to
1318         i_all_c.  Removed generated/count_4_l4.c, generated/count_8_l4.c,
1319         generated/count_16_l4.c, generated/count_4_l8.c,
1320         generated/count_8_l8.c, generated/count_16_l8.c,
1321         generated/count_4_l16.c, generated/count_8_l16.c, and
1322         generated/count_16_l16.c from i_count_c.  Added count_1_l.c,
1323         count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
1324         i_count_c.  I_M4_DEPS2 depends on ifunction_logical.m4, for
1325         any of the files generated from all.m4, any.m4 and count.m4.
1326         * Makefile.in:  Regenerated.
1327         * m4/ifunction_logical.m4:  New file.  Use
1328         GFC_LOGICAL_1 pointer for access to source arrays.
1329         * m4/any.m4:  Include ifunction_logical.m4 instead of
1330         ifunction.m4.  Don't check atype_name.
1331         * m4/all.m4:  Likewise.
1332         * m4/count.m4:  Likewise.
1333         * generated/any_l1.c:  New file.
1334         * generated/any_l2.c:  New file.
1335         * generated/all_l1.c:  New file.
1336         * generated/count_1_l.c:  New file.
1337         * generated/count_2_l.c:  New file.
1338         * generated/count_4_l.c:  New file.
1339         * generated/count_8_l.c:  New file.
1340         * generated/count_16_l.c:  New file.
1341         * generated/any_l4.c:  Regenerated.
1342         * generated/any_l8.c:  Regenerated.
1343         * generated/any_l16.c:  Regenerated.
1344         * generated/all_l4.c: Regenerated.
1345         * generated/all_l8.c: Regenerated.
1346         * generated/all_l16.c: Regenerated.
1347         * generated/count_4_l4.c:  Removed.
1348         * generated/count_4_l8.c:  Removed.
1349         * generated/count_4_l16.c:  Removed.
1350         * generated/count_8_l4.c:  Removed.
1351         * generated/count_8_l8.c:  Removed.
1352         * generated/count_8_l16.c:  Removed.
1353         * generated/count_16_l4.c:  Removed.
1354         * generated/count_16_l8.c:  Removed.
1355         * generated/count_16_l16.c:  Removed.
1356
1357 2008-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
1358
1359         PR libfortran/34746
1360         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Use %ld
1361         in printf format for all bounds checking; cast all
1362         integer-like arguments to runtime_error() to long int.
1363         (`m'name`'rtype_qual`_'atype_code):  Likewise.
1364         (`s'name`'rtype_qual`_'atype_code):  Likewise.
1365         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
1366         (`m'name`'rtype_qual`_'atype_code):  Likewise.
1367         (`s'name`'rtype_qual`_'atype_code):  Likewise.
1368         * generated/all_l16.c: Regenerated.
1369         * generated/all_l4.c: Regenerated.
1370         * generated/all_l8.c: Regenerated.
1371         * generated/any_l16.c: Regenerated.
1372         * generated/any_l4.c: Regenerated.
1373         * generated/any_l8.c: Regenerated.
1374         * generated/count_16_l16.c: Regenerated.
1375         * generated/count_16_l4.c: Regenerated.
1376         * generated/count_16_l8.c: Regenerated.
1377         * generated/count_4_l16.c: Regenerated.
1378         * generated/count_4_l4.c: Regenerated.
1379         * generated/count_4_l8.c: Regenerated.
1380         * generated/count_8_l16.c: Regenerated.
1381         * generated/count_8_l4.c: Regenerated.
1382         * generated/count_8_l8.c: Regenerated.
1383         * generated/maxloc0_16_i1.c: Regenerated.
1384         * generated/maxloc0_16_i16.c: Regenerated.
1385         * generated/maxloc0_16_i2.c: Regenerated.
1386         * generated/maxloc0_16_i4.c: Regenerated.
1387         * generated/maxloc0_16_i8.c: Regenerated.
1388         * generated/maxloc0_16_r10.c: Regenerated.
1389         * generated/maxloc0_16_r16.c: Regenerated.
1390         * generated/maxloc0_16_r4.c: Regenerated.
1391         * generated/maxloc0_16_r8.c: Regenerated.
1392         * generated/maxloc0_4_i1.c: Regenerated.
1393         * generated/maxloc0_4_i16.c: Regenerated.
1394         * generated/maxloc0_4_i2.c: Regenerated.
1395         * generated/maxloc0_4_i4.c: Regenerated.
1396         * generated/maxloc0_4_i8.c: Regenerated.
1397         * generated/maxloc0_4_r10.c: Regenerated.
1398         * generated/maxloc0_4_r16.c: Regenerated.
1399         * generated/maxloc0_4_r4.c: Regenerated.
1400         * generated/maxloc0_4_r8.c: Regenerated.
1401         * generated/maxloc0_8_i1.c: Regenerated.
1402         * generated/maxloc0_8_i16.c: Regenerated.
1403         * generated/maxloc0_8_i2.c: Regenerated.
1404         * generated/maxloc0_8_i4.c: Regenerated.
1405         * generated/maxloc0_8_i8.c: Regenerated.
1406         * generated/maxloc0_8_r10.c: Regenerated.
1407         * generated/maxloc0_8_r16.c: Regenerated.
1408         * generated/maxloc0_8_r4.c: Regenerated.
1409         * generated/maxloc0_8_r8.c: Regenerated.
1410         * generated/maxloc1_16_i1.c: Regenerated.
1411         * generated/maxloc1_16_i16.c: Regenerated.
1412         * generated/maxloc1_16_i2.c: Regenerated.
1413         * generated/maxloc1_16_i4.c: Regenerated.
1414         * generated/maxloc1_16_i8.c: Regenerated.
1415         * generated/maxloc1_16_r10.c: Regenerated.
1416         * generated/maxloc1_16_r16.c: Regenerated.
1417         * generated/maxloc1_16_r4.c: Regenerated.
1418         * generated/maxloc1_16_r8.c: Regenerated.
1419         * generated/maxloc1_4_i1.c: Regenerated.
1420         * generated/maxloc1_4_i16.c: Regenerated.
1421         * generated/maxloc1_4_i2.c: Regenerated.
1422         * generated/maxloc1_4_i4.c: Regenerated.
1423         * generated/maxloc1_4_i8.c: Regenerated.
1424         * generated/maxloc1_4_r10.c: Regenerated.
1425         * generated/maxloc1_4_r16.c: Regenerated.
1426         * generated/maxloc1_4_r4.c: Regenerated.
1427         * generated/maxloc1_4_r8.c: Regenerated.
1428         * generated/maxloc1_8_i1.c: Regenerated.
1429         * generated/maxloc1_8_i16.c: Regenerated.
1430         * generated/maxloc1_8_i2.c: Regenerated.
1431         * generated/maxloc1_8_i4.c: Regenerated.
1432         * generated/maxloc1_8_i8.c: Regenerated.
1433         * generated/maxloc1_8_r10.c: Regenerated.
1434         * generated/maxloc1_8_r16.c: Regenerated.
1435         * generated/maxloc1_8_r4.c: Regenerated.
1436         * generated/maxloc1_8_r8.c: Regenerated.
1437         * generated/maxval_i1.c: Regenerated.
1438         * generated/maxval_i16.c: Regenerated.
1439         * generated/maxval_i2.c: Regenerated.
1440         * generated/maxval_i4.c: Regenerated.
1441         * generated/maxval_i8.c: Regenerated.
1442         * generated/maxval_r10.c: Regenerated.
1443         * generated/maxval_r16.c: Regenerated.
1444         * generated/maxval_r4.c: Regenerated.
1445         * generated/maxval_r8.c: Regenerated.
1446         * generated/minloc0_16_i1.c: Regenerated.
1447         * generated/minloc0_16_i16.c: Regenerated.
1448         * generated/minloc0_16_i2.c: Regenerated.
1449         * generated/minloc0_16_i4.c: Regenerated.
1450         * generated/minloc0_16_i8.c: Regenerated.
1451         * generated/minloc0_16_r10.c: Regenerated.
1452         * generated/minloc0_16_r16.c: Regenerated.
1453         * generated/minloc0_16_r4.c: Regenerated.
1454         * generated/minloc0_16_r8.c: Regenerated.
1455         * generated/minloc0_4_i1.c: Regenerated.
1456         * generated/minloc0_4_i16.c: Regenerated.
1457         * generated/minloc0_4_i2.c: Regenerated.
1458         * generated/minloc0_4_i4.c: Regenerated.
1459         * generated/minloc0_4_i8.c: Regenerated.
1460         * generated/minloc0_4_r10.c: Regenerated.
1461         * generated/minloc0_4_r16.c: Regenerated.
1462         * generated/minloc0_4_r4.c: Regenerated.
1463         * generated/minloc0_4_r8.c: Regenerated.
1464         * generated/minloc0_8_i1.c: Regenerated.
1465         * generated/minloc0_8_i16.c: Regenerated.
1466         * generated/minloc0_8_i2.c: Regenerated.
1467         * generated/minloc0_8_i4.c: Regenerated.
1468         * generated/minloc0_8_i8.c: Regenerated.
1469         * generated/minloc0_8_r10.c: Regenerated.
1470         * generated/minloc0_8_r16.c: Regenerated.
1471         * generated/minloc0_8_r4.c: Regenerated.
1472         * generated/minloc0_8_r8.c: Regenerated.
1473         * generated/minloc1_16_i1.c: Regenerated.
1474         * generated/minloc1_16_i16.c: Regenerated.
1475         * generated/minloc1_16_i2.c: Regenerated.
1476         * generated/minloc1_16_i4.c: Regenerated.
1477         * generated/minloc1_16_i8.c: Regenerated.
1478         * generated/minloc1_16_r10.c: Regenerated.
1479         * generated/minloc1_16_r16.c: Regenerated.
1480         * generated/minloc1_16_r4.c: Regenerated.
1481         * generated/minloc1_16_r8.c: Regenerated.
1482         * generated/minloc1_4_i1.c: Regenerated.
1483         * generated/minloc1_4_i16.c: Regenerated.
1484         * generated/minloc1_4_i2.c: Regenerated.
1485         * generated/minloc1_4_i4.c: Regenerated.
1486         * generated/minloc1_4_i8.c: Regenerated.
1487         * generated/minloc1_4_r10.c: Regenerated.
1488         * generated/minloc1_4_r16.c: Regenerated.
1489         * generated/minloc1_4_r4.c: Regenerated.
1490         * generated/minloc1_4_r8.c: Regenerated.
1491         * generated/minloc1_8_i1.c: Regenerated.
1492         * generated/minloc1_8_i16.c: Regenerated.
1493         * generated/minloc1_8_i2.c: Regenerated.
1494         * generated/minloc1_8_i4.c: Regenerated.
1495         * generated/minloc1_8_i8.c: Regenerated.
1496         * generated/minloc1_8_r10.c: Regenerated.
1497         * generated/minloc1_8_r16.c: Regenerated.
1498         * generated/minloc1_8_r4.c: Regenerated.
1499         * generated/minloc1_8_r8.c: Regenerated.
1500         * generated/minval_i1.c: Regenerated.
1501         * generated/minval_i16.c: Regenerated.
1502         * generated/minval_i2.c: Regenerated.
1503         * generated/minval_i4.c: Regenerated.
1504         * generated/minval_i8.c: Regenerated.
1505         * generated/minval_r10.c: Regenerated.
1506         * generated/minval_r16.c: Regenerated.
1507         * generated/minval_r4.c: Regenerated.
1508         * generated/minval_r8.c: Regenerated.
1509         * generated/product_c10.c: Regenerated.
1510         * generated/product_c16.c: Regenerated.
1511         * generated/product_c4.c: Regenerated.
1512         * generated/product_c8.c: Regenerated.
1513         * generated/product_i1.c: Regenerated.
1514         * generated/product_i16.c: Regenerated.
1515         * generated/product_i2.c: Regenerated.
1516         * generated/product_i4.c: Regenerated.
1517         * generated/product_i8.c: Regenerated.
1518         * generated/product_r10.c: Regenerated.
1519         * generated/product_r16.c: Regenerated.
1520         * generated/product_r4.c: Regenerated.
1521         * generated/product_r8.c: Regenerated.
1522         * generated/sum_c10.c: Regenerated.
1523         * generated/sum_c16.c: Regenerated.
1524         * generated/sum_c4.c: Regenerated.
1525         * generated/sum_c8.c: Regenerated.
1526         * generated/sum_i1.c: Regenerated.
1527         * generated/sum_i16.c: Regenerated.
1528         * generated/sum_i2.c: Regenerated.
1529         * generated/sum_i4.c: Regenerated.
1530         * generated/sum_i8.c: Regenerated.
1531         * generated/sum_r10.c: Regenerated.
1532         * generated/sum_r16.c: Regenerated.
1533         * generated/sum_r4.c: Regenerated.
1534         * generated/sum_r8.c: Regenerated.
1535
1536 2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
1537
1538         PR libfortran/34670
1539         * m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
1540         (u_name):  New macro for the upper case name of the intrinsic.
1541         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
1542         bounds checking and rank check, depending on
1543         compile_options.bounds_check.
1544         (`m'name`'rtype_qual`_'atype_code):  Likewise.
1545         (`s'name`'rtype_qual`_'atype_code):  Likewise.
1546         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
1547         bounds checking and rank check, depending on
1548         compile_options.bounds_check.
1549         (`m'name`'rtype_qual`_'atype_code):  Likewise.
1550         (`s'name`'rtype_qual`_'atype_code):  Likewise.
1551         * generated/all_l16.c: Regenerated.
1552         * generated/all_l4.c: Regenerated.
1553         * generated/all_l8.c: Regenerated.
1554         * generated/any_l16.c: Regenerated.
1555         * generated/any_l4.c: Regenerated.
1556         * generated/any_l8.c: Regenerated.
1557         * generated/count_16_l16.c: Regenerated.
1558         * generated/count_16_l4.c: Regenerated.
1559         * generated/count_16_l8.c: Regenerated.
1560         * generated/count_4_l16.c: Regenerated.
1561         * generated/count_4_l4.c: Regenerated.
1562         * generated/count_4_l8.c: Regenerated.
1563         * generated/count_8_l16.c: Regenerated.
1564         * generated/count_8_l4.c: Regenerated.
1565         * generated/count_8_l8.c: Regenerated.
1566         * generated/maxloc0_16_i1.c: Regenerated.
1567         * generated/maxloc0_16_i16.c: Regenerated.
1568         * generated/maxloc0_16_i2.c: Regenerated.
1569         * generated/maxloc0_16_i4.c: Regenerated.
1570         * generated/maxloc0_16_i8.c: Regenerated.
1571         * generated/maxloc0_16_r10.c: Regenerated.
1572         * generated/maxloc0_16_r16.c: Regenerated.
1573         * generated/maxloc0_16_r4.c: Regenerated.
1574         * generated/maxloc0_16_r8.c: Regenerated.
1575         * generated/maxloc0_4_i1.c: Regenerated.
1576         * generated/maxloc0_4_i16.c: Regenerated.
1577         * generated/maxloc0_4_i2.c: Regenerated.
1578         * generated/maxloc0_4_i4.c: Regenerated.
1579         * generated/maxloc0_4_i8.c: Regenerated.
1580         * generated/maxloc0_4_r10.c: Regenerated.
1581         * generated/maxloc0_4_r16.c: Regenerated.
1582         * generated/maxloc0_4_r4.c: Regenerated.
1583         * generated/maxloc0_4_r8.c: Regenerated.
1584         * generated/maxloc0_8_i1.c: Regenerated.
1585         * generated/maxloc0_8_i16.c: Regenerated.
1586         * generated/maxloc0_8_i2.c: Regenerated.
1587         * generated/maxloc0_8_i4.c: Regenerated.
1588         * generated/maxloc0_8_i8.c: Regenerated.
1589         * generated/maxloc0_8_r10.c: Regenerated.
1590         * generated/maxloc0_8_r16.c: Regenerated.
1591         * generated/maxloc0_8_r4.c: Regenerated.
1592         * generated/maxloc0_8_r8.c: Regenerated.
1593         * generated/maxloc1_16_i1.c: Regenerated.
1594         * generated/maxloc1_16_i16.c: Regenerated.
1595         * generated/maxloc1_16_i2.c: Regenerated.
1596         * generated/maxloc1_16_i4.c: Regenerated.
1597         * generated/maxloc1_16_i8.c: Regenerated.
1598         * generated/maxloc1_16_r10.c: Regenerated.
1599         * generated/maxloc1_16_r16.c: Regenerated.
1600         * generated/maxloc1_16_r4.c: Regenerated.
1601         * generated/maxloc1_16_r8.c: Regenerated.
1602         * generated/maxloc1_4_i1.c: Regenerated.
1603         * generated/maxloc1_4_i16.c: Regenerated.
1604         * generated/maxloc1_4_i2.c: Regenerated.
1605         * generated/maxloc1_4_i4.c: Regenerated.
1606         * generated/maxloc1_4_i8.c: Regenerated.
1607         * generated/maxloc1_4_r10.c: Regenerated.
1608         * generated/maxloc1_4_r16.c: Regenerated.
1609         * generated/maxloc1_4_r4.c: Regenerated.
1610         * generated/maxloc1_4_r8.c: Regenerated.
1611         * generated/maxloc1_8_i1.c: Regenerated.
1612         * generated/maxloc1_8_i16.c: Regenerated.
1613         * generated/maxloc1_8_i2.c: Regenerated.
1614         * generated/maxloc1_8_i4.c: Regenerated.
1615         * generated/maxloc1_8_i8.c: Regenerated.
1616         * generated/maxloc1_8_r10.c: Regenerated.
1617         * generated/maxloc1_8_r16.c: Regenerated.
1618         * generated/maxloc1_8_r4.c: Regenerated.
1619         * generated/maxloc1_8_r8.c: Regenerated.
1620         * generated/maxval_i1.c: Regenerated.
1621         * generated/maxval_i16.c: Regenerated.
1622         * generated/maxval_i2.c: Regenerated.
1623         * generated/maxval_i4.c: Regenerated.
1624         * generated/maxval_i8.c: Regenerated.
1625         * generated/maxval_r10.c: Regenerated.
1626         * generated/maxval_r16.c: Regenerated.
1627         * generated/maxval_r4.c: Regenerated.
1628         * generated/maxval_r8.c: Regenerated.
1629         * generated/minloc0_16_i1.c: Regenerated.
1630         * generated/minloc0_16_i16.c: Regenerated.
1631         * generated/minloc0_16_i2.c: Regenerated.
1632         * generated/minloc0_16_i4.c: Regenerated.
1633         * generated/minloc0_16_i8.c: Regenerated.
1634         * generated/minloc0_16_r10.c: Regenerated.
1635         * generated/minloc0_16_r16.c: Regenerated.
1636         * generated/minloc0_16_r4.c: Regenerated.
1637         * generated/minloc0_16_r8.c: Regenerated.
1638         * generated/minloc0_4_i1.c: Regenerated.
1639         * generated/minloc0_4_i16.c: Regenerated.
1640         * generated/minloc0_4_i2.c: Regenerated.
1641         * generated/minloc0_4_i4.c: Regenerated.
1642         * generated/minloc0_4_i8.c: Regenerated.
1643         * generated/minloc0_4_r10.c: Regenerated.
1644         * generated/minloc0_4_r16.c: Regenerated.
1645         * generated/minloc0_4_r4.c: Regenerated.
1646         * generated/minloc0_4_r8.c: Regenerated.
1647         * generated/minloc0_8_i1.c: Regenerated.
1648         * generated/minloc0_8_i16.c: Regenerated.
1649         * generated/minloc0_8_i2.c: Regenerated.
1650         * generated/minloc0_8_i4.c: Regenerated.
1651         * generated/minloc0_8_i8.c: Regenerated.
1652         * generated/minloc0_8_r10.c: Regenerated.
1653         * generated/minloc0_8_r16.c: Regenerated.
1654         * generated/minloc0_8_r4.c: Regenerated.
1655         * generated/minloc0_8_r8.c: Regenerated.
1656         * generated/minloc1_16_i1.c: Regenerated.
1657         * generated/minloc1_16_i16.c: Regenerated.
1658         * generated/minloc1_16_i2.c: Regenerated.
1659         * generated/minloc1_16_i4.c: Regenerated.
1660         * generated/minloc1_16_i8.c: Regenerated.
1661         * generated/minloc1_16_r10.c: Regenerated.
1662         * generated/minloc1_16_r16.c: Regenerated.
1663         * generated/minloc1_16_r4.c: Regenerated.
1664         * generated/minloc1_16_r8.c: Regenerated.
1665         * generated/minloc1_4_i1.c: Regenerated.
1666         * generated/minloc1_4_i16.c: Regenerated.
1667         * generated/minloc1_4_i2.c: Regenerated.
1668         * generated/minloc1_4_i4.c: Regenerated.
1669         * generated/minloc1_4_i8.c: Regenerated.
1670         * generated/minloc1_4_r10.c: Regenerated.
1671         * generated/minloc1_4_r16.c: Regenerated.
1672         * generated/minloc1_4_r4.c: Regenerated.
1673         * generated/minloc1_4_r8.c: Regenerated.
1674         * generated/minloc1_8_i1.c: Regenerated.
1675         * generated/minloc1_8_i16.c: Regenerated.
1676         * generated/minloc1_8_i2.c: Regenerated.
1677         * generated/minloc1_8_i4.c: Regenerated.
1678         * generated/minloc1_8_i8.c: Regenerated.
1679         * generated/minloc1_8_r10.c: Regenerated.
1680         * generated/minloc1_8_r16.c: Regenerated.
1681         * generated/minloc1_8_r4.c: Regenerated.
1682         * generated/minloc1_8_r8.c: Regenerated.
1683         * generated/minval_i1.c: Regenerated.
1684         * generated/minval_i16.c: Regenerated.
1685         * generated/minval_i2.c: Regenerated.
1686         * generated/minval_i4.c: Regenerated.
1687         * generated/minval_i8.c: Regenerated.
1688         * generated/minval_r10.c: Regenerated.
1689         * generated/minval_r16.c: Regenerated.
1690         * generated/minval_r4.c: Regenerated.
1691         * generated/minval_r8.c: Regenerated.
1692         * generated/product_c10.c: Regenerated.
1693         * generated/product_c16.c: Regenerated.
1694         * generated/product_c4.c: Regenerated.
1695         * generated/product_c8.c: Regenerated.
1696         * generated/product_i1.c: Regenerated.
1697         * generated/product_i16.c: Regenerated.
1698         * generated/product_i2.c: Regenerated.
1699         * generated/product_i4.c: Regenerated.
1700         * generated/product_i8.c: Regenerated.
1701         * generated/product_r10.c: Regenerated.
1702         * generated/product_r16.c: Regenerated.
1703         * generated/product_r4.c: Regenerated.
1704         * generated/product_r8.c: Regenerated.
1705         * generated/sum_c10.c: Regenerated.
1706         * generated/sum_c16.c: Regenerated.
1707         * generated/sum_c4.c: Regenerated.
1708         * generated/sum_c8.c: Regenerated.
1709         * generated/sum_i1.c: Regenerated.
1710         * generated/sum_i16.c: Regenerated.
1711         * generated/sum_i2.c: Regenerated.
1712         * generated/sum_i4.c: Regenerated.
1713         * generated/sum_i8.c: Regenerated.
1714         * generated/sum_r10.c: Regenerated.
1715         * generated/sum_r16.c: Regenerated.
1716         * generated/sum_r4.c: Regenerated.
1717         * generated/sum_r8.c: Regenerated.
1718
1719 2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1720
1721         PR libfortran/34676
1722         * io/list_read.c (next_char): Only save the EOF condition for later if
1723         advance="no".
1724
1725 2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
1726
1727         PR libfortran/34565
1728         * io/io.h:  Adjust protoypes for open_internal(),
1729         next_array_record() and init_loop_spec().
1730         * io/list_read.c (next_char):  Use argument "finished"
1731         of next_array_record to check for end on internal file.
1732         * io/unit.c:  Calculate the offset for an array
1733         internal file and supply this informatin to open_internal().
1734         * io/unix.c (open_internal):  Set the offset for the internal
1735         file on open.
1736         * io/transfer.c (init_loop_spec):  Calculate the starting
1737         record in case of negative strides.  Return size of 0 for
1738         an empty array.
1739         (next_array_record):  Use an extra flag to signal that the
1740         array is finished.
1741         (next_record_r):  Use the new flag to next_array_record().
1742         (next_record_w):  Likewise.