Pass -dumpbase and -dumpdir to gcc for LTO
[official-gcc.git] / libgfortran / ChangeLog
blob162915287a5d672baf99a1c29733038dee61d01b
1 2009-12-19  Janne Blomqvist  <jb@gcc.gnu.org>
3         * intrinsics/system_clock.c: Fix library name in comment, move TCK
4         definition into functions.
5         (system_clock_4): Remove unused struct timezone.
6         (system_clock_8): Remove unused struct timezone, increase TCK.
8 2009-12-08  Tobias Burnus  <burnus@net-b.de>
10         PR fortran/41711
11         * io/read.c (set_integer): Support kind=10 for reading
12         real/complex BOZ.
14 2009-12-06  Janus Weil  <janus@gcc.gnu.org>
16         PR fortran/41478
17         PR fortran/42268
18         * intrinsics/pack_generic.c (pack): Add safety checks for the case that
19         'vector' is NULL.
21 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23         * Makefile.in: Regenerate.
24         * configure: Regenerate.
26 2009-12-04  Janne Blomqvist  <jb@gcc.gnu.org>
28         PR libfortran/40812
29         * libgfortran.h: typedef gfc_offset differently for MinGW.
30         * io/unix.h (struct stream): Change function pointers to use
31         gfc_offset instead of off_t.
32         (sseek): Change prototype to use gfc_offset instead of off_t.
33         (stell): Likewise.
34         (struncate): Likewise.
35         * io/unix.c: Redefine lseek() for mingw.
36         (raw_seek): Use gfc_offset instead of off_t.
37         (raw_tell): Likewise.
38         (buf_seek): Likewise.
39         (buf_tell): Likewise.
40         (buf_truncate): Likewise.
41         (mem_seek): Likewise.
42         (mem_tell): Likewise.
43         (mem_truncate): Likewise.
44         (fd_to_stream): Likewise.
45         (file_length): Likewise.
46         (raw_truncate): Use gfc_offset instead of off_t, add large file
47         capable implementation for MinGW.
49 2009-11-30  Janus Weil  <janus@gcc.gnu.org>
51         * gfortran.map: Add _gfortran_is_extension_of.
52         * Makefile.am: Add intrinsics/extends_type_of.c.
53         * Makefile.in: Regenerated.
54         * intrinsics/extends_type_of.c: New file. 
56 2009-11-30  Kai Tietz  <Kai.Tietz@onevision.com>
58         * io/unix.c (find_file): Add variable id conditionally for
59         mingw targets.
61 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
63         * intrinsics/pack_generic.c (pack_internal): Remove unused
64         zero_sized variable.
65         * intrinsics/unpack_generic.c (unpack0): Remove unused size
66         variable.
67         * io/write.c (namelist_write_newline): Remove unused length
68         variable.
69         * io/unix.c (find_file): Remove unused id variable.
70         * m4/ifunction.m4 (SCALAR_ARRAY_FUNCTION): Remove unused sstride
71         variable.
72         * generated/maxloc1_16_i1.c: Regenerated.
73         * generated/maxloc1_16_i16.c: Regenerated.
74         * generated/maxloc1_16_i2.c: Regenerated.
75         * generated/maxloc1_16_i4.c: Regenerated.
76         * generated/maxloc1_16_i8.c: Regenerated.
77         * generated/maxloc1_16_r10.c: Regenerated.
78         * generated/maxloc1_16_r16.c: Regenerated.
79         * generated/maxloc1_16_r4.c: Regenerated.
80         * generated/maxloc1_16_r8.c: Regenerated.
81         * generated/maxloc1_4_i1.c: Regenerated.
82         * generated/maxloc1_4_i16.c: Regenerated.
83         * generated/maxloc1_4_i2.c: Regenerated.
84         * generated/maxloc1_4_i4.c: Regenerated.
85         * generated/maxloc1_4_i8.c: Regenerated.
86         * generated/maxloc1_4_r10.c: Regenerated.
87         * generated/maxloc1_4_r16.c: Regenerated.
88         * generated/maxloc1_4_r4.c: Regenerated.
89         * generated/maxloc1_4_r8.c: Regenerated.
90         * generated/maxloc1_8_i1.c: Regenerated.
91         * generated/maxloc1_8_i16.c: Regenerated.
92         * generated/maxloc1_8_i2.c: Regenerated.
93         * generated/maxloc1_8_i4.c: Regenerated.
94         * generated/maxloc1_8_i8.c: Regenerated.
95         * generated/maxloc1_8_r10.c: Regenerated.
96         * generated/maxloc1_8_r16.c: Regenerated.
97         * generated/maxloc1_8_r4.c: Regenerated.
98         * generated/maxloc1_8_r8.c: Regenerated.
99         * generated/maxval_i1.c: Regenerated.
100         * generated/maxval_i16.c: Regenerated.
101         * generated/maxval_i2.c: Regenerated.
102         * generated/maxval_i4.c: Regenerated.
103         * generated/maxval_i8.c: Regenerated.
104         * generated/maxval_r10.c: Regenerated.
105         * generated/maxval_r16.c: Regenerated.
106         * generated/maxval_r4.c: Regenerated.
107         * generated/maxval_r8.c: Regenerated.
108         * generated/minloc1_16_i1.c: Regenerated.
109         * generated/minloc1_16_i16.c: Regenerated.
110         * generated/minloc1_16_i2.c: Regenerated.
111         * generated/minloc1_16_i4.c: Regenerated.
112         * generated/minloc1_16_i8.c: Regenerated.
113         * generated/minloc1_16_r10.c: Regenerated.
114         * generated/minloc1_16_r16.c: Regenerated.
115         * generated/minloc1_16_r4.c: Regenerated.
116         * generated/minloc1_16_r8.c: Regenerated.
117         * generated/minloc1_4_i1.c: Regenerated.
118         * generated/minloc1_4_i16.c: Regenerated.
119         * generated/minloc1_4_i2.c: Regenerated.
120         * generated/minloc1_4_i4.c: Regenerated.
121         * generated/minloc1_4_i8.c: Regenerated.
122         * generated/minloc1_4_r10.c: Regenerated.
123         * generated/minloc1_4_r16.c: Regenerated.
124         * generated/minloc1_4_r4.c: Regenerated.
125         * generated/minloc1_4_r8.c: Regenerated.
126         * generated/minloc1_8_i1.c: Regenerated.
127         * generated/minloc1_8_i16.c: Regenerated.
128         * generated/minloc1_8_i2.c: Regenerated.
129         * generated/minloc1_8_i4.c: Regenerated.
130         * generated/minloc1_8_i8.c: Regenerated.
131         * generated/minloc1_8_r10.c: Regenerated.
132         * generated/minloc1_8_r16.c: Regenerated.
133         * generated/minloc1_8_r4.c: Regenerated.
134         * generated/minloc1_8_r8.c: Regenerated.
135         * generated/minval_i1.c: Regenerated.
136         * generated/minval_i16.c: Regenerated.
137         * generated/minval_i2.c: Regenerated.
138         * generated/minval_i4.c: Regenerated.
139         * generated/minval_i8.c: Regenerated.
140         * generated/minval_r10.c: Regenerated.
141         * generated/minval_r16.c: Regenerated.
142         * generated/minval_r4.c: Regenerated.
143         * generated/minval_r8.c: Regenerated.
144         * generated/product_c10.c: Regenerated.
145         * generated/product_c16.c: Regenerated.
146         * generated/product_c4.c: Regenerated.
147         * generated/product_c8.c: Regenerated.
148         * generated/product_i1.c: Regenerated.
149         * generated/product_i16.c: Regenerated.
150         * generated/product_i2.c: Regenerated.
151         * generated/product_i4.c: Regenerated.
152         * generated/product_i8.c: Regenerated.
153         * generated/product_r10.c: Regenerated.
154         * generated/product_r16.c: Regenerated.
155         * generated/product_r4.c: Regenerated.
156         * generated/product_r8.c: Regenerated.
157         * generated/sum_c10.c: Regenerated.
158         * generated/sum_c16.c: Regenerated.
159         * generated/sum_c4.c: Regenerated.
160         * generated/sum_c8.c: Regenerated.
161         * generated/sum_i1.c: Regenerated.
162         * generated/sum_i16.c: Regenerated.
163         * generated/sum_i2.c: Regenerated.
164         * generated/sum_i4.c: Regenerated.
165         * generated/sum_i8.c: Regenerated.
166         * generated/sum_r10.c: Regenerated.
167         * generated/sum_r16.c: Regenerated.
168         * generated/sum_r4.c: Regenerated.
169         * generated/sum_r8.c: Regenerated.
171 2009-11-19  Janne Blomqvist  <jb@gcc.gnu.org>
173         * io/fbuf.h: Move includes after include guard.
174         * io/format.h: Likewise.
175         * io/unix.h: Likewise.
177 2009-11-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
179         PR libgfortran/42090
180         * io/transfer.c (skip_record): Set bytes_left_subrecord to zero after
181         skipping the remaining bytes in the record.
182         (next_record_r): Call skip_record with the number of bytes_left to be
183         skipped.
185 2009-11-02  Janne Blomqvist  <jb@gcc.gnu.org>
187         * Makefile.am (gfor_io_headers): Add fbuf.h, format.h, unix.h.
188         * Makefile.in: Regenerated.
189         * io/fbuf.h: New file.
190         * io/format.h: New file.
191         * io/unix.h: New file.
192         * io/io.h (struct stream): Move to unix.h, add forward declaration.
193         (sread): Likewise.
194         (swrite): Likewise.
195         (sseek): Likewise.
196         (stell): Likewise.
197         (struncate): Likewise.
198         (sflush): Likewise.
199         (sflush): Likewise.
200         (sclose): Likewise.
201         (compared_files): Move prototype to unix.h.
202         (open_external): Likewise.
203         (open_internal): Likewise.
204         (mem_alloc_w): Likewise.
205         (mem_alloc_r): Likewise.
206         (input_stream): Likewise.
207         (output_stream): Likewise.
208         (error_stream): Likewise.
209         (compare_file_filename): Likewise.
210         (find_file): Likewise.
211         (delete_file): Likewise.
212         (file_exists): Likewise.
213         (inquire_sequential): Likewise.
214         (inquire_direct): Likewise.
215         (inquire_formatted): Likewise.
216         (inquire_unformatted): Likewise.
217         (inquire_read): Likewise.
218         (inquire_write): Likewise.
219         (inquire_readwrite): Likewise.
220         (file_length): Likewise.
221         (is_seekable): Likewise.
222         (is_special): Likewise.
223         (flush_if_preconnected): Likewise.
224         (empty_internal_buffer): Likewise.
225         (stream_isatty): Likewise.
226         (stream_ttyname): Likewise.
227         (unpack_filename): Likewise.
228         (struct fbuf): Move to fbuf.h, add forward declaration.
229         (fbuf_init): Move prototype to fbuf.h.
230         (fbuf_destroy): Likewise.
231         (fbuf_reset): Likewise.
232         (fbuf_alloc): Likewise.
233         (fbuf_flush): Likewise.
234         (fbuf_seek): Likewise.
235         (fbuf_read): Likewise.
236         (fbuf_getc_refill): Likewise.
237         (fbuf_getc): Move inline function to fbuf.h.
238         (enum format_token): Move to format.h.
239         (struct fnode): Move to format.h, add forward declaration.
240         (parse_format): Move prototype to format.h.
241         (next_format): Likewise.
242         (unget_format): Likewise.
243         (format_error): Likewise.
244         (free_format_data): Likewise.
245         (free_format_hash_table): Likewise.
246         (init_format_hash): Likewise.
247         (free_format_hash): Likewise.
248         * io/close.c: Include unix.h.
249         * io/fbuf.c: Include fbuf.h and unix.h.
250         * io/file_pos.c: Include fbuf.h and unix.h.
251         * io/format.c: Include format.h.
252         * io/inquire.c: Include unix.h.
253         * io/intrinsics.c: Include fbuf.h and unix.h.
254         * io/list_read.c: Include fbuf.h and unix.h.
255         * io/open.c: Include fbuf.h and unix.h.
256         * io/read.c: Include format.h.
257         * io/transfer.c: Include fbuf.h, format.h, and unix.h.
258         * io/unit.c: Likewise.
259         * io/unix.c: Include unix.h.
260         * io/write.c: Include format.h and unix.h.
262 2009-10-31  Janne Blomqvist  <jb@gcc.gnu.org>
264         PR libfortran/41219
265         * intrinsics/unpack_generic.c (unpack_internal): Remove unused
266         argument from prototype.
267         (unpack1): Update unpack_internal call.
268         (unpack1_char): Likewise.
269         (unpack1_char4): Likewise.
270         (unpack0): Likewise.
271         (unpack0_char): Likewise.
272         (unpack0_char4): Likewise.
273         * intrinsics/iso_c_binding.c (c_f_pointer_u0): Get rid of
274         uninitialized variable warning.
276 2009-10-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
278         PR libgfortran/41711
279         * libgfortran.h: Define larger sizes for BOZ conversion buffers.
280         * io/write.c (extract_uint): Include case where size is 10 if integer
281         is large enough. (write_int): Rename to write_boz. (write_boz): Factor
282         out extract_uint and delete the conversion function.
283         (btoa_big): New binary conversion function.
284         (otoa_big): New octal conversion function.
285         (ztoa_big): New hexidecimal conversion function.
286         (write_b): Modify to use new function.
287         (write_o): Likewise.
288         (write_z): Likewise.
290 2009-10-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
292         PR libgfortran/41683
293         * io/format.c (parse_format_list): Allow a repeat specifier immediately
294         after a P specifier.
295         
296 2009-10-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
298         PR libgfortran/38439
299         * io/format.c (parse_format_list): Correct logic for FMT_F reading vs
300         writing. Code clean-up.
302 2009-10-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
304         PR libgfortran/38439
305         * io/format.c (parse_format_list): Add check for tokens not allowed
306         after P specifier. Fix comments.  Remove un-needed code. Fix the
307         default exponent list. Correct pointer assignment error.
309 2009-10-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
311         PR libgfortran/35862
312         * write_float.def (outout_float): Fix handling of special case where no
313         digits after the decimal point and values less than 1.0. Adjust index
314         into digits string. (WRITE_FLOAT): Remove special case code from macro.
316 2009-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
318         PR libgfortran/35862
319         * io.h (gfc_unit): Add round_status.
320         (format_token): Add enumerators for rounding format specifiers.
321         * transfer.c (round_opt): New options table.
322         (formatted_transfer_scalar_read): Add set round_status for each rounding
323         format token. (formatted_transfer_scalar_write): Likewise.
324         * format.c (format_lex): Tokenize the rounding format specifiers.
325         (parse_format_list): Parse the rounding format specifiers.
326         * write_float.def (outout_float): Modify rounding code to use new
327         variable rchar to set the appropriate rounding. Fix some whitespace.
328         * unit.c (get_internal_unit): Initialize rounding mode for internal
329         units. (init_units): Likewise.
331 2009-09-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
333         * configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm.
334         * configure: Regenerate.
335         * config.h.in: Ditto.
337 2009-09-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
339         PR libgfortran/41328
340         * io/transfer.c (read_sf): Set at_eof flag on short read if any
341         characters were successfully read so that EOF condition with no EOR
342         marker succeeds.
344 2009-09-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
346         PR libgfortran/41328
347         * io/transfer.c (read_sf): Adjust fbuf position and do proper
348         fbuf reads to traverse CR, CR-LF, and LF style line ends.
350 2009-09-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
352         PR libgfortran/41219
353         * io/write.c (write_a_char4): Use correct type for crlf constant.
355 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
357         * Makefile.am (libgfortranbegin_la_LINK): New.
358         * Makefile.in: Regenerate.
360 2009-09-09  Paolo Bonzini  <bonzini@gnu.org>
362         * configure: Regenerate.
364 2009-09-08  Paolo Bonzini  <bonzini@gnu.org>
366         * configure: Regenerate.
368 2009-09-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
370         PR libgfortran/41192
371         * io/list_read.c (eat_line): Enable eat_line to function on
372         internal units.
374         PR libgfortran/41219
375         * io/list_read.c (nml_read_obj): Replace GFC_DTYPE_UNKNOWN with
376         BT_NULL to get rid of warning.
377         
378 2009-09-04  Tobias Burnus  <burnus@net-b.de>
380         PR fortran/41219
381         * intrinsics/getlog.c: Define _POSIX for MINGW32.
383 2009-09-03  Tobias Burnus  <burnus@net-b.de>
385         PR fortran/41219
386         * intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable
387         declaration out of the loop.
389 2009-08-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
391         * m4/pack.m4 (pack_'rtype_code`): Use count_0 for counting true
392         values in a logical array.  Mark bounds checking tests as
393         unlikely.
394         * intrinsics/pack_generic.c (pack_internal): Likewise.
395         * runtime/bounds.c (count_0):  Fix off-by-one error in detecting
396         empty arrays.
397         * generated/pack_c4.c: Regenerated.
398         * generated/pack_c8.c: Regenerated.
399         * generated/pack_c10.c: Regenerated.
400         * generated/pack_c16.c: Regenerated.
401         * generated/pack_i1.c: Regenerated.
402         * generated/pack_i16.c: Regenerated.
403         * generated/pack_i2.c: Regenerated.
404         * generated/pack_i4.c: Regenerated.
405         * generated/pack_i8.c: Regenerated.
406         * generated/pack_r4.c: Regenerated.
407         * generated/pack_r8.c: Regenerated.
408         * generated/pack_r10.c: Regenerated.
409         * generated/pack_r16.c: Regenerated.
411 2009-08-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
413         PR libfortran/34670
414         * runtime/bounds.c (count_0):  New function.
415         * intrinsics/unpack_generic (unpack_bounds):  New function.
416         (unpack_internal):  Remove zero stride checks.
417         (unpack1):  Use unpack_bounds.
418         (unpack1_char):  Likeweise.
419         (unpack1_char4):  Likewise
420         (unpack0):  Likewise.
421         (unpack0_char):  Likewise.
422         (unpack0_char4):  Likewise.
424 2009-08-24  Steven G. Kargl  <kargl@gcc.gnu.org>
426         PR fortran/41157
427         * dtime.c (dtime_sub): Fix computing time increment.
428         * time_1.h: Add <sys/types.h> header.  Use RUSAGE_SELF macro instead
429         of a hardcoded 0.
431 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
433         * configure.ac (AC_PREREQ): Bump to 2.64.
435 2009-08-23  Steven G. Kargl  <kargl@gcc.gnu.org>
437         * intrinsics/cshift0.c: Update license to GPL3+exception.
438         * runtime/fpu.c: Add a GPL3+exception statement.
440 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
442         * Makefile.am (install-html, install-pdf): Remove.
443         * Makefile.in: Regenerate.
445         * Makefile.in: Regenerate.
446         * aclocal.m4: Regenerate.
447         * config.h.in: Regenerate.
448         * configure: Regenerate.
450 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
452         * Makefile.am (libgfortran_la_LINK): Add $(libgfortran_la_LDFLAGS).
453         * Makefile.in: Regenerate.
455 2009-08-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
457         PR libfortran/40962
458         * iso_c_binding.c (c_f_pointer_u0):  Multiply stride by
459         previous stride.
461 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
463         * Makefile.am (LTLDFLAGS): Add -bindir flag.
464         * Makefile.in: Regenerate.
466 2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
468         PR fortran/41075
469         * io/io.h (enum format_token): Add FMT_STAR.
470         * io/format.c (format_lex): Add case for FMT_STAR.
471         (parse_format_list): Parse FMT_STAR and check for left paren
472         after. (next_format0): Modify helper function to check for
473         unimited format and return the repeated format node.  Update
474         comments to clarify.
475         
476 2009-08-15  Kai Tietz  <kai.tietz@onevision.com>
478         * intrinsics/string_intrinsics_inc.c (string_len_trim): Use
479         __INTPTR_TYPE__ to cast from pointer to scalar integer, if
480         __INTPTR_TYPE is defined.
482 2009-08-14  Janne Blomqvist  <jb@gcc.gnu.org>
484         * fmain.c: Add comment saying file is deprecated.
486 2009-08-14  Janne Blomqvist  <jb@gcc.gnu.org>
488         PR libfortran/40863
489         * gfortran.map: Move new symbols to GFORTRAN_C99_1.1 version node.
491 2009-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
493         PR libfortran/40549
494         * Makefile.in (LTLDFLAGS): Add -no-undefined.
495         * Makefile.am: Regenerate.
496         * libgfortran.h: Remove unused block of code.
498 2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
500         PR libfortran/40853
501         * io/list_read.c (nml_get_obj_data): Do not set nl
502         pointer to first_nl if nl->next is NULL.
504 2009-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
506         * Makefile.am: Don't set SECTION_FLAGS with @SECTION_FLAGS@.
507         Don't set IEEE_FLAGS with @IEEE_FLAGS@.
508         * Makefile.in: Regenerate.
510 2009-07-30  Kaz Kojima  <kkojima@gcc.gnu.org>
512         * configure.host: Define ieee_flags and set it to -mieee for sh.
513         * configure.ac: Set IEEE_FLAGS with ieee_flags.
514         * Makefile.am: Add IEEE_FLAGS to AM_CFLAGS.
515         * configure: Regenerate.
516         * Makefile.in: Regenerate.
518 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
520         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
522 2009-07-27  Tobias Burnus  <burnus@net-b.de>
524         PR fortran/40863
525         * c99_functions.c: Define complex I, if not defined.
526         Create prototypes for C99 functions to silence warnings.
527         * gfortran.map: Add missing functions to GFORTRAN_C99_1.0
528         and new GFORTRAN_C99_1.1.
530 2009-07-25  Tobias Burnus  <burnus@net-b.de>
532         PR fortran/33197
533         * intrinsics/c99_functions.c (cacosf,cacos,cacosl,casinf,
534         casin,casind,catanf,catan,catanl,cacoshf,cacosh,cacoshl,
535         casinhf,casinh,casinhf,catanhf,catanh,catanhl): New functions.
536         * c99_protos.h: Add prototypes for those.
538 2009-07-24  Jakub Jelinek  <jakub@redhat.com>
540         PR fortran/40643
541         PR fortran/31067
542         * libgfortran.h (GFC_REAL_4_INFINITY, GFC_REAL_8_INFINITY,
543         GFC_REAL_10_INFINITY, GFC_REAL_16_INFINITY, GFC_REAL_4_QUIET_NAN,
544         GFC_REAL_8_QUIET_NAN, GFC_REAL_10_QUIET_NAN, GFC_REAL_16_QUIET_NAN):
545         Define.
546         * m4/iparm.m4 (atype_inf, atype_nan): Define.
547         * m4/ifunction.m4: Formatting.
548         * m4/iforeach.m4: Likewise.
549         (START_FOREACH_FUNCTION): Initialize dest to all 1s, not all 0s.
550         (START_FOREACH_BLOCK, FINISH_FOREACH_FUNCTION,
551         FINISH_MASKED_FOREACH_FUNCTION): Run foreach block inside a loop
552         until count[0] == extent[0].
553         * m4/minval.m4: Formatting.  Handle NaNs and infinities.  Optimize.
554         * m4/maxval.m4: Likewise.
555         * m4/minloc0.m4: Likewise.
556         * m4/maxloc0.m4: Likewise.
557         * m4/minloc1.m4: Likewise.
558         * m4/maxloc1.m4: Likewise.
559         * generated/maxloc0_16_i16.c: Regenerated.
560         * generated/maxloc0_16_i1.c: Likewise.
561         * generated/maxloc0_16_i2.c: Likewise.
562         * generated/maxloc0_16_i4.c: Likewise.
563         * generated/maxloc0_16_i8.c: Likewise.
564         * generated/maxloc0_16_r10.c: Likewise.
565         * generated/maxloc0_16_r16.c: Likewise.
566         * generated/maxloc0_16_r4.c: Likewise.
567         * generated/maxloc0_16_r8.c: Likewise.
568         * generated/maxloc0_4_i16.c: Likewise.
569         * generated/maxloc0_4_i1.c: Likewise.
570         * generated/maxloc0_4_i2.c: Likewise.
571         * generated/maxloc0_4_i4.c: Likewise.
572         * generated/maxloc0_4_i8.c: Likewise.
573         * generated/maxloc0_4_r10.c: Likewise.
574         * generated/maxloc0_4_r16.c: Likewise.
575         * generated/maxloc0_4_r4.c: Likewise.
576         * generated/maxloc0_4_r8.c: Likewise.
577         * generated/maxloc0_8_i16.c: Likewise.
578         * generated/maxloc0_8_i1.c: Likewise.
579         * generated/maxloc0_8_i2.c: Likewise.
580         * generated/maxloc0_8_i4.c: Likewise.
581         * generated/maxloc0_8_i8.c: Likewise.
582         * generated/maxloc0_8_r10.c: Likewise.
583         * generated/maxloc0_8_r16.c: Likewise.
584         * generated/maxloc0_8_r4.c: Likewise.
585         * generated/maxloc0_8_r8.c: Likewise.
586         * generated/maxloc1_16_i16.c: Likewise.
587         * generated/maxloc1_16_i1.c: Likewise.
588         * generated/maxloc1_16_i2.c: Likewise.
589         * generated/maxloc1_16_i4.c: Likewise.
590         * generated/maxloc1_16_i8.c: Likewise.
591         * generated/maxloc1_16_r10.c: Likewise.
592         * generated/maxloc1_16_r16.c: Likewise.
593         * generated/maxloc1_16_r4.c: Likewise.
594         * generated/maxloc1_16_r8.c: Likewise.
595         * generated/maxloc1_4_i16.c: Likewise.
596         * generated/maxloc1_4_i1.c: Likewise.
597         * generated/maxloc1_4_i2.c: Likewise.
598         * generated/maxloc1_4_i4.c: Likewise.
599         * generated/maxloc1_4_i8.c: Likewise.
600         * generated/maxloc1_4_r10.c: Likewise.
601         * generated/maxloc1_4_r16.c: Likewise.
602         * generated/maxloc1_4_r4.c: Likewise.
603         * generated/maxloc1_4_r8.c: Likewise.
604         * generated/maxloc1_8_i16.c: Likewise.
605         * generated/maxloc1_8_i1.c: Likewise.
606         * generated/maxloc1_8_i2.c: Likewise.
607         * generated/maxloc1_8_i4.c: Likewise.
608         * generated/maxloc1_8_i8.c: Likewise.
609         * generated/maxloc1_8_r10.c: Likewise.
610         * generated/maxloc1_8_r16.c: Likewise.
611         * generated/maxloc1_8_r4.c: Likewise.
612         * generated/maxloc1_8_r8.c: Likewise.
613         * generated/maxval_i16.c: Likewise.
614         * generated/maxval_i1.c: Likewise.
615         * generated/maxval_i2.c: Likewise.
616         * generated/maxval_i4.c: Likewise.
617         * generated/maxval_i8.c: Likewise.
618         * generated/maxval_r10.c: Likewise.
619         * generated/maxval_r16.c: Likewise.
620         * generated/maxval_r4.c: Likewise.
621         * generated/maxval_r8.c: Likewise.
622         * generated/minloc0_16_i16.c: Likewise.
623         * generated/minloc0_16_i1.c: Likewise.
624         * generated/minloc0_16_i2.c: Likewise.
625         * generated/minloc0_16_i4.c: Likewise.
626         * generated/minloc0_16_i8.c: Likewise.
627         * generated/minloc0_16_r10.c: Likewise.
628         * generated/minloc0_16_r16.c: Likewise.
629         * generated/minloc0_16_r4.c: Likewise.
630         * generated/minloc0_16_r8.c: Likewise.
631         * generated/minloc0_4_i16.c: Likewise.
632         * generated/minloc0_4_i1.c: Likewise.
633         * generated/minloc0_4_i2.c: Likewise.
634         * generated/minloc0_4_i4.c: Likewise.
635         * generated/minloc0_4_i8.c: Likewise.
636         * generated/minloc0_4_r10.c: Likewise.
637         * generated/minloc0_4_r16.c: Likewise.
638         * generated/minloc0_4_r4.c: Likewise.
639         * generated/minloc0_4_r8.c: Likewise.
640         * generated/minloc0_8_i16.c: Likewise.
641         * generated/minloc0_8_i1.c: Likewise.
642         * generated/minloc0_8_i2.c: Likewise.
643         * generated/minloc0_8_i4.c: Likewise.
644         * generated/minloc0_8_i8.c: Likewise.
645         * generated/minloc0_8_r10.c: Likewise.
646         * generated/minloc0_8_r16.c: Likewise.
647         * generated/minloc0_8_r4.c: Likewise.
648         * generated/minloc0_8_r8.c: Likewise.
649         * generated/minloc1_16_i16.c: Likewise.
650         * generated/minloc1_16_i1.c: Likewise.
651         * generated/minloc1_16_i2.c: Likewise.
652         * generated/minloc1_16_i4.c: Likewise.
653         * generated/minloc1_16_i8.c: Likewise.
654         * generated/minloc1_16_r10.c: Likewise.
655         * generated/minloc1_16_r16.c: Likewise.
656         * generated/minloc1_16_r4.c: Likewise.
657         * generated/minloc1_16_r8.c: Likewise.
658         * generated/minloc1_4_i16.c: Likewise.
659         * generated/minloc1_4_i1.c: Likewise.
660         * generated/minloc1_4_i2.c: Likewise.
661         * generated/minloc1_4_i4.c: Likewise.
662         * generated/minloc1_4_i8.c: Likewise.
663         * generated/minloc1_4_r10.c: Likewise.
664         * generated/minloc1_4_r16.c: Likewise.
665         * generated/minloc1_4_r4.c: Likewise.
666         * generated/minloc1_4_r8.c: Likewise.
667         * generated/minloc1_8_i16.c: Likewise.
668         * generated/minloc1_8_i1.c: Likewise.
669         * generated/minloc1_8_i2.c: Likewise.
670         * generated/minloc1_8_i4.c: Likewise.
671         * generated/minloc1_8_i8.c: Likewise.
672         * generated/minloc1_8_r10.c: Likewise.
673         * generated/minloc1_8_r16.c: Likewise.
674         * generated/minloc1_8_r4.c: Likewise.
675         * generated/minloc1_8_r8.c: Likewise.
676         * generated/minval_i16.c: Likewise.
677         * generated/minval_i1.c: Likewise.
678         * generated/minval_i2.c: Likewise.
679         * generated/minval_i4.c: Likewise.
680         * generated/minval_i8.c: Likewise.
681         * generated/minval_r10.c: Likewise.
682         * generated/minval_r16.c: Likewise.
683         * generated/minval_r4.c: Likewise.
684         * generated/minval_r8.c: Likewise.
685         * generated/product_c10.c: Likewise.
686         * generated/product_c16.c: Likewise.
687         * generated/product_c4.c: Likewise.
688         * generated/product_c8.c: Likewise.
689         * generated/product_i16.c: Likewise.
690         * generated/product_i1.c: Likewise.
691         * generated/product_i2.c: Likewise.
692         * generated/product_i4.c: Likewise.
693         * generated/product_i8.c: Likewise.
694         * generated/product_r10.c: Likewise.
695         * generated/product_r16.c: Likewise.
696         * generated/product_r4.c: Likewise.
697         * generated/product_r8.c: Likewise.
698         * generated/sum_c10.c: Likewise.
699         * generated/sum_c16.c: Likewise.
700         * generated/sum_c4.c: Likewise.
701         * generated/sum_c8.c: Likewise.
702         * generated/sum_i16.c: Likewise.
703         * generated/sum_i1.c: Likewise.
704         * generated/sum_i2.c: Likewise.
705         * generated/sum_i4.c: Likewise.
706         * generated/sum_i8.c: Likewise.
707         * generated/sum_r10.c: Likewise.
708         * generated/sum_r16.c: Likewise.
709         * generated/sum_r4.c: Likewise.
710         * generated/sum_r8.c: Likewise.
712 2009-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
714         PR libfortran/32784
715         * unix.c (regular_file): Check for CONIN$ CONOUT$, and CONERR$ and open
716         the respective /dev/conin or /dev/conout devices.  This is Cygwin
717         specific.
719 2009-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
721         PR libfortran/34670
722         PR libfortran/36874
723         * Makefile.am:  Add bounds.c
724         * libgfortran.h (bounds_equal_extents):  Add prototype.
725         (bounds_iforeach_return):  Likewise.
726         (bounds_ifunction_return):  Likewise.
727         (bounds_reduced_extents):  Likewise.
728         * runtime/bounds.c:  New file.
729         (bounds_iforeach_return):  New function; correct typo in
730         error message.
731         (bounds_ifunction_return):  New function.
732         (bounds_equal_extents):  New function.
733         (bounds_reduced_extents):  Likewise.
734         * intrinsics/cshift0.c (cshift0):  Use new functions
735         for bounds checking.
736         * intrinsics/eoshift0.c (eoshift0):  Likewise.
737         * intrinsics/eoshift2.c (eoshift2):  Likewise.
738         * m4/iforeach.m4:  Likewise.
739         * m4/eoshift1.m4:  Likewise.
740         * m4/eoshift3.m4:  Likewise.
741         * m4/cshift1.m4:  Likewise.
742         * m4/ifunction.m4:  Likewise.
743         * Makefile.in:  Regenerated.
744         * generated/cshift1_16.c: Regenerated.
745         * generated/cshift1_4.c: Regenerated.
746         * generated/cshift1_8.c: Regenerated.
747         * generated/eoshift1_16.c: Regenerated.
748         * generated/eoshift1_4.c: Regenerated.
749         * generated/eoshift1_8.c: Regenerated.
750         * generated/eoshift3_16.c: Regenerated.
751         * generated/eoshift3_4.c: Regenerated.
752         * generated/eoshift3_8.c: Regenerated.
753         * generated/maxloc0_16_i1.c: Regenerated.
754         * generated/maxloc0_16_i16.c: Regenerated.
755         * generated/maxloc0_16_i2.c: Regenerated.
756         * generated/maxloc0_16_i4.c: Regenerated.
757         * generated/maxloc0_16_i8.c: Regenerated.
758         * generated/maxloc0_16_r10.c: Regenerated.
759         * generated/maxloc0_16_r16.c: Regenerated.
760         * generated/maxloc0_16_r4.c: Regenerated.
761         * generated/maxloc0_16_r8.c: Regenerated.
762         * generated/maxloc0_4_i1.c: Regenerated.
763         * generated/maxloc0_4_i16.c: Regenerated.
764         * generated/maxloc0_4_i2.c: Regenerated.
765         * generated/maxloc0_4_i4.c: Regenerated.
766         * generated/maxloc0_4_i8.c: Regenerated.
767         * generated/maxloc0_4_r10.c: Regenerated.
768         * generated/maxloc0_4_r16.c: Regenerated.
769         * generated/maxloc0_4_r4.c: Regenerated.
770         * generated/maxloc0_4_r8.c: Regenerated.
771         * generated/maxloc0_8_i1.c: Regenerated.
772         * generated/maxloc0_8_i16.c: Regenerated.
773         * generated/maxloc0_8_i2.c: Regenerated.
774         * generated/maxloc0_8_i4.c: Regenerated.
775         * generated/maxloc0_8_i8.c: Regenerated.
776         * generated/maxloc0_8_r10.c: Regenerated.
777         * generated/maxloc0_8_r16.c: Regenerated.
778         * generated/maxloc0_8_r4.c: Regenerated.
779         * generated/maxloc0_8_r8.c: Regenerated.
780         * generated/maxloc1_16_i1.c: Regenerated.
781         * generated/maxloc1_16_i16.c: Regenerated.
782         * generated/maxloc1_16_i2.c: Regenerated.
783         * generated/maxloc1_16_i4.c: Regenerated.
784         * generated/maxloc1_16_i8.c: Regenerated.
785         * generated/maxloc1_16_r10.c: Regenerated.
786         * generated/maxloc1_16_r16.c: Regenerated.
787         * generated/maxloc1_16_r4.c: Regenerated.
788         * generated/maxloc1_16_r8.c: Regenerated.
789         * generated/maxloc1_4_i1.c: Regenerated.
790         * generated/maxloc1_4_i16.c: Regenerated.
791         * generated/maxloc1_4_i2.c: Regenerated.
792         * generated/maxloc1_4_i4.c: Regenerated.
793         * generated/maxloc1_4_i8.c: Regenerated.
794         * generated/maxloc1_4_r10.c: Regenerated.
795         * generated/maxloc1_4_r16.c: Regenerated.
796         * generated/maxloc1_4_r4.c: Regenerated.
797         * generated/maxloc1_4_r8.c: Regenerated.
798         * generated/maxloc1_8_i1.c: Regenerated.
799         * generated/maxloc1_8_i16.c: Regenerated.
800         * generated/maxloc1_8_i2.c: Regenerated.
801         * generated/maxloc1_8_i4.c: Regenerated.
802         * generated/maxloc1_8_i8.c: Regenerated.
803         * generated/maxloc1_8_r10.c: Regenerated.
804         * generated/maxloc1_8_r16.c: Regenerated.
805         * generated/maxloc1_8_r4.c: Regenerated.
806         * generated/maxloc1_8_r8.c: Regenerated.
807         * generated/maxval_i1.c: Regenerated.
808         * generated/maxval_i16.c: Regenerated.
809         * generated/maxval_i2.c: Regenerated.
810         * generated/maxval_i4.c: Regenerated.
811         * generated/maxval_i8.c: Regenerated.
812         * generated/maxval_r10.c: Regenerated.
813         * generated/maxval_r16.c: Regenerated.
814         * generated/maxval_r4.c: Regenerated.
815         * generated/maxval_r8.c: Regenerated.
816         * generated/minloc0_16_i1.c: Regenerated.
817         * generated/minloc0_16_i16.c: Regenerated.
818         * generated/minloc0_16_i2.c: Regenerated.
819         * generated/minloc0_16_i4.c: Regenerated.
820         * generated/minloc0_16_i8.c: Regenerated.
821         * generated/minloc0_16_r10.c: Regenerated.
822         * generated/minloc0_16_r16.c: Regenerated.
823         * generated/minloc0_16_r4.c: Regenerated.
824         * generated/minloc0_16_r8.c: Regenerated.
825         * generated/minloc0_4_i1.c: Regenerated.
826         * generated/minloc0_4_i16.c: Regenerated.
827         * generated/minloc0_4_i2.c: Regenerated.
828         * generated/minloc0_4_i4.c: Regenerated.
829         * generated/minloc0_4_i8.c: Regenerated.
830         * generated/minloc0_4_r10.c: Regenerated.
831         * generated/minloc0_4_r16.c: Regenerated.
832         * generated/minloc0_4_r4.c: Regenerated.
833         * generated/minloc0_4_r8.c: Regenerated.
834         * generated/minloc0_8_i1.c: Regenerated.
835         * generated/minloc0_8_i16.c: Regenerated.
836         * generated/minloc0_8_i2.c: Regenerated.
837         * generated/minloc0_8_i4.c: Regenerated.
838         * generated/minloc0_8_i8.c: Regenerated.
839         * generated/minloc0_8_r10.c: Regenerated.
840         * generated/minloc0_8_r16.c: Regenerated.
841         * generated/minloc0_8_r4.c: Regenerated.
842         * generated/minloc0_8_r8.c: Regenerated.
843         * generated/minloc1_16_i1.c: Regenerated.
844         * generated/minloc1_16_i16.c: Regenerated.
845         * generated/minloc1_16_i2.c: Regenerated.
846         * generated/minloc1_16_i4.c: Regenerated.
847         * generated/minloc1_16_i8.c: Regenerated.
848         * generated/minloc1_16_r10.c: Regenerated.
849         * generated/minloc1_16_r16.c: Regenerated.
850         * generated/minloc1_16_r4.c: Regenerated.
851         * generated/minloc1_16_r8.c: Regenerated.
852         * generated/minloc1_4_i1.c: Regenerated.
853         * generated/minloc1_4_i16.c: Regenerated.
854         * generated/minloc1_4_i2.c: Regenerated.
855         * generated/minloc1_4_i4.c: Regenerated.
856         * generated/minloc1_4_i8.c: Regenerated.
857         * generated/minloc1_4_r10.c: Regenerated.
858         * generated/minloc1_4_r16.c: Regenerated.
859         * generated/minloc1_4_r4.c: Regenerated.
860         * generated/minloc1_4_r8.c: Regenerated.
861         * generated/minloc1_8_i1.c: Regenerated.
862         * generated/minloc1_8_i16.c: Regenerated.
863         * generated/minloc1_8_i2.c: Regenerated.
864         * generated/minloc1_8_i4.c: Regenerated.
865         * generated/minloc1_8_i8.c: Regenerated.
866         * generated/minloc1_8_r10.c: Regenerated.
867         * generated/minloc1_8_r16.c: Regenerated.
868         * generated/minloc1_8_r4.c: Regenerated.
869         * generated/minloc1_8_r8.c: Regenerated.
870         * generated/minval_i1.c: Regenerated.
871         * generated/minval_i16.c: Regenerated.
872         * generated/minval_i2.c: Regenerated.
873         * generated/minval_i4.c: Regenerated.
874         * generated/minval_i8.c: Regenerated.
875         * generated/minval_r10.c: Regenerated.
876         * generated/minval_r16.c: Regenerated.
877         * generated/minval_r4.c: Regenerated.
878         * generated/minval_r8.c: Regenerated.
879         * generated/product_c10.c: Regenerated.
880         * generated/product_c16.c: Regenerated.
881         * generated/product_c4.c: Regenerated.
882         * generated/product_c8.c: Regenerated.
883         * generated/product_i1.c: Regenerated.
884         * generated/product_i16.c: Regenerated.
885         * generated/product_i2.c: Regenerated.
886         * generated/product_i4.c: Regenerated.
887         * generated/product_i8.c: Regenerated.
888         * generated/product_r10.c: Regenerated.
889         * generated/product_r16.c: Regenerated.
890         * generated/product_r4.c: Regenerated.
891         * generated/product_r8.c: Regenerated.
892         * generated/sum_c10.c: Regenerated.
893         * generated/sum_c16.c: Regenerated.
894         * generated/sum_c4.c: Regenerated.
895         * generated/sum_c8.c: Regenerated.
896         * generated/sum_i1.c: Regenerated.
897         * generated/sum_i16.c: Regenerated.
898         * generated/sum_i2.c: Regenerated.
899         * generated/sum_i4.c: Regenerated.
900         * generated/sum_i8.c: Regenerated.
901         * generated/sum_r10.c: Regenerated.
902         * generated/sum_r16.c: Regenerated.
903         * generated/sum_r4.c: Regenerated.
904         * generated/sum_r8.c: Regenerated.
906 2009-07-17  Janne Blomqvist  <jb@gcc.gnu.org>
907             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
908                 
909         PR libfortran/40714
910         * io/transfer.c (finalize_transfer): Set current_record to 0
911         before returning in case of error.
913 2009-07-12  Tobias Burnus  <burnus@net-b.de>
915         PR libfortran/22423
916         * io/io.h (namelist_type): Use the proper enum for GFC_DTYPE_*.
917         * intrinsics/iso_c_binding.c (c_f_pointer_u0): Make sure
918         variable is initialized to silence warning.
920 2009-07-10  Steven G. Kargl  <kargl@gcc.gnu.org>
922         * c99_functions.c (ccoshf, ccosh, ccoshl, ctanhf, ctanh, ctanl):
923         Fix errant minus.
925 2009-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
927         PR libfortran/40330
928         PR libfortran/40662
929         * io/io.h (st_parameter_dt): Define format_not_saved bit used to signal
930         whether the parsed format data was previously saved. Used to determine
931         if the current format data should be freed or not.
932         * io/transfer.c (st_read_done): Use the format_not_saved bit.
933         (st_write_done): Likewise.
934         * io/format.c (parse_format_list): Add boolean pointer to arg list. This
935         pointer is used to return status to the caller regarding whether it is
936         safe to cache the parsed format data.  Currently, if a FMT_STRING token
937         is encounetered, it is not safe to cache. Also, added a local boolean
938         variable to hold this information as recursive calls to
939         parse_format_list are made.  Remove previous save_format logic.
940         (parse_format): Do not use the format caching facility if the current
941         unit is an internal unit or if it is not safe to save parsed format
942         data.
943         
944 2009-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
946         PR libfortran/40576
947         * io/transfer.c (sset): Adjust exit condition for loop.
949 2009-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
951         PR libfortran/40508
952         * io/format.c: Don't save parsed format data for internal units.
954 2009-06-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
956         PR fortran/37577
957         Port from fortran-dev
958         * runtime/in_pack_generic (internal_pack):  Remove unnecessary
959         test for stride == 0.
960         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
961         * intrinsics/iso_c_binding.c (c_f_pointer_u0):  Take care
962         of stride in "shape" argument.  Use array access macros for
963         accessing array descriptors.
964         * libgfortran.h (struct descriptor_dimension):  Change stride
965         to _stride, lbound to _lbound and ubound to _ubound.
966         (GFC_DIMENSION_LBOUND):  Use new name(s) in struct
967         descriptor_dimension.
968         (GFC_DIMENSION_UBOUND):  Likewise.
969         (GFC_DIMENSION_STRIDE):  Likewise.
970         (GFC_DIMENSION_EXTENT):  Likewise.
971         (GFC_DIMENSION_SET):  Likewise.
972         (GFC_DESCRIPTOR_LBOUND):  Likewise.
973         (GFC_DESCRIPTOR_UBOUND):  Likewise.
974         (GFC_DESCRIPTOR_EXTENT):  Likewise.
975         (GFC_DESCRIPTOR_STRIDE):  Likewise.
976         * io/transfer.c (transfer_array):  Use array access macros.
977         Use byte-sized strides.
978         * intrinsics/eoshift0.c (eoshift0):  Use array access
979         macros everywhere.
980         * m4/in_pack.m4 (internal_pack_'rtype_ccode`):  Use
981         array access macros for accessing array descriptors.
982         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):
983         Likewise.
984         * m4/matmull.m4 (matmul_'rtype_code`):  Likewise.
985         * m4/matmul.m4 (matmul_'rtype_code`):  Likewise.
986         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
987         (unpack1_'rtype_code`):  Likewise.
988         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Likewise.
989         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Use array access
990         macros everywhere.
991                 * intrinsics/dtime.c (dtime_sub):  Use array access macros
992         for accessing array descriptors.
993         * intrinsics/cshift0 (cshift0):  Likewise.
994         * intrinsics/etime.c:  Likewise.  Remove redundant calculation
995         of rdim.
996         * m4/cshift0.m4 (cshift0_'rtype_code`):  Use array access macros
997         for accessing array descriptors.
998         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
999         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
1000         (spread_scalar_'rtype_code`):  Likewise.
1001         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
1002         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
1003         * m4/eoshift1.m4 (eoshift1):  Likewise.  Remove size argument,
1004         calculate within function.
1005         (eoshift1_'atype_kind`):  Remove size argument from call
1006         to eoshift1.
1007         (eoshift1_'atype_kind`_char):  Likewise.
1008         (eoshift1_'atype_kind`_char4):  Likewise.
1009         * m4/eoshift3.m4 (eoshift3):  Remove size argument, calculate
1010         within function. Use array access macros for accessing array
1011         descriptors.
1012         (eoshift3_'atype_kind`):  Remove size argument from call
1013         to eoshift1.
1014         (eoshift3_'atype_kind`_char):  Likewise.
1015         (eoshift3_'atype_kind`_char4):  Likewise.
1016         * m4/shape.m4 (shape_'rtype_kind`):  Use array access macros
1017         for accessing array descriptors.
1018         * m4/cshift1.m4 (cshift1): Remove size argument, calculate
1019         within function. Use array access macros for accessing array
1020         descriptors.
1021         (cshift1_'atype_kind`):  Remove size argument from call to
1022         cshift1.
1023         (cshift1_'atype_kind`_char):  Remove size argument from call to
1024         cshift1.
1025         (cshift1_'atype_kind`_char4):  Remove size argument from call to
1026         cshift1.
1027         * m4/reshape.m4 (reshape_'rtype_ccode`):  Use array access macros
1028         for accessing array descriptors.
1029         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
1030         * intrinsics/pack_generic.c (pack_internal):  Use array access
1031         macros for accessing array descriptors.
1032         (pack_s_internal):  Likewise.
1033         * intrinsics/transpose_generic.c (transpose_internal):  Remove
1034         size argument, calculate from array descriptor. Use array
1035         access macros for accessing array descriptors.
1036         (transpose):  Remove size argument from call.
1037         (transpoe_char):  Likewise.
1038         (transpose_char4):  Likewise.
1039         * intrinsics/move_alloc.c (move_alloc):  Use array access macros
1040         for accessing array descriptors.
1041         * intrinsics/spread_generic.c (spread_internal):  Remove size
1042         argument, calculate from array descriptor.  Use array access
1043         macros for accessing array descriptors.
1044         (spread_internal_scalar):  Likewise.
1045         (spread):  Remove size argument from call to spread_internal.
1046         (spread_char):  Mark argument source_length as unused.
1047         Remove size argument from call to spread_internal.
1048         (spread_char4):  Likewise.
1049         (spread_char_scalar):  Likewise.
1050         (spread_char4_scalar):  Likewise.
1051         * intrinsics/unpack_generic.c (unpack_internal):  Use array access
1052         macros for accessing array descriptors.
1053         * intrinsics/eoshift2.c (eoshift2):  Remove size argument, calculate
1054         from array descriptor instead.  Use array access macros for
1055         accessing array descriptors.
1056         (eoshift2_##N):  Remove size argument from call to eoshift2.
1057         (eoshift2_##N_##char):  Likewise.
1058         (eoshift2_##N_##char4):  Likewise.
1059         * intrinsics/reshape_generic.c (reshape_internal):  Use array
1060         access macross for accessing array descriptors.
1061         * libgfortran.h:  Introduce new macros GFC_DIMENSION_LBOUND,
1062         GFC_DIMENSION_UBOUND,GFC_DIMENSION_STRIDE, GFC_DIMENSION_EXTENT,
1063         GFC_DIMENSION_SET, GFC_DESCRIPTOR_LBOUND, GFC_DESCRIPTOR_UBOUND,
1064         GFC_DESCRIPTOR_EXTENT, GFC_DESCRIPTOR_EXTENT_BYTES,
1065         GFC_DESCRIPTOR_STRIDE, GFC_DESCRIPTOR_STRIDE_BYTES
1066         * runtime/in_pack_generic.c (internal_pack):  Use new macros
1067         for array descriptor access.
1068         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
1069         * intrinsics/dtime.c (dtime_sub):  Likewise.
1070         * intrinsics/cshift0 (cshift0):  Remove argument size,
1071         calculate directly from the array descriptor.  Use new macros
1072         for array descriptor access.
1073         * cshift0_##N:  Remove shift argument in call to cshift0.
1074         * cshift0_##N_char:  Mark array_length as unused.  Remove
1075         array_length in call to cshift0.
1076         * cshift0_##N_char4:  Likewise.
1077         * intrisics/etime.c:  Use new macros for array descriptor access.
1078         * intrinsics/stat.c (stat_i4_sub_0):  Likewise.
1079         (stat_i8_sub_0):  Likewise.
1080         (fstat_i4_sub):  Likewise.
1081         (fstat_i8_sub):  Likewise.
1082         * intrinsics/date_and_time.c (date_and_time):  Likewise.
1083         (secnds):  Likewise.
1084         (itime_i4):  Likewise.
1085         (itime_i8):  Likewise.
1086         (idate_i4):  Likewise.
1087         (idate_i8):  Likewise.
1088         (gmtime_i4):  Likewise.
1089         (gmtime_i8):  Likewise.
1090         (ltime_i4):  Likewise.
1091         (litme_i8):  Likewise.
1092         * intrinsics/associated.c (associated):  Likewise.
1093         * intrinsics/eoshift0.c (eoshift0):  Likewise.
1094         * intriniscs/size.c (size0):  Likewise.
1095         * intrinsics/random.c (arandom_r4):  Likewise.
1096         (arandom_r8):  Likewise.
1097         (arandom_r10):  Likewise.
1098         (arandom_r16):  Likewise.
1099         (random_seed_i4):  Likewise.
1100         (random_seed_i8):  Likewise.
1101         * io/list_read.c (nml_parse_qualifier):  Likewise.
1102         (nml_touch_nodes):  Likewise.
1103         (nml_read_obj):  Likewise.
1104         (get_name):  Likewise.
1105         * io/transfer.c (transfer_array):  Likewise.
1106         (init_loop_spec):  Likewise.
1107         (st_set_nml_var_dim):  Likewise.
1108         * io/write.c (nml_write_obj):  Likewise.
1109         (obj_loop):  Likewise.
1110         * generated/all_l1.c: Regenerated.
1111         * generated/all_l16.c: Regenerated.
1112         * generated/all_l2.c: Regenerated.
1113         * generated/all_l4.c: Regenerated.
1114         * generated/all_l8.c: Regenerated.
1115         * generated/any_l1.c: Regenerated.
1116         * generated/any_l16.c: Regenerated.
1117         * generated/any_l2.c: Regenerated.
1118         * generated/any_l4.c: Regenerated.
1119         * generated/any_l8.c: Regenerated.
1120         * generated/count_16_l.c: Regenerated.
1121         * generated/count_1_l.c: Regenerated.
1122         * generated/count_2_l.c: Regenerated.
1123         * generated/count_4_l.c: Regenerated.
1124         * generated/count_8_l.c: Regenerated.
1125         * generated/cshift0_c10.c: Regenerated.
1126         * generated/cshift0_c16.c: Regenerated.
1127         * generated/cshift0_c4.c: Regenerated.
1128         * generated/cshift0_c8.c: Regenerated.
1129         * generated/cshift0_i1.c: Regenerated.
1130         * generated/cshift0_i16.c: Regenerated.
1131         * generated/cshift0_i2.c: Regenerated.
1132         * generated/cshift0_i4.c: Regenerated.
1133         * generated/cshift0_i8.c: Regenerated.
1134         * generated/cshift0_r10.c: Regenerated.
1135         * generated/cshift0_r16.c: Regenerated.
1136         * generated/cshift0_r4.c: Regenerated.
1137         * generated/cshift0_r8.c: Regenerated.
1138         * generated/cshift1_16.c: Regenerated.
1139         * generated/cshift1_4.c: Regenerated.
1140         * generated/cshift1_8.c: Regenerated.
1141         * generated/eoshift1_16.c: Regenerated.
1142         * generated/eoshift1_4.c: Regenerated.
1143         * generated/eoshift1_8.c: Regenerated.
1144         * generated/eoshift3_16.c: Regenerated.
1145         * generated/eoshift3_4.c: Regenerated.
1146         * generated/eoshift3_8.c: Regenerated.
1147         * generated/in_pack_c10.c: Regenerated.
1148         * generated/in_pack_c16.c: Regenerated.
1149         * generated/in_pack_c4.c: Regenerated.
1150         * generated/in_pack_c8.c: Regenerated.
1151         * generated/in_pack_i1.c: Regenerated.
1152         * generated/in_pack_i16.c: Regenerated.
1153         * generated/in_pack_i2.c: Regenerated.
1154         * generated/in_pack_i4.c: Regenerated.
1155         * generated/in_pack_i8.c: Regenerated.
1156         * generated/in_pack_r10.c: Regenerated.
1157         * generated/in_pack_r16.c: Regenerated.
1158         * generated/in_pack_r4.c: Regenerated.
1159         * generated/in_pack_r8.c: Regenerated.
1160         * generated/in_unpack_c10.c: Regenerated.
1161         * generated/in_unpack_c16.c: Regenerated.
1162         * generated/in_unpack_c4.c: Regenerated.
1163         * generated/in_unpack_c8.c: Regenerated.
1164         * generated/in_unpack_i1.c: Regenerated.
1165         * generated/in_unpack_i16.c: Regenerated.
1166         * generated/in_unpack_i2.c: Regenerated.
1167         * generated/in_unpack_i4.c: Regenerated.
1168         * generated/in_unpack_i8.c: Regenerated.
1169         * generated/in_unpack_r10.c: Regenerated.
1170         * generated/in_unpack_r16.c: Regenerated.
1171         * generated/in_unpack_r4.c: Regenerated.
1172         * generated/in_unpack_r8.c: Regenerated.
1173         * generated/matmul_c10.c: Regenerated.
1174         * generated/matmul_c16.c: Regenerated.
1175         * generated/matmul_c4.c: Regenerated.
1176         * generated/matmul_c8.c: Regenerated.
1177         * generated/matmul_i1.c: Regenerated.
1178         * generated/matmul_i16.c: Regenerated.
1179         * generated/matmul_i2.c: Regenerated.
1180         * generated/matmul_i4.c: Regenerated.
1181         * generated/matmul_i8.c: Regenerated.
1182         * generated/matmul_l16.c: Regenerated.
1183         * generated/matmul_l4.c: Regenerated.
1184         * generated/matmul_l8.c: Regenerated.
1185         * generated/matmul_r10.c: Regenerated.
1186         * generated/matmul_r16.c: Regenerated.
1187         * generated/matmul_r4.c: Regenerated.
1188         * generated/matmul_r8.c: Regenerated.
1189         * generated/maxloc0_16_i1.c: Regenerated.
1190         * generated/maxloc0_16_i16.c: Regenerated.
1191         * generated/maxloc0_16_i2.c: Regenerated.
1192         * generated/maxloc0_16_i4.c: Regenerated.
1193         * generated/maxloc0_16_i8.c: Regenerated.
1194         * generated/maxloc0_16_r10.c: Regenerated.
1195         * generated/maxloc0_16_r16.c: Regenerated.
1196         * generated/maxloc0_16_r4.c: Regenerated.
1197         * generated/maxloc0_16_r8.c: Regenerated.
1198         * generated/maxloc0_4_i1.c: Regenerated.
1199         * generated/maxloc0_4_i16.c: Regenerated.
1200         * generated/maxloc0_4_i2.c: Regenerated.
1201         * generated/maxloc0_4_i4.c: Regenerated.
1202         * generated/maxloc0_4_i8.c: Regenerated.
1203         * generated/maxloc0_4_r10.c: Regenerated.
1204         * generated/maxloc0_4_r16.c: Regenerated.
1205         * generated/maxloc0_4_r4.c: Regenerated.
1206         * generated/maxloc0_4_r8.c: Regenerated.
1207         * generated/maxloc0_8_i1.c: Regenerated.
1208         * generated/maxloc0_8_i16.c: Regenerated.
1209         * generated/maxloc0_8_i2.c: Regenerated.
1210         * generated/maxloc0_8_i4.c: Regenerated.
1211         * generated/maxloc0_8_i8.c: Regenerated.
1212         * generated/maxloc0_8_r10.c: Regenerated.
1213         * generated/maxloc0_8_r16.c: Regenerated.
1214         * generated/maxloc0_8_r4.c: Regenerated.
1215         * generated/maxloc0_8_r8.c: Regenerated.
1216         * generated/maxloc1_16_i1.c: Regenerated.
1217         * generated/maxloc1_16_i16.c: Regenerated.
1218         * generated/maxloc1_16_i2.c: Regenerated.
1219         * generated/maxloc1_16_i4.c: Regenerated.
1220         * generated/maxloc1_16_i8.c: Regenerated.
1221         * generated/maxloc1_16_r10.c: Regenerated.
1222         * generated/maxloc1_16_r16.c: Regenerated.
1223         * generated/maxloc1_16_r4.c: Regenerated.
1224         * generated/maxloc1_16_r8.c: Regenerated.
1225         * generated/maxloc1_4_i1.c: Regenerated.
1226         * generated/maxloc1_4_i16.c: Regenerated.
1227         * generated/maxloc1_4_i2.c: Regenerated.
1228         * generated/maxloc1_4_i4.c: Regenerated.
1229         * generated/maxloc1_4_i8.c: Regenerated.
1230         * generated/maxloc1_4_r10.c: Regenerated.
1231         * generated/maxloc1_4_r16.c: Regenerated.
1232         * generated/maxloc1_4_r4.c: Regenerated.
1233         * generated/maxloc1_4_r8.c: Regenerated.
1234         * generated/maxloc1_8_i1.c: Regenerated.
1235         * generated/maxloc1_8_i16.c: Regenerated.
1236         * generated/maxloc1_8_i2.c: Regenerated.
1237         * generated/maxloc1_8_i4.c: Regenerated.
1238         * generated/maxloc1_8_i8.c: Regenerated.
1239         * generated/maxloc1_8_r10.c: Regenerated.
1240         * generated/maxloc1_8_r16.c: Regenerated.
1241         * generated/maxloc1_8_r4.c: Regenerated.
1242         * generated/maxloc1_8_r8.c: Regenerated.
1243         * generated/maxval_i1.c: Regenerated.
1244         * generated/maxval_i16.c: Regenerated.
1245         * generated/maxval_i2.c: Regenerated.
1246         * generated/maxval_i4.c: Regenerated.
1247         * generated/maxval_i8.c: Regenerated.
1248         * generated/maxval_r10.c: Regenerated.
1249         * generated/maxval_r16.c: Regenerated.
1250         * generated/maxval_r4.c: Regenerated.
1251         * generated/maxval_r8.c: Regenerated.
1252         * generated/minloc0_16_i1.c: Regenerated.
1253         * generated/minloc0_16_i16.c: Regenerated.
1254         * generated/minloc0_16_i2.c: Regenerated.
1255         * generated/minloc0_16_i4.c: Regenerated.
1256         * generated/minloc0_16_i8.c: Regenerated.
1257         * generated/minloc0_16_r10.c: Regenerated.
1258         * generated/minloc0_16_r16.c: Regenerated.
1259         * generated/minloc0_16_r4.c: Regenerated.
1260         * generated/minloc0_16_r8.c: Regenerated.
1261         * generated/minloc0_4_i1.c: Regenerated.
1262         * generated/minloc0_4_i16.c: Regenerated.
1263         * generated/minloc0_4_i2.c: Regenerated.
1264         * generated/minloc0_4_i4.c: Regenerated.
1265         * generated/minloc0_4_i8.c: Regenerated.
1266         * generated/minloc0_4_r10.c: Regenerated.
1267         * generated/minloc0_4_r16.c: Regenerated.
1268         * generated/minloc0_4_r4.c: Regenerated.
1269         * generated/minloc0_4_r8.c: Regenerated.
1270         * generated/minloc0_8_i1.c: Regenerated.
1271         * generated/minloc0_8_i16.c: Regenerated.
1272         * generated/minloc0_8_i2.c: Regenerated.
1273         * generated/minloc0_8_i4.c: Regenerated.
1274         * generated/minloc0_8_i8.c: Regenerated.
1275         * generated/minloc0_8_r10.c: Regenerated.
1276         * generated/minloc0_8_r16.c: Regenerated.
1277         * generated/minloc0_8_r4.c: Regenerated.
1278         * generated/minloc0_8_r8.c: Regenerated.
1279         * generated/minloc1_16_i1.c: Regenerated.
1280         * generated/minloc1_16_i16.c: Regenerated.
1281         * generated/minloc1_16_i2.c: Regenerated.
1282         * generated/minloc1_16_i4.c: Regenerated.
1283         * generated/minloc1_16_i8.c: Regenerated.
1284         * generated/minloc1_16_r10.c: Regenerated.
1285         * generated/minloc1_16_r16.c: Regenerated.
1286         * generated/minloc1_16_r4.c: Regenerated.
1287         * generated/minloc1_16_r8.c: Regenerated.
1288         * generated/minloc1_4_i1.c: Regenerated.
1289         * generated/minloc1_4_i16.c: Regenerated.
1290         * generated/minloc1_4_i2.c: Regenerated.
1291         * generated/minloc1_4_i4.c: Regenerated.
1292         * generated/minloc1_4_i8.c: Regenerated.
1293         * generated/minloc1_4_r10.c: Regenerated.
1294         * generated/minloc1_4_r16.c: Regenerated.
1295         * generated/minloc1_4_r4.c: Regenerated.
1296         * generated/minloc1_4_r8.c: Regenerated.
1297         * generated/minloc1_8_i1.c: Regenerated.
1298         * generated/minloc1_8_i16.c: Regenerated.
1299         * generated/minloc1_8_i2.c: Regenerated.
1300         * generated/minloc1_8_i4.c: Regenerated.
1301         * generated/minloc1_8_i8.c: Regenerated.
1302         * generated/minloc1_8_r10.c: Regenerated.
1303         * generated/minloc1_8_r16.c: Regenerated.
1304         * generated/minloc1_8_r4.c: Regenerated.
1305         * generated/minloc1_8_r8.c: Regenerated.
1306         * generated/minval_i1.c: Regenerated.
1307         * generated/minval_i16.c: Regenerated.
1308         * generated/minval_i2.c: Regenerated.
1309         * generated/minval_i4.c: Regenerated.
1310         * generated/minval_i8.c: Regenerated.
1311         * generated/minval_r10.c: Regenerated.
1312         * generated/minval_r16.c: Regenerated.
1313         * generated/minval_r4.c: Regenerated.
1314         * generated/minval_r8.c: Regenerated.
1315         * generated/pack_c10.c: Regenerated.
1316         * generated/pack_c16.c: Regenerated.
1317         * generated/pack_c4.c: Regenerated.
1318         * generated/pack_c8.c: Regenerated.
1319         * generated/pack_i1.c: Regenerated.
1320         * generated/pack_i16.c: Regenerated.
1321         * generated/pack_i2.c: Regenerated.
1322         * generated/pack_i4.c: Regenerated.
1323         * generated/pack_i8.c: Regenerated.
1324         * generated/pack_r10.c: Regenerated.
1325         * generated/pack_r16.c: Regenerated.
1326         * generated/pack_r4.c: Regenerated.
1327         * generated/pack_r8.c: Regenerated.
1328         * generated/product_c10.c: Regenerated.
1329         * generated/product_c16.c: Regenerated.
1330         * generated/product_c4.c: Regenerated.
1331         * generated/product_c8.c: Regenerated.
1332         * generated/product_i1.c: Regenerated.
1333         * generated/product_i16.c: Regenerated.
1334         * generated/product_i2.c: Regenerated.
1335         * generated/product_i4.c: Regenerated.
1336         * generated/product_i8.c: Regenerated.
1337         * generated/product_r10.c: Regenerated.
1338         * generated/product_r16.c: Regenerated.
1339         * generated/product_r4.c: Regenerated.
1340         * generated/product_r8.c: Regenerated.
1341         * generated/reshape_c10.c: Regenerated.
1342         * generated/reshape_c16.c: Regenerated.
1343         * generated/reshape_c4.c: Regenerated.
1344         * generated/reshape_c8.c: Regenerated.
1345         * generated/reshape_i16.c: Regenerated.
1346         * generated/reshape_i4.c: Regenerated.
1347         * generated/reshape_i8.c: Regenerated.
1348         * generated/reshape_r10.c: Regenerated.
1349         * generated/reshape_r16.c: Regenerated.
1350         * generated/reshape_r4.c: Regenerated.
1351         * generated/reshape_r8.c: Regenerated.
1352         * generated/shape_i16.c: Regenerated.
1353         * generated/shape_i4.c: Regenerated.
1354         * generated/shape_i8.c: Regenerated.
1355         * generated/spread_c10.c: Regenerated.
1356         * generated/spread_c16.c: Regenerated.
1357         * generated/spread_c4.c: Regenerated.
1358         * generated/spread_c8.c: Regenerated.
1359         * generated/spread_i1.c: Regenerated.
1360         * generated/spread_i16.c: Regenerated.
1361         * generated/spread_i2.c: Regenerated.
1362         * generated/spread_i4.c: Regenerated.
1363         * generated/spread_i8.c: Regenerated.
1364         * generated/spread_r10.c: Regenerated.
1365         * generated/spread_r16.c: Regenerated.
1366         * generated/spread_r4.c: Regenerated.
1367         * generated/spread_r8.c: Regenerated.
1368         * generated/sum_c10.c: Regenerated.
1369         * generated/sum_c16.c: Regenerated.
1370         * generated/sum_c4.c: Regenerated.
1371         * generated/sum_c8.c: Regenerated.
1372         * generated/sum_i1.c: Regenerated.
1373         * generated/sum_i16.c: Regenerated.
1374         * generated/sum_i2.c: Regenerated.
1375         * generated/sum_i4.c: Regenerated.
1376         * generated/sum_i8.c: Regenerated.
1377         * generated/sum_r10.c: Regenerated.
1378         * generated/sum_r16.c: Regenerated.
1379         * generated/sum_r4.c: Regenerated.
1380         * generated/sum_r8.c: Regenerated.
1381         * generated/transpose_c10.c: Regenerated.
1382         * generated/transpose_c16.c: Regenerated.
1383         * generated/transpose_c4.c: Regenerated.
1384         * generated/transpose_c8.c: Regenerated.
1385         * generated/transpose_i16.c: Regenerated.
1386         * generated/transpose_i4.c: Regenerated.
1387         * generated/transpose_i8.c: Regenerated.
1388         * generated/transpose_r10.c: Regenerated.
1389         * generated/transpose_r16.c: Regenerated.
1390         * generated/transpose_r4.c: Regenerated.
1391         * generated/transpose_r8.c: Regenerated.
1392         * generated/unpack_c10.c: Regenerated.
1393         * generated/unpack_c16.c: Regenerated.
1394         * generated/unpack_c4.c: Regenerated.
1395         * generated/unpack_c8.c: Regenerated.
1396         * generated/unpack_i1.c: Regenerated.
1397         * generated/unpack_i16.c: Regenerated.
1398         * generated/unpack_i2.c: Regenerated.
1399         * generated/unpack_i4.c: Regenerated.
1400         * generated/unpack_i8.c: Regenerated.
1401         * generated/unpack_r10.c: Regenerated.
1402         * generated/unpack_r16.c: Regenerated.
1403         * generated/unpack_r4.c: Regenerated.
1404         * generated/unpack_r8.c: Regenerated.
1406 2009-06-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1408         * fmain.c (main): Don't PREFIX set_args.
1409         * libgfortran.h (set_args): Use iexport_proto.
1410         * runtime/main.c (set_args): Use iexport.
1412 2009-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1414         PR libfortran/40008
1415         * libgfortran.h: Define IOPARM_OPEN_HAS_NEWUNIT.
1416         * io/open.c (st_open): Don't error on negative unit number if NEWUNIT
1417         was specified. If NEWUNIT is specified, call new function to get the
1418         unique unit number and assign it.
1419         * io/io.h (st_parameter_open): Add pointer to newunit.  Add prototype for
1420         next_available_newunit. Add prototype for new function,
1421         get_unique_unit_number.
1422         * io/unit.c: Declare next_available_newunit. Define the first newunit
1423         number. (init_units): Initialize next_available_unit.
1424         (get_unique_unit_number): New function. Fix whitespace and comments.
1425         * io/transfer.c (data_transfer_init): Update error message to not be
1426         specific to OPEN statements.
1428 2009-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1430         PR libfortran/40334
1431         * io/list_read.c (list_formatted_read_scalar): Set the end file
1432         conditions after a return from EOF error.
1434 2009-06-04  Janne Blomqvist  <jb@gcc.gnu.org>
1436         PR libfortran/40330
1437         * io/format.c (free_format_hash_table): Also free and nullify hash key.
1438         (save_parsed_format): Copy string rather than pointer copy.
1439         
1440 2009-05-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1442         PR fortran/40019
1443         * intrinsics/bit_intrinsics.c: New file.
1444         * gfortran.map (GFORTRAN_1.2): New list.
1445         * Makefile.am: Add intrinsics/bit_intrinsics.c.
1446         * Makefile.in: Regenerate.
1448 2009-05-29  Janne Blomqvist  <jb@gcc.gnu.org>
1450         PR libfortran/40190
1451         * configure.ac: Check for localtime_r and gmtime_r.
1452         * intrinsics/date_and_time.c: Add fallback implementations for
1453         localtime_r and gmtime_r.
1454         (date_and_time): Change to use localtime_r and gmtime_r instead of
1455         localtime and gmtime, respectively.
1456         (itime0): Use localtime_r instead of localtime.
1457         (ltime_0): Likewise.
1458         (gmtime_0): Use gmtime_r instead of gmtime.
1459         * config.h.in: Regenerated
1460         * configure: Regenerated.
1462 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1464         PR fortran/39178
1465         * runtime/main.c (store_exe_path): Remove static attribute.
1466         * libgfortran.h: Add back store_exe_path prototype.
1468 2009-05-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
1470         PR libfortran/40187
1471         * intrinsics/iso_c_binding.c (c_f_pointer_u0):  Take care
1472         of stride in "shape" argument.
1474 2009-05-26  Tobias Burnus  <burnus@net-b.de>
1476         PR fortran/39178
1477         * runtime/main.c (store_exe_path): Make static
1478         and multiple-times callable.
1479         (set_args): Call store_exe_path.
1480         * libgfortran.h: Remove store_exe_path prototype.
1481         * fmain.c (main): Remove store_exe_path call.
1483 2009-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1485         PR libfortran/37754
1486         * io/write_float.def: Simplify format calculation.
1487         
1488 2009-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1490         PR fortran/22423
1491         * io/transfer.c (read_block_direct): Avoid warning.
1492         * runtime/string.c (compare0): Avoid warning.
1494 2009-04-30  Janne Blomqvist  <jb@gcc.gnu.org>
1496         PR libfortran/39667
1497         * io/file_pos.c (st_rewind): Don't truncate or flush.
1498         * io/intrinsics.c (fgetc): Flush if switching mode.
1499         (fputc): Likewise.
1501 2009-04-18  Janne Blomqvist  <jb@gcc.gnu.org>
1503         PR libfortran/39782
1504         * io/transfer.c (data_transfer_init): Don't flush before seek.
1505         (finalize_transfer): Remove extra flush.
1507 2009-04-17  Janne Blomqvist  <jb@gcc.gnu.org>
1509         * io/io.h (is_preconnected): Remove prototype.
1510         * io/unix.c (is_preconnected): Remove function.
1512 2009-04-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1514         * configure.ac: Test for -ffunction-sections -fdata-sections and
1515         set SECTION_FLAGS accordingly.
1516         * configure: Regenerate.
1518         * Makefile.am: Add SECTION_FLAGS to AM_CFLAGS.
1519         * Makefile.in: Regenerate.
1521 2009-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
1523         PR libfortran/38668
1524         * io/transfer.c (finalize_transfer): Don't flush for advance='no'.
1526 2009-04-15 Danny Smith  <dannysmith@clear.net.nz>
1528         * io/write.c (itoa) : Rename back to gfc_itoa.
1529         (write_i): Adjust call to write_decimal.
1530         (write_integer):  Use gfc_itoa.
1532 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
1534         * io/io.h (move_pos_offset): Remove prototype.
1535         * io/transfer.c (formatted_transfer_scalar_read): Use sseek
1536         instead of move_pos_offset.
1537         * io/unix.c (move_pos_offset): Remove.
1539 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
1541         PR libfortran/39665 libfortran/39702 libfortran/39709
1542         * io/io.h (st_parameter_dt): Revert aligned attribute from u.p.value.
1543         * io/list_read.c (read_complex): Read directly into user pointer.
1544         (read_real): Likewise.
1545         (list_formatted_read_scalar): Update read_complex and read_real calls.
1546         (nml_read_obj): Read directly into user pointer.
1548 2009-04-09  Janne Blomqvist  <jb@gcc.gnu.org>
1550         PR libfortran/39665
1551         * io/io.h (st_parameter_dt): Add aligned attribute to u.p.value.
1552         * io/read.c (convert_real): Add note about alignment requirements.
1554 2009-04-09  Nick Clifton  <nickc@redhat.com>
1556         * m4/cshift0.m4: Change copyright header to refer to version 3
1557         of the GNU General Public License with version 3.1 of the GCC
1558         Runtime Library Exception and to point readers at the COPYING3
1559         and COPYING3.RUNTIME files and the FSF's license web page.
1560         * c99_protos.h: Likewise.
1561         * config/fpu-387.h: Likewise.
1562         * config/fpu-aix.h: Likewise.
1563         * config/fpu-generic.h: Likewise.
1564         * config/fpu-glibc.h: Likewise.
1565         * config/fpu-sysv.h: Likewise.
1566         * intrinsics/abort.c: Likewise.
1567         * intrinsics/access.c: Likewise.
1568         * intrinsics/args.c: Likewise.
1569         * intrinsics/associated.c: Likewise.
1570         * intrinsics/c99_functions.c: Likewise.
1571         * intrinsics/chdir.c: Likewise.
1572         * intrinsics/chmod.c: Likewise.
1573         * intrinsics/clock.c: Likewise.
1574         * intrinsics/cpu_time.c: Likewise.
1575         * intrinsics/cshift0.c: Likewise.
1576         * intrinsics/ctime.c: Likewise.
1577         * intrinsics/date_and_time.c: Likewise.
1578         * intrinsics/dprod_r8.f90: Likewise.
1579         * intrinsics/dtime.c: Likewise.
1580         * intrinsics/env.c: Likewise.
1581         * intrinsics/eoshift0.c: Likewise.
1582         * intrinsics/eoshift2.c: Likewise.
1583         * intrinsics/erfc_scaled.c: Likewise.
1584         * intrinsics/erfc_scaled_inc.c: Likewise.
1585         * intrinsics/etime.c: Likewise.
1586         * intrinsics/exit.c: Likewise.
1587         * intrinsics/f2c_specifics.F90: Likewise.
1588         * intrinsics/fnum.c: Likewise.
1589         * intrinsics/gerror.c: Likewise.
1590         * intrinsics/getXid.c: Likewise.
1591         * intrinsics/getcwd.c: Likewise.
1592         * intrinsics/getlog.c: Likewise.
1593         * intrinsics/hostnm.c: Likewise.
1594         * intrinsics/ierrno.c: Likewise.
1595         * intrinsics/ishftc.c: Likewise.
1596         * intrinsics/iso_c_binding.c: Likewise.
1597         * intrinsics/iso_c_binding.h: Likewise.
1598         * intrinsics/iso_c_generated_procs.c: Likewise.
1599         * intrinsics/kill.c: Likewise.
1600         * intrinsics/link.c: Likewise.
1601         * intrinsics/malloc.c: Likewise.
1602         * intrinsics/move_alloc.c: Likewise.
1603         * intrinsics/mvbits.c: Likewise.
1604         * intrinsics/pack_generic.c: Likewise.
1605         * intrinsics/perror.c: Likewise.
1606         * intrinsics/rand.c: Likewise.
1607         * intrinsics/random.c: Likewise.
1608         * intrinsics/rename.c: Likewise.
1609         * intrinsics/reshape_generic.c: Likewise.
1610         * intrinsics/reshape_packed.c: Likewise.
1611         * intrinsics/selected_char_kind.c: Likewise.
1612         * intrinsics/selected_int_kind.f90: Likewise.
1613         * intrinsics/selected_real_kind.f90: Likewise.
1614         * intrinsics/signal.c: Likewise.
1615         * intrinsics/size.c: Likewise.
1616         * intrinsics/sleep.c: Likewise.
1617         * intrinsics/spread_generic.c: Likewise.
1618         * intrinsics/stat.c: Likewise.
1619         * intrinsics/string_intrinsics.c: Likewise.
1620         * intrinsics/string_intrinsics_inc.c: Likewise.
1621         * intrinsics/symlnk.c: Likewise.
1622         * intrinsics/system.c: Likewise.
1623         * intrinsics/system_clock.c: Likewise.
1624         * intrinsics/time.c: Likewise.
1625         * intrinsics/time_1.h: Likewise.
1626         * intrinsics/transpose_generic.c: Likewise.
1627         * intrinsics/umask.c: Likewise.
1628         * intrinsics/unlink.c: Likewise.
1629         * intrinsics/unpack_generic.c: Likewise.
1630         * io/close.c: Likewise.
1631         * io/fbuf.c: Likewise.
1632         * io/file_pos.c: Likewise.
1633         * io/format.c: Likewise.
1634         * io/inquire.c: Likewise.
1635         * io/intrinsics.c: Likewise.
1636         * io/io.h: Likewise.
1637         * io/list_read.c: Likewise.
1638         * io/lock.c: Likewise.
1639         * io/open.c: Likewise.
1640         * io/read.c: Likewise.
1641         * io/size_from_kind.c: Likewise.
1642         * io/transfer.c: Likewise.
1643         * io/unit.c: Likewise.
1644         * io/unix.c: Likewise.
1645         * io/write.c: Likewise.
1646         * io/write_float.def: Likewise.
1647         * libgfortran.h: Likewise.
1648         * m4/all.m4: Likewise.
1649         * m4/any.m4: Likewise.
1650         * m4/count.m4: Likewise.
1651         * m4/cshift1.m4: Likewise.
1652         * m4/eoshift1.m4: Likewise.
1653         * m4/eoshift3.m4: Likewise.
1654         * m4/exponent.m4: Likewise.
1655         * m4/fraction.m4: Likewise.
1656         * m4/head.m4: Likewise.
1657         * m4/in_pack.m4: Likewise.
1658         * m4/in_unpack.m4: Likewise.
1659         * m4/matmul.m4: Likewise.
1660         * m4/matmull.m4: Likewise.
1661         * m4/maxloc0.m4: Likewise.
1662         * m4/maxloc1.m4: Likewise.
1663         * m4/maxval.m4: Likewise.
1664         * m4/minloc0.m4: Likewise.
1665         * m4/minloc1.m4: Likewise.
1666         * m4/minval.m4: Likewise.
1667         * m4/nearest.m4: Likewise.
1668         * m4/pack.m4: Likewise.
1669         * m4/pow.m4: Likewise.
1670         * m4/product.m4: Likewise.
1671         * m4/reshape.m4: Likewise.
1672         * m4/rrspacing.m4: Likewise.
1673         * m4/set_exponent.m4: Likewise.
1674         * m4/shape.m4: Likewise.
1675         * m4/spacing.m4: Likewise.
1676         * m4/spread.m4: Likewise.
1677         * m4/sum.m4: Likewise.
1678         * m4/transpose.m4: Likewise.
1679         * m4/unpack.m4: Likewise.
1680         * runtime/backtrace.c: Likewise.
1681         * runtime/compile_options.c: Likewise.
1682         * runtime/convert_char.c: Likewise.
1683         * runtime/environ.c: Likewise.
1684         * runtime/error.c: Likewise.
1685         * runtime/in_pack_generic.c: Likewise.
1686         * runtime/in_unpack_generic.c: Likewise.
1687         * runtime/main.c: Likewise.
1688         * runtime/memory.c: Likewise.
1689         * runtime/pause.c: Likewise.
1690         * runtime/select.c: Likewise.
1691         * runtime/select_inc.c: Likewise.
1692         * runtime/stop.c: Likewise.
1693         * runtime/string.c: Likewise.
1694         * generated/_abs_c10.F90: Regenerate.
1695         * generated/_abs_c16.F90: Regenerate.
1696         * generated/_abs_c4.F90: Regenerate.
1697         * generated/_abs_c8.F90: Regenerate.
1698         * generated/_abs_i16.F90: Regenerate.
1699         * generated/_abs_i4.F90: Regenerate.
1700         * generated/_abs_i8.F90: Regenerate.
1701         * generated/_abs_r10.F90: Regenerate.
1702         * generated/_abs_r16.F90: Regenerate.
1703         * generated/_abs_r4.F90: Regenerate.
1704         * generated/_abs_r8.F90: Regenerate.
1705         * generated/_acos_r10.F90: Regenerate.
1706         * generated/_acos_r16.F90: Regenerate.
1707         * generated/_acos_r4.F90: Regenerate.
1708         * generated/_acos_r8.F90: Regenerate.
1709         * generated/_acosh_r10.F90: Regenerate.
1710         * generated/_acosh_r16.F90: Regenerate.
1711         * generated/_acosh_r4.F90: Regenerate.
1712         * generated/_acosh_r8.F90: Regenerate.
1713         * generated/_aimag_c10.F90: Regenerate.
1714         * generated/_aimag_c16.F90: Regenerate.
1715         * generated/_aimag_c4.F90: Regenerate.
1716         * generated/_aimag_c8.F90: Regenerate.
1717         * generated/_aint_r10.F90: Regenerate.
1718         * generated/_aint_r16.F90: Regenerate.
1719         * generated/_aint_r4.F90: Regenerate.
1720         * generated/_aint_r8.F90: Regenerate.
1721         * generated/_anint_r10.F90: Regenerate.
1722         * generated/_anint_r16.F90: Regenerate.
1723         * generated/_anint_r4.F90: Regenerate.
1724         * generated/_anint_r8.F90: Regenerate.
1725         * generated/_asin_r10.F90: Regenerate.
1726         * generated/_asin_r16.F90: Regenerate.
1727         * generated/_asin_r4.F90: Regenerate.
1728         * generated/_asin_r8.F90: Regenerate.
1729         * generated/_asinh_r10.F90: Regenerate.
1730         * generated/_asinh_r16.F90: Regenerate.
1731         * generated/_asinh_r4.F90: Regenerate.
1732         * generated/_asinh_r8.F90: Regenerate.
1733         * generated/_atan2_r10.F90: Regenerate.
1734         * generated/_atan2_r16.F90: Regenerate.
1735         * generated/_atan2_r4.F90: Regenerate.
1736         * generated/_atan2_r8.F90: Regenerate.
1737         * generated/_atan_r10.F90: Regenerate.
1738         * generated/_atan_r16.F90: Regenerate.
1739         * generated/_atan_r4.F90: Regenerate.
1740         * generated/_atan_r8.F90: Regenerate.
1741         * generated/_atanh_r10.F90: Regenerate.
1742         * generated/_atanh_r16.F90: Regenerate.
1743         * generated/_atanh_r4.F90: Regenerate.
1744         * generated/_atanh_r8.F90: Regenerate.
1745         * generated/_conjg_c10.F90: Regenerate.
1746         * generated/_conjg_c16.F90: Regenerate.
1747         * generated/_conjg_c4.F90: Regenerate.
1748         * generated/_conjg_c8.F90: Regenerate.
1749         * generated/_cos_c10.F90: Regenerate.
1750         * generated/_cos_c16.F90: Regenerate.
1751         * generated/_cos_c4.F90: Regenerate.
1752         * generated/_cos_c8.F90: Regenerate.
1753         * generated/_cos_r10.F90: Regenerate.
1754         * generated/_cos_r16.F90: Regenerate.
1755         * generated/_cos_r4.F90: Regenerate.
1756         * generated/_cos_r8.F90: Regenerate.
1757         * generated/_cosh_r10.F90: Regenerate.
1758         * generated/_cosh_r16.F90: Regenerate.
1759         * generated/_cosh_r4.F90: Regenerate.
1760         * generated/_cosh_r8.F90: Regenerate.
1761         * generated/_dim_i16.F90: Regenerate.
1762         * generated/_dim_i4.F90: Regenerate.
1763         * generated/_dim_i8.F90: Regenerate.
1764         * generated/_dim_r10.F90: Regenerate.
1765         * generated/_dim_r16.F90: Regenerate.
1766         * generated/_dim_r4.F90: Regenerate.
1767         * generated/_dim_r8.F90: Regenerate.
1768         * generated/_exp_c10.F90: Regenerate.
1769         * generated/_exp_c16.F90: Regenerate.
1770         * generated/_exp_c4.F90: Regenerate.
1771         * generated/_exp_c8.F90: Regenerate.
1772         * generated/_exp_r10.F90: Regenerate.
1773         * generated/_exp_r16.F90: Regenerate.
1774         * generated/_exp_r4.F90: Regenerate.
1775         * generated/_exp_r8.F90: Regenerate.
1776         * generated/_log10_r10.F90: Regenerate.
1777         * generated/_log10_r16.F90: Regenerate.
1778         * generated/_log10_r4.F90: Regenerate.
1779         * generated/_log10_r8.F90: Regenerate.
1780         * generated/_log_c10.F90: Regenerate.
1781         * generated/_log_c16.F90: Regenerate.
1782         * generated/_log_c4.F90: Regenerate.
1783         * generated/_log_c8.F90: Regenerate.
1784         * generated/_log_r10.F90: Regenerate.
1785         * generated/_log_r16.F90: Regenerate.
1786         * generated/_log_r4.F90: Regenerate.
1787         * generated/_log_r8.F90: Regenerate.
1788         * generated/_mod_i16.F90: Regenerate.
1789         * generated/_mod_i4.F90: Regenerate.
1790         * generated/_mod_i8.F90: Regenerate.
1791         * generated/_mod_r10.F90: Regenerate.
1792         * generated/_mod_r16.F90: Regenerate.
1793         * generated/_mod_r4.F90: Regenerate.
1794         * generated/_mod_r8.F90: Regenerate.
1795         * generated/_sign_i16.F90: Regenerate.
1796         * generated/_sign_i4.F90: Regenerate.
1797         * generated/_sign_i8.F90: Regenerate.
1798         * generated/_sign_r10.F90: Regenerate.
1799         * generated/_sign_r16.F90: Regenerate.
1800         * generated/_sign_r4.F90: Regenerate.
1801         * generated/_sign_r8.F90: Regenerate.
1802         * generated/_sin_c10.F90: Regenerate.
1803         * generated/_sin_c16.F90: Regenerate.
1804         * generated/_sin_c4.F90: Regenerate.
1805         * generated/_sin_c8.F90: Regenerate.
1806         * generated/_sin_r10.F90: Regenerate.
1807         * generated/_sin_r16.F90: Regenerate.
1808         * generated/_sin_r4.F90: Regenerate.
1809         * generated/_sin_r8.F90: Regenerate.
1810         * generated/_sinh_r10.F90: Regenerate.
1811         * generated/_sinh_r16.F90: Regenerate.
1812         * generated/_sinh_r4.F90: Regenerate.
1813         * generated/_sinh_r8.F90: Regenerate.
1814         * generated/_sqrt_c10.F90: Regenerate.
1815         * generated/_sqrt_c16.F90: Regenerate.
1816         * generated/_sqrt_c4.F90: Regenerate.
1817         * generated/_sqrt_c8.F90: Regenerate.
1818         * generated/_sqrt_r10.F90: Regenerate.
1819         * generated/_sqrt_r16.F90: Regenerate.
1820         * generated/_sqrt_r4.F90: Regenerate.
1821         * generated/_sqrt_r8.F90: Regenerate.
1822         * generated/_tan_r10.F90: Regenerate.
1823         * generated/_tan_r16.F90: Regenerate.
1824         * generated/_tan_r4.F90: Regenerate.
1825         * generated/_tan_r8.F90: Regenerate.
1826         * generated/_tanh_r10.F90: Regenerate.
1827         * generated/_tanh_r16.F90: Regenerate.
1828         * generated/_tanh_r4.F90: Regenerate.
1829         * generated/_tanh_r8.F90: Regenerate.
1830         * generated/all_l1.c: Regenerate.
1831         * generated/all_l16.c: Regenerate.
1832         * generated/all_l2.c: Regenerate.
1833         * generated/all_l4.c: Regenerate.
1834         * generated/all_l8.c: Regenerate.
1835         * generated/any_l1.c: Regenerate.
1836         * generated/any_l16.c: Regenerate.
1837         * generated/any_l2.c: Regenerate.
1838         * generated/any_l4.c: Regenerate.
1839         * generated/any_l8.c: Regenerate.
1840         * generated/count_16_l.c: Regenerate.
1841         * generated/count_1_l.c: Regenerate.
1842         * generated/count_2_l.c: Regenerate.
1843         * generated/count_4_l.c: Regenerate.
1844         * generated/count_8_l.c: Regenerate.
1845         * generated/cshift0_c10.c: Regenerate.
1846         * generated/cshift0_c16.c: Regenerate.
1847         * generated/cshift0_c4.c: Regenerate.
1848         * generated/cshift0_c8.c: Regenerate.
1849         * generated/cshift0_i1.c: Regenerate.
1850         * generated/cshift0_i16.c: Regenerate.
1851         * generated/cshift0_i2.c: Regenerate.
1852         * generated/cshift0_i4.c: Regenerate.
1853         * generated/cshift0_i8.c: Regenerate.
1854         * generated/cshift0_r10.c: Regenerate.
1855         * generated/cshift0_r16.c: Regenerate.
1856         * generated/cshift0_r4.c: Regenerate.
1857         * generated/cshift0_r8.c: Regenerate.
1858         * generated/cshift1_16.c: Regenerate.
1859         * generated/cshift1_4.c: Regenerate.
1860         * generated/cshift1_8.c: Regenerate.
1861         * generated/eoshift1_16.c: Regenerate.
1862         * generated/eoshift1_4.c: Regenerate.
1863         * generated/eoshift1_8.c: Regenerate.
1864         * generated/eoshift3_16.c: Regenerate.
1865         * generated/eoshift3_4.c: Regenerate.
1866         * generated/eoshift3_8.c: Regenerate.
1867         * generated/exponent_r10.c: Regenerate.
1868         * generated/exponent_r16.c: Regenerate.
1869         * generated/exponent_r4.c: Regenerate.
1870         * generated/exponent_r8.c: Regenerate.
1871         * generated/fraction_r10.c: Regenerate.
1872         * generated/fraction_r16.c: Regenerate.
1873         * generated/fraction_r4.c: Regenerate.
1874         * generated/fraction_r8.c: Regenerate.
1875         * generated/in_pack_c10.c: Regenerate.
1876         * generated/in_pack_c16.c: Regenerate.
1877         * generated/in_pack_c4.c: Regenerate.
1878         * generated/in_pack_c8.c: Regenerate.
1879         * generated/in_pack_i1.c: Regenerate.
1880         * generated/in_pack_i16.c: Regenerate.
1881         * generated/in_pack_i2.c: Regenerate.
1882         * generated/in_pack_i4.c: Regenerate.
1883         * generated/in_pack_i8.c: Regenerate.
1884         * generated/in_pack_r10.c: Regenerate.
1885         * generated/in_pack_r16.c: Regenerate.
1886         * generated/in_pack_r4.c: Regenerate.
1887         * generated/in_pack_r8.c: Regenerate.
1888         * generated/in_unpack_c10.c: Regenerate.
1889         * generated/in_unpack_c16.c: Regenerate.
1890         * generated/in_unpack_c4.c: Regenerate.
1891         * generated/in_unpack_c8.c: Regenerate.
1892         * generated/in_unpack_i1.c: Regenerate.
1893         * generated/in_unpack_i16.c: Regenerate.
1894         * generated/in_unpack_i2.c: Regenerate.
1895         * generated/in_unpack_i4.c: Regenerate.
1896         * generated/in_unpack_i8.c: Regenerate.
1897         * generated/in_unpack_r10.c: Regenerate.
1898         * generated/in_unpack_r16.c: Regenerate.
1899         * generated/in_unpack_r4.c: Regenerate.
1900         * generated/in_unpack_r8.c: Regenerate.
1901         * generated/matmul_c10.c: Regenerate.
1902         * generated/matmul_c16.c: Regenerate.
1903         * generated/matmul_c4.c: Regenerate.
1904         * generated/matmul_c8.c: Regenerate.
1905         * generated/matmul_i1.c: Regenerate.
1906         * generated/matmul_i16.c: Regenerate.
1907         * generated/matmul_i2.c: Regenerate.
1908         * generated/matmul_i4.c: Regenerate.
1909         * generated/matmul_i8.c: Regenerate.
1910         * generated/matmul_l16.c: Regenerate.
1911         * generated/matmul_l4.c: Regenerate.
1912         * generated/matmul_l8.c: Regenerate.
1913         * generated/matmul_r10.c: Regenerate.
1914         * generated/matmul_r16.c: Regenerate.
1915         * generated/matmul_r4.c: Regenerate.
1916         * generated/matmul_r8.c: Regenerate.
1917         * generated/maxloc0_16_i1.c: Regenerate.
1918         * generated/maxloc0_16_i16.c: Regenerate.
1919         * generated/maxloc0_16_i2.c: Regenerate.
1920         * generated/maxloc0_16_i4.c: Regenerate.
1921         * generated/maxloc0_16_i8.c: Regenerate.
1922         * generated/maxloc0_16_r10.c: Regenerate.
1923         * generated/maxloc0_16_r16.c: Regenerate.
1924         * generated/maxloc0_16_r4.c: Regenerate.
1925         * generated/maxloc0_16_r8.c: Regenerate.
1926         * generated/maxloc0_4_i1.c: Regenerate.
1927         * generated/maxloc0_4_i16.c: Regenerate.
1928         * generated/maxloc0_4_i2.c: Regenerate.
1929         * generated/maxloc0_4_i4.c: Regenerate.
1930         * generated/maxloc0_4_i8.c: Regenerate.
1931         * generated/maxloc0_4_r10.c: Regenerate.
1932         * generated/maxloc0_4_r16.c: Regenerate.
1933         * generated/maxloc0_4_r4.c: Regenerate.
1934         * generated/maxloc0_4_r8.c: Regenerate.
1935         * generated/maxloc0_8_i1.c: Regenerate.
1936         * generated/maxloc0_8_i16.c: Regenerate.
1937         * generated/maxloc0_8_i2.c: Regenerate.
1938         * generated/maxloc0_8_i4.c: Regenerate.
1939         * generated/maxloc0_8_i8.c: Regenerate.
1940         * generated/maxloc0_8_r10.c: Regenerate.
1941         * generated/maxloc0_8_r16.c: Regenerate.
1942         * generated/maxloc0_8_r4.c: Regenerate.
1943         * generated/maxloc0_8_r8.c: Regenerate.
1944         * generated/maxloc1_16_i1.c: Regenerate.
1945         * generated/maxloc1_16_i16.c: Regenerate.
1946         * generated/maxloc1_16_i2.c: Regenerate.
1947         * generated/maxloc1_16_i4.c: Regenerate.
1948         * generated/maxloc1_16_i8.c: Regenerate.
1949         * generated/maxloc1_16_r10.c: Regenerate.
1950         * generated/maxloc1_16_r16.c: Regenerate.
1951         * generated/maxloc1_16_r4.c: Regenerate.
1952         * generated/maxloc1_16_r8.c: Regenerate.
1953         * generated/maxloc1_4_i1.c: Regenerate.
1954         * generated/maxloc1_4_i16.c: Regenerate.
1955         * generated/maxloc1_4_i2.c: Regenerate.
1956         * generated/maxloc1_4_i4.c: Regenerate.
1957         * generated/maxloc1_4_i8.c: Regenerate.
1958         * generated/maxloc1_4_r10.c: Regenerate.
1959         * generated/maxloc1_4_r16.c: Regenerate.
1960         * generated/maxloc1_4_r4.c: Regenerate.
1961         * generated/maxloc1_4_r8.c: Regenerate.
1962         * generated/maxloc1_8_i1.c: Regenerate.
1963         * generated/maxloc1_8_i16.c: Regenerate.
1964         * generated/maxloc1_8_i2.c: Regenerate.
1965         * generated/maxloc1_8_i4.c: Regenerate.
1966         * generated/maxloc1_8_i8.c: Regenerate.
1967         * generated/maxloc1_8_r10.c: Regenerate.
1968         * generated/maxloc1_8_r16.c: Regenerate.
1969         * generated/maxloc1_8_r4.c: Regenerate.
1970         * generated/maxloc1_8_r8.c: Regenerate.
1971         * generated/maxval_i1.c: Regenerate.
1972         * generated/maxval_i16.c: Regenerate.
1973         * generated/maxval_i2.c: Regenerate.
1974         * generated/maxval_i4.c: Regenerate.
1975         * generated/maxval_i8.c: Regenerate.
1976         * generated/maxval_r10.c: Regenerate.
1977         * generated/maxval_r16.c: Regenerate.
1978         * generated/maxval_r4.c: Regenerate.
1979         * generated/maxval_r8.c: Regenerate.
1980         * generated/minloc0_16_i1.c: Regenerate.
1981         * generated/minloc0_16_i16.c: Regenerate.
1982         * generated/minloc0_16_i2.c: Regenerate.
1983         * generated/minloc0_16_i4.c: Regenerate.
1984         * generated/minloc0_16_i8.c: Regenerate.
1985         * generated/minloc0_16_r10.c: Regenerate.
1986         * generated/minloc0_16_r16.c: Regenerate.
1987         * generated/minloc0_16_r4.c: Regenerate.
1988         * generated/minloc0_16_r8.c: Regenerate.
1989         * generated/minloc0_4_i1.c: Regenerate.
1990         * generated/minloc0_4_i16.c: Regenerate.
1991         * generated/minloc0_4_i2.c: Regenerate.
1992         * generated/minloc0_4_i4.c: Regenerate.
1993         * generated/minloc0_4_i8.c: Regenerate.
1994         * generated/minloc0_4_r10.c: Regenerate.
1995         * generated/minloc0_4_r16.c: Regenerate.
1996         * generated/minloc0_4_r4.c: Regenerate.
1997         * generated/minloc0_4_r8.c: Regenerate.
1998         * generated/minloc0_8_i1.c: Regenerate.
1999         * generated/minloc0_8_i16.c: Regenerate.
2000         * generated/minloc0_8_i2.c: Regenerate.
2001         * generated/minloc0_8_i4.c: Regenerate.
2002         * generated/minloc0_8_i8.c: Regenerate.
2003         * generated/minloc0_8_r10.c: Regenerate.
2004         * generated/minloc0_8_r16.c: Regenerate.
2005         * generated/minloc0_8_r4.c: Regenerate.
2006         * generated/minloc0_8_r8.c: Regenerate.
2007         * generated/minloc1_16_i1.c: Regenerate.
2008         * generated/minloc1_16_i16.c: Regenerate.
2009         * generated/minloc1_16_i2.c: Regenerate.
2010         * generated/minloc1_16_i4.c: Regenerate.
2011         * generated/minloc1_16_i8.c: Regenerate.
2012         * generated/minloc1_16_r10.c: Regenerate.
2013         * generated/minloc1_16_r16.c: Regenerate.
2014         * generated/minloc1_16_r4.c: Regenerate.
2015         * generated/minloc1_16_r8.c: Regenerate.
2016         * generated/minloc1_4_i1.c: Regenerate.
2017         * generated/minloc1_4_i16.c: Regenerate.
2018         * generated/minloc1_4_i2.c: Regenerate.
2019         * generated/minloc1_4_i4.c: Regenerate.
2020         * generated/minloc1_4_i8.c: Regenerate.
2021         * generated/minloc1_4_r10.c: Regenerate.
2022         * generated/minloc1_4_r16.c: Regenerate.
2023         * generated/minloc1_4_r4.c: Regenerate.
2024         * generated/minloc1_4_r8.c: Regenerate.
2025         * generated/minloc1_8_i1.c: Regenerate.
2026         * generated/minloc1_8_i16.c: Regenerate.
2027         * generated/minloc1_8_i2.c: Regenerate.
2028         * generated/minloc1_8_i4.c: Regenerate.
2029         * generated/minloc1_8_i8.c: Regenerate.
2030         * generated/minloc1_8_r10.c: Regenerate.
2031         * generated/minloc1_8_r16.c: Regenerate.
2032         * generated/minloc1_8_r4.c: Regenerate.
2033         * generated/minloc1_8_r8.c: Regenerate.
2034         * generated/minval_i1.c: Regenerate.
2035         * generated/minval_i16.c: Regenerate.
2036         * generated/minval_i2.c: Regenerate.
2037         * generated/minval_i4.c: Regenerate.
2038         * generated/minval_i8.c: Regenerate.
2039         * generated/minval_r10.c: Regenerate.
2040         * generated/minval_r16.c: Regenerate.
2041         * generated/minval_r4.c: Regenerate.
2042         * generated/minval_r8.c: Regenerate.
2043         * generated/misc_specifics.F90: Regenerate.
2044         * generated/nearest_r10.c: Regenerate.
2045         * generated/nearest_r16.c: Regenerate.
2046         * generated/nearest_r4.c: Regenerate.
2047         * generated/nearest_r8.c: Regenerate.
2048         * generated/pack_c10.c: Regenerate.
2049         * generated/pack_c16.c: Regenerate.
2050         * generated/pack_c4.c: Regenerate.
2051         * generated/pack_c8.c: Regenerate.
2052         * generated/pack_i1.c: Regenerate.
2053         * generated/pack_i16.c: Regenerate.
2054         * generated/pack_i2.c: Regenerate.
2055         * generated/pack_i4.c: Regenerate.
2056         * generated/pack_i8.c: Regenerate.
2057         * generated/pack_r10.c: Regenerate.
2058         * generated/pack_r16.c: Regenerate.
2059         * generated/pack_r4.c: Regenerate.
2060         * generated/pack_r8.c: Regenerate.
2061         * generated/pow_c10_i16.c: Regenerate.
2062         * generated/pow_c10_i4.c: Regenerate.
2063         * generated/pow_c10_i8.c: Regenerate.
2064         * generated/pow_c16_i16.c: Regenerate.
2065         * generated/pow_c16_i4.c: Regenerate.
2066         * generated/pow_c16_i8.c: Regenerate.
2067         * generated/pow_c4_i16.c: Regenerate.
2068         * generated/pow_c4_i4.c: Regenerate.
2069         * generated/pow_c4_i8.c: Regenerate.
2070         * generated/pow_c8_i16.c: Regenerate.
2071         * generated/pow_c8_i4.c: Regenerate.
2072         * generated/pow_c8_i8.c: Regenerate.
2073         * generated/pow_i16_i16.c: Regenerate.
2074         * generated/pow_i16_i4.c: Regenerate.
2075         * generated/pow_i16_i8.c: Regenerate.
2076         * generated/pow_i4_i16.c: Regenerate.
2077         * generated/pow_i4_i4.c: Regenerate.
2078         * generated/pow_i4_i8.c: Regenerate.
2079         * generated/pow_i8_i16.c: Regenerate.
2080         * generated/pow_i8_i4.c: Regenerate.
2081         * generated/pow_i8_i8.c: Regenerate.
2082         * generated/pow_r10_i16.c: Regenerate.
2083         * generated/pow_r10_i8.c: Regenerate.
2084         * generated/pow_r16_i16.c: Regenerate.
2085         * generated/pow_r16_i8.c: Regenerate.
2086         * generated/pow_r4_i16.c: Regenerate.
2087         * generated/pow_r4_i8.c: Regenerate.
2088         * generated/pow_r8_i16.c: Regenerate.
2089         * generated/pow_r8_i8.c: Regenerate.
2090         * generated/product_c10.c: Regenerate.
2091         * generated/product_c16.c: Regenerate.
2092         * generated/product_c4.c: Regenerate.
2093         * generated/product_c8.c: Regenerate.
2094         * generated/product_i1.c: Regenerate.
2095         * generated/product_i16.c: Regenerate.
2096         * generated/product_i2.c: Regenerate.
2097         * generated/product_i4.c: Regenerate.
2098         * generated/product_i8.c: Regenerate.
2099         * generated/product_r10.c: Regenerate.
2100         * generated/product_r16.c: Regenerate.
2101         * generated/product_r4.c: Regenerate.
2102         * generated/product_r8.c: Regenerate.
2103         * generated/reshape_c10.c: Regenerate.
2104         * generated/reshape_c16.c: Regenerate.
2105         * generated/reshape_c4.c: Regenerate.
2106         * generated/reshape_c8.c: Regenerate.
2107         * generated/reshape_i16.c: Regenerate.
2108         * generated/reshape_i4.c: Regenerate.
2109         * generated/reshape_i8.c: Regenerate.
2110         * generated/reshape_r10.c: Regenerate.
2111         * generated/reshape_r16.c: Regenerate.
2112         * generated/reshape_r4.c: Regenerate.
2113         * generated/reshape_r8.c: Regenerate.
2114         * generated/rrspacing_r10.c: Regenerate.
2115         * generated/rrspacing_r16.c: Regenerate.
2116         * generated/rrspacing_r4.c: Regenerate.
2117         * generated/rrspacing_r8.c: Regenerate.
2118         * generated/set_exponent_r10.c: Regenerate.
2119         * generated/set_exponent_r16.c: Regenerate.
2120         * generated/set_exponent_r4.c: Regenerate.
2121         * generated/set_exponent_r8.c: Regenerate.
2122         * generated/shape_i16.c: Regenerate.
2123         * generated/shape_i4.c: Regenerate.
2124         * generated/shape_i8.c: Regenerate.
2125         * generated/spacing_r10.c: Regenerate.
2126         * generated/spacing_r16.c: Regenerate.
2127         * generated/spacing_r4.c: Regenerate.
2128         * generated/spacing_r8.c: Regenerate.
2129         * generated/spread_c10.c: Regenerate.
2130         * generated/spread_c16.c: Regenerate.
2131         * generated/spread_c4.c: Regenerate.
2132         * generated/spread_c8.c: Regenerate.
2133         * generated/spread_i1.c: Regenerate.
2134         * generated/spread_i16.c: Regenerate.
2135         * generated/spread_i2.c: Regenerate.
2136         * generated/spread_i4.c: Regenerate.
2137         * generated/spread_i8.c: Regenerate.
2138         * generated/spread_r10.c: Regenerate.
2139         * generated/spread_r16.c: Regenerate.
2140         * generated/spread_r4.c: Regenerate.
2141         * generated/spread_r8.c: Regenerate.
2142         * generated/sum_c10.c: Regenerate.
2143         * generated/sum_c16.c: Regenerate.
2144         * generated/sum_c4.c: Regenerate.
2145         * generated/sum_c8.c: Regenerate.
2146         * generated/sum_i1.c: Regenerate.
2147         * generated/sum_i16.c: Regenerate.
2148         * generated/sum_i2.c: Regenerate.
2149         * generated/sum_i4.c: Regenerate.
2150         * generated/sum_i8.c: Regenerate.
2151         * generated/sum_r10.c: Regenerate.
2152         * generated/sum_r16.c: Regenerate.
2153         * generated/sum_r4.c: Regenerate.
2154         * generated/sum_r8.c: Regenerate.
2155         * generated/transpose_c10.c: Regenerate.
2156         * generated/transpose_c16.c: Regenerate.
2157         * generated/transpose_c4.c: Regenerate.
2158         * generated/transpose_c8.c: Regenerate.
2159         * generated/transpose_i16.c: Regenerate.
2160         * generated/transpose_i4.c: Regenerate.
2161         * generated/transpose_i8.c: Regenerate.
2162         * generated/transpose_r10.c: Regenerate.
2163         * generated/transpose_r16.c: Regenerate.
2164         * generated/transpose_r4.c: Regenerate.
2165         * generated/transpose_r8.c: Regenerate.
2166         * generated/unpack_c10.c: Regenerate.
2167         * generated/unpack_c16.c: Regenerate.
2168         * generated/unpack_c4.c: Regenerate.
2169         * generated/unpack_c8.c: Regenerate.
2170         * generated/unpack_i1.c: Regenerate.
2171         * generated/unpack_i16.c: Regenerate.
2172         * generated/unpack_i2.c: Regenerate.
2173         * generated/unpack_i4.c: Regenerate.
2174         * generated/unpack_i8.c: Regenerate.
2175         * generated/unpack_r10.c: Regenerate.
2176         * generated/unpack_r16.c: Regenerate.
2177         * generated/unpack_r4.c: Regenerate.
2178         * generated/unpack_r8.c: Regenerate.
2180 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
2182         * io/open.c (already_open): Test for POSIX close return value.
2183         * io/unit.c (close_unit_1): Likewise.
2184         * io/unix.c (raw_close): Return 0 for success for preconnected units.
2186 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
2188         * runtime/string.c (compare0): Use gfc_charlen_type.
2189         * runtime/error.c (gfc_itoa): Move to io/write.c
2190         (xtoa): Rename to gfc_xtoa.
2191         * runtime/backtrace.c (show_backtrace): Call gfc_xtoa.
2192         * intrinsics/cshift0.c (cshift0): Use index_type for shift arg.
2193         * intrinsics/date_and_time.c (date_and_time): Use index_type.
2194         (itime_i4): Likewise.
2195         (itime_i8): Likewise.
2196         (idate_i4): Likewise.
2197         (idate_i8): Likewise.
2198         (gmtime_i4): Likewise.
2199         (gmtime_i8): Likewise.
2200         (ltime_i4): Likewise.
2201         (ltime_i8): Likewise.
2202         * libgfortran.h (gfc_itoa): Remove prototype.
2203         (xtoa): Rename prototype to gfc_xtoa.
2204         * io/list_read.c (nml_read_obj): Use size_t for string length.
2205         * io/transfer.c (read_block_direct): Change nbytes arg from
2206         pointer to value.
2207         (unformatted_read): Minor cleanup, call read_block_directly properly.
2208         (skip_record): Use ssize_t.
2209         (next_record_w_unf): Avoid stell() call by calling sseek with SEEK_CUR.
2210         (iolength_transfer): Make sure to multiply before cast.
2211         * io/intrinsics.c (fgetc): Remove unnecessary variable.
2212         * io/format.c (format_hash): Use gfc_charlen_type.
2213         * io/write.c (itoa): Move from runtime/error.c:gfc_itoa, rename,
2214         make static.
2215         (write_i): Call with pointer to itoa.
2216         (write_z): Call with pointer to gfc_xtoa.
2217         (write_integer): Pointer to itoa.
2218         (nml_write_obj): Type cleanup, don't call strlen in loop.
2219         
2220 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2222         PR libgfortran/39664
2223         * io/unix.c (raw_close): Don't close STDOUT_FILENO,
2224         STDERR_FILENO nor STDIN_FILENO.
2226 2009-04-06  David Edelsohn  <edelsohn@gnu.org>
2227         
2228         * io/io.h (struct stream): Rename truncate to trunc.
2229         (struncate): Same.
2230         * io/unix.c (raw_init): Rename truncate to trunc.
2231         (buf_init): Same.
2232         (open_internal): Same.
2233         
2234 2009-04-05  Daniel Kraft  <d@domob.eu>
2236         PR fortran/38654
2237         * io/read.c (read_f): Reworked to speed up floating point parsing.
2238         (convert_real): Use pointer-casting instead of memcpy and temporaries.
2240 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2242         PR libfortran/37754
2243         * io/io.h (format_hash_entry): New structure for hash table.
2244         (format_hash_table): The hash table itself.
2245         (free_format_data): Revise function prototype.
2246         (free_format_hash_table, init_format_hash,
2247         free_format_hash): New function prototypes.
2248         * io/unit.c (close_unit_1): Use free_format_hash_table.
2249         * io/transfer.c (st_read_done, st_write_done): Free format data if
2250         internal unit.
2251         * io/format.c (free_format_hash_table): New function that frees any
2252         memory allocated previously for cached format data.
2253         (reset_node): New static helper function to reset the format counters
2254         for a format node.
2255         (reset_fnode_counters): New static function recursively calls reset_node
2256         to traverse the fnode tree.
2257         (format_hash): New simple hash function based on XOR, probabalistic,
2258         tosses collisions.
2259         (save_parsed_format): New static function to save the parsed format
2260         data to use again.
2261         (find_parsed_format): New static function searches the hash table
2262         looking for a match.
2263         (free_format_data): Revised to accept pointer to format data rather than
2264         the dtp pointer so that the function can be used in more places.
2265         (format_lex): Editorial.
2266         (parse_format_list): Set flag used to determine of format data hashing
2267         is to be used.  Internal units are not persistent enough for this.
2268         (revert): Move to ne location in file.
2269         (parse_format): Use new functions to look for previously parsed
2270         format strings and use them rather than re-parse.  If not found, saves
2271         the parsed format data for later use.
2272         
2273 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2275         PR libfortran/37754
2276         * io/transfer.c (formatted_transfer_scalar): Remove this function by
2277         factoring it into two new functions, one for read and one for write,
2278         eliminating all the conditionals for read or write mode.
2279         (formatted transfer_scalar_read): New function.
2280         (formatted transfer_scalar_write): New function.
2281         (formatted_transfer): Use new functions.
2283 2009-04-05  Janne Blomqvist  <jb@gcc.gnu.org>
2285         PR libfortran/25561 libfortran/37754
2286         * io/io.h (struct stream): Define new stream interface function
2287         pointers, and inline functions for accessing it.
2288         (struct fbuf): Use int instead of size_t, remove flushed element.
2289         (mem_alloc_w): New prototype.
2290         (mem_alloc_r): New prototype.
2291         (stream_at_bof): Remove prototype.
2292         (stream_at_eof): Remove prototype.
2293         (file_position): Remove prototype.
2294         (flush): Remove prototype.
2295         (stream_offset): Remove prototype.
2296         (unit_truncate): New prototype.
2297         (read_block_form): Change to return pointer, int* argument.
2298         (hit_eof): New prototype.
2299         (fbuf_init): Change prototype.
2300         (fbuf_reset): Change prototype.
2301         (fbuf_alloc): Change prototype.
2302         (fbuf_flush): Change prototype.
2303         (fbuf_seek): Change prototype.
2304         (fbuf_read): New prototype.
2305         (fbuf_getc_refill): New prototype.
2306         (fbuf_getc): New inline function.
2307         * io/fbuf.c (fbuf_init): Use int, get rid of flushed.
2308         (fbuf_debug): New function.
2309         (fbuf_reset): Flush, and return position offset.
2310         (fbuf_alloc): Simplify, don't flush, just realloc.
2311         (fbuf_flush): Make usable for read mode, salvage remaining bytes.
2312         (fbuf_seek): New whence argument.
2313         (fbuf_read): New function.
2314         (fbuf_getc_refill): New function.
2315         * io/file_pos.c (formatted_backspace): Use new stream interface.
2316         (unformatted_backspace): Likewise.
2317         (st_backspace): Make sure format buffer is reset, use new stream
2318         interface, use unit_truncate.
2319         (st_endfile): Likewise.
2320         (st_rewind): Likewise.
2321         * io/intrinsics.c: Use new stream interface.
2322         * io/list_read.c (push_char): Don't use u.p.scratch, use realloc
2323         to resize.
2324         (free_saved): Don't check u.p.scratch.
2325         (next_char): Use new stream interface, use fbuf_getc() for external files.
2326         (finish_list_read): flush format buffer.
2327         (nml_query): Update to use modified interface:s
2328         * io/open.c (test_endfile): Use new stream interface.
2329         (edit_modes): Likewise.
2330         (new_unit): Likewise, set bytes_left to 1 for stream files.
2331         * io/read.c (read_l): Use new read_block_form interface.
2332         (read_utf8): Likewise.
2333         (read_utf8_char1): Likewise.
2334         (read_default_char1): Likewise.
2335         (read_utf8_char4): Likewise.
2336         (read_default_char4): Likewise.
2337         (read_a): Likewise.
2338         (read_a_char4): Likewise.
2339         (read_decimal): Likewise.
2340         (read_radix): Likewise.
2341         (read_f): Likewise.
2342         * io/transfer.c (read_sf): Use fbuf_read and mem_alloc_r, remove
2343         usage of u.p.line_buffer.
2344         (read_block_form): Update interface to return pointer, use
2345         fbuf_read for direct access.
2346         (read_block_direct): Update to new stream interface.
2347         (write_block): Use mem_alloc_w for internal I/O.
2348         (write_buf): Update to new stream interface.
2349         (formatted_transfer_scalar): Don't use u.p.line_buffer, use
2350         fbuf_seek for external files.
2351         (us_read): Update to new stream interface.
2352         (us_write): Likewise.
2353         (data_transfer_init): Always check if we switch modes and flush.
2354         (skip_record): Use new stream interface, fix comparison.
2355         (next_record_r): Check for and reset u.p.at_eof, use new stream
2356         interface, use fbuf_getc for spacing.
2357         (write_us_marker): Update to new stream interface, don't inline.
2358         (next_record_w_unf): Likewise.
2359         (sset): New function.
2360         (next_record_w): Use new stream interface, use fbuf for printing
2361         newline.
2362         (next_record): Use new stream interface.
2363         (finalize_transfer): Remove sfree call, use new stream interface.
2364         (st_iolength_done): Don't use u.p.scratch.
2365         (st_read): Don't check for end of file.
2366         (st_read_done): Don't use u.p.scratch, use unit_truncate.
2367         (hit_eof): New function.
2368         * io/unit.c (init_units): Always init fbuf for formatted units.
2369         (update_position): Use new stream interface.
2370         (unit_truncate): New function.
2371         (finish_last_advance_record): Use fbuf to print newline.
2372         * io/unix.c: Remove unused SSIZE_MAX macro.
2373         (BUFFER_SIZE): Make static const variable rather than macro.
2374         (struct unix_stream): Remove dirty_offset, len, method,
2375         small_buffer. Order elements by decreasing size.
2376         (struct int_stream): Remove.
2377         (move_pos_offset): Remove usage of dirty_offset.
2378         (reset_stream): Remove.
2379         (do_read): Rename to raw_read, update to match new stream
2380         interface.
2381         (do_write): Rename to raw_write, update to new stream interface.
2382         (raw_seek): New function.
2383         (raw_tell): New function.
2384         (raw_truncate): New function.
2385         (raw_close): New function.
2386         (raw_flush): New function.
2387         (raw_init): New function.
2388         (fd_alloc): Remove.
2389         (fd_alloc_r_at): Remove.
2390         (fd_alloc_w_at): Remove.
2391         (fd_sfree): Remove.
2392         (fd_seek): Remove.
2393         (fd_truncate): Remove.
2394         (fd_sset): Remove.
2395         (fd_read): Remove.
2396         (fd_write): Remove.
2397         (fd_close): Remove.
2398         (fd_open): Remove.
2399         (fd_flush): Rename to buf_flush, update to new stream interface
2400         and unix_stream.
2401         (buf_read): New function.
2402         (buf_write): New function.
2403         (buf_seek): New function.
2404         (buf_tell): New function.
2405         (buf_truncate): New function.
2406         (buf_close): New function.
2407         (buf_init): New function.
2408         (mem_alloc_r_at): Rename to mem_alloc_r, change prototype.
2409         (mem_alloc_w_at): Rename to mem_alloc_w, change prototype.
2410         (mem_read): Change to match new stream interface.
2411         (mem_write): Likewise.
2412         (mem_seek): Likewise.
2413         (mem_tell): Likewise.
2414         (mem_truncate): Likewise.
2415         (mem_close): Likewise.
2416         (mem_flush): New function.
2417         (mem_sfree): Remove.
2418         (empty_internal_buffer): Cast to correct type.
2419         (open_internal): Use correct type, init function pointers.
2420         (fd_to_stream): Test whether to open file as buffered or raw.
2421         (output_stream): Remove mode set.
2422         (error_stream): Likewise.
2423         (flush_all_units_1): Use new stream interface.
2424         (flush_all_units): Likewise.
2425         (stream_at_bof): Remove.
2426         (stream_at_eof): Remove.
2427         (file_position): Remove.
2428         (file_length): Update logic to use stream interface.
2429         (flush): Remove.
2430         (stream_offset): Remove.
2431         * io/write.c (write_utf8_char4): Use int instead of size_t.
2432         (write_x): Extra safety check.
2433         (namelist_write_newline): Use new stream interface.
2435 2009-03-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2437         PR fortran/33595
2438         * intrinsics/c99_functions.c (round): Use floor instead of ceil.
2439         Revise checks to round up.
2440         (roundf): Likewise.
2442 2009-03-28  Daniel Kraft  <d@domob.eu>
2444         * intrinsics/string_intrinsics.c: #include <assert.h>
2445         * intrinsics/string_intrinsics_inc.c (string_trim): Use string_len_trim
2446         instead of calculating the length directly.
2447         (string_len_trim): For KIND=1, speed search up.
2449 2009-03-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2451         PR libfortran/39528
2452         * io/list_read.c (list_formatted_read_scalar): Move check for read
2453         completion to just after the check for a repeated value.
2455 2009-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2457         PR libfortran/39402
2458         * io/write_float.def (output_float): Handle F0.d formatting correctly
2459         for any d when value is 0.0.
2461 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2463         * configure: Regenerate.
2465 2009-01-21  Daniel Kraft  <d@domob.eu>
2467         PR fortran/38887
2468         * runtime/in_unpack_generic.c (internal_unpack):  Return instead of
2469         abort when called with empty array.
2470         * m4/in_unpack.m4:  Ditto.
2471         * generated/in_unpack_i1.c:  Regenerated.
2472         * generated/in_unpack_i2.c:  Regenerated.
2473         * generated/in_unpack_i4.c:  Regenerated.
2474         * generated/in_unpack_i8.c:  Regenerated.
2475         * generated/in_unpack_i16.c: Regenerated.
2476         * generated/in_unpack_r4.c:  Regenerated.
2477         * generated/in_unpack_r8.c:  Regenerated.
2478         * generated/in_unpack_r10.c: Regenerated.
2479         * generated/in_unpack_r16.c: Regenerated.
2480         * generated/in_unpack_c4.c:  Regenerated.
2481         * generated/in_unpack_c8.c:  Regenerated.
2482         * generated/in_unpack_c10.c: Regenerated.
2483         * generated/in_unpack_c16.c: Regenerated.
2485 2009-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2487         PR libfortran/38772
2488         * io/read.c (read_f): Clean up loop conditions for BZ/BN,
2489         allowing proper digit testing. White space fix.
2491 2009-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2493         PR libfortran/38735
2494         * io/unit.c (get_internal_unit): Set default BLANK= status to NULL for
2495         internal units.
2497 2008-12-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2499         PR fortran/31832
2500         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): New autoconf check for
2501         broken powf.
2502         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Use it.
2503         * intrinsics/c99_functions.c: Use internal powf implementation if
2504         HAVE_BROKEN_POWF is defined.
2505         * configure: Rebuilt.
2506         * config.h.in: Rebuilt.
2508 2008-12-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2510         PR libfortran/37472
2511         * io/write_float.def (output_float_FMT_G_): Modify calculation of temp
2512         to avoid sensitivity to round-off.
2514 2008-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2516         PR libfortran/38398
2517         * io/io.h (st_parameter_dt): Add new bit to keep track of when to
2518         suppress blanks for g0 formatting.
2519         * io/transfer.c (formatted_transfer_scalar): Always call write_real_g0
2520         for g0 formatting.
2521         * io.c (write.c): Do not use ES formatting and use new bit to suppress
2522         blanks.
2523         * io/write_float.def (output_float): Adjust the location of setting the
2524         width so that it can be adjusted when suppressing blanks.  Set number of
2525         blanks to zero when dtp->u.p.g0_no_blanks is set. Do some minor code
2526         clean-up and add some white space for readability.
2527         
2528 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2530         * configure: Regenerate.
2532 2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2534         PR libfortran/38504
2535         io/write.c (write_decimal): Skip extra sign '-' at beginning of string
2536         returned by gfc_itoa.
2538 2008-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2540         PR libfortran/38430
2541         * io/transfer.c (data_transfer_init): Move constraint check for REC=
2542         and STREAM access into condition for other REC= constraints to simplify.
2543         Comment out this constraint to avoid breaking compatibility with 4.3
2544         until later.  Added a TODO for above comment and this one.
2545         Fix test for max pos.
2547 2008-12-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2549         PR libfortran/38291
2550         * io/transfer.c (data_transfer_init): Add fbuf_flush inadvertently
2551         ommitted.  Add check for invalid use of REC= with ACCESS="stream".  Fix
2552         comment.
2554 2008-12-06  Adam Nemet  <anemet@caviumnetworks.com>
2556         * runtime/main.c (store_exe_path): Don't crash if argv0 is NULL.
2558 2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2560         PR libfortran/38291
2561         * io/transfer.c (data_transfer_init): Add checks for POS= valid range.
2562         Add check for unit opened with ACCESS="stream". Flush and seek if
2563         current stream position does not match. Check ENDFILE on read.
2565 2008-12-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2567         PR fortran/38285
2568         * write_float.def (WRITE_FLOAT): Zero the float value for special case
2569         only if scale_factor = 0.
2570         
2571 2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2573         PR libfortran/38234
2574         * intrinsics/reshape_generic.c (reshape_internal):
2575         Source can be larger than shape.
2576         * m4/reshape.m4:  Likewise.
2577         * generated/reshape_c10.c Regenerated.
2578         * generated/reshape_c16.c Regenerated.
2579         * generated/reshape_c4.c Regenerated.
2580         * generated/reshape_c8.c Regenerated.
2581         * generated/reshape_i16.c Regenerated.
2582         * generated/reshape_i4.c Regenerated.
2583         * generated/reshape_i8.c Regenerated.
2584         * generated/reshape_r10.c Regenerated.
2585         * generated/reshape_r16.c Regenerated.
2586         * generated/reshape_r4.c Regenerated.
2587         * generated/reshape_r8.c Regenerated.
2589 2008-11-22  Danny Smith  <dannysmith@users.sourceforge.net>
2591         * libgfortran.h (__mingw_snprintf): Declare with gnu_printf
2592         format attribute.
2595 2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
2597         PR libfortran/38225
2598         * intrinsics/reshape_generic.c (reshape_internal):
2599         Use all dimensions of source for bounds checking.
2600         * m4/reshape.m4:  Likewise.
2601         * generated/reshape_c10.c Regenerated.
2602         * generated/reshape_c16.c Regenerated.
2603         * generated/reshape_c4.c Regenerated.
2604         * generated/reshape_c8.c Regenerated.
2605         * generated/reshape_i16.c Regenerated.
2606         * generated/reshape_i4.c Regenerated.
2607         * generated/reshape_i8.c Regenerated.
2608         * generated/reshape_r10.c Regenerated.
2609         * generated/reshape_r16.c Regenerated.
2610         * generated/reshape_r4.c Regenerated.
2611         * generated/reshape_r8.c Regenerated.
2613 2008-11-22  Jakub Jelinek  <jakub@redhat.com>
2615         PR libfortran/37839
2616         * io/io.h (IOPARM_INQUIRE_HAS_ROUND, IOPARM_INQUIRE_HAS_SIGN,
2617         IOPARM_INQUIRE_HAS_PENDING): Adjust values.
2618         (st_parameter_inquire): Reorder and fix types of round, sign and
2619         pending fields.
2620         (st_parameter_43, st_parameter_44): Removed.
2621         (st_parameter_dt): Put back struct definition directly to u.p
2622         declaration.  Change type of u.p.size_used from gfc_offset to
2623         GFC_IO_INT.  Decrease back size of u.pad to 16 pointers and
2624         32 ints.  Put id, pos, asynchronous, blank, decimal, delim,
2625         pad, round and sign fields after the union.
2626         * io/inquire.c (inquire_via_unit, inquire_via_filename): Only read
2627         flags2 if it is defined.
2628         * io/transfer.c (read_sf, read_block_form, write_block): Cast
2629         additions to size_used to GFC_IO_INT instead of gfc_offset.
2630         (data_transfer_init): Clear whole u.p struct.  Adjust
2631         for moving id, pos, asynchronous, blank, decimal, delim, pad,
2632         round and sign fields from u.p directly into st_parameter_dt.
2633         (finalize_transfer): Don't cast size_used to GFC_IO_INT.
2634         * io/file_pos.c (st_endfile): Clear whole u.p struct.
2636 2008-11-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2638         PR libfortran/37472
2639         * io/write_float.def (output_float_FMT_G_): Adjust conversion of
2640         G format specification to F format.
2642 2008-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
2644         PR libfortran/38135
2645         * m4/reshape.m4:  Correct bounds checking when PAD is present.
2646         Treat PAD as if it were SOURCE when SOURCE is empty.
2647         * intrinsics/reshape_generic.c:  Likewise.
2648         * generated/reshape_c10.c Regenerated.
2649         * generated/reshape_c16.c Regenerated.
2650         * generated/reshape_c4.c Regenerated.
2651         * generated/reshape_c8.c Regenerated.
2652         * generated/reshape_i16.c Regenerated.
2653         * generated/reshape_i4.c Regenerated.
2654         * generated/reshape_i8.c Regenerated.
2655         * generated/reshape_r10.c Regenerated.
2656         * generated/reshape_r16.c Regenerated.
2657         * generated/reshape_r4.c Regenerated.
2658         * generated/reshape_r8.c Regenerated.
2660 2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2662         PR libfortran/38097
2663         * io/read.c (read_f): Initialize exponent. Fix comment. Set loop
2664         conditions for BZ/BN.
2665         * io/unit.c (get_internal_unit): Initialize flags.blank.
2666         * io/transfer.c (data_transfer_init): Fix whitespace.
2668 2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2670         PR libfortran/37294
2671         * io/write.c (namelist_write_newline): Use array loop specification to
2672         advance to next internal array unit record. (namelist_write): Adjust to
2673         accomodate the internal array unit behavior.
2675 2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
2677         PR fortran/37159
2678         * intrinsics/random.c: Added comment to adapt check.c, should
2679         kiss_size change.
2680         Few cosmetic changes to existing comments.
2682 2008-10-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2684         PR libfortran/37707
2685         * io/list_read.c (read_character): Remove code to look ahead in namelist
2686         reads to descriminate non-delimited strings from namelist objects.
2687         * io/write.c (namelist_write): Delimit character strings with quote or
2688         apostrophe, defaulting to quote.
2690 2008-10-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
2692         PR libfortran/34670
2693         * intrinsics/transpose_generic.c:  Implement bounds checking.
2694         * m4/transpose.m4:  Likewise.
2695         * generated/transpose_c8.c: Regenerated.
2696         * generated/transpose_c16.c: Regenerated.
2697         * generated/transpose_r10.c: Regenerated.
2698         * generated/transpose_i8.c: Regenerated.
2699         * generated/transpose_c10.c: Regenerated.
2700         * generated/transpose_r4.c: Regenerated.
2701         * generated/transpose_c4.c: Regenerated.
2702         * generated/transpose_i16.c: Regenerated.
2703         * generated/transpose_i4.c: Regenerated.
2704         * generated/transpose_r8.c: Regenerated.
2705         * generated/transpose_r16.c: Regenerated.
2707 2008-10-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2709         PR libfortran/37834
2710         * io/write_float.def (output_float): Emit '0.' for special case of
2711         format specifier 'f0.0' and value of zero. Likewise emit '0' for 'f1.0'.
2713 2008-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2715         PR libfortran/37863
2716         * io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
2717         * io/io.h (st_parameter_44): Fix id type declaration.
2719 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
2721         * io/file_pos.c (unformatted_backspace): Normal case is
2722         GFC_CONVERT_NATIVE.
2723         * io/transfer.c (read_sf):  Mark paths leading to generate_error()
2724         as unlikely.
2725         (readl_block_form):  Likewise.
2726         (read_block_direct):  Likewise.
2727         (write_block):  Likewise.
2728         (write_buf):  Likewise.
2729         (us_read):  Likewise.  Normal case is GFC_CONVERT_NATIVE.
2730         (next_record_w_unf):  Mark paths leading to generate_error()
2731         as unlikely.
2733 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
2735         PR libfortran/34670
2736         * generated/spread_r4.c: Regenerated.
2738 2008-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
2740         PR libfortran/34670
2741         * intrinsics/reshape_generic.c:  Add bounds checking.
2742         * m4/reshape.m4:  Likewise.
2743         * generated/reshape_c10.c: Regenerated.
2744         * generated/reshape_c16.c: Regenerated.
2745         * generated/reshape_c4.c: Regenerated.
2746         * generated/reshape_c8.c: Regenerated.
2747         * generated/reshape_i16.c: Regenerated.
2748         * generated/reshape_i4.c: Regenerated.
2749         * generated/reshape_i8.c: Regenerated.
2750         * generated/reshape_r10.c: Regenerated.
2751         * generated/reshape_r16.c: Regenerated.
2752         * generated/reshape_r4.c: Regenerated.
2753         * generated/reshape_r8.c: Regenerated.
2754         * generated/spread_r4.c: Regenerated.
2756 2008-10-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2758         PR libfortran/37083
2759         * io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
2760         (finish_list_read): Add EOF check.
2762 2008-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
2764         PR libfortran/37753
2765         * io/transfer.c (unformatted_read):  CONVERT_NATIVE
2766         is the usual case.  Check for kind==1 for non-byte-reversing
2767         operation.
2768         (unformatted_write):  Likewise.
2770 2008-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2772         PR libfortran/37707
2773         * io/list_read.c (nml_get_obj_data): If the first namelist object rank
2774         is greater than zero, call nml_object_read with the first object rather
2775         than the sub-object.
2777 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2778             Steve Ellcey  <sje@cup.hp.com>
2780         * configure: Regenerate for new libtool.
2781         * Makefile.in: Ditto.
2783 2008-09-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2785         PR libfortran/37498
2786         * list_read.c (eat_separator): Revert previous patch and move
2787         delim_status, decimal_status, and pad_status to gfc_unit.
2788         (parse_real): Ditto. (read_real): Ditto.
2789         * read.c (read_a): Likewise. (read_a_char4): Likewise.
2790         (read_f): Likewise.
2791         * inquire.c (inquire_via_unit): Add missing check for
2792         IOPARM_INQUIRE_HAS_FLAGS2. (inquire_via_filename): Likewise.
2793         * io.h (unit_sign_s): Move delim_status, decimal_status, and pad_status
2794         to gfc_unit.
2795         * transfer.c (read_sf): Ditto. (read_block_form): Ditto.
2796         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto.
2797         * write.c (write_default_char4): Ditto. (write_utf8_char4): Ditto.
2798         (write_character): Ditto. (write_real_g0): Ditto.
2799         (list_formatted_write_scalar): Ditto. (nml_write_obj): Ditto.
2800         (namelist_write): Ditto.
2801         * write_float.def (calculate_sign): Ditto. (output_float): Ditto.
2803 2008-09-24  Tobias Burnus  <burnus@net-b.de>
2805         * runtime/compile_options.c (init_compile_options):
2806         Sync flags with front end.
2808 2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org
2810         PR libfortran/37498
2811         * file_pos (st_endfile): Clear memory only for libfortran 4.3 private
2812         area.
2813         * list_read.c (eat_separator): Only access F2003 I/O parameters if
2814         IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
2815         (read_real): Ditto.
2816         * read.c (read_a): Likewise. (read_a_char4): Likewise though not
2817         strictly necessary. (read_f): Likewise.
2818         * io.h (unit_sign_s): New enumerator to allow duplication of
2819         st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
2820         (st_parameter_43): New structure copied from 4.3 version of 
2821         st_paramater_dt private section. (st_parameter_44): New structure with
2822         F2003 items added. (st_parameter_dt): Modified to create union of new
2823         and old structures to allow correct memory setting for 4.3 ABI
2824         compatibility. Bumped the pad size.
2825         * transfer.c (read_sf): Do not use F2003 I/O memory areas unless
2826         IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
2827         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
2828         add comment, fix formatting.
2829         * write.c (write_default_char4): Likewise though not strictly necessary.
2830         (write_utf8_char4): Ditto. (write_character): Ditto.
2831         (write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
2832         (nml_write_obj): Ditto. (namelist_write): Ditto.
2833         * write_float.def (calculate_sign): Eliminate warning by including all
2834         cases in switch. (output_float): Output only decimal point of F2003 flag
2835         is not set.
2837 2008-09-10  Tobias Burnus  <burnus@net-b.de>
2838             H. J. Lu  <hongjiu.lu@intel.com>
2840         * mk-sik-inc.sh: Make -Wunused-variable proof.
2841         * mk-srk-inc.sh: Make -Wunused-variable proof.
2843 2008-09-10  Tobias Burnus  <burnus@net-b.de>
2845         * mk-kinds-h.sh: Make -Wunused-variable proof.
2847 2008-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
2849         PR fortran/37203
2850         * intrinsics/reshape_generic.c:  Add checking on
2851         out-of-bounds and duplicate values of order argument.
2852         * m4/reshape.m4:  Likewise.
2853         * generated/reshape_c10.c: Regenerated.
2854         * generated/reshape_c16.c: Regenerated.
2855         * generated/reshape_c4.c: Regenerated.
2856         * generated/reshape_c8.c: Regenerated.
2857         * generated/reshape_i16.c: Regenerated.
2858         * generated/reshape_i4.c: Regenerated.
2859         * generated/reshape_i8.c: Regenerated.
2860         * generated/reshape_r10.c: Regenerated.
2861         * generated/reshape_r16.c: Regenerated.
2862         * generated/reshape_r4.c: Regenerated.
2863         * generated/reshape_r8.c: Regenerated.
2865 2008-09-06  Tobias Burnus  <burnus@net-b.de>
2867         * libgfortran.h (likely,unlikely): New makros.
2868         (runtime_warning_at,__mingw_snprintf): Add __attribute__(format()).
2869         * m4/spread.m4 (spread_'rtype_code`): Use unlikely for bounds_check.
2870         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto.
2871         * m4/matmull.m4 (matmul_'rtype_code`): Ditto.
2872         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto.
2873         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto.
2874         * m4/matmul.m4 (matmul_'rtype_code`): Ditto.
2876         * generated/minval_r8.c: Regenerated.
2877         * generated/spread_r10.c: Regenerated.
2878         * generated/minloc1_16_r16.c: Regenerated.
2879         * generated/maxloc1_4_r8.c: Regenerated.
2880         * generated/sum_i8.c: Regenerated.
2881         * generated/any_l16.c: Regenerated.
2882         * generated/spread_i8.c: Regenerated.
2883         * generated/maxval_i2.c: Regenerated.
2884         * generated/any_l2.c: Regenerated.
2885         * generated/product_r4.c: Regenerated.
2886         * generated/maxloc1_8_i4.c: Regenerated.
2887         * generated/maxloc0_4_r4.c: Regenerated.
2888         * generated/all_l1.c: Regenerated.
2889         * generated/matmul_r8.c: Regenerated.
2890         * generated/product_i2.c: Regenerated.
2891         * generated/minloc0_4_r16.c: Regenerated.
2892         * generated/minloc0_4_i1.c: Regenerated.
2893         * generated/maxloc0_4_r16.c: Regenerated.
2894         * generated/maxloc0_4_i2.c: Regenerated.
2895         * generated/minloc1_8_r16.c: Regenerated.
2896         * generated/maxloc1_8_r16.c: Regenerated.
2897         * generated/maxloc0_8_i8.c: Regenerated.
2898         * generated/sum_r16.c: Regenerated.
2899         * generated/sum_i1.c: Regenerated.
2900         * generated/minloc1_4_r8.c: Regenerated.
2901         * generated/maxloc1_16_r16.c: Regenerated.
2902         * generated/minloc1_16_i4.c: Regenerated.
2903         * generated/maxloc1_16_i4.c: Regenerated.
2904         * generated/minloc0_16_i8.c: Regenerated.
2905         * generated/spread_i1.c: Regenerated.
2906         * generated/maxloc0_16_i8.c: Regenerated.
2907         * generated/maxval_r16.c: Regenerated.
2908         * generated/product_c10.c: Regenerated.
2909         * generated/minloc1_8_i4.c: Regenerated.
2910         * generated/minloc0_16_i16.c: Regenerated.
2911         * generated/matmul_r16.c: Regenerated.
2912         * generated/minloc0_4_r4.c: Regenerated.
2913         * generated/all_l2.c: Regenerated.
2914         * generated/product_c4.c: Regenerated.
2915         * generated/sum_r4.c: Regenerated.
2916         * generated/minloc0_4_i2.c: Regenerated.
2917         * generated/spread_c10.c: Regenerated.
2918         * generated/maxloc0_8_i1.c: Regenerated.
2919         * generated/spread_r4.c: Regenerated.
2920         * generated/minloc0_8_i8.c: Regenerated.
2921         * generated/matmul_c8.c: Regenerated.
2922         * generated/all_l16.c: Regenerated.
2923         * generated/minloc1_16_r10.c: Regenerated.
2924         * generated/sum_i2.c: Regenerated.
2925         * generated/minloc0_16_i1.c: Regenerated.
2926         * generated/maxloc0_16_i1.c: Regenerated.
2927         * generated/maxloc1_8_r8.c: Regenerated.
2928         * generated/minval_i16.c: Regenerated.
2929         * generated/spread_i2.c: Regenerated.
2930         * generated/maxval_i4.c: Regenerated.
2931         * generated/minval_i8.c: Regenerated.
2932         * generated/any_l4.c: Regenerated.
2933         * generated/maxloc1_4_i8.c: Regenerated.
2934         * generated/maxloc0_16_i16.c: Regenerated.
2935         * generated/maxloc0_8_r4.c: Regenerated.
2936         * generated/minloc1_4_i16.c: Regenerated.
2937         * generated/maxloc1_4_i16.c: Regenerated.
2938         * generated/minloc0_4_r10.c: Regenerated.
2939         * generated/minloc0_8_i16.c: Regenerated.
2940         * generated/maxloc0_4_r10.c: Regenerated.
2941         * generated/maxloc0_8_i16.c: Regenerated.
2942         * generated/minloc1_8_r10.c: Regenerated.
2943         * generated/product_i4.c: Regenerated.
2944         * generated/minloc0_16_r4.c: Regenerated.
2945         * generated/sum_c16.c: Regenerated.
2946         * generated/maxloc1_8_r10.c: Regenerated.
2947         * generated/maxloc0_16_r4.c: Regenerated.
2948         * generated/minloc1_16_r8.c: Regenerated.
2949         * generated/minloc0_8_i1.c: Regenerated.
2950         * generated/maxloc0_4_i4.c: Regenerated.
2951         * generated/maxloc1_16_r8.c: Regenerated.
2952         * generated/maxloc0_8_i2.c: Regenerated.
2953         * generated/sum_r10.c: Regenerated.
2954         * generated/count_4_l.c: Regenerated.
2955         * generated/sum_c4.c: Regenerated.
2956         * generated/count_8_l.c: Regenerated.
2957         * generated/maxloc1_16_r10.c: Regenerated.
2958         * generated/matmul_i8.c: Regenerated.
2959         * generated/minloc0_16_i2.c: Regenerated.
2960         * generated/minloc1_8_r8.c: Regenerated.
2961         * generated/maxloc0_16_i2.c: Regenerated.
2962         * generated/spread_c4.c: Regenerated.
2963         * generated/matmul_c16.c: Regenerated.
2964         * generated/maxval_r10.c: Regenerated.
2965         * generated/minval_i1.c: Regenerated.
2966         * generated/maxloc1_4_i1.c: Regenerated.
2967         * generated/matmul_r10.c: Regenerated.
2968         * generated/minloc1_4_i8.c: Regenerated.
2969         * generated/minloc0_8_r4.c: Regenerated.
2970         * generated/matmul_l4.c: Regenerated.
2971         * generated/product_i16.c: Regenerated.
2972         * generated/minloc0_16_r16.c: Regenerated.
2973         * generated/all_l4.c: Regenerated.
2974         * generated/minloc0_4_i4.c: Regenerated.
2975         * generated/minloc0_8_i2.c: Regenerated.
2976         * generated/matmul_i1.c: Regenerated.
2977         * generated/minval_r4.c: Regenerated.
2978         * generated/maxloc1_4_r4.c: Regenerated.
2979         * generated/spread_i16.c: Regenerated.
2980         * generated/sum_i4.c: Regenerated.
2981         * generated/maxval_r8.c: Regenerated.
2982         * generated/spread_i4.c: Regenerated.
2983         * generated/minloc1_4_i1.c: Regenerated.
2984         * generated/minval_r16.c: Regenerated.
2985         * generated/minval_i2.c: Regenerated.
2986         * generated/maxloc1_4_i2.c: Regenerated.
2987         * generated/product_r8.c: Regenerated.
2988         * generated/maxloc1_8_i8.c: Regenerated.
2989         * generated/maxloc0_4_r8.c: Regenerated.
2990         * generated/maxloc0_16_r16.c: Regenerated.
2991         * generated/matmul_r4.c: Regenerated.
2992         * generated/sum_c10.c: Regenerated.
2993         * generated/minloc1_4_r16.c: Regenerated.
2994         * generated/maxloc1_4_r16.c: Regenerated.
2995         * generated/minloc0_8_r16.c: Regenerated.
2996         * generated/maxloc0_8_r16.c: Regenerated.
2997         * generated/count_1_l.c: Regenerated.
2998         * generated/maxloc0_8_i4.c: Regenerated.
2999         * generated/matmul_i2.c: Regenerated.
3000         * generated/minloc1_4_r4.c: Regenerated.
3001         * generated/matmul_c10.c: Regenerated.
3002         * generated/minloc0_16_i4.c: Regenerated.
3003         * generated/maxloc0_16_i4.c: Regenerated.
3004         * generated/minloc1_16_i8.c: Regenerated.
3005         * generated/maxloc1_16_i8.c: Regenerated.
3006         * generated/minloc1_4_i2.c: Regenerated.
3007         * generated/matmul_l16.c: Regenerated.
3008         * generated/maxloc1_8_i1.c: Regenerated.
3009         * generated/minloc0_16_r10.c: Regenerated.
3010         * generated/minloc1_8_i8.c: Regenerated.
3011         * generated/minloc0_4_r8.c: Regenerated.
3012         * generated/product_r16.c: Regenerated.
3013         * generated/product_c8.c: Regenerated.
3014         * generated/sum_r8.c: Regenerated.
3015         * generated/minloc0_8_i4.c: Regenerated.
3016         * generated/matmul_c4.c: Regenerated.
3017         * generated/minloc1_16_i16.c: Regenerated.
3018         * generated/spread_r8.c: Regenerated.
3019         * generated/maxloc1_8_r4.c: Regenerated.
3020         * generated/minloc1_16_i1.c: Regenerated.
3021         * generated/maxloc1_16_i1.c: Regenerated.
3022         * generated/spread_r16.c: Regenerated.
3023         * generated/minval_r10.c: Regenerated.
3024         * generated/count_16_l.c: Regenerated.
3025         * generated/minval_i4.c: Regenerated.
3026         * generated/minloc1_8_i1.c: Regenerated.
3027         * generated/maxloc1_4_i4.c: Regenerated.
3028         * generated/maxloc1_8_i2.c: Regenerated.
3029         * generated/maxval_i8.c: Regenerated.
3030         * generated/any_l8.c: Regenerated.
3031         * generated/maxloc0_16_r10.c: Regenerated.
3032         * generated/minloc0_4_i16.c: Regenerated.
3033         * generated/maxloc0_8_r8.c: Regenerated.
3034         * generated/maxloc0_4_i16.c: Regenerated.
3035         * generated/minloc1_4_r10.c: Regenerated.
3036         * generated/minloc1_8_i16.c: Regenerated.
3037         * generated/maxloc1_4_r10.c: Regenerated.
3038         * generated/maxloc1_8_i16.c: Regenerated.
3039         * generated/minloc0_8_r10.c: Regenerated.
3040         * generated/maxloc0_8_r10.c: Regenerated.
3041         * generated/minloc1_16_r4.c: Regenerated.
3042         * generated/maxloc1_16_r4.c: Regenerated.
3043         * generated/minloc0_16_r8.c: Regenerated.
3044         * generated/product_i8.c: Regenerated.
3045         * generated/maxloc0_16_r8.c: Regenerated.
3046         * generated/sum_i16.c: Regenerated.
3047         * generated/count_2_l.c: Regenerated.
3048         * generated/maxloc0_4_i8.c: Regenerated.
3049         * generated/maxloc1_16_i16.c: Regenerated.
3050         * generated/matmul_i4.c: Regenerated.
3051         * generated/minloc1_8_r4.c: Regenerated.
3052         * generated/sum_c8.c: Regenerated.
3053         * generated/minloc1_16_i2.c: Regenerated.
3054         * generated/maxloc1_16_i2.c: Regenerated.
3055         * generated/maxval_i16.c: Regenerated.
3056         * generated/spread_c8.c: Regenerated.
3057         * generated/matmul_i16.c: Regenerated.
3058         * generated/minloc1_4_i4.c: Regenerated.
3059         * generated/maxval_i1.c: Regenerated.
3060         * generated/minloc1_8_i2.c: Regenerated.
3061         * generated/any_l1.c: Regenerated.
3062         * generated/product_c16.c: Regenerated.
3063         * generated/minloc0_8_r8.c: Regenerated.
3064         * generated/matmul_l8.c: Regenerated.
3065         * generated/product_r10.c: Regenerated.
3066         * generated/product_i1.c: Regenerated.
3067         * generated/all_l8.c: Regenerated.
3068         * generated/maxloc0_4_i1.c: Regenerated.
3069         * generated/minloc0_4_i8.c: Regenerated.
3070         * generated/spread_c16.c: Regenerated.
3071         * generated/maxval_r4.c: Regenerated.
3073 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3075         PR libfortran/37301
3076         PR libfortran/37228
3077         * io/io.h (write_real_g0): Declare new function to handle g0.d format.
3078         * io/transfer.c (formatted_transfer_scalar): Use new function.
3079         * io/format.c (parse_format_list): Enable g0.d.
3080         * io/write.c (write_a_char4): Delete unused var.
3081         (set_fnode_default): New function to set the default fnode w, d, and e
3082         factored from write_real. (write_real): Use new factored function.
3083         (write_real_g0): New function that sets d to that passed by g0.d format
3084         specifier and set format to ES.  Default values for w and e are used
3085         from the new function, set_fnode_default.
3087 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3089         * runtime/error.c: Fix cast for printf.
3091 2008-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3093         PR libfortran/36895
3094         * io/write.c (namelist_write_newline): New function to correctly mark
3095         next records in both external and internal units.
3096         (nml_write_obj): Use new function.
3097         (namelist_write: Use new function.
3099 2008-08-19  Tobias Burnus  <burnus@net-b.de>
3101         PR libfortran/35863
3102         * io/write.c (write_a_char4): Add missing variable declaration
3103         in HAVE_CRLF block.
3105 2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3107         PR libfortran/35863
3108         * intrinsics/selected_char_kind.c: Enable iso_10646.
3109         * io/read.c (typedef uchar): New type.
3110         (read_utf8): New function to read a single UTF-8 encoded character.
3111         (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
3112         (read_default_char1): New functio to read default into KIND=1 string.
3113         (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
3114         (read_default_char4): New function to read UTF-8 into a KIND=4 string.
3115         (read_a): Modify to use the new functions.
3116         (read_a_char4): Modify to use the new functions.
3117         * io/write.c (error.h): Add include. (typedef uchar): New type.
3118         (write_default_char4): New function to default write KIND=4 string.
3119         (write_utf8_char4): New function to UTF-8 write KIND=4 string.
3120         (write_a_char4): Modify to use new functions.
3121         (write_character): Modify to use new functions.
3123 2008-08-14  H.J. Lu  <hongjiu.lu@intel.com>
3125         PR libfortran/37123
3126         * intrinsics/cshift0.c (cshift0): Fix 2 typos.
3128 2008-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
3130         PR libfortran/36886
3131         * Makefile.am:  Added $(i_cshift0_c).
3132         Added $(i_cshift0_c) to gfor_built_specific_src.
3133         Add rule to build from cshift0.m4.
3134         * Makefile.in:  Regenerated.
3135         * libgfortran.h:  Addedd prototypes for cshift0_i1,
3136         cshift0_i2, cshift0_i4, cshift0_i8, cshift0_i16,
3137         cshift0_r4, cshift0_r8, cshift0_r10, cshift0_r16,
3138         cshift0_c4, cshift0_c8, cshift0_c10, cshift0_c16.
3139         Define Macros GFC_UNALIGNED_C4 and GFC_UNALIGNED_C8.
3140         * intrinsics/cshift0.c:  Remove helper functions for
3141         the innter shift loop.
3142         (cshift0):  Call specific functions depending on type
3143         of array argument.  Only call specific functions for
3144         correct alignment for other types.
3145         * m4/cshift0.m4:  New file.
3146         * generated/cshift0_i1.c:  New file.
3147         * generated/cshift0_i2.c:  New file.
3148         * generated/cshift0_i4.c:  New file.
3149         * generated/cshift0_i8:.c  New file.
3150         * generated/cshift0_i16.c:  New file.
3151         * generated/cshift0_r4.c:  New file.
3152         * generated/cshift0_r8.c:  New file.
3153         * generated/cshift0_r10.c:  New file.
3154         * generated/cshift0_r16.c:  New file.
3155         * generated/cshift0_c4.c:  New file.
3156         * generated/cshift0_c8.c:  New file.
3157         * generated/cshift0_c10.c:  New file.
3158         * generated/cshift0_c16.c:  New file.
3160 2008-07-27  Tobias Burnus  <burnus@net-b.de>
3162         PR fortran/36132
3163         PR fortran/29952
3164         PR fortran/36909
3165         * runtime/error.c: New function runtime_error_at.
3166         * gfortran.map: Ditto.
3167         * libgfortran.h: Ditto.
3169 2008-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3171         PR fortran/36582
3172         * io/list_read.c: If variable rank is zero, do not adjust the found
3173         namelist object pointer.
3175 2008-07-22  Daniel Kraft  <d@domob.eu>
3177         PR fortran/29835
3178         * io/format.c (struct format_data):  New member error_element.
3179         (unexpected_element):  Added '%c' to message.
3180         (next_char):  Keep track of last parsed character in fmt->error_element.
3181         (format_error):  If the message is unexpected_element, output the
3182         offending character, too.
3184 2008-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
3186         PR libfortran/36890
3187         * io/file_pos.c:  Declare READ_CHUNK as signed to avoid
3188         signed/unsigned comparison warning in formatted_backspace.
3190 2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
3192         PR libfortran/36773
3193         * intrinsics/cshift0.c (cshift0):  Return early if size of array
3194         is zero.
3195         * intrinsics/eoshift0.c (eoshift0):  Return early if size of
3196         return array is zero.
3197         * intrinsics/eoshift2.c (eoshift2):  Likewise.
3198         * m4/eoshift1.m4 (eoshift1):  Return early if size of array
3199         is zero.
3200         * m4/eoshift3.m4 (eoshift3):  Likewise.
3201         * m4/eoshift2.m4 (eoshift2):  Return early if size of return
3202         array is zero.
3203         * m4/eoshift4.m4 (eoshift2):  Return early if size of return
3204         array is zero.
3205         * generated/cshift1_16.c: Regenerated.
3206         * generated/cshift1_4.c: Regenerated.
3207         * generated/cshift1_8.c: Regenerated.
3208         * generated/eoshift1_16.c: Regenerated.
3209         * generated/eoshift1_4.c: Regenerated.
3210         * generated/eoshift1_8.c: Regenerated.
3211         * generated/eoshift3_16.c: Regenerated.
3212         * generated/eoshift3_4.c: Regenerated.
3213         * generated/eoshift3_8.c: Regenerated.
3215 2008-07-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3217         PR fortran/36857
3218         * io/write_float.def: Comment out locale dependent code and fix general
3219         comments.
3220         
3221 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
3223         PR fortran/36341
3224         PR fortran/34670
3225         * m4/matmul.m4:  Add bounds checking.
3226         * m4/matmull.m4:  Likewise.
3227         * generated/matmul_c10.c: Regenerated.
3228         * generated/matmul_c16.c: Regenerated.
3229         * generated/matmul_c4.c: Regenerated.
3230         * generated/matmul_c8.c: Regenerated.
3231         * generated/matmul_i1.c: Regenerated.
3232         * generated/matmul_i16.c: Regenerated.
3233         * generated/matmul_i2.c: Regenerated.
3234         * generated/matmul_i4.c: Regenerated.
3235         * generated/matmul_i8.c: Regenerated.
3236         * generated/matmul_l16.c: Regenerated.
3237         * generated/matmul_l4.c: Regenerated.
3238         * generated/matmul_l8.c: Regenerated.
3239         * generated/matmul_r10.c: Regenerated.
3240         * generated/matmul_r16.c: Regenerated.
3241         * generated/matmul_r4.c: Regenerated.
3242         * generated/matmul_r8.c: Regenerated.
3244 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3246         * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
3247         variable name.
3248         * configure: Regenerate.
3250 2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3252         PR fortran/36676
3253         * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
3254         
3255 2008-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3257         PR fortran/36657
3258         * io/list_read.c (read_character): Check for '!' along with separators.
3259         (find_nml_name): Likewise and eat the comment if found.
3261 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3263         * configure: Regenerate.
3265 2008-06-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3267         PR fortran/36546
3268         * io/list_read.c (eat_separator): Add tab character to condition
3269         for looping past whitespace.
3271 2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3273         PR fortran/36515
3274         * libgfortran.h (compile_options_t): Add int range_check to structure.
3275         * runtime/compile_options.c (set_options): Add range_check option.
3276         (init_compile_options): Likewise.
3277         *io/read.c (read_decimal): Change overflow checks to include
3278         range_check.
3279         
3280 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3282         PR fortran/36538
3283         * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
3284         tabs.
3286 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3288         PR fortran/35863
3289         * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
3290         * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
3291         big_endian. (determine_endianness): Add endian_off and set its value
3292         according to big_endian.
3293         * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
3294         * io/io.h: Add prototype declarations for new functions.
3295         * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
3296         (list_formatted_read): Calculate stride based on kind for character type
3297         and use it when calling list_formatted_read_scalar.
3298         * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
3299         * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
3300         * io/read.c (read_a_char4): New function to handle formatted read.
3301         * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
3302         (write_a_char4): New function to handle formatted write.
3303         (write_character): Modify to accept the kind parameter and adjust for
3304         endianess of the machine. (list_formatted_write): Calculate the stride
3305         resulting from the kind and adjust the list_formatted_write_scalar call
3306         accordingly. (nml_write_obj): Adjust calls to write_character.
3307         (namelist_write): Likewise.
3308         * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
3309         'kind' argument to better describe what it is. Add calls to new
3310         functions for kind == 4. (formatted_transfer): Modify to handle the case
3311         of type character and kind equals 4 to pass in the kind to the transfer
3312         routines. (transfer_character_wide): Add this new function.
3313         (transfer_array): Don't set kind to the character string length. Adjust
3314         strides bases on character kind.
3315         (unformatted_read): Adjust size based on kind for character types.
3316         (unformatted_write): Likewise. (data_transfer_init): Change
3317         l8_to_l4_offset to big_endian.
3318         io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
3320 2008-06-13  Tobias Burnus  <burnus@net-b.de>
3322         * configure.ac (AM_CFLAGS): Remove -Werror again.
3323         * configure: Regenerate.
3325 2008-06-13  Tobias Burnus  <burnus@net-b.de>
3327         PR libgfortran/36518
3328         * configure.ac (AM_CFLAGS): Add -Werror.
3329         * configure: Regenerate.
3330         * m4/ifunction_logical.m4: Cast "n" to "(int)".
3331         * generated/any_l16.c: Regenerate.
3332         * generated/any_l2.c: Regenerate.
3333         * generated/all_l1.c: Regenerate.
3334         * generated/all_l2.c: Regenerate.
3335         * generated/all_l16.c: Regenerate.
3336         * generated/any_l4.c: Regenerate.
3337         * generated/count_4_l.c: Regenerate.
3338         * generated/count_8_l.c: Regenerate.
3339         * generated/all_l4.c: Regenerate.
3340         * generated/count_1_l.c: Regenerate.
3341         * generated/count_16_l.c: Regenerate.
3342         * generated/any_l8.c: Regenerate.
3343         * generated/count_2_l.c: Regenerate.
3344         * generated/any_l1.c: Regenerate.
3345         * generated/all_l8.c: Regenerate.
3347 2008-06-13  Tobias Burnus  <burnus@net-b.de>
3349         PR fortran/36495
3350         * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
3351         * configure: (generated) ditto.
3352         * intrinsics/dprod_r8.f90: Add "implicit none".
3354 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3356         PR libfortran/36420
3357         PR libfortran/36421
3358         PR libfortran/36422
3359         * io/io.h: Add prototype for write_real.
3360         * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
3361         use write_real.
3362         * io/format.c: Add zero width error message. (parse_format_list): Use
3363         error message for FMT_A if followed by FMT_ZERO. Use zero width error
3364         message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
3365         Fix typo in comment.
3366         * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
3367         (write_l): Add wlen variable and use it if FMT_G and width is zero.
3368         (write_decimal): If FMT_G, set m to -1 to flag processor dependent
3369         formatting. (write_real): Remove static declaration.
3371 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3373         PR fortran/36319
3374         * intrinsics/string_intrinsics_inc.c (string_index): Return
3375         correct value for zero-length substring.
3376         * intrinsics/cshift0.c: Add _char4 variant.
3377         * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
3378         wider than a single byte. Add _char4 variant and use above
3379         functionality.
3380         * intrinsics/eoshift2.c (eoshift2): Likewise.
3381         * m4/eoshift1.m4: Likewise.
3382         * m4/eoshift3.m4: Likewise.
3383         * m4/cshift1.m4: Add _char4 variants.
3384         * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
3385         _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
3386         _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
3387         _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
3388         _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
3389         _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
3390         _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
3391         _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
3392         _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
3393         _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
3394         _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
3395         * generated/eoshift3_4.c: Regenerate.
3396         * generated/eoshift1_8.c: Regenerate.
3397         * generated/eoshift1_16.c: Regenerate.
3398         * generated/cshift1_4.c: Regenerate.
3399         * generated/eoshift1_4.c: Regenerate.
3400         * generated/eoshift3_8.c: Regenerate.
3401         * generated/eoshift3_16.c: Regenerate.
3402         * generated/cshift1_8.c: Regenerate.
3403         * generated/cshift1_16.c: Regenerate.
3405 2008-05-25  Tobias Burnus  <burnus@net-b.de>
3407         PR fortran/32600
3408         * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
3409         * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
3410         * gfortran.map (c_f_procpointer): Remove.
3412 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
3414         PR libgfortran/36302
3415         * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
3416         _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
3417         _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
3418         _gfortran_cshift0_16_char.  Sort alphabetically.
3419         * intrinsics/eoshift0.c:  Add function for kind=16 integer.
3420         * intrinsics/eoshift2.c:  Likewise.
3421         * intrinsics/cshift0.c:  Likewise.
3423 2008-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
3425         * m4/in_pack.m4 (internal_pack_'rtype_code`):  Destination
3426         pointer is restrict.
3427         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
3428         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
3429         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
3430         (spread_scalar_'rtype_code`): Likewise.
3431         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
3432         * m4/eoshift1.m4 (eoshift1):  Likewise.
3433         * m4/eoshift3.m4 (eoshift3):  Likewise.
3434         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):  Likewise.
3435         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
3436         (unpack1_'rtype_code`):  Likewise.
3437         * intrinsics/pack_generic.c (pack_generic.c):  Likewise.
3438         * intrinsics/unpack_generic.c (unpack_internal):  Likewise.
3439         * intrinsics/eoshift0.c (eoshift0):  Likewise.
3440         * intrinsics/eoshift2.c (eoshift2):  Likewise.
3441         * intrinsics/reshape_generic.c (reshape_internal):  Likewise.
3442         * intrinsics/reshape_packed.c (reshape_packed):  Likewise.
3443         * generated/eoshift1_16.c: Regenerated.
3444         * generated/eoshift1_4.c: Regenerated.
3445         * generated/eoshift1_8.c: Regenerated.
3446         * generated/eoshift3_16.c: Regenerated.
3447         * generated/eoshift3_4.c: Regenerated.
3448         * generated/eoshift3_8.c: Regenerated.
3449         * generated/in_pack_c10.c: Regenerated.
3450         * generated/in_pack_c16.c: Regenerated.
3451         * generated/in_pack_c4.c: Regenerated.
3452         * generated/in_pack_c8.c: Regenerated.
3453         * generated/in_pack_i1.c: Regenerated.
3454         * generated/in_pack_i16.c: Regenerated.
3455         * generated/in_pack_i2.c: Regenerated.
3456         * generated/in_pack_i4.c: Regenerated.
3457         * generated/in_pack_i8.c: Regenerated.
3458         * generated/in_pack_r10.c: Regenerated.
3459         * generated/in_pack_r16.c: Regenerated.
3460         * generated/in_pack_r4.c: Regenerated.
3461         * generated/in_pack_r8.c: Regenerated.
3462         * generated/in_unpack_c10.c: Regenerated.
3463         * generated/in_unpack_c16.c: Regenerated.
3464         * generated/in_unpack_c4.c: Regenerated.
3465         * generated/in_unpack_c8.c: Regenerated.
3466         * generated/in_unpack_i1.c: Regenerated.
3467         * generated/in_unpack_i16.c: Regenerated.
3468         * generated/in_unpack_i2.c: Regenerated.
3469         * generated/in_unpack_i4.c: Regenerated.
3470         * generated/in_unpack_i8.c: Regenerated.
3471         * generated/in_unpack_r10.c: Regenerated.
3472         * generated/in_unpack_r16.c: Regenerated.
3473         * generated/in_unpack_r4.c: Regenerated.
3474         * generated/in_unpack_r8.c: Regenerated.
3475         * generated/maxloc0_16_i1.c: Regenerated.
3476         * generated/maxloc0_16_i16.c: Regenerated.
3477         * generated/maxloc0_16_i2.c: Regenerated.
3478         * generated/maxloc0_16_i4.c: Regenerated.
3479         * generated/maxloc0_16_i8.c: Regenerated.
3480         * generated/maxloc0_16_r10.c: Regenerated.
3481         * generated/maxloc0_16_r16.c: Regenerated.
3482         * generated/maxloc0_16_r4.c: Regenerated.
3483         * generated/maxloc0_16_r8.c: Regenerated.
3484         * generated/maxloc0_4_i1.c: Regenerated.
3485         * generated/maxloc0_4_i16.c: Regenerated.
3486         * generated/maxloc0_4_i2.c: Regenerated.
3487         * generated/maxloc0_4_i4.c: Regenerated.
3488         * generated/maxloc0_4_i8.c: Regenerated.
3489         * generated/maxloc0_4_r10.c: Regenerated.
3490         * generated/maxloc0_4_r16.c: Regenerated.
3491         * generated/maxloc0_4_r4.c: Regenerated.
3492         * generated/maxloc0_4_r8.c: Regenerated.
3493         * generated/maxloc0_8_i1.c: Regenerated.
3494         * generated/maxloc0_8_i16.c: Regenerated.
3495         * generated/maxloc0_8_i2.c: Regenerated.
3496         * generated/maxloc0_8_i4.c: Regenerated.
3497         * generated/maxloc0_8_i8.c: Regenerated.
3498         * generated/maxloc0_8_r10.c: Regenerated.
3499         * generated/maxloc0_8_r16.c: Regenerated.
3500         * generated/maxloc0_8_r4.c: Regenerated.
3501         * generated/maxloc0_8_r8.c: Regenerated.
3502         * generated/minloc0_16_i1.c: Regenerated.
3503         * generated/minloc0_16_i16.c: Regenerated.
3504         * generated/minloc0_16_i2.c: Regenerated.
3505         * generated/minloc0_16_i4.c: Regenerated.
3506         * generated/minloc0_16_i8.c: Regenerated.
3507         * generated/minloc0_16_r10.c: Regenerated.
3508         * generated/minloc0_16_r16.c: Regenerated.
3509         * generated/minloc0_16_r4.c: Regenerated.
3510         * generated/minloc0_16_r8.c: Regenerated.
3511         * generated/minloc0_4_i1.c: Regenerated.
3512         * generated/minloc0_4_i16.c: Regenerated.
3513         * generated/minloc0_4_i2.c: Regenerated.
3514         * generated/minloc0_4_i4.c: Regenerated.
3515         * generated/minloc0_4_i8.c: Regenerated.
3516         * generated/minloc0_4_r10.c: Regenerated.
3517         * generated/minloc0_4_r16.c: Regenerated.
3518         * generated/minloc0_4_r4.c: Regenerated.
3519         * generated/minloc0_4_r8.c: Regenerated.
3520         * generated/minloc0_8_i1.c: Regenerated.
3521         * generated/minloc0_8_i16.c: Regenerated.
3522         * generated/minloc0_8_i2.c: Regenerated.
3523         * generated/minloc0_8_i4.c: Regenerated.
3524         * generated/minloc0_8_i8.c: Regenerated.
3525         * generated/minloc0_8_r10.c: Regenerated.
3526         * generated/minloc0_8_r16.c: Regenerated.
3527         * generated/minloc0_8_r4.c: Regenerated.
3528         * generated/minloc0_8_r8.c: Regenerated.
3529         * generated/pack_c10.c: Regenerated.
3530         * generated/pack_c16.c: Regenerated.
3531         * generated/pack_c4.c: Regenerated.
3532         * generated/pack_c8.c: Regenerated.
3533         * generated/pack_i1.c: Regenerated.
3534         * generated/pack_i16.c: Regenerated.
3535         * generated/pack_i2.c: Regenerated.
3536         * generated/pack_i4.c: Regenerated.
3537         * generated/pack_i8.c: Regenerated.
3538         * generated/pack_r10.c: Regenerated.
3539         * generated/pack_r16.c: Regenerated.
3540         * generated/pack_r4.c: Regenerated.
3541         * generated/pack_r8.c: Regenerated.
3542         * generated/spread_c10.c: Regenerated.
3543         * generated/spread_c16.c: Regenerated.
3544         * generated/spread_c4.c: Regenerated.
3545         * generated/spread_c8.c: Regenerated.
3546         * generated/spread_i1.c: Regenerated.
3547         * generated/spread_i16.c: Regenerated.
3548         * generated/spread_i2.c: Regenerated.
3549         * generated/spread_i4.c: Regenerated.
3550         * generated/spread_i8.c: Regenerated.
3551         * generated/spread_r10.c: Regenerated.
3552         * generated/spread_r16.c: Regenerated.
3553         * generated/spread_r4.c: Regenerated.
3554         * generated/spread_r8.c: Regenerated.
3555         * generated/transpose_c10.c: Regenerated.
3556         * generated/transpose_c16.c: Regenerated.
3557         * generated/transpose_c4.c: Regenerated.
3558         * generated/transpose_c8.c: Regenerated.
3559         * generated/transpose_i16.c: Regenerated.
3560         * generated/transpose_i4.c: Regenerated.
3561         * generated/transpose_i8.c: Regenerated.
3562         * generated/transpose_r10.c: Regenerated.
3563         * generated/transpose_r16.c: Regenerated.
3564         * generated/transpose_r4.c: Regenerated.
3565         * generated/transpose_r8.c: Regenerated.
3566         * generated/unpack_c10.c: Regenerated.
3567         * generated/unpack_c16.c: Regenerated.
3568         * generated/unpack_c4.c: Regenerated.
3569         * generated/unpack_c8.c: Regenerated.
3570         * generated/unpack_i1.c: Regenerated.
3571         * generated/unpack_i16.c: Regenerated.
3572         * generated/unpack_i2.c: Regenerated.
3573         * generated/unpack_i4.c: Regenerated.
3574         * generated/unpack_i8.c: Regenerated.
3575         * generated/unpack_r10.c: Regenerated.
3576         * generated/unpack_r16.c: Regenerated.
3577         * generated/unpack_r4.c: Regenerated.
3578         * generated/unpack_r8.c: Regenerated.
3580 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3582         * runtime/select.c: Moved content to select_inc.c. Include it. 
3583         Add macros for different character types.
3584         * runtime/select_inc.c: New file.
3585         * runtime/convert_char.c: New file.
3586         * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
3587         functions.
3588         * intrinsics/transpose_generic.c (transpose_char4): New function.
3589         * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
3590         New functions.
3591         * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4): 
3592         New functions.
3593         * intrinsics/reshape_generic.c (reshape_char): Use
3594         gfc_charlen_type as type for length variables.
3595         (reshape_char4): New function.
3596         * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
3597         _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
3598         _gfortran_transpose_char4, _gfortran_spread_char4,
3599         _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
3600         _gfortran_pack_char4, _gfortran_pack_s_char4,
3601         _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
3602         * Makefile.am: Add runtime/convert_char.c.
3603         * Makefile.in: Regenerate.
3605 2008-05-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
3607         * io/list_read.c (list_formatted_read_scalar):  Declare
3608         type as volatile to shut up compiler warning.
3610 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
3612         PR libfortran/25561
3613         * io/io.h (struct fbuf): Change pointer to position offset.
3614         * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
3615         changes.
3616         (fbuf_reset): ptr=>pos changes.
3617         (fbuf_alloc): If the request doesn't fit, don't waste memory by
3618         keeping flushed bytes. ptr=>pos changes.
3619         (fbuf_flush): ptr=>pos changes.
3620         (fbuf_seek): Don't seek past the left tab limit, don't update active
3621         byte count.
3622         * io/open.c (new_unit): If RECL has been specified, used that as
3623         initial buffer size.
3625 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
3627         PR libfortran/35632
3628         * io/open.c (new_unit): Set stream position to correct value.
3630 2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>
3632         PR libfortran/25561
3633         * Makefile.am: Add fbuf.c to gfor_io_src.
3634         * Makefile.in: Regenerate.
3635         * io/io.h (read_block): Remove.
3636         (struct stream): Remove alloc_r_at function pointer.
3637         (salloc_r): Remove.
3638         (salloc_r_at): Remove.
3639         (salloc_w_at): Remove.
3640         (salloc_w): Remove offset argument.
3641         (struct fbuf): New struct for format buffer.
3642         (struct gfc_unit): Add fbuf.
3643         (read_block_form): New prototype.
3644         (fbuf_init): Likewise.
3645         (fbuf_destroy): Likewise.
3646         (fbuf_reset): Likewise.
3647         (fbuf_alloc): Likewise.
3648         (fbuf_flush): Likewise.
3649         (fbuf_seek): Likewise.
3650         * io/file_pos.c (formatted_backspace): Change to use sread.
3651         (unformatted_backspace): Likewise.
3652         (st_backspace): Flush format buffer.
3653         (st_rewind): Likewise.
3654         * io/list_read.c (next_char): Likewise.
3655         (nml_query): Tidying, flush format buffer.
3656         * io/open.c (new_unit): Init format buffer.
3657         * io/read.c (read_l): Change to use read_block_form.
3658         (read_a): Likewise.
3659         (read_decimal): Likewise.
3660         (read_radix): Likewise.
3661         (read_f): Likewise.
3662         (read_x): Empty reads also for stream I/O.
3663         * io/transfer.c (read_sf): Change to use sread.
3664         (read_block): Rename to read_block_form, change prototype, use sread.
3665         (read_block_direct): Don't seek stream files.
3666         (write_block): Change to use fbuf if external file, don't seek stream
3667         files.
3668         (write_buf): Don't seek stream files.
3669         (formatted_transfer_scalar): Use fbuf for external files.
3670         (us_read): Change to use sread.
3671         (pre_position): Do nothing for stream I/O.
3672         (data_transfer_init): Flush fbuf when switching from write to read, if
3673         POS is specified, seek stream file to correct offset.
3674         (skip_record): Change to use sread.
3675         (min_off): New function.
3676         (next_record_r): Change to use sread.
3677         (next_record_w): Change to use sset/sseek, flush fbuf.
3678         (finalize_transfer): Flush fbuf.
3679         * io/unit.c (init_units): Init fbuf for stdout, stderr.
3680         (close_unit_1): Destroy fbuf.
3681         (finish_last_advance_record): Flush fbuf, no need to seek.
3682         * io/unix.c (fd_alloc_r_at): Remove unused where argument.
3683         (fd_alloc_w_at): Likewise.
3684         (fd_read): Remove third argument to fd_alloc_r_at.
3685         (fd_write): Remove third argument to fd_alloc_w_at.
3686         (fd_sset): Likewise.
3687         (fd_open): Don't set alloc_r_at.
3688         (mem_alloc_r_at): Remove unused where argument.
3689         (mem_alloc_w_at): Likewise.
3690         (mem_read): Don't incorrectly return previous errno, remove unused
3691         third argument to alloc function.
3692         (mem_write): Likewise.
3693         (mem_set): Likewise.
3694         (open_internal): Don't set alloc_r_at pointer.
3695         * io/fbuf.c: New file.
3697 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3699         * libgfortran.h (gfc_char4_t): New type.
3700         (GFC_SIZE_OF_CHAR_KIND): New macro.
3701         (compare_string): Adjust prototype.
3702         (compare_string_char4): New prototype.
3703         * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
3704         _gfortran_adjustr_char4, _gfortran_compare_string_char4,
3705         _gfortran_concat_string_char4, _gfortran_string_index_char4,
3706         _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
3707         _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
3708         _gfortran_string_verify_char4.
3709         * intrinsics/string_intrinsics_inc.c: New file from content of
3710         string_intrinsics.c with types replaced by macros.
3711         * intrinsics/string_intrinsics.c: Move content to
3712         string_intrinsics_inc.c.
3714 2008-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3716         PR libfortran/36202
3717         * io/list_read (eat_separator): Handle the CR-LF case correctly.
3719 2008-05-09  Julian Brown  <julian@codesourcery.com>
3721         * Makefile.am (LTLDFLAGS): New.
3722         (libgfortran_la_LDFLAGS): Use above.
3723         * Makefile.in: Regenerate.
3725 2008-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3727         PR libfortran/36131
3728         * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
3729         (next_record_w): Likewise.
3731 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
3733         PR libfortran/35995
3734         * m4/ifunction_logical.m4:  If the extent of "array"
3735         is less than zero, set it to zero.  Use an explicit
3736         flag for breaking out of the main loop to avoid, because
3737         the data pointer for "array" may be NULL for an empty
3738         array.
3739         * m4/ifunction.m4:  Likewise.
3740         * generated/all_l1.c: Regenerated.
3741         * generated/all_l16.c: Regenerated.
3742         * generated/all_l2.c: Regenerated.
3743         * generated/all_l4.c: Regenerated.
3744         * generated/all_l8.c: Regenerated.
3745         * generated/any_l1.c: Regenerated.
3746         * generated/any_l16.c: Regenerated.
3747         * generated/any_l2.c: Regenerated.
3748         * generated/any_l4.c: Regenerated.
3749         * generated/any_l8.c: Regenerated.
3750         * generated/count_16_l.c: Regenerated.
3751         * generated/count_1_l.c: Regenerated.
3752         * generated/count_2_l.c: Regenerated.
3753         * generated/count_4_l.c: Regenerated.
3754         * generated/count_8_l.c: Regenerated.
3755         * generated/maxloc1_16_i1.c: Regenerated.
3756         * generated/maxloc1_16_i16.c: Regenerated.
3757         * generated/maxloc1_16_i2.c: Regenerated.
3758         * generated/maxloc1_16_i4.c: Regenerated.
3759         * generated/maxloc1_16_i8.c: Regenerated.
3760         * generated/maxloc1_16_r10.c: Regenerated.
3761         * generated/maxloc1_16_r16.c: Regenerated.
3762         * generated/maxloc1_16_r4.c: Regenerated.
3763         * generated/maxloc1_16_r8.c: Regenerated.
3764         * generated/maxloc1_4_i1.c: Regenerated.
3765         * generated/maxloc1_4_i16.c: Regenerated.
3766         * generated/maxloc1_4_i2.c: Regenerated.
3767         * generated/maxloc1_4_i4.c: Regenerated.
3768         * generated/maxloc1_4_i8.c: Regenerated.
3769         * generated/maxloc1_4_r10.c: Regenerated.
3770         * generated/maxloc1_4_r16.c: Regenerated.
3771         * generated/maxloc1_4_r4.c: Regenerated.
3772         * generated/maxloc1_4_r8.c: Regenerated.
3773         * generated/maxloc1_8_i1.c: Regenerated.
3774         * generated/maxloc1_8_i16.c: Regenerated.
3775         * generated/maxloc1_8_i2.c: Regenerated.
3776         * generated/maxloc1_8_i4.c: Regenerated.
3777         * generated/maxloc1_8_i8.c: Regenerated.
3778         * generated/maxloc1_8_r10.c: Regenerated.
3779         * generated/maxloc1_8_r16.c: Regenerated.
3780         * generated/maxloc1_8_r4.c: Regenerated.
3781         * generated/maxloc1_8_r8.c: Regenerated.
3782         * generated/maxval_i1.c: Regenerated.
3783         * generated/maxval_i16.c: Regenerated.
3784         * generated/maxval_i2.c: Regenerated.
3785         * generated/maxval_i4.c: Regenerated.
3786         * generated/maxval_i8.c: Regenerated.
3787         * generated/maxval_r10.c: Regenerated.
3788         * generated/maxval_r16.c: Regenerated.
3789         * generated/maxval_r4.c: Regenerated.
3790         * generated/maxval_r8.c: Regenerated.
3791         * generated/minloc1_16_i1.c: Regenerated.
3792         * generated/minloc1_16_i16.c: Regenerated.
3793         * generated/minloc1_16_i2.c: Regenerated.
3794         * generated/minloc1_16_i4.c: Regenerated.
3795         * generated/minloc1_16_i8.c: Regenerated.
3796         * generated/minloc1_16_r10.c: Regenerated.
3797         * generated/minloc1_16_r16.c: Regenerated.
3798         * generated/minloc1_16_r4.c: Regenerated.
3799         * generated/minloc1_16_r8.c: Regenerated.
3800         * generated/minloc1_4_i1.c: Regenerated.
3801         * generated/minloc1_4_i16.c: Regenerated.
3802         * generated/minloc1_4_i2.c: Regenerated.
3803         * generated/minloc1_4_i4.c: Regenerated.
3804         * generated/minloc1_4_i8.c: Regenerated.
3805         * generated/minloc1_4_r10.c: Regenerated.
3806         * generated/minloc1_4_r16.c: Regenerated.
3807         * generated/minloc1_4_r4.c: Regenerated.
3808         * generated/minloc1_4_r8.c: Regenerated.
3809         * generated/minloc1_8_i1.c: Regenerated.
3810         * generated/minloc1_8_i16.c: Regenerated.
3811         * generated/minloc1_8_i2.c: Regenerated.
3812         * generated/minloc1_8_i4.c: Regenerated.
3813         * generated/minloc1_8_i8.c: Regenerated.
3814         * generated/minloc1_8_r10.c: Regenerated.
3815         * generated/minloc1_8_r16.c: Regenerated.
3816         * generated/minloc1_8_r4.c: Regenerated.
3817         * generated/minloc1_8_r8.c: Regenerated.
3818         * generated/minval_i1.c: Regenerated.
3819         * generated/minval_i16.c: Regenerated.
3820         * generated/minval_i2.c: Regenerated.
3821         * generated/minval_i4.c: Regenerated.
3822         * generated/minval_i8.c: Regenerated.
3823         * generated/minval_r10.c: Regenerated.
3824         * generated/minval_r16.c: Regenerated.
3825         * generated/minval_r4.c: Regenerated.
3826         * generated/minval_r8.c: Regenerated.
3827         * generated/product_c10.c: Regenerated.
3828         * generated/product_c16.c: Regenerated.
3829         * generated/product_c4.c: Regenerated.
3830         * generated/product_c8.c: Regenerated.
3831         * generated/product_i1.c: Regenerated.
3832         * generated/product_i16.c: Regenerated.
3833         * generated/product_i2.c: Regenerated.
3834         * generated/product_i4.c: Regenerated.
3835         * generated/product_i8.c: Regenerated.
3836         * generated/product_r10.c: Regenerated.
3837         * generated/product_r16.c: Regenerated.
3838         * generated/product_r4.c: Regenerated.
3839         * generated/product_r8.c: Regenerated.
3840         * generated/sum_c10.c: Regenerated.
3841         * generated/sum_c16.c: Regenerated.
3842         * generated/sum_c4.c: Regenerated.
3843         * generated/sum_c8.c: Regenerated.
3844         * generated/sum_i1.c: Regenerated.
3845         * generated/sum_i16.c: Regenerated.
3846         * generated/sum_i2.c: Regenerated.
3847         * generated/sum_i4.c: Regenerated.
3848         * generated/sum_i8.c: Regenerated.
3849         * generated/sum_r10.c: Regenerated.
3850         * generated/sum_r16.c: Regenerated.
3851         * generated/sum_r4.c: Regenerated.
3852         * generated/sum_r8.c: Regenerated.
3854 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
3856         PR libfortran/35990
3857         * intrinsics/pack_generic.c:  Really commit.
3859 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
3861         PR libfortran/35990
3862         * intrinsics/pack_generic.c:  If an extent of the source
3863         array is less then zero, set it to zero.  Set the source
3864         pointer to NULL if the source size is zero.  Set the total
3865         number of elements to zero if the vector has an extent
3866         less or equal to zero.
3867         * m4/pack.m4:  Set the source pointer to NULL if the
3868         source array is zero-sized.  Set the total number of
3869         elemements to zero if the vector has an extent less or
3870         equal to zero.
3871         * generated/pack_i1.c:  Regenerated.
3872         * generated/pack_i2.c:  Regenerated.
3873         * generated/pack_i4.c:  Regenerated.
3874         * generated/pack_i8.c:  Regenerated.
3875         * generated/pack_i16.c:  Regenerated.
3876         * generated/pack_r4.c:  Regenerated.
3877         * generated/pack_r8.c:  Regenerated.
3878         * generated/pack_r10.c:  Regenerated.
3879         * generated/pack_r16.c:  Regenerated.
3880         * generated/pack_c4.c:  Regenerated.
3881         * generated/pack_c8.c:  Regenerated.
3882         * generated/pack_c10.c:  Regenerated.
3883         * generated/pack_c16.c:  Regenerated.
3885 2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3887         PR libfortran/36094
3888         * runtime/error.c (show_locus): Provide modified error message when
3889         filename has not yet been associated with a unit number.
3890         * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
3892 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3894         * intrinsics/selected_char_kind.c: New file.
3895         * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
3896         * Makefile.am: Add intrinsics/selected_char_kind.c.
3897         * Makefile.in: Regenerate.
3899 2008-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
3901         PR libfortran/35993
3902         * ifunction.m4 (SCALAR_ARRAY_FUNCTION):  Use correct
3903         implementation for multi-dimensional return arrays when
3904         the mask is .false.
3905         * generated/maxloc1_16_i1.c: Regenerated.
3906         * generated/maxloc1_16_i16.c: Regenerated.
3907         * generated/maxloc1_16_i2.c: Regenerated.
3908         * generated/maxloc1_16_i4.c: Regenerated.
3909         * generated/maxloc1_16_i8.c: Regenerated.
3910         * generated/maxloc1_16_r10.c: Regenerated.
3911         * generated/maxloc1_16_r16.c: Regenerated.
3912         * generated/maxloc1_16_r4.c: Regenerated.
3913         * generated/maxloc1_16_r8.c: Regenerated.
3914         * generated/maxloc1_4_i1.c: Regenerated.
3915         * generated/maxloc1_4_i16.c: Regenerated.
3916         * generated/maxloc1_4_i2.c: Regenerated.
3917         * generated/maxloc1_4_i4.c: Regenerated.
3918         * generated/maxloc1_4_i8.c: Regenerated.
3919         * generated/maxloc1_4_r10.c: Regenerated.
3920         * generated/maxloc1_4_r16.c: Regenerated.
3921         * generated/maxloc1_4_r4.c: Regenerated.
3922         * generated/maxloc1_4_r8.c: Regenerated.
3923         * generated/maxloc1_8_i1.c: Regenerated.
3924         * generated/maxloc1_8_i16.c: Regenerated.
3925         * generated/maxloc1_8_i2.c: Regenerated.
3926         * generated/maxloc1_8_i4.c: Regenerated.
3927         * generated/maxloc1_8_i8.c: Regenerated.
3928         * generated/maxloc1_8_r10.c: Regenerated.
3929         * generated/maxloc1_8_r16.c: Regenerated.
3930         * generated/maxloc1_8_r4.c: Regenerated.
3931         * generated/maxloc1_8_r8.c: Regenerated.
3932         * generated/maxval_i1.c: Regenerated.
3933         * generated/maxval_i16.c: Regenerated.
3934         * generated/maxval_i2.c: Regenerated.
3935         * generated/maxval_i4.c: Regenerated.
3936         * generated/maxval_i8.c: Regenerated.
3937         * generated/maxval_r10.c: Regenerated.
3938         * generated/maxval_r16.c: Regenerated.
3939         * generated/maxval_r4.c: Regenerated.
3940         * generated/maxval_r8.c: Regenerated.
3941         * generated/minloc1_16_i1.c: Regenerated.
3942         * generated/minloc1_16_i16.c: Regenerated.
3943         * generated/minloc1_16_i2.c: Regenerated.
3944         * generated/minloc1_16_i4.c: Regenerated.
3945         * generated/minloc1_16_i8.c: Regenerated.
3946         * generated/minloc1_16_r10.c: Regenerated.
3947         * generated/minloc1_16_r16.c: Regenerated.
3948         * generated/minloc1_16_r4.c: Regenerated.
3949         * generated/minloc1_16_r8.c: Regenerated.
3950         * generated/minloc1_4_i1.c: Regenerated.
3951         * generated/minloc1_4_i16.c: Regenerated.
3952         * generated/minloc1_4_i2.c: Regenerated.
3953         * generated/minloc1_4_i4.c: Regenerated.
3954         * generated/minloc1_4_i8.c: Regenerated.
3955         * generated/minloc1_4_r10.c: Regenerated.
3956         * generated/minloc1_4_r16.c: Regenerated.
3957         * generated/minloc1_4_r4.c: Regenerated.
3958         * generated/minloc1_4_r8.c: Regenerated.
3959         * generated/minloc1_8_i1.c: Regenerated.
3960         * generated/minloc1_8_i16.c: Regenerated.
3961         * generated/minloc1_8_i2.c: Regenerated.
3962         * generated/minloc1_8_i4.c: Regenerated.
3963         * generated/minloc1_8_i8.c: Regenerated.
3964         * generated/minloc1_8_r10.c: Regenerated.
3965         * generated/minloc1_8_r16.c: Regenerated.
3966         * generated/minloc1_8_r4.c: Regenerated.
3967         * generated/minloc1_8_r8.c: Regenerated.
3968         * generated/minval_i1.c: Regenerated.
3969         * generated/minval_i16.c: Regenerated.
3970         * generated/minval_i2.c: Regenerated.
3971         * generated/minval_i4.c: Regenerated.
3972         * generated/minval_i8.c: Regenerated.
3973         * generated/minval_r10.c: Regenerated.
3974         * generated/minval_r16.c: Regenerated.
3975         * generated/minval_r4.c: Regenerated.
3976         * generated/minval_r8.c: Regenerated.
3977         * generated/product_c10.c: Regenerated.
3978         * generated/product_c16.c: Regenerated.
3979         * generated/product_c4.c: Regenerated.
3980         * generated/product_c8.c: Regenerated.
3981         * generated/product_i1.c: Regenerated.
3982         * generated/product_i16.c: Regenerated.
3983         * generated/product_i2.c: Regenerated.
3984         * generated/product_i4.c: Regenerated.
3985         * generated/product_i8.c: Regenerated.
3986         * generated/product_r10.c: Regenerated.
3987         * generated/product_r16.c: Regenerated.
3988         * generated/product_r4.c: Regenerated.
3989         * generated/product_r8.c: Regenerated.
3990         * generated/sum_c10.c: Regenerated.
3991         * generated/sum_c16.c: Regenerated.
3992         * generated/sum_c4.c: Regenerated.
3993         * generated/sum_c8.c: Regenerated.
3994         * generated/sum_i1.c: Regenerated.
3995         * generated/sum_i16.c: Regenerated.
3996         * generated/sum_i2.c: Regenerated.
3997         * generated/sum_i4.c: Regenerated.
3998         * generated/sum_i8.c: Regenerated.
3999         * generated/sum_r10.c: Regenerated.
4000         * generated/sum_r16.c: Regenerated.
4001         * generated/sum_r4.c: Regenerated.
4002         * generated/sum_r8.c: Regenerated.
4004 2008-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
4006         PR libfortran/35960
4007         * m4/reshape.m4:  Fix typo in last commit.
4008         * generated/reshape_i4.c:  Regererated.
4009         * generated/reshape_i8.c:  Regenerated.
4010         * generated/reshape_i16.c:  Regenerated.
4011         * generated/reshape_r4.c:  Regenerated.
4012         * generated/reshape_r8.c:  Regenerated.
4013         * generated/reshape_r10.c:  Regenerated.
4014         * generated/reshape_r16.c:  Regenerated.
4015         * generated/reshape_c4.c:  Regenerated.
4016         * generated/reshape_c8.c:  Regenerated.
4017         * generated/reshape_c10.c:  Regenerated.
4018         * generated/reshape_c16.c:  Regenerated.
4020 2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4022         * intrinsics/time_1.h (__time_1): Remove unused variable.
4024 2008-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
4026         PR libfortran/35988
4027         * m4/matmul.m4:  Only issue a runtime error if extents are
4028         non-zero.
4029         * generated/matmul_i1.c:  Regenerated.
4030         * generated/matmul_i2.c:  Regenerated.
4031         * generated/matmul_i4.c:  Regenerated.
4032         * generated/matmul_i8.c:  Regenerated.
4033         * generated/matmul_i16.c:  Regenerated.
4034         * generated/matmul_r4.c:  Regenerated.
4035         * generated/matmul_r8.c:  Regenerated.
4036         * generated/matmul_r10.c:  Regenerated.
4037         * generated/matmul_r16.c:  Regenerated.
4038         * generated/matmul_c4.c:  Regenerated.
4039         * generated/matmul_c8.c:  Regenerated.
4040         * generated/matmul_c10.c:  Regenerated.
4041         * generated/matmul_c16.c:  Regenerated.
4043 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4045         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
4046         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
4047         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
4048         (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
4049         (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
4050         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
4051         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
4052         (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
4053         Fix cache variable names.
4054         * configure, Makefile.in: Regenerate.
4056 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4058         PR fortran/35991
4059         * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
4061 2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
4063         PR libfortran/35960
4064         * intrinsics/reshape_generic.c (reshape_internal): If the size
4065         of the resized array is zero, as determined by the SHAPE
4066         argument, return early.
4067         * m4/reshape.m4:  Likewise.
4068         * generated/reshape_i4.c:  Regererated.
4069         * generated/reshape_i8.c:  Regenerated.
4070         * generated/reshape_i16.c:  Regenerated.
4071         * generated/reshape_r4.c:  Regenerated.
4072         * generated/reshape_r8.c:  Regenerated.
4073         * generated/reshape_r10.c:  Regenerated.
4074         * generated/reshape_r16.c:  Regenerated.
4075         * generated/reshape_c4.c:  Regenerated.
4076         * generated/reshape_c8.c:  Regenerated.
4077         * generated/reshape_c10.c:  Regenerated.
4078         * generated/reshape_c16.c:  Regenerated.
4080 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
4082         PR bootstrap/35457
4083         * aclocal.m4: Regenerate.
4084         * configure: Regenerate.
4086 2008-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
4088         PR libfortran/32972
4089         * intrinsics/spread_generic.c (spread):  Use spread_i2()
4090         for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
4092 2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
4093         Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4095         PR libfortran/32972
4096         PR libfortran/32512
4097         configure.ac:  Add test for uintptr_t.
4098         configure:  Regenerated.
4099         config.h.in:  Regenerated.
4100         * libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
4101         GFC_DTYPE_DERIVED_2:  New macro.
4102         GFC_DTYPE_DERIVED_4:  New macro.
4103         GFC_DTYPE_DERIVED_8:  New macro.
4104         GFC_DTYPE_DERIVED_16:  New macro.
4105         GFC_UNALIGNED_2:  New macro.
4106         GFC_UNALIGNED_4:  New macro.
4107         GFC_UNALIGNED_8:  New macro.
4108         GFC_UNALIGNED_16:  New macro.
4109         intptr_t:  Define if we don't have it.
4110         uintptr_t:  Likewise.
4111         * runtime/backtrace.c (show_backtrace):  Use intptr_t.
4112         * intrinsics/signal.c (signal_sub):  Likewise.
4113         (signal_sub_int):  Likewise.
4114         (alarm_sub_int_i4):  Likewise.
4115         * intrinsics/spread_generic.c (spread):  Use the integer
4116         routines for handling derived types of sizes 1, 2, 4, 8 and 16
4117         if the alignment of all pointers is correct.
4118         (spread_scalar):  Likewise.
4119         * intrinsics/pack_generic.c (pack):  Likewise.
4120         Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
4121         * intrinsics/unpack_generic.c (unpack1):  Likewise.
4122         (unpack0):  Likewise.
4123         * runtime/in_pack_generic.c (internal_pack):  Likewise.
4124         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
4126 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
4128         * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
4129         (nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
4130         recursive call.  Use snprintf instead of sprintf when %s nl->var_name
4131         is used.
4132         (nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
4133         nml_read_obj call.  Use snprintf instead of sprintf when %s
4134         nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
4135         of parse_err_msg array.  Append " for namelist variable " and
4136         nl->var_name to it.
4137         (namelist_read): Increase size of nml_err_msg array to 200.  Pass
4138         sizeof nml_err_msg as extra argument to nml_get_obj_data.
4140 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4142         PR fortran/25829 28655
4143         * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
4144         and flags.status. (st_open): Initialize flags.async.
4145         * io/list_read.c (read_charactor): Use delim_status instead of
4146         flags.delim.
4147         * io/read.c (read_x): Use pad_status instead of flags.pad.
4148         * io/inquire.c (inquire_via_unit): Add new checks.
4149         (inquire_via_filename): Likewise.
4150         * io/io.h (st_parameter_inquire): Add new flags.
4151         (st_parameter_dt): Likewise.
4152         * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
4153         flags.async.
4154         * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
4155         pad_status instead of flags.pad. (read_block): Likewise.
4156         (data_transfer_init): Set flags.async and add checks.
4157         * io/write.c (write_character): Use delim_status.
4158         (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
4159         (namelist_write): Likewise.
4161 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4163         PR fortran/25829 28655
4164         * gfortran.map: Add new symbol, _gfortran_st_wait.
4165         * libgfortran.h (st_paramter_common): Add new I/O parameters.
4166         * open.c (st_option decimal_opt[], st_option encoding_opt[],
4167         st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
4168         parameter option arrays. (edit_modes): Add checks for new parameters.
4169         (new_unit): Likewise. (st_open): Likewise.
4170         * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
4171         (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
4172         (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
4173         * read.c (read_a): Use decimal status flag to allow comma in place of a
4174         decimal point. (read_f): Allow comma as acceptable character in float.
4175         According to decimal flag, substitute a period for a comma.
4176         (read_x): If decimal status flag is comma, disable the read_comma flag,
4177         not allowing comma as a delimiter, an extension otherwise.
4178         * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
4179         unit_async): New enumerators. Add all new I/O parameters.
4180         * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
4181         (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
4182         (fd_sfree): Use new enumerator. (fd_read): Likewise.
4183         (fd_write): Likewise. (fd_close): Fix whitespace.
4184         (fd_open): Use new enumertors. (tempfile, regular_file,
4185         open_external): Fix whitespace. (output_stream, error_stream): Set
4186         method. (stream_offset): Fix whitespace.
4187         * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
4188         option arrays.  (formatted_transfer_scalar): Set sf_read_comma flag
4189         based on new decimal_status flag. (data_transfer_init): Initialize new
4190         parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
4191         * format.c: (format_lex): Add format specifiers DP, DC, and D.
4192         (parse_format_list): Parse the new specifiers.
4193         * write.c (write_decimal): Use new sign enumerators to set the sign.
4194         (write_complex): Handle decimal comma and semi-colon separator.
4195         (nml_write_obj): Likewise.
4196         * write_float.def: Revise sign enumerators. (calculate_sign): Use new
4197         sign enumerators. (output_float): Likewise. Use new decimal_status flag
4198         to set the decimal character to a point or a comma.
4199         
4200 2008-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
4202         PR libfortran/32972
4203         PR libfortran/32512
4204         * Makefile.am:  Add new variable, i_spread_c, containing
4205         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
4206         spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
4207         spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
4208         * Makefile.in:  Regenerated.
4209         * libgfortran.h:  Add prototypes for spread_i1, spread_i2,
4210         spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
4211         spread_c4, spread_c8, spread_c10, spread_c16,
4212         spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
4213         spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
4214         spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
4215         spread_scalar_c10 and spread_scalar_c16.
4216         Add macros to isolate both type and size information
4217         from array descriptors with a single mask operation.
4218         * intrinsics/spread_generic.c:  Add calls to specific
4219         spread functions.
4220         * m4/spread.m4:  New file.
4221         * generated/spread_i1.c:  New file.
4222         * generated/spread_i2.c:  New file.
4223         * generated/spread_i4.c:  New file.
4224         * generated/spread_i8.c:  New file.
4225         * generated/spread_i16.c:  New file.
4226         * generated/spread_r4.c:  New file.
4227         * generated/spread_r8.c:  New file.
4228         * generated/spread_r10.c:  New file.
4229         * generated/spread_r16.c:  New file.
4230         * generated/spread_c4.c:  New file.
4231         * generated/spread_c8.c:  New file.
4232         * generated/spread_c10.c:  New file.
4233         * generated/spread_c16.c:  New file.
4235 2008-03-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4237         PR libfortran/35699
4238         * io/transfer.c (write_buf):  Don't pad the record, just return if the
4239         data is NULL.  (next_record_w): If there are bytes left in the record
4240         for unformatted direct I/O, pad out the record with zero bytes.
4242 2008-03-28  Tobias Burnus  <burnus@net-b.de>
4244         PR fortran/35721
4245         * intrinsics/associated.c (associated): Ignore different
4246         stride of pointer vs. target if only one element is referred.
4248 2008-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4250         * io/unix.c (fd_close):  Do not close STDIN.
4252 2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org
4254         PR libfortran/32972
4255         * Makefile.am:  Add new variable, i_unpack_c, containing
4256         unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
4257         unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
4258         unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
4259         and unpack_c16.c
4260         Add i_unpack_c to gfor_built_src.
4261         Add rule to generate i_unpack_c from m4/unpack.m4.
4262         * Makefile.in:  Regenerated.
4263         * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
4264         unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
4265         unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
4266         unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
4267         unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
4268         unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
4269         * intrinsics/pack_generic.c (unpack1):  Add calls to specific
4270         unpack1 functions.
4271         (unpack0):  Add calls to specific unpack0 functions.
4272         * m4/unpack.m4:  New file.
4273         * generated/unpack_i1.c:  New file.
4274         * generated/unpack_i2.c:  New file.
4275         * generated/unpack_i4.c:  New file.
4276         * generated/unpack_i8.c:  New file.
4277         * generated/unpack_i16.c:  New file.
4278         * generated/unpack_r4.c:  New file.
4279         * generated/unpack_r8.c:  New file.
4280         * generated/unpack_r10.c:  New file.
4281         * generated/unpack_r16.c:  New file.
4282         * generated/unpack_c4.c:  New file.
4283         * generated/unpack_c8.c:  New file.
4284         * generated/unpack_c10.c:  New file.
4285         * generated/unpack_c16.c:  New file.
4287 2008-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4289         PR libfortran/35632
4290         * io/transfer.c (data_transfer_init):  Fix whitespace.
4291         (next_record_w): Truncate the file only if the stream
4292         position is short of the file end.
4294 2008-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4296         * intrinsics/pack_generic.c:  Fix typo.
4298 2008-03-21  Janne Blomqvist  <jb@gcc.gnu.org>
4300         * gfortran.map: Move erfc_scaled symbols to new symbol node
4301         GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
4303 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
4305         PR libfortran/32972
4306         * runtime/in_pack_generic.c (internal_pack):  Call correct
4307         function, pack_i16, for GFC_INTEGER_16.
4309 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
4311         PR libfortran/32972
4312         * Makefile.am:  Add new variable, i_pack_c, containing
4313         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
4314         pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
4315         pack_c8.c, pack_c10.c, pack_c16.c.
4316         Add m4/pack.m4 to m4_files.
4317         Add i_pack_c to gfor_built_src.
4318         Add rule to generate i_pack_c from m4/pack.m4.
4319         * Makefile.in:  Regenerated.
4320         * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
4321         pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
4322         pack_c10, pack_c16.
4323         * intrinsics/pack_generic.c:  Add calls to specific
4324         pack functions.
4325         * m4/pack.m4:  New file.
4326         * generated/pack_i1.c:  New file.
4327         * generated/pack_i2.c:  New file.
4328         * generated/pack_i4.c:  New file.
4329         * generated/pack_i8.c:  New file.
4330         * generated/pack_i16.c:  New file.
4331         * generated/pack_r4.c:  New file.
4332         * generated/pack_r8.c:  New file.
4333         * generated/pack_r10.c:  New file.
4334         * generated/pack_r16.c:  New file.
4335         * generated/pack_c4.c:  New file.
4336         * generated/pack_c8.c:  New file.
4337         * generated/pack_c10.c:  New file.
4338         * generated/pack_c16.c:  New file.
4340 2008-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4342         PR libfortran/35627
4343         * io/list_read.c (free_line): Clear the line buffer enable flag and
4344         reset the index into line_buffer, aka item_count.
4345         (next_char): Cleanup whitespace.
4346         (read_logical): Use unget_char to assure that the first character of the
4347         bad logical is saved in case it is part of an object name. Remove the
4348         clearing of index and flag that is now in free_line.
4349         (read_real): Likewise.
4351 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
4353         PR libfortran/32972
4354         * runtime/in_pack_generic.c (internal_pack):  Fix typo in
4355         last commit.
4357 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
4359         PR libfortran/32972
4360         * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
4361         in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
4362         (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
4363         in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
4364         in_unpack_r16.c.
4365         * Makefile.in: Regenerate.
4366         * libgfortran.h:  Add prototypes for internal_pack_1,
4367         internal_pack_2, internal_pack_16, internal_pack_r4,
4368         internal_pack_r8, internal_pack_r10, internal_pack_r16,
4369         internal_pack_c10 and internal_pack_c16.  Add prototypes for
4370         internal_unpack_1, internal_unpack_2, internal_unpack_16,
4371         internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
4372         internal_unpack_r16, internal_unpack_c10 and
4373         internal_unpack_c16.
4374         * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
4375         of hardwired sizes.
4376         Add calls to internal_pack_1, internal_pack_2,
4377         internal_pack_16, internal_pack_r4, internal_pack_r8,
4378         internal_pack_r10, internal_pack_r16, internal_pack_c10 and
4379         internal_pack_c16.
4380         * runtime/in_unpack_generic.c (internal_unpack):  Use sizeof
4381         instead of hardwired sizes.
4382         Add calls to internal_unpack_1, internal_unpack_2,
4383         internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
4384         internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
4385         and internal_unpack_c16.
4386         * generated/in_pack_r4.c:  New file.
4387         * generated/in_pack_i2.c:  New file.
4388         * generated/in_unpack_i1.c:  New file.
4389         * generated/in_pack_r10.c:  New file.
4390         * generated/in_unpack_r4.c:  New file.
4391         * generated/in_unpack_i2.c:  New file.
4392         * generated/in_unpack_r16.c:  New file.
4393         * generated/in_pack_r8.c:  New file.
4394         * generated/in_unpack_r10.c:  New file.
4395         * generated/in_unpack_r8.c:  New file.
4396         * generated/in_pack_r16.c:  New file.
4397         * generated/in_pack_i1.c:  New file.
4399 2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4401         PR libfortran/35617
4402         * io/list_read.c (eat_separator): If next character after eatline is '!'
4403         then eatline again. 
4405 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4407         * aclocal.m4: Regenerate.
4408         * configure: Likewise.
4409         * Makefile.in: Likewise.
4411 2008-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4413         PR libfortran/35524
4414         * intrinsics/erfc_scaled_inc.c: Only define the long double
4415         variant of erfc_scaled if expl is available.
4417 2008-03-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4419         PR libfortran/32812
4420         * intrinsics/random.c (scramble_seed, unscramble_seed): New
4421         functions.
4422         (random_seed_i4): Scramble the seed the user gives us before
4423         storing it, and unscramble it when we return it back later.
4425 2008-03-05  Hans-Peter Nilsson  <hp@axis.com>
4427         PR libfortran/35293
4428         * io/unix.c (fd_truncate): Fold s->special_file case into
4429         success case of ftruncate/chsize call instead of the failure case.
4430         Make failure case actually return failure.  Properly update stream
4431         pointers on failure.  Call runtime_error for targets without
4432         neither ftruncate nor chsize where such a call would be needed.
4434 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4436         PR fortran/33197
4437         * intrinsics/erfc_scaled_inc.c: New file.
4438         * intrinsics/erfc_scaled.c: New file.
4439         * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
4440         * Makefile.am: Add intrinsics/erfc_scaled.c.
4441         * config.h.in: Regenerate.
4442         * configure: Regenerate.
4443         * Makefile.in: Regenerate.
4445 2008-03-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4447         PR libfortran/35355
4448         * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
4449         for mingw.
4451 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
4453         PR libfortran/35063
4454         * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
4455         instead of macro kludge.
4456         
4457 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
4459         PR fortran/29549
4460         * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
4461         libgfortran.
4462         * Makefile.in: Regenerated.
4464 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4466         * m4/ifunction_logical.m4: Add casts to get rid of warnings.
4467         * generated/all_l1.c: Regenerate.
4468         * generated/all_l2.c: Regenerate.
4469         * generated/all_l4.c: Regenerate.
4470         * generated/all_l8.c: Regenerate.
4471         * generated/all_l16.c: Regenerate.
4472         * generated/any_l1.c: Regenerate.
4473         * generated/any_l2.c: Regenerate.
4474         * generated/any_l4.c: Regenerate.
4475         * generated/any_l8.c: Regenerate.
4476         * generated/any_l16.c: Regenerate.
4477         * generated/count_1_l.c: Regenerate.
4478         * generated/count_2_l.c: Regenerate.
4479         * generated/count_4_l.c: Regenerate.
4480         * generated/count_8_l.c: Regenerate.
4481         * generated/count_16_l.c: Regenerate.
4483 2008-02-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4485         PR libfortran/32841
4486         * acinclude.m4: Don't use HAVE_MATH_H.
4487         * configure: Regenerate.
4489 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4491         PR libfortran/35132
4492         * io/transfer.c (next_record_w): Truncate after the last record for
4493         STREAM I/O.
4495         PR libfortran/34954
4496         * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
4498         PR libfortran/34974
4499         * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
4500         is less than zero. (next_record_w): Use sseek to position the file to
4501         the max position reached.
4503 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4505         PR libfortran/35036
4506         * write_float.def (output_float):  Add error checks for zero digits
4507         after decimal point in E and D format specifiers.
4508         
4509 2008-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4511         PR libfortran/35063
4512         * io/unit.c (destroy_unit_mutex): New function that uses
4513         __gthread_mutex_destroy_function or pthread_mutex_destroy after
4514         unlocking and before free_mem for final closure of I/O unit.
4515         (delete_root): Use new function.
4516         (free_internal_unit): Likewise.
4517         (close_unit_1): Likewise.
4519 2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
4521         PR libfortran/35001
4522         * m4/shape.m4:  Return 0 for extents <= 0.
4523         * generated/shape_i4.c:  Regenerated.
4524         * generated/shape_i8.c:  Regenerated.
4525         * generated/shape_i16.c:  Regenerated.
4527 2008-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
4529         PR libfortran/34980
4530         * m4/shape.m4:  If return array is empty, return early.
4531         * generated/shape_i4.c:  Regenerated.
4532         * generated/shape_i8.c:  Regenerated.
4533         * generated/shape_i16.c:  Regenerated.
4535 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
4537         PR libfofortran/34887
4538         * io/transfer.c (next_record_w): Always move to the farthest
4539         position when completing the record (also when we are
4540         processing a slash edit descriptor).
4542 2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4544         PR libfortran/34876
4545         * io/transfer.c (write_buf): Handle case of zero sized array.
4546         (transfer_array): Set data pointer to NULL and size to zero.  Then
4547         make a data transfer and return.
4548         
4549 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
4551         * configure: Regenerate.
4553 2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4555         PR libfortran/34795
4556         * io/inquire.c (inquire_via_unit): If a unit is opened, return values
4557         according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
4558         (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
4559         FORAMATTED, and UNFORMATTED inquiries.
4560         * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
4561         for files that are not opened. (inquire_direct): Same.
4562         (inquire_formatted): Same.
4563         
4564 2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
4566         PR libfortran/34782
4567         * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
4568         of the current max_pos or the newly calculated position.
4570 2008-01-18  Tobias Burnus  <burnus@net-b.de>
4572         * io/write.c (write_real): Increase default precision
4573         for REAL(16) by one.
4575 2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>
4577         PR libfortran/34669
4578         * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
4579         to avoid piping the -fdump-parse-tree output to the assembler
4580         when configuring with -pipe.
4581         * mk-sik-inc.sh: Likewise.
4582         * mk-srk-inc.sh: Likewise.
4584 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
4586         PR libfortran/34671
4587         * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
4588         _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
4589         _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
4590         _gfortran_count_8_l Removed _gfortran_count_16_l16,
4591         _gfortran_count_16_l4, _gfortran_count_16_l8,
4592         _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
4593         _gfortran_count_8_l16, _gfortran_count_8_l4 and
4594         _gfortran_count_8_l8.
4595         * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
4596         i_any_c.  Added generated/all_l1. and generated/all_l2.c to
4597         i_all_c.  Removed generated/count_4_l4.c, generated/count_8_l4.c,
4598         generated/count_16_l4.c, generated/count_4_l8.c,
4599         generated/count_8_l8.c, generated/count_16_l8.c,
4600         generated/count_4_l16.c, generated/count_8_l16.c, and
4601         generated/count_16_l16.c from i_count_c.  Added count_1_l.c,
4602         count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
4603         i_count_c.  I_M4_DEPS2 depends on ifunction_logical.m4, for
4604         any of the files generated from all.m4, any.m4 and count.m4.
4605         * Makefile.in:  Regenerated.
4606         * m4/ifunction_logical.m4:  New file.  Use
4607         GFC_LOGICAL_1 pointer for access to source arrays.
4608         * m4/any.m4:  Include ifunction_logical.m4 instead of
4609         ifunction.m4.  Don't check atype_name.
4610         * m4/all.m4:  Likewise.
4611         * m4/count.m4:  Likewise.
4612         * generated/any_l1.c:  New file.
4613         * generated/any_l2.c:  New file.
4614         * generated/all_l1.c:  New file.
4615         * generated/count_1_l.c:  New file.
4616         * generated/count_2_l.c:  New file.
4617         * generated/count_4_l.c:  New file.
4618         * generated/count_8_l.c:  New file.
4619         * generated/count_16_l.c:  New file.
4620         * generated/any_l4.c:  Regenerated.
4621         * generated/any_l8.c:  Regenerated.
4622         * generated/any_l16.c:  Regenerated.
4623         * generated/all_l4.c: Regenerated.
4624         * generated/all_l8.c: Regenerated.
4625         * generated/all_l16.c: Regenerated.
4626         * generated/count_4_l4.c:  Removed.
4627         * generated/count_4_l8.c:  Removed.
4628         * generated/count_4_l16.c:  Removed.
4629         * generated/count_8_l4.c:  Removed.
4630         * generated/count_8_l8.c:  Removed.
4631         * generated/count_8_l16.c:  Removed.
4632         * generated/count_16_l4.c:  Removed.
4633         * generated/count_16_l8.c:  Removed.
4634         * generated/count_16_l16.c:  Removed.
4636 2008-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
4638         PR libfortran/34746
4639         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Use %ld
4640         in printf format for all bounds checking; cast all
4641         integer-like arguments to runtime_error() to long int.
4642         (`m'name`'rtype_qual`_'atype_code):  Likewise.
4643         (`s'name`'rtype_qual`_'atype_code):  Likewise.
4644         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
4645         (`m'name`'rtype_qual`_'atype_code):  Likewise.
4646         (`s'name`'rtype_qual`_'atype_code):  Likewise.
4647         * generated/all_l16.c: Regenerated.
4648         * generated/all_l4.c: Regenerated.
4649         * generated/all_l8.c: Regenerated.
4650         * generated/any_l16.c: Regenerated.
4651         * generated/any_l4.c: Regenerated.
4652         * generated/any_l8.c: Regenerated.
4653         * generated/count_16_l16.c: Regenerated.
4654         * generated/count_16_l4.c: Regenerated.
4655         * generated/count_16_l8.c: Regenerated.
4656         * generated/count_4_l16.c: Regenerated.
4657         * generated/count_4_l4.c: Regenerated.
4658         * generated/count_4_l8.c: Regenerated.
4659         * generated/count_8_l16.c: Regenerated.
4660         * generated/count_8_l4.c: Regenerated.
4661         * generated/count_8_l8.c: Regenerated.
4662         * generated/maxloc0_16_i1.c: Regenerated.
4663         * generated/maxloc0_16_i16.c: Regenerated.
4664         * generated/maxloc0_16_i2.c: Regenerated.
4665         * generated/maxloc0_16_i4.c: Regenerated.
4666         * generated/maxloc0_16_i8.c: Regenerated.
4667         * generated/maxloc0_16_r10.c: Regenerated.
4668         * generated/maxloc0_16_r16.c: Regenerated.
4669         * generated/maxloc0_16_r4.c: Regenerated.
4670         * generated/maxloc0_16_r8.c: Regenerated.
4671         * generated/maxloc0_4_i1.c: Regenerated.
4672         * generated/maxloc0_4_i16.c: Regenerated.
4673         * generated/maxloc0_4_i2.c: Regenerated.
4674         * generated/maxloc0_4_i4.c: Regenerated.
4675         * generated/maxloc0_4_i8.c: Regenerated.
4676         * generated/maxloc0_4_r10.c: Regenerated.
4677         * generated/maxloc0_4_r16.c: Regenerated.
4678         * generated/maxloc0_4_r4.c: Regenerated.
4679         * generated/maxloc0_4_r8.c: Regenerated.
4680         * generated/maxloc0_8_i1.c: Regenerated.
4681         * generated/maxloc0_8_i16.c: Regenerated.
4682         * generated/maxloc0_8_i2.c: Regenerated.
4683         * generated/maxloc0_8_i4.c: Regenerated.
4684         * generated/maxloc0_8_i8.c: Regenerated.
4685         * generated/maxloc0_8_r10.c: Regenerated.
4686         * generated/maxloc0_8_r16.c: Regenerated.
4687         * generated/maxloc0_8_r4.c: Regenerated.
4688         * generated/maxloc0_8_r8.c: Regenerated.
4689         * generated/maxloc1_16_i1.c: Regenerated.
4690         * generated/maxloc1_16_i16.c: Regenerated.
4691         * generated/maxloc1_16_i2.c: Regenerated.
4692         * generated/maxloc1_16_i4.c: Regenerated.
4693         * generated/maxloc1_16_i8.c: Regenerated.
4694         * generated/maxloc1_16_r10.c: Regenerated.
4695         * generated/maxloc1_16_r16.c: Regenerated.
4696         * generated/maxloc1_16_r4.c: Regenerated.
4697         * generated/maxloc1_16_r8.c: Regenerated.
4698         * generated/maxloc1_4_i1.c: Regenerated.
4699         * generated/maxloc1_4_i16.c: Regenerated.
4700         * generated/maxloc1_4_i2.c: Regenerated.
4701         * generated/maxloc1_4_i4.c: Regenerated.
4702         * generated/maxloc1_4_i8.c: Regenerated.
4703         * generated/maxloc1_4_r10.c: Regenerated.
4704         * generated/maxloc1_4_r16.c: Regenerated.
4705         * generated/maxloc1_4_r4.c: Regenerated.
4706         * generated/maxloc1_4_r8.c: Regenerated.
4707         * generated/maxloc1_8_i1.c: Regenerated.
4708         * generated/maxloc1_8_i16.c: Regenerated.
4709         * generated/maxloc1_8_i2.c: Regenerated.
4710         * generated/maxloc1_8_i4.c: Regenerated.
4711         * generated/maxloc1_8_i8.c: Regenerated.
4712         * generated/maxloc1_8_r10.c: Regenerated.
4713         * generated/maxloc1_8_r16.c: Regenerated.
4714         * generated/maxloc1_8_r4.c: Regenerated.
4715         * generated/maxloc1_8_r8.c: Regenerated.
4716         * generated/maxval_i1.c: Regenerated.
4717         * generated/maxval_i16.c: Regenerated.
4718         * generated/maxval_i2.c: Regenerated.
4719         * generated/maxval_i4.c: Regenerated.
4720         * generated/maxval_i8.c: Regenerated.
4721         * generated/maxval_r10.c: Regenerated.
4722         * generated/maxval_r16.c: Regenerated.
4723         * generated/maxval_r4.c: Regenerated.
4724         * generated/maxval_r8.c: Regenerated.
4725         * generated/minloc0_16_i1.c: Regenerated.
4726         * generated/minloc0_16_i16.c: Regenerated.
4727         * generated/minloc0_16_i2.c: Regenerated.
4728         * generated/minloc0_16_i4.c: Regenerated.
4729         * generated/minloc0_16_i8.c: Regenerated.
4730         * generated/minloc0_16_r10.c: Regenerated.
4731         * generated/minloc0_16_r16.c: Regenerated.
4732         * generated/minloc0_16_r4.c: Regenerated.
4733         * generated/minloc0_16_r8.c: Regenerated.
4734         * generated/minloc0_4_i1.c: Regenerated.
4735         * generated/minloc0_4_i16.c: Regenerated.
4736         * generated/minloc0_4_i2.c: Regenerated.
4737         * generated/minloc0_4_i4.c: Regenerated.
4738         * generated/minloc0_4_i8.c: Regenerated.
4739         * generated/minloc0_4_r10.c: Regenerated.
4740         * generated/minloc0_4_r16.c: Regenerated.
4741         * generated/minloc0_4_r4.c: Regenerated.
4742         * generated/minloc0_4_r8.c: Regenerated.
4743         * generated/minloc0_8_i1.c: Regenerated.
4744         * generated/minloc0_8_i16.c: Regenerated.
4745         * generated/minloc0_8_i2.c: Regenerated.
4746         * generated/minloc0_8_i4.c: Regenerated.
4747         * generated/minloc0_8_i8.c: Regenerated.
4748         * generated/minloc0_8_r10.c: Regenerated.
4749         * generated/minloc0_8_r16.c: Regenerated.
4750         * generated/minloc0_8_r4.c: Regenerated.
4751         * generated/minloc0_8_r8.c: Regenerated.
4752         * generated/minloc1_16_i1.c: Regenerated.
4753         * generated/minloc1_16_i16.c: Regenerated.
4754         * generated/minloc1_16_i2.c: Regenerated.
4755         * generated/minloc1_16_i4.c: Regenerated.
4756         * generated/minloc1_16_i8.c: Regenerated.
4757         * generated/minloc1_16_r10.c: Regenerated.
4758         * generated/minloc1_16_r16.c: Regenerated.
4759         * generated/minloc1_16_r4.c: Regenerated.
4760         * generated/minloc1_16_r8.c: Regenerated.
4761         * generated/minloc1_4_i1.c: Regenerated.
4762         * generated/minloc1_4_i16.c: Regenerated.
4763         * generated/minloc1_4_i2.c: Regenerated.
4764         * generated/minloc1_4_i4.c: Regenerated.
4765         * generated/minloc1_4_i8.c: Regenerated.
4766         * generated/minloc1_4_r10.c: Regenerated.
4767         * generated/minloc1_4_r16.c: Regenerated.
4768         * generated/minloc1_4_r4.c: Regenerated.
4769         * generated/minloc1_4_r8.c: Regenerated.
4770         * generated/minloc1_8_i1.c: Regenerated.
4771         * generated/minloc1_8_i16.c: Regenerated.
4772         * generated/minloc1_8_i2.c: Regenerated.
4773         * generated/minloc1_8_i4.c: Regenerated.
4774         * generated/minloc1_8_i8.c: Regenerated.
4775         * generated/minloc1_8_r10.c: Regenerated.
4776         * generated/minloc1_8_r16.c: Regenerated.
4777         * generated/minloc1_8_r4.c: Regenerated.
4778         * generated/minloc1_8_r8.c: Regenerated.
4779         * generated/minval_i1.c: Regenerated.
4780         * generated/minval_i16.c: Regenerated.
4781         * generated/minval_i2.c: Regenerated.
4782         * generated/minval_i4.c: Regenerated.
4783         * generated/minval_i8.c: Regenerated.
4784         * generated/minval_r10.c: Regenerated.
4785         * generated/minval_r16.c: Regenerated.
4786         * generated/minval_r4.c: Regenerated.
4787         * generated/minval_r8.c: Regenerated.
4788         * generated/product_c10.c: Regenerated.
4789         * generated/product_c16.c: Regenerated.
4790         * generated/product_c4.c: Regenerated.
4791         * generated/product_c8.c: Regenerated.
4792         * generated/product_i1.c: Regenerated.
4793         * generated/product_i16.c: Regenerated.
4794         * generated/product_i2.c: Regenerated.
4795         * generated/product_i4.c: Regenerated.
4796         * generated/product_i8.c: Regenerated.
4797         * generated/product_r10.c: Regenerated.
4798         * generated/product_r16.c: Regenerated.
4799         * generated/product_r4.c: Regenerated.
4800         * generated/product_r8.c: Regenerated.
4801         * generated/sum_c10.c: Regenerated.
4802         * generated/sum_c16.c: Regenerated.
4803         * generated/sum_c4.c: Regenerated.
4804         * generated/sum_c8.c: Regenerated.
4805         * generated/sum_i1.c: Regenerated.
4806         * generated/sum_i16.c: Regenerated.
4807         * generated/sum_i2.c: Regenerated.
4808         * generated/sum_i4.c: Regenerated.
4809         * generated/sum_i8.c: Regenerated.
4810         * generated/sum_r10.c: Regenerated.
4811         * generated/sum_r16.c: Regenerated.
4812         * generated/sum_r4.c: Regenerated.
4813         * generated/sum_r8.c: Regenerated.
4815 2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
4817         PR libfortran/34670
4818         * m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
4819         (u_name):  New macro for the upper case name of the intrinsic.
4820         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
4821         bounds checking and rank check, depending on
4822         compile_options.bounds_check.
4823         (`m'name`'rtype_qual`_'atype_code):  Likewise.
4824         (`s'name`'rtype_qual`_'atype_code):  Likewise.
4825         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
4826         bounds checking and rank check, depending on
4827         compile_options.bounds_check.
4828         (`m'name`'rtype_qual`_'atype_code):  Likewise.
4829         (`s'name`'rtype_qual`_'atype_code):  Likewise.
4830         * generated/all_l16.c: Regenerated.
4831         * generated/all_l4.c: Regenerated.
4832         * generated/all_l8.c: Regenerated.
4833         * generated/any_l16.c: Regenerated.
4834         * generated/any_l4.c: Regenerated.
4835         * generated/any_l8.c: Regenerated.
4836         * generated/count_16_l16.c: Regenerated.
4837         * generated/count_16_l4.c: Regenerated.
4838         * generated/count_16_l8.c: Regenerated.
4839         * generated/count_4_l16.c: Regenerated.
4840         * generated/count_4_l4.c: Regenerated.
4841         * generated/count_4_l8.c: Regenerated.
4842         * generated/count_8_l16.c: Regenerated.
4843         * generated/count_8_l4.c: Regenerated.
4844         * generated/count_8_l8.c: Regenerated.
4845         * generated/maxloc0_16_i1.c: Regenerated.
4846         * generated/maxloc0_16_i16.c: Regenerated.
4847         * generated/maxloc0_16_i2.c: Regenerated.
4848         * generated/maxloc0_16_i4.c: Regenerated.
4849         * generated/maxloc0_16_i8.c: Regenerated.
4850         * generated/maxloc0_16_r10.c: Regenerated.
4851         * generated/maxloc0_16_r16.c: Regenerated.
4852         * generated/maxloc0_16_r4.c: Regenerated.
4853         * generated/maxloc0_16_r8.c: Regenerated.
4854         * generated/maxloc0_4_i1.c: Regenerated.
4855         * generated/maxloc0_4_i16.c: Regenerated.
4856         * generated/maxloc0_4_i2.c: Regenerated.
4857         * generated/maxloc0_4_i4.c: Regenerated.
4858         * generated/maxloc0_4_i8.c: Regenerated.
4859         * generated/maxloc0_4_r10.c: Regenerated.
4860         * generated/maxloc0_4_r16.c: Regenerated.
4861         * generated/maxloc0_4_r4.c: Regenerated.
4862         * generated/maxloc0_4_r8.c: Regenerated.
4863         * generated/maxloc0_8_i1.c: Regenerated.
4864         * generated/maxloc0_8_i16.c: Regenerated.
4865         * generated/maxloc0_8_i2.c: Regenerated.
4866         * generated/maxloc0_8_i4.c: Regenerated.
4867         * generated/maxloc0_8_i8.c: Regenerated.
4868         * generated/maxloc0_8_r10.c: Regenerated.
4869         * generated/maxloc0_8_r16.c: Regenerated.
4870         * generated/maxloc0_8_r4.c: Regenerated.
4871         * generated/maxloc0_8_r8.c: Regenerated.
4872         * generated/maxloc1_16_i1.c: Regenerated.
4873         * generated/maxloc1_16_i16.c: Regenerated.
4874         * generated/maxloc1_16_i2.c: Regenerated.
4875         * generated/maxloc1_16_i4.c: Regenerated.
4876         * generated/maxloc1_16_i8.c: Regenerated.
4877         * generated/maxloc1_16_r10.c: Regenerated.
4878         * generated/maxloc1_16_r16.c: Regenerated.
4879         * generated/maxloc1_16_r4.c: Regenerated.
4880         * generated/maxloc1_16_r8.c: Regenerated.
4881         * generated/maxloc1_4_i1.c: Regenerated.
4882         * generated/maxloc1_4_i16.c: Regenerated.
4883         * generated/maxloc1_4_i2.c: Regenerated.
4884         * generated/maxloc1_4_i4.c: Regenerated.
4885         * generated/maxloc1_4_i8.c: Regenerated.
4886         * generated/maxloc1_4_r10.c: Regenerated.
4887         * generated/maxloc1_4_r16.c: Regenerated.
4888         * generated/maxloc1_4_r4.c: Regenerated.
4889         * generated/maxloc1_4_r8.c: Regenerated.
4890         * generated/maxloc1_8_i1.c: Regenerated.
4891         * generated/maxloc1_8_i16.c: Regenerated.
4892         * generated/maxloc1_8_i2.c: Regenerated.
4893         * generated/maxloc1_8_i4.c: Regenerated.
4894         * generated/maxloc1_8_i8.c: Regenerated.
4895         * generated/maxloc1_8_r10.c: Regenerated.
4896         * generated/maxloc1_8_r16.c: Regenerated.
4897         * generated/maxloc1_8_r4.c: Regenerated.
4898         * generated/maxloc1_8_r8.c: Regenerated.
4899         * generated/maxval_i1.c: Regenerated.
4900         * generated/maxval_i16.c: Regenerated.
4901         * generated/maxval_i2.c: Regenerated.
4902         * generated/maxval_i4.c: Regenerated.
4903         * generated/maxval_i8.c: Regenerated.
4904         * generated/maxval_r10.c: Regenerated.
4905         * generated/maxval_r16.c: Regenerated.
4906         * generated/maxval_r4.c: Regenerated.
4907         * generated/maxval_r8.c: Regenerated.
4908         * generated/minloc0_16_i1.c: Regenerated.
4909         * generated/minloc0_16_i16.c: Regenerated.
4910         * generated/minloc0_16_i2.c: Regenerated.
4911         * generated/minloc0_16_i4.c: Regenerated.
4912         * generated/minloc0_16_i8.c: Regenerated.
4913         * generated/minloc0_16_r10.c: Regenerated.
4914         * generated/minloc0_16_r16.c: Regenerated.
4915         * generated/minloc0_16_r4.c: Regenerated.
4916         * generated/minloc0_16_r8.c: Regenerated.
4917         * generated/minloc0_4_i1.c: Regenerated.
4918         * generated/minloc0_4_i16.c: Regenerated.
4919         * generated/minloc0_4_i2.c: Regenerated.
4920         * generated/minloc0_4_i4.c: Regenerated.
4921         * generated/minloc0_4_i8.c: Regenerated.
4922         * generated/minloc0_4_r10.c: Regenerated.
4923         * generated/minloc0_4_r16.c: Regenerated.
4924         * generated/minloc0_4_r4.c: Regenerated.
4925         * generated/minloc0_4_r8.c: Regenerated.
4926         * generated/minloc0_8_i1.c: Regenerated.
4927         * generated/minloc0_8_i16.c: Regenerated.
4928         * generated/minloc0_8_i2.c: Regenerated.
4929         * generated/minloc0_8_i4.c: Regenerated.
4930         * generated/minloc0_8_i8.c: Regenerated.
4931         * generated/minloc0_8_r10.c: Regenerated.
4932         * generated/minloc0_8_r16.c: Regenerated.
4933         * generated/minloc0_8_r4.c: Regenerated.
4934         * generated/minloc0_8_r8.c: Regenerated.
4935         * generated/minloc1_16_i1.c: Regenerated.
4936         * generated/minloc1_16_i16.c: Regenerated.
4937         * generated/minloc1_16_i2.c: Regenerated.
4938         * generated/minloc1_16_i4.c: Regenerated.
4939         * generated/minloc1_16_i8.c: Regenerated.
4940         * generated/minloc1_16_r10.c: Regenerated.
4941         * generated/minloc1_16_r16.c: Regenerated.
4942         * generated/minloc1_16_r4.c: Regenerated.
4943         * generated/minloc1_16_r8.c: Regenerated.
4944         * generated/minloc1_4_i1.c: Regenerated.
4945         * generated/minloc1_4_i16.c: Regenerated.
4946         * generated/minloc1_4_i2.c: Regenerated.
4947         * generated/minloc1_4_i4.c: Regenerated.
4948         * generated/minloc1_4_i8.c: Regenerated.
4949         * generated/minloc1_4_r10.c: Regenerated.
4950         * generated/minloc1_4_r16.c: Regenerated.
4951         * generated/minloc1_4_r4.c: Regenerated.
4952         * generated/minloc1_4_r8.c: Regenerated.
4953         * generated/minloc1_8_i1.c: Regenerated.
4954         * generated/minloc1_8_i16.c: Regenerated.
4955         * generated/minloc1_8_i2.c: Regenerated.
4956         * generated/minloc1_8_i4.c: Regenerated.
4957         * generated/minloc1_8_i8.c: Regenerated.
4958         * generated/minloc1_8_r10.c: Regenerated.
4959         * generated/minloc1_8_r16.c: Regenerated.
4960         * generated/minloc1_8_r4.c: Regenerated.
4961         * generated/minloc1_8_r8.c: Regenerated.
4962         * generated/minval_i1.c: Regenerated.
4963         * generated/minval_i16.c: Regenerated.
4964         * generated/minval_i2.c: Regenerated.
4965         * generated/minval_i4.c: Regenerated.
4966         * generated/minval_i8.c: Regenerated.
4967         * generated/minval_r10.c: Regenerated.
4968         * generated/minval_r16.c: Regenerated.
4969         * generated/minval_r4.c: Regenerated.
4970         * generated/minval_r8.c: Regenerated.
4971         * generated/product_c10.c: Regenerated.
4972         * generated/product_c16.c: Regenerated.
4973         * generated/product_c4.c: Regenerated.
4974         * generated/product_c8.c: Regenerated.
4975         * generated/product_i1.c: Regenerated.
4976         * generated/product_i16.c: Regenerated.
4977         * generated/product_i2.c: Regenerated.
4978         * generated/product_i4.c: Regenerated.
4979         * generated/product_i8.c: Regenerated.
4980         * generated/product_r10.c: Regenerated.
4981         * generated/product_r16.c: Regenerated.
4982         * generated/product_r4.c: Regenerated.
4983         * generated/product_r8.c: Regenerated.
4984         * generated/sum_c10.c: Regenerated.
4985         * generated/sum_c16.c: Regenerated.
4986         * generated/sum_c4.c: Regenerated.
4987         * generated/sum_c8.c: Regenerated.
4988         * generated/sum_i1.c: Regenerated.
4989         * generated/sum_i16.c: Regenerated.
4990         * generated/sum_i2.c: Regenerated.
4991         * generated/sum_i4.c: Regenerated.
4992         * generated/sum_i8.c: Regenerated.
4993         * generated/sum_r10.c: Regenerated.
4994         * generated/sum_r16.c: Regenerated.
4995         * generated/sum_r4.c: Regenerated.
4996         * generated/sum_r8.c: Regenerated.
4998 2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
5000         PR libfortran/34676
5001         * io/list_read.c (next_char): Only save the EOF condition for later if
5002         advance="no".
5004 2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
5006         PR libfortran/34565
5007         * io/io.h:  Adjust protoypes for open_internal(),
5008         next_array_record() and init_loop_spec().
5009         * io/list_read.c (next_char):  Use argument "finished"
5010         of next_array_record to check for end on internal file.
5011         * io/unit.c:  Calculate the offset for an array
5012         internal file and supply this informatin to open_internal().
5013         * io/unix.c (open_internal):  Set the offset for the internal
5014         file on open.
5015         * io/transfer.c (init_loop_spec):  Calculate the starting
5016         record in case of negative strides.  Return size of 0 for
5017         an empty array.
5018         (next_array_record):  Use an extra flag to signal that the
5019         array is finished.
5020         (next_record_r):  Use the new flag to next_array_record().
5021         (next_record_w):  Likewise.