* xcoffout.h (xcoffout_source_line): Update prototype.
[official-gcc.git] / libgfortran / ChangeLog
blobc1204932abea0f80eccf3114e607ed414bb99d01
1 2009-06-04  Janne Blomqvist  <jb@gcc.gnu.org>
3         PR libfortran/40330
4         * io/format.c (free_format_hash_table): Also free and nullify hash key.
5         (save_parsed_format): Copy string rather than pointer copy.
6         
7 2009-05-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9         PR fortran/40019
10         * intrinsics/bit_intrinsics.c: New file.
11         * gfortran.map (GFORTRAN_1.2): New list.
12         * Makefile.am: Add intrinsics/bit_intrinsics.c.
13         * Makefile.in: Regenerate.
15 2009-05-29  Janne Blomqvist  <jb@gcc.gnu.org>
17         PR libfortran/40190
18         * configure.ac: Check for localtime_r and gmtime_r.
19         * intrinsics/date_and_time.c: Add fallback implementations for
20         localtime_r and gmtime_r.
21         (date_and_time): Change to use localtime_r and gmtime_r instead of
22         localtime and gmtime, respectively.
23         (itime0): Use localtime_r instead of localtime.
24         (ltime_0): Likewise.
25         (gmtime_0): Use gmtime_r instead of gmtime.
26         * config.h.in: Regenerated
27         * configure: Regenerated.
29 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
31         PR fortran/39178
32         * runtime/main.c (store_exe_path): Remove static attribute.
33         * libgfortran.h: Add back store_exe_path prototype.
35 2009-05-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
37         PR libfortran/40187
38         * intrinsics/iso_c_binding.c (c_f_pointer_u0):  Take care
39         of stride in "shape" argument.
41 2009-05-26  Tobias Burnus  <burnus@net-b.de>
43         PR fortran/39178
44         * runtime/main.c (store_exe_path): Make static
45         and multiple-times callable.
46         (set_args): Call store_exe_path.
47         * libgfortran.h: Remove store_exe_path prototype.
48         * fmain.c (main): Remove store_exe_path call.
50 2009-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
52         PR libfortran/37754
53         * io/write_float.def: Simplify format calculation.
54         
55 2009-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
57         PR fortran/22423
58         * io/transfer.c (read_block_direct): Avoid warning.
59         * runtime/string.c (compare0): Avoid warning.
61 2009-04-30  Janne Blomqvist  <jb@gcc.gnu.org>
63         PR libfortran/39667
64         * io/file_pos.c (st_rewind): Don't truncate or flush.
65         * io/intrinsics.c (fgetc): Flush if switching mode.
66         (fputc): Likewise.
68 2009-04-18  Janne Blomqvist  <jb@gcc.gnu.org>
70         PR libfortran/39782
71         * io/transfer.c (data_transfer_init): Don't flush before seek.
72         (finalize_transfer): Remove extra flush.
74 2009-04-17  Janne Blomqvist  <jb@gcc.gnu.org>
76         * io/io.h (is_preconnected): Remove prototype.
77         * io/unix.c (is_preconnected): Remove function.
79 2009-04-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
81         * configure.ac: Test for -ffunction-sections -fdata-sections and
82         set SECTION_FLAGS accordingly.
83         * configure: Regenerate.
85         * Makefile.am: Add SECTION_FLAGS to AM_CFLAGS.
86         * Makefile.in: Regenerate.
88 2009-04-15  Janne Blomqvist  <jb@gcc.gnu.org>
90         PR libfortran/38668
91         * io/transfer.c (finalize_transfer): Don't flush for advance='no'.
93 2009-04-15 Danny Smith  <dannysmith@clear.net.nz>
95         * io/write.c (itoa) : Rename back to gfc_itoa.
96         (write_i): Adjust call to write_decimal.
97         (write_integer):  Use gfc_itoa.
99 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
101         * io/io.h (move_pos_offset): Remove prototype.
102         * io/transfer.c (formatted_transfer_scalar_read): Use sseek
103         instead of move_pos_offset.
104         * io/unix.c (move_pos_offset): Remove.
106 2009-04-10  Janne Blomqvist  <jb@gcc.gnu.org>
108         PR libfortran/39665 libfortran/39702 libfortran/39709
109         * io/io.h (st_parameter_dt): Revert aligned attribute from u.p.value.
110         * io/list_read.c (read_complex): Read directly into user pointer.
111         (read_real): Likewise.
112         (list_formatted_read_scalar): Update read_complex and read_real calls.
113         (nml_read_obj): Read directly into user pointer.
115 2009-04-09  Janne Blomqvist  <jb@gcc.gnu.org>
117         PR libfortran/39665
118         * io/io.h (st_parameter_dt): Add aligned attribute to u.p.value.
119         * io/read.c (convert_real): Add note about alignment requirements.
121 2009-04-09  Nick Clifton  <nickc@redhat.com>
123         * m4/cshift0.m4: Change copyright header to refer to version 3
124         of the GNU General Public License with version 3.1 of the GCC
125         Runtime Library Exception and to point readers at the COPYING3
126         and COPYING3.RUNTIME files and the FSF's license web page.
127         * c99_protos.h: Likewise.
128         * config/fpu-387.h: Likewise.
129         * config/fpu-aix.h: Likewise.
130         * config/fpu-generic.h: Likewise.
131         * config/fpu-glibc.h: Likewise.
132         * config/fpu-sysv.h: Likewise.
133         * intrinsics/abort.c: Likewise.
134         * intrinsics/access.c: Likewise.
135         * intrinsics/args.c: Likewise.
136         * intrinsics/associated.c: Likewise.
137         * intrinsics/c99_functions.c: Likewise.
138         * intrinsics/chdir.c: Likewise.
139         * intrinsics/chmod.c: Likewise.
140         * intrinsics/clock.c: Likewise.
141         * intrinsics/cpu_time.c: Likewise.
142         * intrinsics/cshift0.c: Likewise.
143         * intrinsics/ctime.c: Likewise.
144         * intrinsics/date_and_time.c: Likewise.
145         * intrinsics/dprod_r8.f90: Likewise.
146         * intrinsics/dtime.c: Likewise.
147         * intrinsics/env.c: Likewise.
148         * intrinsics/eoshift0.c: Likewise.
149         * intrinsics/eoshift2.c: Likewise.
150         * intrinsics/erfc_scaled.c: Likewise.
151         * intrinsics/erfc_scaled_inc.c: Likewise.
152         * intrinsics/etime.c: Likewise.
153         * intrinsics/exit.c: Likewise.
154         * intrinsics/f2c_specifics.F90: Likewise.
155         * intrinsics/fnum.c: Likewise.
156         * intrinsics/gerror.c: Likewise.
157         * intrinsics/getXid.c: Likewise.
158         * intrinsics/getcwd.c: Likewise.
159         * intrinsics/getlog.c: Likewise.
160         * intrinsics/hostnm.c: Likewise.
161         * intrinsics/ierrno.c: Likewise.
162         * intrinsics/ishftc.c: Likewise.
163         * intrinsics/iso_c_binding.c: Likewise.
164         * intrinsics/iso_c_binding.h: Likewise.
165         * intrinsics/iso_c_generated_procs.c: Likewise.
166         * intrinsics/kill.c: Likewise.
167         * intrinsics/link.c: Likewise.
168         * intrinsics/malloc.c: Likewise.
169         * intrinsics/move_alloc.c: Likewise.
170         * intrinsics/mvbits.c: Likewise.
171         * intrinsics/pack_generic.c: Likewise.
172         * intrinsics/perror.c: Likewise.
173         * intrinsics/rand.c: Likewise.
174         * intrinsics/random.c: Likewise.
175         * intrinsics/rename.c: Likewise.
176         * intrinsics/reshape_generic.c: Likewise.
177         * intrinsics/reshape_packed.c: Likewise.
178         * intrinsics/selected_char_kind.c: Likewise.
179         * intrinsics/selected_int_kind.f90: Likewise.
180         * intrinsics/selected_real_kind.f90: Likewise.
181         * intrinsics/signal.c: Likewise.
182         * intrinsics/size.c: Likewise.
183         * intrinsics/sleep.c: Likewise.
184         * intrinsics/spread_generic.c: Likewise.
185         * intrinsics/stat.c: Likewise.
186         * intrinsics/string_intrinsics.c: Likewise.
187         * intrinsics/string_intrinsics_inc.c: Likewise.
188         * intrinsics/symlnk.c: Likewise.
189         * intrinsics/system.c: Likewise.
190         * intrinsics/system_clock.c: Likewise.
191         * intrinsics/time.c: Likewise.
192         * intrinsics/time_1.h: Likewise.
193         * intrinsics/transpose_generic.c: Likewise.
194         * intrinsics/umask.c: Likewise.
195         * intrinsics/unlink.c: Likewise.
196         * intrinsics/unpack_generic.c: Likewise.
197         * io/close.c: Likewise.
198         * io/fbuf.c: Likewise.
199         * io/file_pos.c: Likewise.
200         * io/format.c: Likewise.
201         * io/inquire.c: Likewise.
202         * io/intrinsics.c: Likewise.
203         * io/io.h: Likewise.
204         * io/list_read.c: Likewise.
205         * io/lock.c: Likewise.
206         * io/open.c: Likewise.
207         * io/read.c: Likewise.
208         * io/size_from_kind.c: Likewise.
209         * io/transfer.c: Likewise.
210         * io/unit.c: Likewise.
211         * io/unix.c: Likewise.
212         * io/write.c: Likewise.
213         * io/write_float.def: Likewise.
214         * libgfortran.h: Likewise.
215         * m4/all.m4: Likewise.
216         * m4/any.m4: Likewise.
217         * m4/count.m4: Likewise.
218         * m4/cshift1.m4: Likewise.
219         * m4/eoshift1.m4: Likewise.
220         * m4/eoshift3.m4: Likewise.
221         * m4/exponent.m4: Likewise.
222         * m4/fraction.m4: Likewise.
223         * m4/head.m4: Likewise.
224         * m4/in_pack.m4: Likewise.
225         * m4/in_unpack.m4: Likewise.
226         * m4/matmul.m4: Likewise.
227         * m4/matmull.m4: Likewise.
228         * m4/maxloc0.m4: Likewise.
229         * m4/maxloc1.m4: Likewise.
230         * m4/maxval.m4: Likewise.
231         * m4/minloc0.m4: Likewise.
232         * m4/minloc1.m4: Likewise.
233         * m4/minval.m4: Likewise.
234         * m4/nearest.m4: Likewise.
235         * m4/pack.m4: Likewise.
236         * m4/pow.m4: Likewise.
237         * m4/product.m4: Likewise.
238         * m4/reshape.m4: Likewise.
239         * m4/rrspacing.m4: Likewise.
240         * m4/set_exponent.m4: Likewise.
241         * m4/shape.m4: Likewise.
242         * m4/spacing.m4: Likewise.
243         * m4/spread.m4: Likewise.
244         * m4/sum.m4: Likewise.
245         * m4/transpose.m4: Likewise.
246         * m4/unpack.m4: Likewise.
247         * runtime/backtrace.c: Likewise.
248         * runtime/compile_options.c: Likewise.
249         * runtime/convert_char.c: Likewise.
250         * runtime/environ.c: Likewise.
251         * runtime/error.c: Likewise.
252         * runtime/in_pack_generic.c: Likewise.
253         * runtime/in_unpack_generic.c: Likewise.
254         * runtime/main.c: Likewise.
255         * runtime/memory.c: Likewise.
256         * runtime/pause.c: Likewise.
257         * runtime/select.c: Likewise.
258         * runtime/select_inc.c: Likewise.
259         * runtime/stop.c: Likewise.
260         * runtime/string.c: Likewise.
261         * generated/_abs_c10.F90: Regenerate.
262         * generated/_abs_c16.F90: Regenerate.
263         * generated/_abs_c4.F90: Regenerate.
264         * generated/_abs_c8.F90: Regenerate.
265         * generated/_abs_i16.F90: Regenerate.
266         * generated/_abs_i4.F90: Regenerate.
267         * generated/_abs_i8.F90: Regenerate.
268         * generated/_abs_r10.F90: Regenerate.
269         * generated/_abs_r16.F90: Regenerate.
270         * generated/_abs_r4.F90: Regenerate.
271         * generated/_abs_r8.F90: Regenerate.
272         * generated/_acos_r10.F90: Regenerate.
273         * generated/_acos_r16.F90: Regenerate.
274         * generated/_acos_r4.F90: Regenerate.
275         * generated/_acos_r8.F90: Regenerate.
276         * generated/_acosh_r10.F90: Regenerate.
277         * generated/_acosh_r16.F90: Regenerate.
278         * generated/_acosh_r4.F90: Regenerate.
279         * generated/_acosh_r8.F90: Regenerate.
280         * generated/_aimag_c10.F90: Regenerate.
281         * generated/_aimag_c16.F90: Regenerate.
282         * generated/_aimag_c4.F90: Regenerate.
283         * generated/_aimag_c8.F90: Regenerate.
284         * generated/_aint_r10.F90: Regenerate.
285         * generated/_aint_r16.F90: Regenerate.
286         * generated/_aint_r4.F90: Regenerate.
287         * generated/_aint_r8.F90: Regenerate.
288         * generated/_anint_r10.F90: Regenerate.
289         * generated/_anint_r16.F90: Regenerate.
290         * generated/_anint_r4.F90: Regenerate.
291         * generated/_anint_r8.F90: Regenerate.
292         * generated/_asin_r10.F90: Regenerate.
293         * generated/_asin_r16.F90: Regenerate.
294         * generated/_asin_r4.F90: Regenerate.
295         * generated/_asin_r8.F90: Regenerate.
296         * generated/_asinh_r10.F90: Regenerate.
297         * generated/_asinh_r16.F90: Regenerate.
298         * generated/_asinh_r4.F90: Regenerate.
299         * generated/_asinh_r8.F90: Regenerate.
300         * generated/_atan2_r10.F90: Regenerate.
301         * generated/_atan2_r16.F90: Regenerate.
302         * generated/_atan2_r4.F90: Regenerate.
303         * generated/_atan2_r8.F90: Regenerate.
304         * generated/_atan_r10.F90: Regenerate.
305         * generated/_atan_r16.F90: Regenerate.
306         * generated/_atan_r4.F90: Regenerate.
307         * generated/_atan_r8.F90: Regenerate.
308         * generated/_atanh_r10.F90: Regenerate.
309         * generated/_atanh_r16.F90: Regenerate.
310         * generated/_atanh_r4.F90: Regenerate.
311         * generated/_atanh_r8.F90: Regenerate.
312         * generated/_conjg_c10.F90: Regenerate.
313         * generated/_conjg_c16.F90: Regenerate.
314         * generated/_conjg_c4.F90: Regenerate.
315         * generated/_conjg_c8.F90: Regenerate.
316         * generated/_cos_c10.F90: Regenerate.
317         * generated/_cos_c16.F90: Regenerate.
318         * generated/_cos_c4.F90: Regenerate.
319         * generated/_cos_c8.F90: Regenerate.
320         * generated/_cos_r10.F90: Regenerate.
321         * generated/_cos_r16.F90: Regenerate.
322         * generated/_cos_r4.F90: Regenerate.
323         * generated/_cos_r8.F90: Regenerate.
324         * generated/_cosh_r10.F90: Regenerate.
325         * generated/_cosh_r16.F90: Regenerate.
326         * generated/_cosh_r4.F90: Regenerate.
327         * generated/_cosh_r8.F90: Regenerate.
328         * generated/_dim_i16.F90: Regenerate.
329         * generated/_dim_i4.F90: Regenerate.
330         * generated/_dim_i8.F90: Regenerate.
331         * generated/_dim_r10.F90: Regenerate.
332         * generated/_dim_r16.F90: Regenerate.
333         * generated/_dim_r4.F90: Regenerate.
334         * generated/_dim_r8.F90: Regenerate.
335         * generated/_exp_c10.F90: Regenerate.
336         * generated/_exp_c16.F90: Regenerate.
337         * generated/_exp_c4.F90: Regenerate.
338         * generated/_exp_c8.F90: Regenerate.
339         * generated/_exp_r10.F90: Regenerate.
340         * generated/_exp_r16.F90: Regenerate.
341         * generated/_exp_r4.F90: Regenerate.
342         * generated/_exp_r8.F90: Regenerate.
343         * generated/_log10_r10.F90: Regenerate.
344         * generated/_log10_r16.F90: Regenerate.
345         * generated/_log10_r4.F90: Regenerate.
346         * generated/_log10_r8.F90: Regenerate.
347         * generated/_log_c10.F90: Regenerate.
348         * generated/_log_c16.F90: Regenerate.
349         * generated/_log_c4.F90: Regenerate.
350         * generated/_log_c8.F90: Regenerate.
351         * generated/_log_r10.F90: Regenerate.
352         * generated/_log_r16.F90: Regenerate.
353         * generated/_log_r4.F90: Regenerate.
354         * generated/_log_r8.F90: Regenerate.
355         * generated/_mod_i16.F90: Regenerate.
356         * generated/_mod_i4.F90: Regenerate.
357         * generated/_mod_i8.F90: Regenerate.
358         * generated/_mod_r10.F90: Regenerate.
359         * generated/_mod_r16.F90: Regenerate.
360         * generated/_mod_r4.F90: Regenerate.
361         * generated/_mod_r8.F90: Regenerate.
362         * generated/_sign_i16.F90: Regenerate.
363         * generated/_sign_i4.F90: Regenerate.
364         * generated/_sign_i8.F90: Regenerate.
365         * generated/_sign_r10.F90: Regenerate.
366         * generated/_sign_r16.F90: Regenerate.
367         * generated/_sign_r4.F90: Regenerate.
368         * generated/_sign_r8.F90: Regenerate.
369         * generated/_sin_c10.F90: Regenerate.
370         * generated/_sin_c16.F90: Regenerate.
371         * generated/_sin_c4.F90: Regenerate.
372         * generated/_sin_c8.F90: Regenerate.
373         * generated/_sin_r10.F90: Regenerate.
374         * generated/_sin_r16.F90: Regenerate.
375         * generated/_sin_r4.F90: Regenerate.
376         * generated/_sin_r8.F90: Regenerate.
377         * generated/_sinh_r10.F90: Regenerate.
378         * generated/_sinh_r16.F90: Regenerate.
379         * generated/_sinh_r4.F90: Regenerate.
380         * generated/_sinh_r8.F90: Regenerate.
381         * generated/_sqrt_c10.F90: Regenerate.
382         * generated/_sqrt_c16.F90: Regenerate.
383         * generated/_sqrt_c4.F90: Regenerate.
384         * generated/_sqrt_c8.F90: Regenerate.
385         * generated/_sqrt_r10.F90: Regenerate.
386         * generated/_sqrt_r16.F90: Regenerate.
387         * generated/_sqrt_r4.F90: Regenerate.
388         * generated/_sqrt_r8.F90: Regenerate.
389         * generated/_tan_r10.F90: Regenerate.
390         * generated/_tan_r16.F90: Regenerate.
391         * generated/_tan_r4.F90: Regenerate.
392         * generated/_tan_r8.F90: Regenerate.
393         * generated/_tanh_r10.F90: Regenerate.
394         * generated/_tanh_r16.F90: Regenerate.
395         * generated/_tanh_r4.F90: Regenerate.
396         * generated/_tanh_r8.F90: Regenerate.
397         * generated/all_l1.c: Regenerate.
398         * generated/all_l16.c: Regenerate.
399         * generated/all_l2.c: Regenerate.
400         * generated/all_l4.c: Regenerate.
401         * generated/all_l8.c: Regenerate.
402         * generated/any_l1.c: Regenerate.
403         * generated/any_l16.c: Regenerate.
404         * generated/any_l2.c: Regenerate.
405         * generated/any_l4.c: Regenerate.
406         * generated/any_l8.c: Regenerate.
407         * generated/count_16_l.c: Regenerate.
408         * generated/count_1_l.c: Regenerate.
409         * generated/count_2_l.c: Regenerate.
410         * generated/count_4_l.c: Regenerate.
411         * generated/count_8_l.c: Regenerate.
412         * generated/cshift0_c10.c: Regenerate.
413         * generated/cshift0_c16.c: Regenerate.
414         * generated/cshift0_c4.c: Regenerate.
415         * generated/cshift0_c8.c: Regenerate.
416         * generated/cshift0_i1.c: Regenerate.
417         * generated/cshift0_i16.c: Regenerate.
418         * generated/cshift0_i2.c: Regenerate.
419         * generated/cshift0_i4.c: Regenerate.
420         * generated/cshift0_i8.c: Regenerate.
421         * generated/cshift0_r10.c: Regenerate.
422         * generated/cshift0_r16.c: Regenerate.
423         * generated/cshift0_r4.c: Regenerate.
424         * generated/cshift0_r8.c: Regenerate.
425         * generated/cshift1_16.c: Regenerate.
426         * generated/cshift1_4.c: Regenerate.
427         * generated/cshift1_8.c: Regenerate.
428         * generated/eoshift1_16.c: Regenerate.
429         * generated/eoshift1_4.c: Regenerate.
430         * generated/eoshift1_8.c: Regenerate.
431         * generated/eoshift3_16.c: Regenerate.
432         * generated/eoshift3_4.c: Regenerate.
433         * generated/eoshift3_8.c: Regenerate.
434         * generated/exponent_r10.c: Regenerate.
435         * generated/exponent_r16.c: Regenerate.
436         * generated/exponent_r4.c: Regenerate.
437         * generated/exponent_r8.c: Regenerate.
438         * generated/fraction_r10.c: Regenerate.
439         * generated/fraction_r16.c: Regenerate.
440         * generated/fraction_r4.c: Regenerate.
441         * generated/fraction_r8.c: Regenerate.
442         * generated/in_pack_c10.c: Regenerate.
443         * generated/in_pack_c16.c: Regenerate.
444         * generated/in_pack_c4.c: Regenerate.
445         * generated/in_pack_c8.c: Regenerate.
446         * generated/in_pack_i1.c: Regenerate.
447         * generated/in_pack_i16.c: Regenerate.
448         * generated/in_pack_i2.c: Regenerate.
449         * generated/in_pack_i4.c: Regenerate.
450         * generated/in_pack_i8.c: Regenerate.
451         * generated/in_pack_r10.c: Regenerate.
452         * generated/in_pack_r16.c: Regenerate.
453         * generated/in_pack_r4.c: Regenerate.
454         * generated/in_pack_r8.c: Regenerate.
455         * generated/in_unpack_c10.c: Regenerate.
456         * generated/in_unpack_c16.c: Regenerate.
457         * generated/in_unpack_c4.c: Regenerate.
458         * generated/in_unpack_c8.c: Regenerate.
459         * generated/in_unpack_i1.c: Regenerate.
460         * generated/in_unpack_i16.c: Regenerate.
461         * generated/in_unpack_i2.c: Regenerate.
462         * generated/in_unpack_i4.c: Regenerate.
463         * generated/in_unpack_i8.c: Regenerate.
464         * generated/in_unpack_r10.c: Regenerate.
465         * generated/in_unpack_r16.c: Regenerate.
466         * generated/in_unpack_r4.c: Regenerate.
467         * generated/in_unpack_r8.c: Regenerate.
468         * generated/matmul_c10.c: Regenerate.
469         * generated/matmul_c16.c: Regenerate.
470         * generated/matmul_c4.c: Regenerate.
471         * generated/matmul_c8.c: Regenerate.
472         * generated/matmul_i1.c: Regenerate.
473         * generated/matmul_i16.c: Regenerate.
474         * generated/matmul_i2.c: Regenerate.
475         * generated/matmul_i4.c: Regenerate.
476         * generated/matmul_i8.c: Regenerate.
477         * generated/matmul_l16.c: Regenerate.
478         * generated/matmul_l4.c: Regenerate.
479         * generated/matmul_l8.c: Regenerate.
480         * generated/matmul_r10.c: Regenerate.
481         * generated/matmul_r16.c: Regenerate.
482         * generated/matmul_r4.c: Regenerate.
483         * generated/matmul_r8.c: Regenerate.
484         * generated/maxloc0_16_i1.c: Regenerate.
485         * generated/maxloc0_16_i16.c: Regenerate.
486         * generated/maxloc0_16_i2.c: Regenerate.
487         * generated/maxloc0_16_i4.c: Regenerate.
488         * generated/maxloc0_16_i8.c: Regenerate.
489         * generated/maxloc0_16_r10.c: Regenerate.
490         * generated/maxloc0_16_r16.c: Regenerate.
491         * generated/maxloc0_16_r4.c: Regenerate.
492         * generated/maxloc0_16_r8.c: Regenerate.
493         * generated/maxloc0_4_i1.c: Regenerate.
494         * generated/maxloc0_4_i16.c: Regenerate.
495         * generated/maxloc0_4_i2.c: Regenerate.
496         * generated/maxloc0_4_i4.c: Regenerate.
497         * generated/maxloc0_4_i8.c: Regenerate.
498         * generated/maxloc0_4_r10.c: Regenerate.
499         * generated/maxloc0_4_r16.c: Regenerate.
500         * generated/maxloc0_4_r4.c: Regenerate.
501         * generated/maxloc0_4_r8.c: Regenerate.
502         * generated/maxloc0_8_i1.c: Regenerate.
503         * generated/maxloc0_8_i16.c: Regenerate.
504         * generated/maxloc0_8_i2.c: Regenerate.
505         * generated/maxloc0_8_i4.c: Regenerate.
506         * generated/maxloc0_8_i8.c: Regenerate.
507         * generated/maxloc0_8_r10.c: Regenerate.
508         * generated/maxloc0_8_r16.c: Regenerate.
509         * generated/maxloc0_8_r4.c: Regenerate.
510         * generated/maxloc0_8_r8.c: Regenerate.
511         * generated/maxloc1_16_i1.c: Regenerate.
512         * generated/maxloc1_16_i16.c: Regenerate.
513         * generated/maxloc1_16_i2.c: Regenerate.
514         * generated/maxloc1_16_i4.c: Regenerate.
515         * generated/maxloc1_16_i8.c: Regenerate.
516         * generated/maxloc1_16_r10.c: Regenerate.
517         * generated/maxloc1_16_r16.c: Regenerate.
518         * generated/maxloc1_16_r4.c: Regenerate.
519         * generated/maxloc1_16_r8.c: Regenerate.
520         * generated/maxloc1_4_i1.c: Regenerate.
521         * generated/maxloc1_4_i16.c: Regenerate.
522         * generated/maxloc1_4_i2.c: Regenerate.
523         * generated/maxloc1_4_i4.c: Regenerate.
524         * generated/maxloc1_4_i8.c: Regenerate.
525         * generated/maxloc1_4_r10.c: Regenerate.
526         * generated/maxloc1_4_r16.c: Regenerate.
527         * generated/maxloc1_4_r4.c: Regenerate.
528         * generated/maxloc1_4_r8.c: Regenerate.
529         * generated/maxloc1_8_i1.c: Regenerate.
530         * generated/maxloc1_8_i16.c: Regenerate.
531         * generated/maxloc1_8_i2.c: Regenerate.
532         * generated/maxloc1_8_i4.c: Regenerate.
533         * generated/maxloc1_8_i8.c: Regenerate.
534         * generated/maxloc1_8_r10.c: Regenerate.
535         * generated/maxloc1_8_r16.c: Regenerate.
536         * generated/maxloc1_8_r4.c: Regenerate.
537         * generated/maxloc1_8_r8.c: Regenerate.
538         * generated/maxval_i1.c: Regenerate.
539         * generated/maxval_i16.c: Regenerate.
540         * generated/maxval_i2.c: Regenerate.
541         * generated/maxval_i4.c: Regenerate.
542         * generated/maxval_i8.c: Regenerate.
543         * generated/maxval_r10.c: Regenerate.
544         * generated/maxval_r16.c: Regenerate.
545         * generated/maxval_r4.c: Regenerate.
546         * generated/maxval_r8.c: Regenerate.
547         * generated/minloc0_16_i1.c: Regenerate.
548         * generated/minloc0_16_i16.c: Regenerate.
549         * generated/minloc0_16_i2.c: Regenerate.
550         * generated/minloc0_16_i4.c: Regenerate.
551         * generated/minloc0_16_i8.c: Regenerate.
552         * generated/minloc0_16_r10.c: Regenerate.
553         * generated/minloc0_16_r16.c: Regenerate.
554         * generated/minloc0_16_r4.c: Regenerate.
555         * generated/minloc0_16_r8.c: Regenerate.
556         * generated/minloc0_4_i1.c: Regenerate.
557         * generated/minloc0_4_i16.c: Regenerate.
558         * generated/minloc0_4_i2.c: Regenerate.
559         * generated/minloc0_4_i4.c: Regenerate.
560         * generated/minloc0_4_i8.c: Regenerate.
561         * generated/minloc0_4_r10.c: Regenerate.
562         * generated/minloc0_4_r16.c: Regenerate.
563         * generated/minloc0_4_r4.c: Regenerate.
564         * generated/minloc0_4_r8.c: Regenerate.
565         * generated/minloc0_8_i1.c: Regenerate.
566         * generated/minloc0_8_i16.c: Regenerate.
567         * generated/minloc0_8_i2.c: Regenerate.
568         * generated/minloc0_8_i4.c: Regenerate.
569         * generated/minloc0_8_i8.c: Regenerate.
570         * generated/minloc0_8_r10.c: Regenerate.
571         * generated/minloc0_8_r16.c: Regenerate.
572         * generated/minloc0_8_r4.c: Regenerate.
573         * generated/minloc0_8_r8.c: Regenerate.
574         * generated/minloc1_16_i1.c: Regenerate.
575         * generated/minloc1_16_i16.c: Regenerate.
576         * generated/minloc1_16_i2.c: Regenerate.
577         * generated/minloc1_16_i4.c: Regenerate.
578         * generated/minloc1_16_i8.c: Regenerate.
579         * generated/minloc1_16_r10.c: Regenerate.
580         * generated/minloc1_16_r16.c: Regenerate.
581         * generated/minloc1_16_r4.c: Regenerate.
582         * generated/minloc1_16_r8.c: Regenerate.
583         * generated/minloc1_4_i1.c: Regenerate.
584         * generated/minloc1_4_i16.c: Regenerate.
585         * generated/minloc1_4_i2.c: Regenerate.
586         * generated/minloc1_4_i4.c: Regenerate.
587         * generated/minloc1_4_i8.c: Regenerate.
588         * generated/minloc1_4_r10.c: Regenerate.
589         * generated/minloc1_4_r16.c: Regenerate.
590         * generated/minloc1_4_r4.c: Regenerate.
591         * generated/minloc1_4_r8.c: Regenerate.
592         * generated/minloc1_8_i1.c: Regenerate.
593         * generated/minloc1_8_i16.c: Regenerate.
594         * generated/minloc1_8_i2.c: Regenerate.
595         * generated/minloc1_8_i4.c: Regenerate.
596         * generated/minloc1_8_i8.c: Regenerate.
597         * generated/minloc1_8_r10.c: Regenerate.
598         * generated/minloc1_8_r16.c: Regenerate.
599         * generated/minloc1_8_r4.c: Regenerate.
600         * generated/minloc1_8_r8.c: Regenerate.
601         * generated/minval_i1.c: Regenerate.
602         * generated/minval_i16.c: Regenerate.
603         * generated/minval_i2.c: Regenerate.
604         * generated/minval_i4.c: Regenerate.
605         * generated/minval_i8.c: Regenerate.
606         * generated/minval_r10.c: Regenerate.
607         * generated/minval_r16.c: Regenerate.
608         * generated/minval_r4.c: Regenerate.
609         * generated/minval_r8.c: Regenerate.
610         * generated/misc_specifics.F90: Regenerate.
611         * generated/nearest_r10.c: Regenerate.
612         * generated/nearest_r16.c: Regenerate.
613         * generated/nearest_r4.c: Regenerate.
614         * generated/nearest_r8.c: Regenerate.
615         * generated/pack_c10.c: Regenerate.
616         * generated/pack_c16.c: Regenerate.
617         * generated/pack_c4.c: Regenerate.
618         * generated/pack_c8.c: Regenerate.
619         * generated/pack_i1.c: Regenerate.
620         * generated/pack_i16.c: Regenerate.
621         * generated/pack_i2.c: Regenerate.
622         * generated/pack_i4.c: Regenerate.
623         * generated/pack_i8.c: Regenerate.
624         * generated/pack_r10.c: Regenerate.
625         * generated/pack_r16.c: Regenerate.
626         * generated/pack_r4.c: Regenerate.
627         * generated/pack_r8.c: Regenerate.
628         * generated/pow_c10_i16.c: Regenerate.
629         * generated/pow_c10_i4.c: Regenerate.
630         * generated/pow_c10_i8.c: Regenerate.
631         * generated/pow_c16_i16.c: Regenerate.
632         * generated/pow_c16_i4.c: Regenerate.
633         * generated/pow_c16_i8.c: Regenerate.
634         * generated/pow_c4_i16.c: Regenerate.
635         * generated/pow_c4_i4.c: Regenerate.
636         * generated/pow_c4_i8.c: Regenerate.
637         * generated/pow_c8_i16.c: Regenerate.
638         * generated/pow_c8_i4.c: Regenerate.
639         * generated/pow_c8_i8.c: Regenerate.
640         * generated/pow_i16_i16.c: Regenerate.
641         * generated/pow_i16_i4.c: Regenerate.
642         * generated/pow_i16_i8.c: Regenerate.
643         * generated/pow_i4_i16.c: Regenerate.
644         * generated/pow_i4_i4.c: Regenerate.
645         * generated/pow_i4_i8.c: Regenerate.
646         * generated/pow_i8_i16.c: Regenerate.
647         * generated/pow_i8_i4.c: Regenerate.
648         * generated/pow_i8_i8.c: Regenerate.
649         * generated/pow_r10_i16.c: Regenerate.
650         * generated/pow_r10_i8.c: Regenerate.
651         * generated/pow_r16_i16.c: Regenerate.
652         * generated/pow_r16_i8.c: Regenerate.
653         * generated/pow_r4_i16.c: Regenerate.
654         * generated/pow_r4_i8.c: Regenerate.
655         * generated/pow_r8_i16.c: Regenerate.
656         * generated/pow_r8_i8.c: Regenerate.
657         * generated/product_c10.c: Regenerate.
658         * generated/product_c16.c: Regenerate.
659         * generated/product_c4.c: Regenerate.
660         * generated/product_c8.c: Regenerate.
661         * generated/product_i1.c: Regenerate.
662         * generated/product_i16.c: Regenerate.
663         * generated/product_i2.c: Regenerate.
664         * generated/product_i4.c: Regenerate.
665         * generated/product_i8.c: Regenerate.
666         * generated/product_r10.c: Regenerate.
667         * generated/product_r16.c: Regenerate.
668         * generated/product_r4.c: Regenerate.
669         * generated/product_r8.c: Regenerate.
670         * generated/reshape_c10.c: Regenerate.
671         * generated/reshape_c16.c: Regenerate.
672         * generated/reshape_c4.c: Regenerate.
673         * generated/reshape_c8.c: Regenerate.
674         * generated/reshape_i16.c: Regenerate.
675         * generated/reshape_i4.c: Regenerate.
676         * generated/reshape_i8.c: Regenerate.
677         * generated/reshape_r10.c: Regenerate.
678         * generated/reshape_r16.c: Regenerate.
679         * generated/reshape_r4.c: Regenerate.
680         * generated/reshape_r8.c: Regenerate.
681         * generated/rrspacing_r10.c: Regenerate.
682         * generated/rrspacing_r16.c: Regenerate.
683         * generated/rrspacing_r4.c: Regenerate.
684         * generated/rrspacing_r8.c: Regenerate.
685         * generated/set_exponent_r10.c: Regenerate.
686         * generated/set_exponent_r16.c: Regenerate.
687         * generated/set_exponent_r4.c: Regenerate.
688         * generated/set_exponent_r8.c: Regenerate.
689         * generated/shape_i16.c: Regenerate.
690         * generated/shape_i4.c: Regenerate.
691         * generated/shape_i8.c: Regenerate.
692         * generated/spacing_r10.c: Regenerate.
693         * generated/spacing_r16.c: Regenerate.
694         * generated/spacing_r4.c: Regenerate.
695         * generated/spacing_r8.c: Regenerate.
696         * generated/spread_c10.c: Regenerate.
697         * generated/spread_c16.c: Regenerate.
698         * generated/spread_c4.c: Regenerate.
699         * generated/spread_c8.c: Regenerate.
700         * generated/spread_i1.c: Regenerate.
701         * generated/spread_i16.c: Regenerate.
702         * generated/spread_i2.c: Regenerate.
703         * generated/spread_i4.c: Regenerate.
704         * generated/spread_i8.c: Regenerate.
705         * generated/spread_r10.c: Regenerate.
706         * generated/spread_r16.c: Regenerate.
707         * generated/spread_r4.c: Regenerate.
708         * generated/spread_r8.c: Regenerate.
709         * generated/sum_c10.c: Regenerate.
710         * generated/sum_c16.c: Regenerate.
711         * generated/sum_c4.c: Regenerate.
712         * generated/sum_c8.c: Regenerate.
713         * generated/sum_i1.c: Regenerate.
714         * generated/sum_i16.c: Regenerate.
715         * generated/sum_i2.c: Regenerate.
716         * generated/sum_i4.c: Regenerate.
717         * generated/sum_i8.c: Regenerate.
718         * generated/sum_r10.c: Regenerate.
719         * generated/sum_r16.c: Regenerate.
720         * generated/sum_r4.c: Regenerate.
721         * generated/sum_r8.c: Regenerate.
722         * generated/transpose_c10.c: Regenerate.
723         * generated/transpose_c16.c: Regenerate.
724         * generated/transpose_c4.c: Regenerate.
725         * generated/transpose_c8.c: Regenerate.
726         * generated/transpose_i16.c: Regenerate.
727         * generated/transpose_i4.c: Regenerate.
728         * generated/transpose_i8.c: Regenerate.
729         * generated/transpose_r10.c: Regenerate.
730         * generated/transpose_r16.c: Regenerate.
731         * generated/transpose_r4.c: Regenerate.
732         * generated/transpose_r8.c: Regenerate.
733         * generated/unpack_c10.c: Regenerate.
734         * generated/unpack_c16.c: Regenerate.
735         * generated/unpack_c4.c: Regenerate.
736         * generated/unpack_c8.c: Regenerate.
737         * generated/unpack_i1.c: Regenerate.
738         * generated/unpack_i16.c: Regenerate.
739         * generated/unpack_i2.c: Regenerate.
740         * generated/unpack_i4.c: Regenerate.
741         * generated/unpack_i8.c: Regenerate.
742         * generated/unpack_r10.c: Regenerate.
743         * generated/unpack_r16.c: Regenerate.
744         * generated/unpack_r4.c: Regenerate.
745         * generated/unpack_r8.c: Regenerate.
747 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
749         * io/open.c (already_open): Test for POSIX close return value.
750         * io/unit.c (close_unit_1): Likewise.
751         * io/unix.c (raw_close): Return 0 for success for preconnected units.
753 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
755         * runtime/string.c (compare0): Use gfc_charlen_type.
756         * runtime/error.c (gfc_itoa): Move to io/write.c
757         (xtoa): Rename to gfc_xtoa.
758         * runtime/backtrace.c (show_backtrace): Call gfc_xtoa.
759         * intrinsics/cshift0.c (cshift0): Use index_type for shift arg.
760         * intrinsics/date_and_time.c (date_and_time): Use index_type.
761         (itime_i4): Likewise.
762         (itime_i8): Likewise.
763         (idate_i4): Likewise.
764         (idate_i8): Likewise.
765         (gmtime_i4): Likewise.
766         (gmtime_i8): Likewise.
767         (ltime_i4): Likewise.
768         (ltime_i8): Likewise.
769         * libgfortran.h (gfc_itoa): Remove prototype.
770         (xtoa): Rename prototype to gfc_xtoa.
771         * io/list_read.c (nml_read_obj): Use size_t for string length.
772         * io/transfer.c (read_block_direct): Change nbytes arg from
773         pointer to value.
774         (unformatted_read): Minor cleanup, call read_block_directly properly.
775         (skip_record): Use ssize_t.
776         (next_record_w_unf): Avoid stell() call by calling sseek with SEEK_CUR.
777         (iolength_transfer): Make sure to multiply before cast.
778         * io/intrinsics.c (fgetc): Remove unnecessary variable.
779         * io/format.c (format_hash): Use gfc_charlen_type.
780         * io/write.c (itoa): Move from runtime/error.c:gfc_itoa, rename,
781         make static.
782         (write_i): Call with pointer to itoa.
783         (write_z): Call with pointer to gfc_xtoa.
784         (write_integer): Pointer to itoa.
785         (nml_write_obj): Type cleanup, don't call strlen in loop.
786         
787 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
789         PR libgfortran/39664
790         * io/unix.c (raw_close): Don't close STDOUT_FILENO,
791         STDERR_FILENO nor STDIN_FILENO.
793 2009-04-06  David Edelsohn  <edelsohn@gnu.org>
794         
795         * io/io.h (struct stream): Rename truncate to trunc.
796         (struncate): Same.
797         * io/unix.c (raw_init): Rename truncate to trunc.
798         (buf_init): Same.
799         (open_internal): Same.
800         
801 2009-04-05  Daniel Kraft  <d@domob.eu>
803         PR fortran/38654
804         * io/read.c (read_f): Reworked to speed up floating point parsing.
805         (convert_real): Use pointer-casting instead of memcpy and temporaries.
807 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
809         PR libfortran/37754
810         * io/io.h (format_hash_entry): New structure for hash table.
811         (format_hash_table): The hash table itself.
812         (free_format_data): Revise function prototype.
813         (free_format_hash_table, init_format_hash,
814         free_format_hash): New function prototypes.
815         * io/unit.c (close_unit_1): Use free_format_hash_table.
816         * io/transfer.c (st_read_done, st_write_done): Free format data if
817         internal unit.
818         * io/format.c (free_format_hash_table): New function that frees any
819         memory allocated previously for cached format data.
820         (reset_node): New static helper function to reset the format counters
821         for a format node.
822         (reset_fnode_counters): New static function recursively calls reset_node
823         to traverse the fnode tree.
824         (format_hash): New simple hash function based on XOR, probabalistic,
825         tosses collisions.
826         (save_parsed_format): New static function to save the parsed format
827         data to use again.
828         (find_parsed_format): New static function searches the hash table
829         looking for a match.
830         (free_format_data): Revised to accept pointer to format data rather than
831         the dtp pointer so that the function can be used in more places.
832         (format_lex): Editorial.
833         (parse_format_list): Set flag used to determine of format data hashing
834         is to be used.  Internal units are not persistent enough for this.
835         (revert): Move to ne location in file.
836         (parse_format): Use new functions to look for previously parsed
837         format strings and use them rather than re-parse.  If not found, saves
838         the parsed format data for later use.
839         
840 2009-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
842         PR libfortran/37754
843         * io/transfer.c (formatted_transfer_scalar): Remove this function by
844         factoring it into two new functions, one for read and one for write,
845         eliminating all the conditionals for read or write mode.
846         (formatted transfer_scalar_read): New function.
847         (formatted transfer_scalar_write): New function.
848         (formatted_transfer): Use new functions.
850 2009-04-05  Janne Blomqvist  <jb@gcc.gnu.org>
852         PR libfortran/25561 libfortran/37754
853         * io/io.h (struct stream): Define new stream interface function
854         pointers, and inline functions for accessing it.
855         (struct fbuf): Use int instead of size_t, remove flushed element.
856         (mem_alloc_w): New prototype.
857         (mem_alloc_r): New prototype.
858         (stream_at_bof): Remove prototype.
859         (stream_at_eof): Remove prototype.
860         (file_position): Remove prototype.
861         (flush): Remove prototype.
862         (stream_offset): Remove prototype.
863         (unit_truncate): New prototype.
864         (read_block_form): Change to return pointer, int* argument.
865         (hit_eof): New prototype.
866         (fbuf_init): Change prototype.
867         (fbuf_reset): Change prototype.
868         (fbuf_alloc): Change prototype.
869         (fbuf_flush): Change prototype.
870         (fbuf_seek): Change prototype.
871         (fbuf_read): New prototype.
872         (fbuf_getc_refill): New prototype.
873         (fbuf_getc): New inline function.
874         * io/fbuf.c (fbuf_init): Use int, get rid of flushed.
875         (fbuf_debug): New function.
876         (fbuf_reset): Flush, and return position offset.
877         (fbuf_alloc): Simplify, don't flush, just realloc.
878         (fbuf_flush): Make usable for read mode, salvage remaining bytes.
879         (fbuf_seek): New whence argument.
880         (fbuf_read): New function.
881         (fbuf_getc_refill): New function.
882         * io/file_pos.c (formatted_backspace): Use new stream interface.
883         (unformatted_backspace): Likewise.
884         (st_backspace): Make sure format buffer is reset, use new stream
885         interface, use unit_truncate.
886         (st_endfile): Likewise.
887         (st_rewind): Likewise.
888         * io/intrinsics.c: Use new stream interface.
889         * io/list_read.c (push_char): Don't use u.p.scratch, use realloc
890         to resize.
891         (free_saved): Don't check u.p.scratch.
892         (next_char): Use new stream interface, use fbuf_getc() for external files.
893         (finish_list_read): flush format buffer.
894         (nml_query): Update to use modified interface:s
895         * io/open.c (test_endfile): Use new stream interface.
896         (edit_modes): Likewise.
897         (new_unit): Likewise, set bytes_left to 1 for stream files.
898         * io/read.c (read_l): Use new read_block_form interface.
899         (read_utf8): Likewise.
900         (read_utf8_char1): Likewise.
901         (read_default_char1): Likewise.
902         (read_utf8_char4): Likewise.
903         (read_default_char4): Likewise.
904         (read_a): Likewise.
905         (read_a_char4): Likewise.
906         (read_decimal): Likewise.
907         (read_radix): Likewise.
908         (read_f): Likewise.
909         * io/transfer.c (read_sf): Use fbuf_read and mem_alloc_r, remove
910         usage of u.p.line_buffer.
911         (read_block_form): Update interface to return pointer, use
912         fbuf_read for direct access.
913         (read_block_direct): Update to new stream interface.
914         (write_block): Use mem_alloc_w for internal I/O.
915         (write_buf): Update to new stream interface.
916         (formatted_transfer_scalar): Don't use u.p.line_buffer, use
917         fbuf_seek for external files.
918         (us_read): Update to new stream interface.
919         (us_write): Likewise.
920         (data_transfer_init): Always check if we switch modes and flush.
921         (skip_record): Use new stream interface, fix comparison.
922         (next_record_r): Check for and reset u.p.at_eof, use new stream
923         interface, use fbuf_getc for spacing.
924         (write_us_marker): Update to new stream interface, don't inline.
925         (next_record_w_unf): Likewise.
926         (sset): New function.
927         (next_record_w): Use new stream interface, use fbuf for printing
928         newline.
929         (next_record): Use new stream interface.
930         (finalize_transfer): Remove sfree call, use new stream interface.
931         (st_iolength_done): Don't use u.p.scratch.
932         (st_read): Don't check for end of file.
933         (st_read_done): Don't use u.p.scratch, use unit_truncate.
934         (hit_eof): New function.
935         * io/unit.c (init_units): Always init fbuf for formatted units.
936         (update_position): Use new stream interface.
937         (unit_truncate): New function.
938         (finish_last_advance_record): Use fbuf to print newline.
939         * io/unix.c: Remove unused SSIZE_MAX macro.
940         (BUFFER_SIZE): Make static const variable rather than macro.
941         (struct unix_stream): Remove dirty_offset, len, method,
942         small_buffer. Order elements by decreasing size.
943         (struct int_stream): Remove.
944         (move_pos_offset): Remove usage of dirty_offset.
945         (reset_stream): Remove.
946         (do_read): Rename to raw_read, update to match new stream
947         interface.
948         (do_write): Rename to raw_write, update to new stream interface.
949         (raw_seek): New function.
950         (raw_tell): New function.
951         (raw_truncate): New function.
952         (raw_close): New function.
953         (raw_flush): New function.
954         (raw_init): New function.
955         (fd_alloc): Remove.
956         (fd_alloc_r_at): Remove.
957         (fd_alloc_w_at): Remove.
958         (fd_sfree): Remove.
959         (fd_seek): Remove.
960         (fd_truncate): Remove.
961         (fd_sset): Remove.
962         (fd_read): Remove.
963         (fd_write): Remove.
964         (fd_close): Remove.
965         (fd_open): Remove.
966         (fd_flush): Rename to buf_flush, update to new stream interface
967         and unix_stream.
968         (buf_read): New function.
969         (buf_write): New function.
970         (buf_seek): New function.
971         (buf_tell): New function.
972         (buf_truncate): New function.
973         (buf_close): New function.
974         (buf_init): New function.
975         (mem_alloc_r_at): Rename to mem_alloc_r, change prototype.
976         (mem_alloc_w_at): Rename to mem_alloc_w, change prototype.
977         (mem_read): Change to match new stream interface.
978         (mem_write): Likewise.
979         (mem_seek): Likewise.
980         (mem_tell): Likewise.
981         (mem_truncate): Likewise.
982         (mem_close): Likewise.
983         (mem_flush): New function.
984         (mem_sfree): Remove.
985         (empty_internal_buffer): Cast to correct type.
986         (open_internal): Use correct type, init function pointers.
987         (fd_to_stream): Test whether to open file as buffered or raw.
988         (output_stream): Remove mode set.
989         (error_stream): Likewise.
990         (flush_all_units_1): Use new stream interface.
991         (flush_all_units): Likewise.
992         (stream_at_bof): Remove.
993         (stream_at_eof): Remove.
994         (file_position): Remove.
995         (file_length): Update logic to use stream interface.
996         (flush): Remove.
997         (stream_offset): Remove.
998         * io/write.c (write_utf8_char4): Use int instead of size_t.
999         (write_x): Extra safety check.
1000         (namelist_write_newline): Use new stream interface.
1002 2009-03-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1004         PR fortran/33595
1005         * intrinsics/c99_functions.c (round): Use floor instead of ceil.
1006         Revise checks to round up.
1007         (roundf): Likewise.
1009 2009-03-28  Daniel Kraft  <d@domob.eu>
1011         * intrinsics/string_intrinsics.c: #include <assert.h>
1012         * intrinsics/string_intrinsics_inc.c (string_trim): Use string_len_trim
1013         instead of calculating the length directly.
1014         (string_len_trim): For KIND=1, speed search up.
1016 2009-03-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1018         PR libfortran/39528
1019         * io/list_read.c (list_formatted_read_scalar): Move check for read
1020         completion to just after the check for a repeated value.
1022 2009-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1024         PR libfortran/39402
1025         * io/write_float.def (output_float): Handle F0.d formatting correctly
1026         for any d when value is 0.0.
1028 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1030         * configure: Regenerate.
1032 2009-01-21  Daniel Kraft  <d@domob.eu>
1034         PR fortran/38887
1035         * runtime/in_unpack_generic.c (internal_unpack):  Return instead of
1036         abort when called with empty array.
1037         * m4/in_unpack.m4:  Ditto.
1038         * generated/in_unpack_i1.c:  Regenerated.
1039         * generated/in_unpack_i2.c:  Regenerated.
1040         * generated/in_unpack_i4.c:  Regenerated.
1041         * generated/in_unpack_i8.c:  Regenerated.
1042         * generated/in_unpack_i16.c: Regenerated.
1043         * generated/in_unpack_r4.c:  Regenerated.
1044         * generated/in_unpack_r8.c:  Regenerated.
1045         * generated/in_unpack_r10.c: Regenerated.
1046         * generated/in_unpack_r16.c: Regenerated.
1047         * generated/in_unpack_c4.c:  Regenerated.
1048         * generated/in_unpack_c8.c:  Regenerated.
1049         * generated/in_unpack_c10.c: Regenerated.
1050         * generated/in_unpack_c16.c: Regenerated.
1052 2009-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1054         PR libfortran/38772
1055         * io/read.c (read_f): Clean up loop conditions for BZ/BN,
1056         allowing proper digit testing. White space fix.
1058 2009-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1060         PR libfortran/38735
1061         * io/unit.c (get_internal_unit): Set default BLANK= status to NULL for
1062         internal units.
1064 2008-12-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1066         PR fortran/31832
1067         * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): New autoconf check for
1068         broken powf.
1069         * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Use it.
1070         * intrinsics/c99_functions.c: Use internal powf implementation if
1071         HAVE_BROKEN_POWF is defined.
1072         * configure: Rebuilt.
1073         * config.h.in: Rebuilt.
1075 2008-12-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1077         PR libfortran/37472
1078         * io/write_float.def (output_float_FMT_G_): Modify calculation of temp
1079         to avoid sensitivity to round-off.
1081 2008-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1083         PR libfortran/38398
1084         * io/io.h (st_parameter_dt): Add new bit to keep track of when to
1085         suppress blanks for g0 formatting.
1086         * io/transfer.c (formatted_transfer_scalar): Always call write_real_g0
1087         for g0 formatting.
1088         * io.c (write.c): Do not use ES formatting and use new bit to suppress
1089         blanks.
1090         * io/write_float.def (output_float): Adjust the location of setting the
1091         width so that it can be adjusted when suppressing blanks.  Set number of
1092         blanks to zero when dtp->u.p.g0_no_blanks is set. Do some minor code
1093         clean-up and add some white space for readability.
1094         
1095 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1097         * configure: Regenerate.
1099 2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1101         PR libfortran/38504
1102         io/write.c (write_decimal): Skip extra sign '-' at beginning of string
1103         returned by gfc_itoa.
1105 2008-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1107         PR libfortran/38430
1108         * io/transfer.c (data_transfer_init): Move constraint check for REC=
1109         and STREAM access into condition for other REC= constraints to simplify.
1110         Comment out this constraint to avoid breaking compatibility with 4.3
1111         until later.  Added a TODO for above comment and this one.
1112         Fix test for max pos.
1114 2008-12-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1116         PR libfortran/38291
1117         * io/transfer.c (data_transfer_init): Add fbuf_flush inadvertently
1118         ommitted.  Add check for invalid use of REC= with ACCESS="stream".  Fix
1119         comment.
1121 2008-12-06  Adam Nemet  <anemet@caviumnetworks.com>
1123         * runtime/main.c (store_exe_path): Don't crash if argv0 is NULL.
1125 2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1127         PR libfortran/38291
1128         * io/transfer.c (data_transfer_init): Add checks for POS= valid range.
1129         Add check for unit opened with ACCESS="stream". Flush and seek if
1130         current stream position does not match. Check ENDFILE on read.
1132 2008-12-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1134         PR fortran/38285
1135         * write_float.def (WRITE_FLOAT): Zero the float value for special case
1136         only if scale_factor = 0.
1137         
1138 2008-11-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1140         PR libfortran/38234
1141         * intrinsics/reshape_generic.c (reshape_internal):
1142         Source can be larger than shape.
1143         * m4/reshape.m4:  Likewise.
1144         * generated/reshape_c10.c Regenerated.
1145         * generated/reshape_c16.c Regenerated.
1146         * generated/reshape_c4.c Regenerated.
1147         * generated/reshape_c8.c Regenerated.
1148         * generated/reshape_i16.c Regenerated.
1149         * generated/reshape_i4.c Regenerated.
1150         * generated/reshape_i8.c Regenerated.
1151         * generated/reshape_r10.c Regenerated.
1152         * generated/reshape_r16.c Regenerated.
1153         * generated/reshape_r4.c Regenerated.
1154         * generated/reshape_r8.c Regenerated.
1156 2008-11-22  Danny Smith  <dannysmith@users.sourceforge.net>
1158         * libgfortran.h (__mingw_snprintf): Declare with gnu_printf
1159         format attribute.
1162 2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1164         PR libfortran/38225
1165         * intrinsics/reshape_generic.c (reshape_internal):
1166         Use all dimensions of source for bounds checking.
1167         * m4/reshape.m4:  Likewise.
1168         * generated/reshape_c10.c Regenerated.
1169         * generated/reshape_c16.c Regenerated.
1170         * generated/reshape_c4.c Regenerated.
1171         * generated/reshape_c8.c Regenerated.
1172         * generated/reshape_i16.c Regenerated.
1173         * generated/reshape_i4.c Regenerated.
1174         * generated/reshape_i8.c Regenerated.
1175         * generated/reshape_r10.c Regenerated.
1176         * generated/reshape_r16.c Regenerated.
1177         * generated/reshape_r4.c Regenerated.
1178         * generated/reshape_r8.c Regenerated.
1180 2008-11-22  Jakub Jelinek  <jakub@redhat.com>
1182         PR libfortran/37839
1183         * io/io.h (IOPARM_INQUIRE_HAS_ROUND, IOPARM_INQUIRE_HAS_SIGN,
1184         IOPARM_INQUIRE_HAS_PENDING): Adjust values.
1185         (st_parameter_inquire): Reorder and fix types of round, sign and
1186         pending fields.
1187         (st_parameter_43, st_parameter_44): Removed.
1188         (st_parameter_dt): Put back struct definition directly to u.p
1189         declaration.  Change type of u.p.size_used from gfc_offset to
1190         GFC_IO_INT.  Decrease back size of u.pad to 16 pointers and
1191         32 ints.  Put id, pos, asynchronous, blank, decimal, delim,
1192         pad, round and sign fields after the union.
1193         * io/inquire.c (inquire_via_unit, inquire_via_filename): Only read
1194         flags2 if it is defined.
1195         * io/transfer.c (read_sf, read_block_form, write_block): Cast
1196         additions to size_used to GFC_IO_INT instead of gfc_offset.
1197         (data_transfer_init): Clear whole u.p struct.  Adjust
1198         for moving id, pos, asynchronous, blank, decimal, delim, pad,
1199         round and sign fields from u.p directly into st_parameter_dt.
1200         (finalize_transfer): Don't cast size_used to GFC_IO_INT.
1201         * io/file_pos.c (st_endfile): Clear whole u.p struct.
1203 2008-11-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1205         PR libfortran/37472
1206         * io/write_float.def (output_float_FMT_G_): Adjust conversion of
1207         G format specification to F format.
1209 2008-11-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
1211         PR libfortran/38135
1212         * m4/reshape.m4:  Correct bounds checking when PAD is present.
1213         Treat PAD as if it were SOURCE when SOURCE is empty.
1214         * intrinsics/reshape_generic.c:  Likewise.
1215         * generated/reshape_c10.c Regenerated.
1216         * generated/reshape_c16.c Regenerated.
1217         * generated/reshape_c4.c Regenerated.
1218         * generated/reshape_c8.c Regenerated.
1219         * generated/reshape_i16.c Regenerated.
1220         * generated/reshape_i4.c Regenerated.
1221         * generated/reshape_i8.c Regenerated.
1222         * generated/reshape_r10.c Regenerated.
1223         * generated/reshape_r16.c Regenerated.
1224         * generated/reshape_r4.c Regenerated.
1225         * generated/reshape_r8.c Regenerated.
1227 2008-11-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1229         PR libfortran/38097
1230         * io/read.c (read_f): Initialize exponent. Fix comment. Set loop
1231         conditions for BZ/BN.
1232         * io/unit.c (get_internal_unit): Initialize flags.blank.
1233         * io/transfer.c (data_transfer_init): Fix whitespace.
1235 2008-11-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1237         PR libfortran/37294
1238         * io/write.c (namelist_write_newline): Use array loop specification to
1239         advance to next internal array unit record. (namelist_write): Adjust to
1240         accomodate the internal array unit behavior.
1242 2008-11-01  Dennis Wassel  <dennis.wassel@gmail.com>
1244         PR fortran/37159
1245         * intrinsics/random.c: Added comment to adapt check.c, should
1246         kiss_size change.
1247         Few cosmetic changes to existing comments.
1249 2008-10-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1251         PR libfortran/37707
1252         * io/list_read.c (read_character): Remove code to look ahead in namelist
1253         reads to descriminate non-delimited strings from namelist objects.
1254         * io/write.c (namelist_write): Delimit character strings with quote or
1255         apostrophe, defaulting to quote.
1257 2008-10-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1259         PR libfortran/34670
1260         * intrinsics/transpose_generic.c:  Implement bounds checking.
1261         * m4/transpose.m4:  Likewise.
1262         * generated/transpose_c8.c: Regenerated.
1263         * generated/transpose_c16.c: Regenerated.
1264         * generated/transpose_r10.c: Regenerated.
1265         * generated/transpose_i8.c: Regenerated.
1266         * generated/transpose_c10.c: Regenerated.
1267         * generated/transpose_r4.c: Regenerated.
1268         * generated/transpose_c4.c: Regenerated.
1269         * generated/transpose_i16.c: Regenerated.
1270         * generated/transpose_i4.c: Regenerated.
1271         * generated/transpose_r8.c: Regenerated.
1272         * generated/transpose_r16.c: Regenerated.
1274 2008-10-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1276         PR libfortran/37834
1277         * io/write_float.def (output_float): Emit '0.' for special case of
1278         format specifier 'f0.0' and value of zero. Likewise emit '0' for 'f1.0'.
1280 2008-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1282         PR libfortran/37863
1283         * io/write_float.def (WRITE_FLOAT): Round to 1.0 correctly.
1284         * io/io.h (st_parameter_44): Fix id type declaration.
1286 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
1288         * io/file_pos.c (unformatted_backspace): Normal case is
1289         GFC_CONVERT_NATIVE.
1290         * io/transfer.c (read_sf):  Mark paths leading to generate_error()
1291         as unlikely.
1292         (readl_block_form):  Likewise.
1293         (read_block_direct):  Likewise.
1294         (write_block):  Likewise.
1295         (write_buf):  Likewise.
1296         (us_read):  Likewise.  Normal case is GFC_CONVERT_NATIVE.
1297         (next_record_w_unf):  Mark paths leading to generate_error()
1298         as unlikely.
1300 2008-10-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
1302         PR libfortran/34670
1303         * generated/spread_r4.c: Regenerated.
1305 2008-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
1307         PR libfortran/34670
1308         * intrinsics/reshape_generic.c:  Add bounds checking.
1309         * m4/reshape.m4:  Likewise.
1310         * generated/reshape_c10.c: Regenerated.
1311         * generated/reshape_c16.c: Regenerated.
1312         * generated/reshape_c4.c: Regenerated.
1313         * generated/reshape_c8.c: Regenerated.
1314         * generated/reshape_i16.c: Regenerated.
1315         * generated/reshape_i4.c: Regenerated.
1316         * generated/reshape_i8.c: Regenerated.
1317         * generated/reshape_r10.c: Regenerated.
1318         * generated/reshape_r16.c: Regenerated.
1319         * generated/reshape_r4.c: Regenerated.
1320         * generated/reshape_r8.c: Regenerated.
1321         * generated/spread_r4.c: Regenerated.
1323 2008-10-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1325         PR libfortran/37083
1326         * io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
1327         (finish_list_read): Add EOF check.
1329 2008-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
1331         PR libfortran/37753
1332         * io/transfer.c (unformatted_read):  CONVERT_NATIVE
1333         is the usual case.  Check for kind==1 for non-byte-reversing
1334         operation.
1335         (unformatted_write):  Likewise.
1337 2008-10-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1339         PR libfortran/37707
1340         * io/list_read.c (nml_get_obj_data): If the first namelist object rank
1341         is greater than zero, call nml_object_read with the first object rather
1342         than the sub-object.
1344 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1345             Steve Ellcey  <sje@cup.hp.com>
1347         * configure: Regenerate for new libtool.
1348         * Makefile.in: Ditto.
1350 2008-09-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1352         PR libfortran/37498
1353         * list_read.c (eat_separator): Revert previous patch and move
1354         delim_status, decimal_status, and pad_status to gfc_unit.
1355         (parse_real): Ditto. (read_real): Ditto.
1356         * read.c (read_a): Likewise. (read_a_char4): Likewise.
1357         (read_f): Likewise.
1358         * inquire.c (inquire_via_unit): Add missing check for
1359         IOPARM_INQUIRE_HAS_FLAGS2. (inquire_via_filename): Likewise.
1360         * io.h (unit_sign_s): Move delim_status, decimal_status, and pad_status
1361         to gfc_unit.
1362         * transfer.c (read_sf): Ditto. (read_block_form): Ditto.
1363         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto.
1364         * write.c (write_default_char4): Ditto. (write_utf8_char4): Ditto.
1365         (write_character): Ditto. (write_real_g0): Ditto.
1366         (list_formatted_write_scalar): Ditto. (nml_write_obj): Ditto.
1367         (namelist_write): Ditto.
1368         * write_float.def (calculate_sign): Ditto. (output_float): Ditto.
1370 2008-09-24  Tobias Burnus  <burnus@net-b.de>
1372         * runtime/compile_options.c (init_compile_options):
1373         Sync flags with front end.
1375 2008-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org
1377         PR libfortran/37498
1378         * file_pos (st_endfile): Clear memory only for libfortran 4.3 private
1379         area.
1380         * list_read.c (eat_separator): Only access F2003 I/O parameters if
1381         IOPARM_DT_HAS_F2003 bit is set. (parse_real): Ditto.
1382         (read_real): Ditto.
1383         * read.c (read_a): Likewise. (read_a_char4): Likewise though not
1384         strictly necessary. (read_f): Likewise.
1385         * io.h (unit_sign_s): New enumerator to allow duplication of
1386         st_parameter structures. (IOPARM_DT_HAS_F2003): New mask bit.
1387         (st_parameter_43): New structure copied from 4.3 version of 
1388         st_paramater_dt private section. (st_parameter_44): New structure with
1389         F2003 items added. (st_parameter_dt): Modified to create union of new
1390         and old structures to allow correct memory setting for 4.3 ABI
1391         compatibility. Bumped the pad size.
1392         * transfer.c (read_sf): Do not use F2003 I/O memory areas unless
1393         IOPARM_DT_HAS_F2003 bit has been set. (read_block_form): Ditto.
1394         (formatted_transfer_scalar): Ditto. (data_transfer_init): Ditto and
1395         add comment, fix formatting.
1396         * write.c (write_default_char4): Likewise though not strictly necessary.
1397         (write_utf8_char4): Ditto. (write_character): Ditto.
1398         (write_real_g0): Ditto. (list_formatted_write_scalar): Ditto.
1399         (nml_write_obj): Ditto. (namelist_write): Ditto.
1400         * write_float.def (calculate_sign): Eliminate warning by including all
1401         cases in switch. (output_float): Output only decimal point of F2003 flag
1402         is not set.
1404 2008-09-10  Tobias Burnus  <burnus@net-b.de>
1405             H. J. Lu  <hongjiu.lu@intel.com>
1407         * mk-sik-inc.sh: Make -Wunused-variable proof.
1408         * mk-srk-inc.sh: Make -Wunused-variable proof.
1410 2008-09-10  Tobias Burnus  <burnus@net-b.de>
1412         * mk-kinds-h.sh: Make -Wunused-variable proof.
1414 2008-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1416         PR fortran/37203
1417         * intrinsics/reshape_generic.c:  Add checking on
1418         out-of-bounds and duplicate values of order argument.
1419         * m4/reshape.m4:  Likewise.
1420         * generated/reshape_c10.c: Regenerated.
1421         * generated/reshape_c16.c: Regenerated.
1422         * generated/reshape_c4.c: Regenerated.
1423         * generated/reshape_c8.c: Regenerated.
1424         * generated/reshape_i16.c: Regenerated.
1425         * generated/reshape_i4.c: Regenerated.
1426         * generated/reshape_i8.c: Regenerated.
1427         * generated/reshape_r10.c: Regenerated.
1428         * generated/reshape_r16.c: Regenerated.
1429         * generated/reshape_r4.c: Regenerated.
1430         * generated/reshape_r8.c: Regenerated.
1432 2008-09-06  Tobias Burnus  <burnus@net-b.de>
1434         * libgfortran.h (likely,unlikely): New makros.
1435         (runtime_warning_at,__mingw_snprintf): Add __attribute__(format()).
1436         * m4/spread.m4 (spread_'rtype_code`): Use unlikely for bounds_check.
1437         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto.
1438         * m4/matmull.m4 (matmul_'rtype_code`): Ditto.
1439         * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto.
1440         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto.
1441         * m4/matmul.m4 (matmul_'rtype_code`): Ditto.
1443         * generated/minval_r8.c: Regenerated.
1444         * generated/spread_r10.c: Regenerated.
1445         * generated/minloc1_16_r16.c: Regenerated.
1446         * generated/maxloc1_4_r8.c: Regenerated.
1447         * generated/sum_i8.c: Regenerated.
1448         * generated/any_l16.c: Regenerated.
1449         * generated/spread_i8.c: Regenerated.
1450         * generated/maxval_i2.c: Regenerated.
1451         * generated/any_l2.c: Regenerated.
1452         * generated/product_r4.c: Regenerated.
1453         * generated/maxloc1_8_i4.c: Regenerated.
1454         * generated/maxloc0_4_r4.c: Regenerated.
1455         * generated/all_l1.c: Regenerated.
1456         * generated/matmul_r8.c: Regenerated.
1457         * generated/product_i2.c: Regenerated.
1458         * generated/minloc0_4_r16.c: Regenerated.
1459         * generated/minloc0_4_i1.c: Regenerated.
1460         * generated/maxloc0_4_r16.c: Regenerated.
1461         * generated/maxloc0_4_i2.c: Regenerated.
1462         * generated/minloc1_8_r16.c: Regenerated.
1463         * generated/maxloc1_8_r16.c: Regenerated.
1464         * generated/maxloc0_8_i8.c: Regenerated.
1465         * generated/sum_r16.c: Regenerated.
1466         * generated/sum_i1.c: Regenerated.
1467         * generated/minloc1_4_r8.c: Regenerated.
1468         * generated/maxloc1_16_r16.c: Regenerated.
1469         * generated/minloc1_16_i4.c: Regenerated.
1470         * generated/maxloc1_16_i4.c: Regenerated.
1471         * generated/minloc0_16_i8.c: Regenerated.
1472         * generated/spread_i1.c: Regenerated.
1473         * generated/maxloc0_16_i8.c: Regenerated.
1474         * generated/maxval_r16.c: Regenerated.
1475         * generated/product_c10.c: Regenerated.
1476         * generated/minloc1_8_i4.c: Regenerated.
1477         * generated/minloc0_16_i16.c: Regenerated.
1478         * generated/matmul_r16.c: Regenerated.
1479         * generated/minloc0_4_r4.c: Regenerated.
1480         * generated/all_l2.c: Regenerated.
1481         * generated/product_c4.c: Regenerated.
1482         * generated/sum_r4.c: Regenerated.
1483         * generated/minloc0_4_i2.c: Regenerated.
1484         * generated/spread_c10.c: Regenerated.
1485         * generated/maxloc0_8_i1.c: Regenerated.
1486         * generated/spread_r4.c: Regenerated.
1487         * generated/minloc0_8_i8.c: Regenerated.
1488         * generated/matmul_c8.c: Regenerated.
1489         * generated/all_l16.c: Regenerated.
1490         * generated/minloc1_16_r10.c: Regenerated.
1491         * generated/sum_i2.c: Regenerated.
1492         * generated/minloc0_16_i1.c: Regenerated.
1493         * generated/maxloc0_16_i1.c: Regenerated.
1494         * generated/maxloc1_8_r8.c: Regenerated.
1495         * generated/minval_i16.c: Regenerated.
1496         * generated/spread_i2.c: Regenerated.
1497         * generated/maxval_i4.c: Regenerated.
1498         * generated/minval_i8.c: Regenerated.
1499         * generated/any_l4.c: Regenerated.
1500         * generated/maxloc1_4_i8.c: Regenerated.
1501         * generated/maxloc0_16_i16.c: Regenerated.
1502         * generated/maxloc0_8_r4.c: Regenerated.
1503         * generated/minloc1_4_i16.c: Regenerated.
1504         * generated/maxloc1_4_i16.c: Regenerated.
1505         * generated/minloc0_4_r10.c: Regenerated.
1506         * generated/minloc0_8_i16.c: Regenerated.
1507         * generated/maxloc0_4_r10.c: Regenerated.
1508         * generated/maxloc0_8_i16.c: Regenerated.
1509         * generated/minloc1_8_r10.c: Regenerated.
1510         * generated/product_i4.c: Regenerated.
1511         * generated/minloc0_16_r4.c: Regenerated.
1512         * generated/sum_c16.c: Regenerated.
1513         * generated/maxloc1_8_r10.c: Regenerated.
1514         * generated/maxloc0_16_r4.c: Regenerated.
1515         * generated/minloc1_16_r8.c: Regenerated.
1516         * generated/minloc0_8_i1.c: Regenerated.
1517         * generated/maxloc0_4_i4.c: Regenerated.
1518         * generated/maxloc1_16_r8.c: Regenerated.
1519         * generated/maxloc0_8_i2.c: Regenerated.
1520         * generated/sum_r10.c: Regenerated.
1521         * generated/count_4_l.c: Regenerated.
1522         * generated/sum_c4.c: Regenerated.
1523         * generated/count_8_l.c: Regenerated.
1524         * generated/maxloc1_16_r10.c: Regenerated.
1525         * generated/matmul_i8.c: Regenerated.
1526         * generated/minloc0_16_i2.c: Regenerated.
1527         * generated/minloc1_8_r8.c: Regenerated.
1528         * generated/maxloc0_16_i2.c: Regenerated.
1529         * generated/spread_c4.c: Regenerated.
1530         * generated/matmul_c16.c: Regenerated.
1531         * generated/maxval_r10.c: Regenerated.
1532         * generated/minval_i1.c: Regenerated.
1533         * generated/maxloc1_4_i1.c: Regenerated.
1534         * generated/matmul_r10.c: Regenerated.
1535         * generated/minloc1_4_i8.c: Regenerated.
1536         * generated/minloc0_8_r4.c: Regenerated.
1537         * generated/matmul_l4.c: Regenerated.
1538         * generated/product_i16.c: Regenerated.
1539         * generated/minloc0_16_r16.c: Regenerated.
1540         * generated/all_l4.c: Regenerated.
1541         * generated/minloc0_4_i4.c: Regenerated.
1542         * generated/minloc0_8_i2.c: Regenerated.
1543         * generated/matmul_i1.c: Regenerated.
1544         * generated/minval_r4.c: Regenerated.
1545         * generated/maxloc1_4_r4.c: Regenerated.
1546         * generated/spread_i16.c: Regenerated.
1547         * generated/sum_i4.c: Regenerated.
1548         * generated/maxval_r8.c: Regenerated.
1549         * generated/spread_i4.c: Regenerated.
1550         * generated/minloc1_4_i1.c: Regenerated.
1551         * generated/minval_r16.c: Regenerated.
1552         * generated/minval_i2.c: Regenerated.
1553         * generated/maxloc1_4_i2.c: Regenerated.
1554         * generated/product_r8.c: Regenerated.
1555         * generated/maxloc1_8_i8.c: Regenerated.
1556         * generated/maxloc0_4_r8.c: Regenerated.
1557         * generated/maxloc0_16_r16.c: Regenerated.
1558         * generated/matmul_r4.c: Regenerated.
1559         * generated/sum_c10.c: Regenerated.
1560         * generated/minloc1_4_r16.c: Regenerated.
1561         * generated/maxloc1_4_r16.c: Regenerated.
1562         * generated/minloc0_8_r16.c: Regenerated.
1563         * generated/maxloc0_8_r16.c: Regenerated.
1564         * generated/count_1_l.c: Regenerated.
1565         * generated/maxloc0_8_i4.c: Regenerated.
1566         * generated/matmul_i2.c: Regenerated.
1567         * generated/minloc1_4_r4.c: Regenerated.
1568         * generated/matmul_c10.c: Regenerated.
1569         * generated/minloc0_16_i4.c: Regenerated.
1570         * generated/maxloc0_16_i4.c: Regenerated.
1571         * generated/minloc1_16_i8.c: Regenerated.
1572         * generated/maxloc1_16_i8.c: Regenerated.
1573         * generated/minloc1_4_i2.c: Regenerated.
1574         * generated/matmul_l16.c: Regenerated.
1575         * generated/maxloc1_8_i1.c: Regenerated.
1576         * generated/minloc0_16_r10.c: Regenerated.
1577         * generated/minloc1_8_i8.c: Regenerated.
1578         * generated/minloc0_4_r8.c: Regenerated.
1579         * generated/product_r16.c: Regenerated.
1580         * generated/product_c8.c: Regenerated.
1581         * generated/sum_r8.c: Regenerated.
1582         * generated/minloc0_8_i4.c: Regenerated.
1583         * generated/matmul_c4.c: Regenerated.
1584         * generated/minloc1_16_i16.c: Regenerated.
1585         * generated/spread_r8.c: Regenerated.
1586         * generated/maxloc1_8_r4.c: Regenerated.
1587         * generated/minloc1_16_i1.c: Regenerated.
1588         * generated/maxloc1_16_i1.c: Regenerated.
1589         * generated/spread_r16.c: Regenerated.
1590         * generated/minval_r10.c: Regenerated.
1591         * generated/count_16_l.c: Regenerated.
1592         * generated/minval_i4.c: Regenerated.
1593         * generated/minloc1_8_i1.c: Regenerated.
1594         * generated/maxloc1_4_i4.c: Regenerated.
1595         * generated/maxloc1_8_i2.c: Regenerated.
1596         * generated/maxval_i8.c: Regenerated.
1597         * generated/any_l8.c: Regenerated.
1598         * generated/maxloc0_16_r10.c: Regenerated.
1599         * generated/minloc0_4_i16.c: Regenerated.
1600         * generated/maxloc0_8_r8.c: Regenerated.
1601         * generated/maxloc0_4_i16.c: Regenerated.
1602         * generated/minloc1_4_r10.c: Regenerated.
1603         * generated/minloc1_8_i16.c: Regenerated.
1604         * generated/maxloc1_4_r10.c: Regenerated.
1605         * generated/maxloc1_8_i16.c: Regenerated.
1606         * generated/minloc0_8_r10.c: Regenerated.
1607         * generated/maxloc0_8_r10.c: Regenerated.
1608         * generated/minloc1_16_r4.c: Regenerated.
1609         * generated/maxloc1_16_r4.c: Regenerated.
1610         * generated/minloc0_16_r8.c: Regenerated.
1611         * generated/product_i8.c: Regenerated.
1612         * generated/maxloc0_16_r8.c: Regenerated.
1613         * generated/sum_i16.c: Regenerated.
1614         * generated/count_2_l.c: Regenerated.
1615         * generated/maxloc0_4_i8.c: Regenerated.
1616         * generated/maxloc1_16_i16.c: Regenerated.
1617         * generated/matmul_i4.c: Regenerated.
1618         * generated/minloc1_8_r4.c: Regenerated.
1619         * generated/sum_c8.c: Regenerated.
1620         * generated/minloc1_16_i2.c: Regenerated.
1621         * generated/maxloc1_16_i2.c: Regenerated.
1622         * generated/maxval_i16.c: Regenerated.
1623         * generated/spread_c8.c: Regenerated.
1624         * generated/matmul_i16.c: Regenerated.
1625         * generated/minloc1_4_i4.c: Regenerated.
1626         * generated/maxval_i1.c: Regenerated.
1627         * generated/minloc1_8_i2.c: Regenerated.
1628         * generated/any_l1.c: Regenerated.
1629         * generated/product_c16.c: Regenerated.
1630         * generated/minloc0_8_r8.c: Regenerated.
1631         * generated/matmul_l8.c: Regenerated.
1632         * generated/product_r10.c: Regenerated.
1633         * generated/product_i1.c: Regenerated.
1634         * generated/all_l8.c: Regenerated.
1635         * generated/maxloc0_4_i1.c: Regenerated.
1636         * generated/minloc0_4_i8.c: Regenerated.
1637         * generated/spread_c16.c: Regenerated.
1638         * generated/maxval_r4.c: Regenerated.
1640 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1642         PR libfortran/37301
1643         PR libfortran/37228
1644         * io/io.h (write_real_g0): Declare new function to handle g0.d format.
1645         * io/transfer.c (formatted_transfer_scalar): Use new function.
1646         * io/format.c (parse_format_list): Enable g0.d.
1647         * io/write.c (write_a_char4): Delete unused var.
1648         (set_fnode_default): New function to set the default fnode w, d, and e
1649         factored from write_real. (write_real): Use new factored function.
1650         (write_real_g0): New function that sets d to that passed by g0.d format
1651         specifier and set format to ES.  Default values for w and e are used
1652         from the new function, set_fnode_default.
1654 2008-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1656         * runtime/error.c: Fix cast for printf.
1658 2008-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1660         PR libfortran/36895
1661         * io/write.c (namelist_write_newline): New function to correctly mark
1662         next records in both external and internal units.
1663         (nml_write_obj): Use new function.
1664         (namelist_write: Use new function.
1666 2008-08-19  Tobias Burnus  <burnus@net-b.de>
1668         PR libfortran/35863
1669         * io/write.c (write_a_char4): Add missing variable declaration
1670         in HAVE_CRLF block.
1672 2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1674         PR libfortran/35863
1675         * intrinsics/selected_char_kind.c: Enable iso_10646.
1676         * io/read.c (typedef uchar): New type.
1677         (read_utf8): New function to read a single UTF-8 encoded character.
1678         (read_utf8_char1): New function to read UTF-8 into a KIND=1 string.
1679         (read_default_char1): New functio to read default into KIND=1 string.
1680         (read_utf8_char4): New function to read UTF-8 into a KIND=4 string.
1681         (read_default_char4): New function to read UTF-8 into a KIND=4 string.
1682         (read_a): Modify to use the new functions.
1683         (read_a_char4): Modify to use the new functions.
1684         * io/write.c (error.h): Add include. (typedef uchar): New type.
1685         (write_default_char4): New function to default write KIND=4 string.
1686         (write_utf8_char4): New function to UTF-8 write KIND=4 string.
1687         (write_a_char4): Modify to use new functions.
1688         (write_character): Modify to use new functions.
1690 2008-08-14  H.J. Lu  <hongjiu.lu@intel.com>
1692         PR libfortran/37123
1693         * intrinsics/cshift0.c (cshift0): Fix 2 typos.
1695 2008-08-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1697         PR libfortran/36886
1698         * Makefile.am:  Added $(i_cshift0_c).
1699         Added $(i_cshift0_c) to gfor_built_specific_src.
1700         Add rule to build from cshift0.m4.
1701         * Makefile.in:  Regenerated.
1702         * libgfortran.h:  Addedd prototypes for cshift0_i1,
1703         cshift0_i2, cshift0_i4, cshift0_i8, cshift0_i16,
1704         cshift0_r4, cshift0_r8, cshift0_r10, cshift0_r16,
1705         cshift0_c4, cshift0_c8, cshift0_c10, cshift0_c16.
1706         Define Macros GFC_UNALIGNED_C4 and GFC_UNALIGNED_C8.
1707         * intrinsics/cshift0.c:  Remove helper functions for
1708         the innter shift loop.
1709         (cshift0):  Call specific functions depending on type
1710         of array argument.  Only call specific functions for
1711         correct alignment for other types.
1712         * m4/cshift0.m4:  New file.
1713         * generated/cshift0_i1.c:  New file.
1714         * generated/cshift0_i2.c:  New file.
1715         * generated/cshift0_i4.c:  New file.
1716         * generated/cshift0_i8:.c  New file.
1717         * generated/cshift0_i16.c:  New file.
1718         * generated/cshift0_r4.c:  New file.
1719         * generated/cshift0_r8.c:  New file.
1720         * generated/cshift0_r10.c:  New file.
1721         * generated/cshift0_r16.c:  New file.
1722         * generated/cshift0_c4.c:  New file.
1723         * generated/cshift0_c8.c:  New file.
1724         * generated/cshift0_c10.c:  New file.
1725         * generated/cshift0_c16.c:  New file.
1727 2008-07-27  Tobias Burnus  <burnus@net-b.de>
1729         PR fortran/36132
1730         PR fortran/29952
1731         PR fortran/36909
1732         * runtime/error.c: New function runtime_error_at.
1733         * gfortran.map: Ditto.
1734         * libgfortran.h: Ditto.
1736 2008-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1738         PR fortran/36582
1739         * io/list_read.c: If variable rank is zero, do not adjust the found
1740         namelist object pointer.
1742 2008-07-22  Daniel Kraft  <d@domob.eu>
1744         PR fortran/29835
1745         * io/format.c (struct format_data):  New member error_element.
1746         (unexpected_element):  Added '%c' to message.
1747         (next_char):  Keep track of last parsed character in fmt->error_element.
1748         (format_error):  If the message is unexpected_element, output the
1749         offending character, too.
1751 2008-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1753         PR libfortran/36890
1754         * io/file_pos.c:  Declare READ_CHUNK as signed to avoid
1755         signed/unsigned comparison warning in formatted_backspace.
1757 2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
1759         PR libfortran/36773
1760         * intrinsics/cshift0.c (cshift0):  Return early if size of array
1761         is zero.
1762         * intrinsics/eoshift0.c (eoshift0):  Return early if size of
1763         return array is zero.
1764         * intrinsics/eoshift2.c (eoshift2):  Likewise.
1765         * m4/eoshift1.m4 (eoshift1):  Return early if size of array
1766         is zero.
1767         * m4/eoshift3.m4 (eoshift3):  Likewise.
1768         * m4/eoshift2.m4 (eoshift2):  Return early if size of return
1769         array is zero.
1770         * m4/eoshift4.m4 (eoshift2):  Return early if size of return
1771         array is zero.
1772         * generated/cshift1_16.c: Regenerated.
1773         * generated/cshift1_4.c: Regenerated.
1774         * generated/cshift1_8.c: Regenerated.
1775         * generated/eoshift1_16.c: Regenerated.
1776         * generated/eoshift1_4.c: Regenerated.
1777         * generated/eoshift1_8.c: Regenerated.
1778         * generated/eoshift3_16.c: Regenerated.
1779         * generated/eoshift3_4.c: Regenerated.
1780         * generated/eoshift3_8.c: Regenerated.
1782 2008-07-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1784         PR fortran/36857
1785         * io/write_float.def: Comment out locale dependent code and fix general
1786         comments.
1787         
1788 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
1790         PR fortran/36341
1791         PR fortran/34670
1792         * m4/matmul.m4:  Add bounds checking.
1793         * m4/matmull.m4:  Likewise.
1794         * generated/matmul_c10.c: Regenerated.
1795         * generated/matmul_c16.c: Regenerated.
1796         * generated/matmul_c4.c: Regenerated.
1797         * generated/matmul_c8.c: Regenerated.
1798         * generated/matmul_i1.c: Regenerated.
1799         * generated/matmul_i16.c: Regenerated.
1800         * generated/matmul_i2.c: Regenerated.
1801         * generated/matmul_i4.c: Regenerated.
1802         * generated/matmul_i8.c: Regenerated.
1803         * generated/matmul_l16.c: Regenerated.
1804         * generated/matmul_l4.c: Regenerated.
1805         * generated/matmul_l8.c: Regenerated.
1806         * generated/matmul_r10.c: Regenerated.
1807         * generated/matmul_r16.c: Regenerated.
1808         * generated/matmul_r4.c: Regenerated.
1809         * generated/matmul_r8.c: Regenerated.
1811 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1813         * acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
1814         variable name.
1815         * configure: Regenerate.
1817 2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1819         PR fortran/36676
1820         * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
1821         
1822 2008-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1824         PR fortran/36657
1825         * io/list_read.c (read_character): Check for '!' along with separators.
1826         (find_nml_name): Likewise and eat the comment if found.
1828 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1830         * configure: Regenerate.
1832 2008-06-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1834         PR fortran/36546
1835         * io/list_read.c (eat_separator): Add tab character to condition
1836         for looping past whitespace.
1838 2008-06-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1840         PR fortran/36515
1841         * libgfortran.h (compile_options_t): Add int range_check to structure.
1842         * runtime/compile_options.c (set_options): Add range_check option.
1843         (init_compile_options): Likewise.
1844         *io/read.c (read_decimal): Change overflow checks to include
1845         range_check.
1846         
1847 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1849         PR fortran/36538
1850         * io/list_read.c (namelist_read): Add eat_separator to eliminate leading
1851         tabs.
1853 2008-06-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1855         PR fortran/35863
1856         * libgfortran.h: Change l8_to_l4_offset to big_endian and add endian_off.
1857         * runtime/main.c: Fix error in comment. Change l8_to_l4_offset to
1858         big_endian. (determine_endianness): Add endian_off and set its value
1859         according to big_endian.
1860         * gfortran.map: Add symbol for new _gfortran_transfer_character_wide.
1861         * io/io.h: Add prototype declarations for new functions.
1862         * io/list_read.c (list_formatted_read_scalar): Modify to handle kind=4.
1863         (list_formatted_read): Calculate stride based on kind for character type
1864         and use it when calling list_formatted_read_scalar.
1865         * io/inquire.c (inquire_via_unit): Change l8_to_l4_offset to big_endian.
1866         * io/open.c (st_open): Change l8_to_l4_offset to big_endian.
1867         * io/read.c (read_a_char4): New function to handle formatted read.
1868         * io/write.c: Define GFC_CHAR4(x) to improve readability of code.
1869         (write_a_char4): New function to handle formatted write.
1870         (write_character): Modify to accept the kind parameter and adjust for
1871         endianess of the machine. (list_formatted_write): Calculate the stride
1872         resulting from the kind and adjust the list_formatted_write_scalar call
1873         accordingly. (nml_write_obj): Adjust calls to write_character.
1874         (namelist_write): Likewise.
1875         * io/transfer.c (formatted_transfer_scaler): Rename 'len' argument to
1876         'kind' argument to better describe what it is. Add calls to new
1877         functions for kind == 4. (formatted_transfer): Modify to handle the case
1878         of type character and kind equals 4 to pass in the kind to the transfer
1879         routines. (transfer_character_wide): Add this new function.
1880         (transfer_array): Don't set kind to the character string length. Adjust
1881         strides bases on character kind.
1882         (unformatted_read): Adjust size based on kind for character types.
1883         (unformatted_write): Likewise. (data_transfer_init): Change
1884         l8_to_l4_offset to big_endian.
1885         io/fbuf.c (fbuf_seek): Add cast to eliminate warning.
1887 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1889         * configure.ac (AM_CFLAGS): Remove -Werror again.
1890         * configure: Regenerate.
1892 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1894         PR libgfortran/36518
1895         * configure.ac (AM_CFLAGS): Add -Werror.
1896         * configure: Regenerate.
1897         * m4/ifunction_logical.m4: Cast "n" to "(int)".
1898         * generated/any_l16.c: Regenerate.
1899         * generated/any_l2.c: Regenerate.
1900         * generated/all_l1.c: Regenerate.
1901         * generated/all_l2.c: Regenerate.
1902         * generated/all_l16.c: Regenerate.
1903         * generated/any_l4.c: Regenerate.
1904         * generated/count_4_l.c: Regenerate.
1905         * generated/count_8_l.c: Regenerate.
1906         * generated/all_l4.c: Regenerate.
1907         * generated/count_1_l.c: Regenerate.
1908         * generated/count_16_l.c: Regenerate.
1909         * generated/any_l8.c: Regenerate.
1910         * generated/count_2_l.c: Regenerate.
1911         * generated/any_l1.c: Regenerate.
1912         * generated/all_l8.c: Regenerate.
1914 2008-06-13  Tobias Burnus  <burnus@net-b.de>
1916         PR fortran/36495
1917         * configure.ac (AM_FCFLAGS): Add "-Werror -fimplicit-none".
1918         * configure: (generated) ditto.
1919         * intrinsics/dprod_r8.f90: Add "implicit none".
1921 2008-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1923         PR libfortran/36420
1924         PR libfortran/36421
1925         PR libfortran/36422
1926         * io/io.h: Add prototype for write_real.
1927         * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero,
1928         use write_real.
1929         * io/format.c: Add zero width error message. (parse_format_list): Use
1930         error message for FMT_A if followed by FMT_ZERO. Use zero width error
1931         message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0):
1932         Fix typo in comment.
1933         * io/write.c(write_a): Set wlen to len if FMT_G and length is zero.
1934         (write_l): Add wlen variable and use it if FMT_G and width is zero.
1935         (write_decimal): If FMT_G, set m to -1 to flag processor dependent
1936         formatting. (write_real): Remove static declaration.
1938 2008-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1940         PR fortran/36319
1941         * intrinsics/string_intrinsics_inc.c (string_index): Return
1942         correct value for zero-length substring.
1943         * intrinsics/cshift0.c: Add _char4 variant.
1944         * intrinsics/eoshift0.c (eoshift0): Allow filler to be a pattern
1945         wider than a single byte. Add _char4 variant and use above
1946         functionality.
1947         * intrinsics/eoshift2.c (eoshift2): Likewise.
1948         * m4/eoshift1.m4: Likewise.
1949         * m4/eoshift3.m4: Likewise.
1950         * m4/cshift1.m4: Add _char4 variants.
1951         * gfortran.map (GFORTRAN_1.1): Add _gfortran_cshift0_1_char4,
1952         _gfortran_cshift0_2_char4, _gfortran_cshift0_4_char4,
1953         _gfortran_cshift0_8_char4, _gfortran_cshift1_16_char4,
1954         _gfortran_cshift1_4_char4, _gfortran_cshift1_8_char4,
1955         _gfortran_eoshift0_1_char4, _gfortran_eoshift0_2_char4,
1956         _gfortran_eoshift0_4_char4, _gfortran_eoshift0_8_char4,
1957         _gfortran_eoshift1_16_char4, _gfortran_eoshift1_4_char4,
1958         _gfortran_eoshift1_8_char4, _gfortran_eoshift2_1_char4,
1959         _gfortran_eoshift2_2_char4, _gfortran_eoshift2_4_char4,
1960         _gfortran_eoshift2_8_char4, _gfortran_eoshift3_16_char4,
1961         _gfortran_eoshift3_4_char4 and _gfortran_eoshift3_8_char4.
1962         * generated/eoshift3_4.c: Regenerate.
1963         * generated/eoshift1_8.c: Regenerate.
1964         * generated/eoshift1_16.c: Regenerate.
1965         * generated/cshift1_4.c: Regenerate.
1966         * generated/eoshift1_4.c: Regenerate.
1967         * generated/eoshift3_8.c: Regenerate.
1968         * generated/eoshift3_16.c: Regenerate.
1969         * generated/cshift1_8.c: Regenerate.
1970         * generated/cshift1_16.c: Regenerate.
1972 2008-05-25  Tobias Burnus  <burnus@net-b.de>
1974         PR fortran/32600
1975         * intrinsics/iso_c_binding.c (c_f_procpointer): Remove.
1976         * intrinsics/iso_c_binding.h (c_f_procpointer): Remove.
1977         * gfortran.map (c_f_procpointer): Remove.
1979 2008-05-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
1981         PR libgfortran/36302
1982         * gfortran.map (GFORTRAN_1.1): Add _gfortran_eoshift0_16,
1983         _gfortran_eoshift0_16_char, _gfortran_eoshift2_16,
1984         _gfortran_eoshift2_16_char,_gfortran_cshift0_16,
1985         _gfortran_cshift0_16_char.  Sort alphabetically.
1986         * intrinsics/eoshift0.c:  Add function for kind=16 integer.
1987         * intrinsics/eoshift2.c:  Likewise.
1988         * intrinsics/cshift0.c:  Likewise.
1990 2008-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
1992         * m4/in_pack.m4 (internal_pack_'rtype_code`):  Destination
1993         pointer is restrict.
1994         * m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
1995         * m4/pack.m4 (pack_'rtype_code`):  Likewise.
1996         * m4/spread.m4 (spread_'rtype_code`):  Likewise.
1997         (spread_scalar_'rtype_code`): Likewise.
1998         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
1999         * m4/eoshift1.m4 (eoshift1):  Likewise.
2000         * m4/eoshift3.m4 (eoshift3):  Likewise.
2001         * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):  Likewise.
2002         * m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
2003         (unpack1_'rtype_code`):  Likewise.
2004         * intrinsics/pack_generic.c (pack_generic.c):  Likewise.
2005         * intrinsics/unpack_generic.c (unpack_internal):  Likewise.
2006         * intrinsics/eoshift0.c (eoshift0):  Likewise.
2007         * intrinsics/eoshift2.c (eoshift2):  Likewise.
2008         * intrinsics/reshape_generic.c (reshape_internal):  Likewise.
2009         * intrinsics/reshape_packed.c (reshape_packed):  Likewise.
2010         * generated/eoshift1_16.c: Regenerated.
2011         * generated/eoshift1_4.c: Regenerated.
2012         * generated/eoshift1_8.c: Regenerated.
2013         * generated/eoshift3_16.c: Regenerated.
2014         * generated/eoshift3_4.c: Regenerated.
2015         * generated/eoshift3_8.c: Regenerated.
2016         * generated/in_pack_c10.c: Regenerated.
2017         * generated/in_pack_c16.c: Regenerated.
2018         * generated/in_pack_c4.c: Regenerated.
2019         * generated/in_pack_c8.c: Regenerated.
2020         * generated/in_pack_i1.c: Regenerated.
2021         * generated/in_pack_i16.c: Regenerated.
2022         * generated/in_pack_i2.c: Regenerated.
2023         * generated/in_pack_i4.c: Regenerated.
2024         * generated/in_pack_i8.c: Regenerated.
2025         * generated/in_pack_r10.c: Regenerated.
2026         * generated/in_pack_r16.c: Regenerated.
2027         * generated/in_pack_r4.c: Regenerated.
2028         * generated/in_pack_r8.c: Regenerated.
2029         * generated/in_unpack_c10.c: Regenerated.
2030         * generated/in_unpack_c16.c: Regenerated.
2031         * generated/in_unpack_c4.c: Regenerated.
2032         * generated/in_unpack_c8.c: Regenerated.
2033         * generated/in_unpack_i1.c: Regenerated.
2034         * generated/in_unpack_i16.c: Regenerated.
2035         * generated/in_unpack_i2.c: Regenerated.
2036         * generated/in_unpack_i4.c: Regenerated.
2037         * generated/in_unpack_i8.c: Regenerated.
2038         * generated/in_unpack_r10.c: Regenerated.
2039         * generated/in_unpack_r16.c: Regenerated.
2040         * generated/in_unpack_r4.c: Regenerated.
2041         * generated/in_unpack_r8.c: Regenerated.
2042         * generated/maxloc0_16_i1.c: Regenerated.
2043         * generated/maxloc0_16_i16.c: Regenerated.
2044         * generated/maxloc0_16_i2.c: Regenerated.
2045         * generated/maxloc0_16_i4.c: Regenerated.
2046         * generated/maxloc0_16_i8.c: Regenerated.
2047         * generated/maxloc0_16_r10.c: Regenerated.
2048         * generated/maxloc0_16_r16.c: Regenerated.
2049         * generated/maxloc0_16_r4.c: Regenerated.
2050         * generated/maxloc0_16_r8.c: Regenerated.
2051         * generated/maxloc0_4_i1.c: Regenerated.
2052         * generated/maxloc0_4_i16.c: Regenerated.
2053         * generated/maxloc0_4_i2.c: Regenerated.
2054         * generated/maxloc0_4_i4.c: Regenerated.
2055         * generated/maxloc0_4_i8.c: Regenerated.
2056         * generated/maxloc0_4_r10.c: Regenerated.
2057         * generated/maxloc0_4_r16.c: Regenerated.
2058         * generated/maxloc0_4_r4.c: Regenerated.
2059         * generated/maxloc0_4_r8.c: Regenerated.
2060         * generated/maxloc0_8_i1.c: Regenerated.
2061         * generated/maxloc0_8_i16.c: Regenerated.
2062         * generated/maxloc0_8_i2.c: Regenerated.
2063         * generated/maxloc0_8_i4.c: Regenerated.
2064         * generated/maxloc0_8_i8.c: Regenerated.
2065         * generated/maxloc0_8_r10.c: Regenerated.
2066         * generated/maxloc0_8_r16.c: Regenerated.
2067         * generated/maxloc0_8_r4.c: Regenerated.
2068         * generated/maxloc0_8_r8.c: Regenerated.
2069         * generated/minloc0_16_i1.c: Regenerated.
2070         * generated/minloc0_16_i16.c: Regenerated.
2071         * generated/minloc0_16_i2.c: Regenerated.
2072         * generated/minloc0_16_i4.c: Regenerated.
2073         * generated/minloc0_16_i8.c: Regenerated.
2074         * generated/minloc0_16_r10.c: Regenerated.
2075         * generated/minloc0_16_r16.c: Regenerated.
2076         * generated/minloc0_16_r4.c: Regenerated.
2077         * generated/minloc0_16_r8.c: Regenerated.
2078         * generated/minloc0_4_i1.c: Regenerated.
2079         * generated/minloc0_4_i16.c: Regenerated.
2080         * generated/minloc0_4_i2.c: Regenerated.
2081         * generated/minloc0_4_i4.c: Regenerated.
2082         * generated/minloc0_4_i8.c: Regenerated.
2083         * generated/minloc0_4_r10.c: Regenerated.
2084         * generated/minloc0_4_r16.c: Regenerated.
2085         * generated/minloc0_4_r4.c: Regenerated.
2086         * generated/minloc0_4_r8.c: Regenerated.
2087         * generated/minloc0_8_i1.c: Regenerated.
2088         * generated/minloc0_8_i16.c: Regenerated.
2089         * generated/minloc0_8_i2.c: Regenerated.
2090         * generated/minloc0_8_i4.c: Regenerated.
2091         * generated/minloc0_8_i8.c: Regenerated.
2092         * generated/minloc0_8_r10.c: Regenerated.
2093         * generated/minloc0_8_r16.c: Regenerated.
2094         * generated/minloc0_8_r4.c: Regenerated.
2095         * generated/minloc0_8_r8.c: Regenerated.
2096         * generated/pack_c10.c: Regenerated.
2097         * generated/pack_c16.c: Regenerated.
2098         * generated/pack_c4.c: Regenerated.
2099         * generated/pack_c8.c: Regenerated.
2100         * generated/pack_i1.c: Regenerated.
2101         * generated/pack_i16.c: Regenerated.
2102         * generated/pack_i2.c: Regenerated.
2103         * generated/pack_i4.c: Regenerated.
2104         * generated/pack_i8.c: Regenerated.
2105         * generated/pack_r10.c: Regenerated.
2106         * generated/pack_r16.c: Regenerated.
2107         * generated/pack_r4.c: Regenerated.
2108         * generated/pack_r8.c: Regenerated.
2109         * generated/spread_c10.c: Regenerated.
2110         * generated/spread_c16.c: Regenerated.
2111         * generated/spread_c4.c: Regenerated.
2112         * generated/spread_c8.c: Regenerated.
2113         * generated/spread_i1.c: Regenerated.
2114         * generated/spread_i16.c: Regenerated.
2115         * generated/spread_i2.c: Regenerated.
2116         * generated/spread_i4.c: Regenerated.
2117         * generated/spread_i8.c: Regenerated.
2118         * generated/spread_r10.c: Regenerated.
2119         * generated/spread_r16.c: Regenerated.
2120         * generated/spread_r4.c: Regenerated.
2121         * generated/spread_r8.c: Regenerated.
2122         * generated/transpose_c10.c: Regenerated.
2123         * generated/transpose_c16.c: Regenerated.
2124         * generated/transpose_c4.c: Regenerated.
2125         * generated/transpose_c8.c: Regenerated.
2126         * generated/transpose_i16.c: Regenerated.
2127         * generated/transpose_i4.c: Regenerated.
2128         * generated/transpose_i8.c: Regenerated.
2129         * generated/transpose_r10.c: Regenerated.
2130         * generated/transpose_r16.c: Regenerated.
2131         * generated/transpose_r4.c: Regenerated.
2132         * generated/transpose_r8.c: Regenerated.
2133         * generated/unpack_c10.c: Regenerated.
2134         * generated/unpack_c16.c: Regenerated.
2135         * generated/unpack_c4.c: Regenerated.
2136         * generated/unpack_c8.c: Regenerated.
2137         * generated/unpack_i1.c: Regenerated.
2138         * generated/unpack_i16.c: Regenerated.
2139         * generated/unpack_i2.c: Regenerated.
2140         * generated/unpack_i4.c: Regenerated.
2141         * generated/unpack_i8.c: Regenerated.
2142         * generated/unpack_r10.c: Regenerated.
2143         * generated/unpack_r16.c: Regenerated.
2144         * generated/unpack_r4.c: Regenerated.
2145         * generated/unpack_r8.c: Regenerated.
2147 2008-05-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2149         * runtime/select.c: Moved content to select_inc.c. Include it. 
2150         Add macros for different character types.
2151         * runtime/select_inc.c: New file.
2152         * runtime/convert_char.c: New file.
2153         * intrinsics/pack_generic.c (pack_char4, pack_s_char4): New
2154         functions.
2155         * intrinsics/transpose_generic.c (transpose_char4): New function.
2156         * intrinsics/spread_generic.c (spread_char4, spread_char4_scalar):
2157         New functions.
2158         * intrinsics/unpack_generic.c (unpack1_char4, unpack0_char4): 
2159         New functions.
2160         * intrinsics/reshape_generic.c (reshape_char): Use
2161         gfc_charlen_type as type for length variables.
2162         (reshape_char4): New function.
2163         * gfortran.map (GFORTRAN_1.1): Add _gfortran_select_string_char4,
2164         _gfortran_convert_char1_to_char4, _gfortran_convert_char4_to_char1,
2165         _gfortran_transpose_char4, _gfortran_spread_char4,
2166         _gfortran_spread_char4_scalar, _gfortran_reshape_char4,
2167         _gfortran_pack_char4, _gfortran_pack_s_char4,
2168         _gfortran_unpack0_char4 and _gfortran_unpack1_char4.
2169         * Makefile.am: Add runtime/convert_char.c.
2170         * Makefile.in: Regenerate.
2172 2008-05-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
2174         * io/list_read.c (list_formatted_read_scalar):  Declare
2175         type as volatile to shut up compiler warning.
2177 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
2179         PR libfortran/25561
2180         * io/io.h (struct fbuf): Change pointer to position offset.
2181         * io/fbuf.c (fbuf_init): Reduce default size of buffer, ptr=>pos
2182         changes.
2183         (fbuf_reset): ptr=>pos changes.
2184         (fbuf_alloc): If the request doesn't fit, don't waste memory by
2185         keeping flushed bytes. ptr=>pos changes.
2186         (fbuf_flush): ptr=>pos changes.
2187         (fbuf_seek): Don't seek past the left tab limit, don't update active
2188         byte count.
2189         * io/open.c (new_unit): If RECL has been specified, used that as
2190         initial buffer size.
2192 2008-05-16  Janne Blomqvist  <jb@gcc.gnu.org>
2194         PR libfortran/35632
2195         * io/open.c (new_unit): Set stream position to correct value.
2197 2008-05-15  Janne Blomqvist  <jb@gcc.gnu.org>
2199         PR libfortran/25561
2200         * Makefile.am: Add fbuf.c to gfor_io_src.
2201         * Makefile.in: Regenerate.
2202         * io/io.h (read_block): Remove.
2203         (struct stream): Remove alloc_r_at function pointer.
2204         (salloc_r): Remove.
2205         (salloc_r_at): Remove.
2206         (salloc_w_at): Remove.
2207         (salloc_w): Remove offset argument.
2208         (struct fbuf): New struct for format buffer.
2209         (struct gfc_unit): Add fbuf.
2210         (read_block_form): New prototype.
2211         (fbuf_init): Likewise.
2212         (fbuf_destroy): Likewise.
2213         (fbuf_reset): Likewise.
2214         (fbuf_alloc): Likewise.
2215         (fbuf_flush): Likewise.
2216         (fbuf_seek): Likewise.
2217         * io/file_pos.c (formatted_backspace): Change to use sread.
2218         (unformatted_backspace): Likewise.
2219         (st_backspace): Flush format buffer.
2220         (st_rewind): Likewise.
2221         * io/list_read.c (next_char): Likewise.
2222         (nml_query): Tidying, flush format buffer.
2223         * io/open.c (new_unit): Init format buffer.
2224         * io/read.c (read_l): Change to use read_block_form.
2225         (read_a): Likewise.
2226         (read_decimal): Likewise.
2227         (read_radix): Likewise.
2228         (read_f): Likewise.
2229         (read_x): Empty reads also for stream I/O.
2230         * io/transfer.c (read_sf): Change to use sread.
2231         (read_block): Rename to read_block_form, change prototype, use sread.
2232         (read_block_direct): Don't seek stream files.
2233         (write_block): Change to use fbuf if external file, don't seek stream
2234         files.
2235         (write_buf): Don't seek stream files.
2236         (formatted_transfer_scalar): Use fbuf for external files.
2237         (us_read): Change to use sread.
2238         (pre_position): Do nothing for stream I/O.
2239         (data_transfer_init): Flush fbuf when switching from write to read, if
2240         POS is specified, seek stream file to correct offset.
2241         (skip_record): Change to use sread.
2242         (min_off): New function.
2243         (next_record_r): Change to use sread.
2244         (next_record_w): Change to use sset/sseek, flush fbuf.
2245         (finalize_transfer): Flush fbuf.
2246         * io/unit.c (init_units): Init fbuf for stdout, stderr.
2247         (close_unit_1): Destroy fbuf.
2248         (finish_last_advance_record): Flush fbuf, no need to seek.
2249         * io/unix.c (fd_alloc_r_at): Remove unused where argument.
2250         (fd_alloc_w_at): Likewise.
2251         (fd_read): Remove third argument to fd_alloc_r_at.
2252         (fd_write): Remove third argument to fd_alloc_w_at.
2253         (fd_sset): Likewise.
2254         (fd_open): Don't set alloc_r_at.
2255         (mem_alloc_r_at): Remove unused where argument.
2256         (mem_alloc_w_at): Likewise.
2257         (mem_read): Don't incorrectly return previous errno, remove unused
2258         third argument to alloc function.
2259         (mem_write): Likewise.
2260         (mem_set): Likewise.
2261         (open_internal): Don't set alloc_r_at pointer.
2262         * io/fbuf.c: New file.
2264 2008-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2266         * libgfortran.h (gfc_char4_t): New type.
2267         (GFC_SIZE_OF_CHAR_KIND): New macro.
2268         (compare_string): Adjust prototype.
2269         (compare_string_char4): New prototype.
2270         * gfortran.map (GFORTRAN_1.1): Add _gfortran_adjustl_char4,
2271         _gfortran_adjustr_char4, _gfortran_compare_string_char4,
2272         _gfortran_concat_string_char4, _gfortran_string_index_char4,
2273         _gfortran_string_len_trim_char4, _gfortran_string_minmax_char4,
2274         _gfortran_string_scan_char4, _gfortran_string_trim_char4 and
2275         _gfortran_string_verify_char4.
2276         * intrinsics/string_intrinsics_inc.c: New file from content of
2277         string_intrinsics.c with types replaced by macros.
2278         * intrinsics/string_intrinsics.c: Move content to
2279         string_intrinsics_inc.c.
2281 2008-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2283         PR libfortran/36202
2284         * io/list_read (eat_separator): Handle the CR-LF case correctly.
2286 2008-05-09  Julian Brown  <julian@codesourcery.com>
2288         * Makefile.am (LTLDFLAGS): New.
2289         (libgfortran_la_LDFLAGS): Use above.
2290         * Makefile.in: Regenerate.
2292 2008-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2294         PR libfortran/36131
2295         * io/transfer.c (formatted_transfer_scalar): Revert patch for PR34974.
2296         (next_record_w): Likewise.
2298 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2300         PR libfortran/35995
2301         * m4/ifunction_logical.m4:  If the extent of "array"
2302         is less than zero, set it to zero.  Use an explicit
2303         flag for breaking out of the main loop to avoid, because
2304         the data pointer for "array" may be NULL for an empty
2305         array.
2306         * m4/ifunction.m4:  Likewise.
2307         * generated/all_l1.c: Regenerated.
2308         * generated/all_l16.c: Regenerated.
2309         * generated/all_l2.c: Regenerated.
2310         * generated/all_l4.c: Regenerated.
2311         * generated/all_l8.c: Regenerated.
2312         * generated/any_l1.c: Regenerated.
2313         * generated/any_l16.c: Regenerated.
2314         * generated/any_l2.c: Regenerated.
2315         * generated/any_l4.c: Regenerated.
2316         * generated/any_l8.c: Regenerated.
2317         * generated/count_16_l.c: Regenerated.
2318         * generated/count_1_l.c: Regenerated.
2319         * generated/count_2_l.c: Regenerated.
2320         * generated/count_4_l.c: Regenerated.
2321         * generated/count_8_l.c: Regenerated.
2322         * generated/maxloc1_16_i1.c: Regenerated.
2323         * generated/maxloc1_16_i16.c: Regenerated.
2324         * generated/maxloc1_16_i2.c: Regenerated.
2325         * generated/maxloc1_16_i4.c: Regenerated.
2326         * generated/maxloc1_16_i8.c: Regenerated.
2327         * generated/maxloc1_16_r10.c: Regenerated.
2328         * generated/maxloc1_16_r16.c: Regenerated.
2329         * generated/maxloc1_16_r4.c: Regenerated.
2330         * generated/maxloc1_16_r8.c: Regenerated.
2331         * generated/maxloc1_4_i1.c: Regenerated.
2332         * generated/maxloc1_4_i16.c: Regenerated.
2333         * generated/maxloc1_4_i2.c: Regenerated.
2334         * generated/maxloc1_4_i4.c: Regenerated.
2335         * generated/maxloc1_4_i8.c: Regenerated.
2336         * generated/maxloc1_4_r10.c: Regenerated.
2337         * generated/maxloc1_4_r16.c: Regenerated.
2338         * generated/maxloc1_4_r4.c: Regenerated.
2339         * generated/maxloc1_4_r8.c: Regenerated.
2340         * generated/maxloc1_8_i1.c: Regenerated.
2341         * generated/maxloc1_8_i16.c: Regenerated.
2342         * generated/maxloc1_8_i2.c: Regenerated.
2343         * generated/maxloc1_8_i4.c: Regenerated.
2344         * generated/maxloc1_8_i8.c: Regenerated.
2345         * generated/maxloc1_8_r10.c: Regenerated.
2346         * generated/maxloc1_8_r16.c: Regenerated.
2347         * generated/maxloc1_8_r4.c: Regenerated.
2348         * generated/maxloc1_8_r8.c: Regenerated.
2349         * generated/maxval_i1.c: Regenerated.
2350         * generated/maxval_i16.c: Regenerated.
2351         * generated/maxval_i2.c: Regenerated.
2352         * generated/maxval_i4.c: Regenerated.
2353         * generated/maxval_i8.c: Regenerated.
2354         * generated/maxval_r10.c: Regenerated.
2355         * generated/maxval_r16.c: Regenerated.
2356         * generated/maxval_r4.c: Regenerated.
2357         * generated/maxval_r8.c: Regenerated.
2358         * generated/minloc1_16_i1.c: Regenerated.
2359         * generated/minloc1_16_i16.c: Regenerated.
2360         * generated/minloc1_16_i2.c: Regenerated.
2361         * generated/minloc1_16_i4.c: Regenerated.
2362         * generated/minloc1_16_i8.c: Regenerated.
2363         * generated/minloc1_16_r10.c: Regenerated.
2364         * generated/minloc1_16_r16.c: Regenerated.
2365         * generated/minloc1_16_r4.c: Regenerated.
2366         * generated/minloc1_16_r8.c: Regenerated.
2367         * generated/minloc1_4_i1.c: Regenerated.
2368         * generated/minloc1_4_i16.c: Regenerated.
2369         * generated/minloc1_4_i2.c: Regenerated.
2370         * generated/minloc1_4_i4.c: Regenerated.
2371         * generated/minloc1_4_i8.c: Regenerated.
2372         * generated/minloc1_4_r10.c: Regenerated.
2373         * generated/minloc1_4_r16.c: Regenerated.
2374         * generated/minloc1_4_r4.c: Regenerated.
2375         * generated/minloc1_4_r8.c: Regenerated.
2376         * generated/minloc1_8_i1.c: Regenerated.
2377         * generated/minloc1_8_i16.c: Regenerated.
2378         * generated/minloc1_8_i2.c: Regenerated.
2379         * generated/minloc1_8_i4.c: Regenerated.
2380         * generated/minloc1_8_i8.c: Regenerated.
2381         * generated/minloc1_8_r10.c: Regenerated.
2382         * generated/minloc1_8_r16.c: Regenerated.
2383         * generated/minloc1_8_r4.c: Regenerated.
2384         * generated/minloc1_8_r8.c: Regenerated.
2385         * generated/minval_i1.c: Regenerated.
2386         * generated/minval_i16.c: Regenerated.
2387         * generated/minval_i2.c: Regenerated.
2388         * generated/minval_i4.c: Regenerated.
2389         * generated/minval_i8.c: Regenerated.
2390         * generated/minval_r10.c: Regenerated.
2391         * generated/minval_r16.c: Regenerated.
2392         * generated/minval_r4.c: Regenerated.
2393         * generated/minval_r8.c: Regenerated.
2394         * generated/product_c10.c: Regenerated.
2395         * generated/product_c16.c: Regenerated.
2396         * generated/product_c4.c: Regenerated.
2397         * generated/product_c8.c: Regenerated.
2398         * generated/product_i1.c: Regenerated.
2399         * generated/product_i16.c: Regenerated.
2400         * generated/product_i2.c: Regenerated.
2401         * generated/product_i4.c: Regenerated.
2402         * generated/product_i8.c: Regenerated.
2403         * generated/product_r10.c: Regenerated.
2404         * generated/product_r16.c: Regenerated.
2405         * generated/product_r4.c: Regenerated.
2406         * generated/product_r8.c: Regenerated.
2407         * generated/sum_c10.c: Regenerated.
2408         * generated/sum_c16.c: Regenerated.
2409         * generated/sum_c4.c: Regenerated.
2410         * generated/sum_c8.c: Regenerated.
2411         * generated/sum_i1.c: Regenerated.
2412         * generated/sum_i16.c: Regenerated.
2413         * generated/sum_i2.c: Regenerated.
2414         * generated/sum_i4.c: Regenerated.
2415         * generated/sum_i8.c: Regenerated.
2416         * generated/sum_r10.c: Regenerated.
2417         * generated/sum_r16.c: Regenerated.
2418         * generated/sum_r4.c: Regenerated.
2419         * generated/sum_r8.c: Regenerated.
2421 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2423         PR libfortran/35990
2424         * intrinsics/pack_generic.c:  Really commit.
2426 2008-05-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
2428         PR libfortran/35990
2429         * intrinsics/pack_generic.c:  If an extent of the source
2430         array is less then zero, set it to zero.  Set the source
2431         pointer to NULL if the source size is zero.  Set the total
2432         number of elements to zero if the vector has an extent
2433         less or equal to zero.
2434         * m4/pack.m4:  Set the source pointer to NULL if the
2435         source array is zero-sized.  Set the total number of
2436         elemements to zero if the vector has an extent less or
2437         equal to zero.
2438         * generated/pack_i1.c:  Regenerated.
2439         * generated/pack_i2.c:  Regenerated.
2440         * generated/pack_i4.c:  Regenerated.
2441         * generated/pack_i8.c:  Regenerated.
2442         * generated/pack_i16.c:  Regenerated.
2443         * generated/pack_r4.c:  Regenerated.
2444         * generated/pack_r8.c:  Regenerated.
2445         * generated/pack_r10.c:  Regenerated.
2446         * generated/pack_r16.c:  Regenerated.
2447         * generated/pack_c4.c:  Regenerated.
2448         * generated/pack_c8.c:  Regenerated.
2449         * generated/pack_c10.c:  Regenerated.
2450         * generated/pack_c16.c:  Regenerated.
2452 2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2454         PR libfortran/36094
2455         * runtime/error.c (show_locus): Provide modified error message when
2456         filename has not yet been associated with a unit number.
2457         * io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
2459 2008-04-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2461         * intrinsics/selected_char_kind.c: New file.
2462         * gfortran.map (GFORTRAN_1.1): Add _gfortran_selected_char_kind.
2463         * Makefile.am: Add intrinsics/selected_char_kind.c.
2464         * Makefile.in: Regenerate.
2466 2008-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
2468         PR libfortran/35993
2469         * ifunction.m4 (SCALAR_ARRAY_FUNCTION):  Use correct
2470         implementation for multi-dimensional return arrays when
2471         the mask is .false.
2472         * generated/maxloc1_16_i1.c: Regenerated.
2473         * generated/maxloc1_16_i16.c: Regenerated.
2474         * generated/maxloc1_16_i2.c: Regenerated.
2475         * generated/maxloc1_16_i4.c: Regenerated.
2476         * generated/maxloc1_16_i8.c: Regenerated.
2477         * generated/maxloc1_16_r10.c: Regenerated.
2478         * generated/maxloc1_16_r16.c: Regenerated.
2479         * generated/maxloc1_16_r4.c: Regenerated.
2480         * generated/maxloc1_16_r8.c: Regenerated.
2481         * generated/maxloc1_4_i1.c: Regenerated.
2482         * generated/maxloc1_4_i16.c: Regenerated.
2483         * generated/maxloc1_4_i2.c: Regenerated.
2484         * generated/maxloc1_4_i4.c: Regenerated.
2485         * generated/maxloc1_4_i8.c: Regenerated.
2486         * generated/maxloc1_4_r10.c: Regenerated.
2487         * generated/maxloc1_4_r16.c: Regenerated.
2488         * generated/maxloc1_4_r4.c: Regenerated.
2489         * generated/maxloc1_4_r8.c: Regenerated.
2490         * generated/maxloc1_8_i1.c: Regenerated.
2491         * generated/maxloc1_8_i16.c: Regenerated.
2492         * generated/maxloc1_8_i2.c: Regenerated.
2493         * generated/maxloc1_8_i4.c: Regenerated.
2494         * generated/maxloc1_8_i8.c: Regenerated.
2495         * generated/maxloc1_8_r10.c: Regenerated.
2496         * generated/maxloc1_8_r16.c: Regenerated.
2497         * generated/maxloc1_8_r4.c: Regenerated.
2498         * generated/maxloc1_8_r8.c: Regenerated.
2499         * generated/maxval_i1.c: Regenerated.
2500         * generated/maxval_i16.c: Regenerated.
2501         * generated/maxval_i2.c: Regenerated.
2502         * generated/maxval_i4.c: Regenerated.
2503         * generated/maxval_i8.c: Regenerated.
2504         * generated/maxval_r10.c: Regenerated.
2505         * generated/maxval_r16.c: Regenerated.
2506         * generated/maxval_r4.c: Regenerated.
2507         * generated/maxval_r8.c: Regenerated.
2508         * generated/minloc1_16_i1.c: Regenerated.
2509         * generated/minloc1_16_i16.c: Regenerated.
2510         * generated/minloc1_16_i2.c: Regenerated.
2511         * generated/minloc1_16_i4.c: Regenerated.
2512         * generated/minloc1_16_i8.c: Regenerated.
2513         * generated/minloc1_16_r10.c: Regenerated.
2514         * generated/minloc1_16_r16.c: Regenerated.
2515         * generated/minloc1_16_r4.c: Regenerated.
2516         * generated/minloc1_16_r8.c: Regenerated.
2517         * generated/minloc1_4_i1.c: Regenerated.
2518         * generated/minloc1_4_i16.c: Regenerated.
2519         * generated/minloc1_4_i2.c: Regenerated.
2520         * generated/minloc1_4_i4.c: Regenerated.
2521         * generated/minloc1_4_i8.c: Regenerated.
2522         * generated/minloc1_4_r10.c: Regenerated.
2523         * generated/minloc1_4_r16.c: Regenerated.
2524         * generated/minloc1_4_r4.c: Regenerated.
2525         * generated/minloc1_4_r8.c: Regenerated.
2526         * generated/minloc1_8_i1.c: Regenerated.
2527         * generated/minloc1_8_i16.c: Regenerated.
2528         * generated/minloc1_8_i2.c: Regenerated.
2529         * generated/minloc1_8_i4.c: Regenerated.
2530         * generated/minloc1_8_i8.c: Regenerated.
2531         * generated/minloc1_8_r10.c: Regenerated.
2532         * generated/minloc1_8_r16.c: Regenerated.
2533         * generated/minloc1_8_r4.c: Regenerated.
2534         * generated/minloc1_8_r8.c: Regenerated.
2535         * generated/minval_i1.c: Regenerated.
2536         * generated/minval_i16.c: Regenerated.
2537         * generated/minval_i2.c: Regenerated.
2538         * generated/minval_i4.c: Regenerated.
2539         * generated/minval_i8.c: Regenerated.
2540         * generated/minval_r10.c: Regenerated.
2541         * generated/minval_r16.c: Regenerated.
2542         * generated/minval_r4.c: Regenerated.
2543         * generated/minval_r8.c: Regenerated.
2544         * generated/product_c10.c: Regenerated.
2545         * generated/product_c16.c: Regenerated.
2546         * generated/product_c4.c: Regenerated.
2547         * generated/product_c8.c: Regenerated.
2548         * generated/product_i1.c: Regenerated.
2549         * generated/product_i16.c: Regenerated.
2550         * generated/product_i2.c: Regenerated.
2551         * generated/product_i4.c: Regenerated.
2552         * generated/product_i8.c: Regenerated.
2553         * generated/product_r10.c: Regenerated.
2554         * generated/product_r16.c: Regenerated.
2555         * generated/product_r4.c: Regenerated.
2556         * generated/product_r8.c: Regenerated.
2557         * generated/sum_c10.c: Regenerated.
2558         * generated/sum_c16.c: Regenerated.
2559         * generated/sum_c4.c: Regenerated.
2560         * generated/sum_c8.c: Regenerated.
2561         * generated/sum_i1.c: Regenerated.
2562         * generated/sum_i16.c: Regenerated.
2563         * generated/sum_i2.c: Regenerated.
2564         * generated/sum_i4.c: Regenerated.
2565         * generated/sum_i8.c: Regenerated.
2566         * generated/sum_r10.c: Regenerated.
2567         * generated/sum_r16.c: Regenerated.
2568         * generated/sum_r4.c: Regenerated.
2569         * generated/sum_r8.c: Regenerated.
2571 2008-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
2573         PR libfortran/35960
2574         * m4/reshape.m4:  Fix typo in last commit.
2575         * generated/reshape_i4.c:  Regererated.
2576         * generated/reshape_i8.c:  Regenerated.
2577         * generated/reshape_i16.c:  Regenerated.
2578         * generated/reshape_r4.c:  Regenerated.
2579         * generated/reshape_r8.c:  Regenerated.
2580         * generated/reshape_r10.c:  Regenerated.
2581         * generated/reshape_r16.c:  Regenerated.
2582         * generated/reshape_c4.c:  Regenerated.
2583         * generated/reshape_c8.c:  Regenerated.
2584         * generated/reshape_c10.c:  Regenerated.
2585         * generated/reshape_c16.c:  Regenerated.
2587 2008-04-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2589         * intrinsics/time_1.h (__time_1): Remove unused variable.
2591 2008-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2593         PR libfortran/35988
2594         * m4/matmul.m4:  Only issue a runtime error if extents are
2595         non-zero.
2596         * generated/matmul_i1.c:  Regenerated.
2597         * generated/matmul_i2.c:  Regenerated.
2598         * generated/matmul_i4.c:  Regenerated.
2599         * generated/matmul_i8.c:  Regenerated.
2600         * generated/matmul_i16.c:  Regenerated.
2601         * generated/matmul_r4.c:  Regenerated.
2602         * generated/matmul_r8.c:  Regenerated.
2603         * generated/matmul_r10.c:  Regenerated.
2604         * generated/matmul_r16.c:  Regenerated.
2605         * generated/matmul_c4.c:  Regenerated.
2606         * generated/matmul_c8.c:  Regenerated.
2607         * generated/matmul_c10.c:  Regenerated.
2608         * generated/matmul_c16.c:  Regenerated.
2610 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2612         * acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY)
2613         (LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT)
2614         (LIBGFOR_CHECK_ATTRIBUTE_ALIAS, LIBGFOR_CHECK_SYNC_FETCH_AND_ADD)
2615         (LIBGFOR_GTHREAD_WEAK, LIBGFOR_CHECK_UNLINK_OPEN_FILE)
2616         (LIBGFOR_CHECK_CRLF, LIBGFOR_CHECK_FOR_BROKEN_ISFINITE)
2617         (LIBGFOR_CHECK_FOR_BROKEN_ISNAN)
2618         (LIBGFOR_CHECK_FOR_BROKEN_FPCLASSIFY, LIBGFOR_CHECK_WORKING_STAT)
2619         (LIBGFOR_CHECK_FPSETMASK, LIBGFOR_CHECK_MINGW_SNPRINTF):
2620         Fix cache variable names.
2621         * configure, Makefile.in: Regenerate.
2623 2008-04-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2625         PR fortran/35991
2626         * intrinsics/cshift0.c (cshift0): Avoid divide by zero.
2628 2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>
2630         PR libfortran/35960
2631         * intrinsics/reshape_generic.c (reshape_internal): If the size
2632         of the resized array is zero, as determined by the SHAPE
2633         argument, return early.
2634         * m4/reshape.m4:  Likewise.
2635         * generated/reshape_i4.c:  Regererated.
2636         * generated/reshape_i8.c:  Regenerated.
2637         * generated/reshape_i16.c:  Regenerated.
2638         * generated/reshape_r4.c:  Regenerated.
2639         * generated/reshape_r8.c:  Regenerated.
2640         * generated/reshape_r10.c:  Regenerated.
2641         * generated/reshape_r16.c:  Regenerated.
2642         * generated/reshape_c4.c:  Regenerated.
2643         * generated/reshape_c8.c:  Regenerated.
2644         * generated/reshape_c10.c:  Regenerated.
2645         * generated/reshape_c16.c:  Regenerated.
2647 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2649         PR bootstrap/35457
2650         * aclocal.m4: Regenerate.
2651         * configure: Regenerate.
2653 2008-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2655         PR libfortran/32972
2656         * intrinsics/spread_generic.c (spread):  Use spread_i2()
2657         for GFC_DTYPE_DERIVED_2 (fix typo from previous commit).
2659 2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
2660         Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2662         PR libfortran/32972
2663         PR libfortran/32512
2664         configure.ac:  Add test for uintptr_t.
2665         configure:  Regenerated.
2666         config.h.in:  Regenerated.
2667         * libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
2668         GFC_DTYPE_DERIVED_2:  New macro.
2669         GFC_DTYPE_DERIVED_4:  New macro.
2670         GFC_DTYPE_DERIVED_8:  New macro.
2671         GFC_DTYPE_DERIVED_16:  New macro.
2672         GFC_UNALIGNED_2:  New macro.
2673         GFC_UNALIGNED_4:  New macro.
2674         GFC_UNALIGNED_8:  New macro.
2675         GFC_UNALIGNED_16:  New macro.
2676         intptr_t:  Define if we don't have it.
2677         uintptr_t:  Likewise.
2678         * runtime/backtrace.c (show_backtrace):  Use intptr_t.
2679         * intrinsics/signal.c (signal_sub):  Likewise.
2680         (signal_sub_int):  Likewise.
2681         (alarm_sub_int_i4):  Likewise.
2682         * intrinsics/spread_generic.c (spread):  Use the integer
2683         routines for handling derived types of sizes 1, 2, 4, 8 and 16
2684         if the alignment of all pointers is correct.
2685         (spread_scalar):  Likewise.
2686         * intrinsics/pack_generic.c (pack):  Likewise.
2687         Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
2688         * intrinsics/unpack_generic.c (unpack1):  Likewise.
2689         (unpack0):  Likewise.
2690         * runtime/in_pack_generic.c (internal_pack):  Likewise.
2691         * runtime/in_unpack_generic.c (internal_unpack):  Likewise.
2693 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2695         * io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
2696         (nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
2697         recursive call.  Use snprintf instead of sprintf when %s nl->var_name
2698         is used.
2699         (nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
2700         nml_read_obj call.  Use snprintf instead of sprintf when %s
2701         nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
2702         of parse_err_msg array.  Append " for namelist variable " and
2703         nl->var_name to it.
2704         (namelist_read): Increase size of nml_err_msg array to 200.  Pass
2705         sizeof nml_err_msg as extra argument to nml_get_obj_data.
2707 2008-04-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2709         PR fortran/25829 28655
2710         * io/open.c (edit_modes): Set flags.async. (new_unit) Set flags.async
2711         and flags.status. (st_open): Initialize flags.async.
2712         * io/list_read.c (read_charactor): Use delim_status instead of
2713         flags.delim.
2714         * io/read.c (read_x): Use pad_status instead of flags.pad.
2715         * io/inquire.c (inquire_via_unit): Add new checks.
2716         (inquire_via_filename): Likewise.
2717         * io/io.h (st_parameter_inquire): Add new flags.
2718         (st_parameter_dt): Likewise.
2719         * io/unit.c (get_internal_unit): Set flags.async. (init_units): Set
2720         flags.async.
2721         * io/transfer.c: Add delim and pad option arrays. (read_sf): Use
2722         pad_status instead of flags.pad. (read_block): Likewise.
2723         (data_transfer_init): Set flags.async and add checks.
2724         * io/write.c (write_character): Use delim_status.
2725         (list_formatted_write_scalar): Likewise. (nml_write_obj): Likewise.
2726         (namelist_write): Likewise.
2728 2008-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2730         PR fortran/25829 28655
2731         * gfortran.map: Add new symbol, _gfortran_st_wait.
2732         * libgfortran.h (st_paramter_common): Add new I/O parameters.
2733         * open.c (st_option decimal_opt[], st_option encoding_opt[],
2734         st_option round_opt[], st_option sign_opt[], st_option async_opt[]): New
2735         parameter option arrays. (edit_modes): Add checks for new parameters.
2736         (new_unit): Likewise. (st_open): Likewise.
2737         * list_read.c (CASE_SEPERATORS): Add ';' as a valid separator.
2738         (eat_separator): Handle deimal comma. (read_logical): Fix whitespace.
2739         (parse_real): Handle decimal comma. (read_real): Handle decimal comma.
2740         * read.c (read_a): Use decimal status flag to allow comma in place of a
2741         decimal point. (read_f): Allow comma as acceptable character in float.
2742         According to decimal flag, substitute a period for a comma.
2743         (read_x): If decimal status flag is comma, disable the read_comma flag,
2744         not allowing comma as a delimiter, an extension otherwise.
2745         * io.h: (unit_decimal, unit_encoding, unit_round, unit_sign,
2746         unit_async): New enumerators. Add all new I/O parameters.
2747         * unix.c (unix_stream, int_stream): Add io_mode asychronous I/O control.
2748         (move_pos_offset, fd_alloc_w_at): Fix some whitespace.
2749         (fd_sfree): Use new enumerator. (fd_read): Likewise.
2750         (fd_write): Likewise. (fd_close): Fix whitespace.
2751         (fd_open): Use new enumertors. (tempfile, regular_file,
2752         open_external): Fix whitespace. (output_stream, error_stream): Set
2753         method. (stream_offset): Fix whitespace.
2754         * transfer.c: (st_option decimal_opt[], sign_opt[], blank_opt[]): New
2755         option arrays.  (formatted_transfer_scalar): Set sf_read_comma flag
2756         based on new decimal_status flag. (data_transfer_init): Initialize new
2757         parameters. Add checks for decimal, sign, and blank. (st_wait): New stub.
2758         * format.c: (format_lex): Add format specifiers DP, DC, and D.
2759         (parse_format_list): Parse the new specifiers.
2760         * write.c (write_decimal): Use new sign enumerators to set the sign.
2761         (write_complex): Handle decimal comma and semi-colon separator.
2762         (nml_write_obj): Likewise.
2763         * write_float.def: Revise sign enumerators. (calculate_sign): Use new
2764         sign enumerators. (output_float): Likewise. Use new decimal_status flag
2765         to set the decimal character to a point or a comma.
2766         
2767 2008-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
2769         PR libfortran/32972
2770         PR libfortran/32512
2771         * Makefile.am:  Add new variable, i_spread_c, containing
2772         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, spread_i16.c,
2773         spread_r4.c, spread_r8.c, spread_r10.c, spread_r16.c,
2774         spread_c4.c, spread_c8.c, spread_c10.c, spread_c16.c.
2775         * Makefile.in:  Regenerated.
2776         * libgfortran.h:  Add prototypes for spread_i1, spread_i2,
2777         spread_i4, spread_i8, spread_i16, spread_r4, spread_r8,
2778         spread_c4, spread_c8, spread_c10, spread_c16,
2779         spread_scalar_i1, spread_scalar_i2, spread_scalar_i4,
2780         spread_scalar_i8, spread_scalar_i16, spread_scalar_r4
2781         spread_scalar_r8, spread_scalar_c4, spread_scalar_c8,
2782         spread_scalar_c10 and spread_scalar_c16.
2783         Add macros to isolate both type and size information
2784         from array descriptors with a single mask operation.
2785         * intrinsics/spread_generic.c:  Add calls to specific
2786         spread functions.
2787         * m4/spread.m4:  New file.
2788         * generated/spread_i1.c:  New file.
2789         * generated/spread_i2.c:  New file.
2790         * generated/spread_i4.c:  New file.
2791         * generated/spread_i8.c:  New file.
2792         * generated/spread_i16.c:  New file.
2793         * generated/spread_r4.c:  New file.
2794         * generated/spread_r8.c:  New file.
2795         * generated/spread_r10.c:  New file.
2796         * generated/spread_r16.c:  New file.
2797         * generated/spread_c4.c:  New file.
2798         * generated/spread_c8.c:  New file.
2799         * generated/spread_c10.c:  New file.
2800         * generated/spread_c16.c:  New file.
2802 2008-03-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2804         PR libfortran/35699
2805         * io/transfer.c (write_buf):  Don't pad the record, just return if the
2806         data is NULL.  (next_record_w): If there are bytes left in the record
2807         for unformatted direct I/O, pad out the record with zero bytes.
2809 2008-03-28  Tobias Burnus  <burnus@net-b.de>
2811         PR fortran/35721
2812         * intrinsics/associated.c (associated): Ignore different
2813         stride of pointer vs. target if only one element is referred.
2815 2008-03-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2817         * io/unix.c (fd_close):  Do not close STDIN.
2819 2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org
2821         PR libfortran/32972
2822         * Makefile.am:  Add new variable, i_unpack_c, containing
2823         unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
2824         unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
2825         unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
2826         and unpack_c16.c
2827         Add i_unpack_c to gfor_built_src.
2828         Add rule to generate i_unpack_c from m4/unpack.m4.
2829         * Makefile.in:  Regenerated.
2830         * libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
2831         unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
2832         unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
2833         unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
2834         unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
2835         unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
2836         * intrinsics/pack_generic.c (unpack1):  Add calls to specific
2837         unpack1 functions.
2838         (unpack0):  Add calls to specific unpack0 functions.
2839         * m4/unpack.m4:  New file.
2840         * generated/unpack_i1.c:  New file.
2841         * generated/unpack_i2.c:  New file.
2842         * generated/unpack_i4.c:  New file.
2843         * generated/unpack_i8.c:  New file.
2844         * generated/unpack_i16.c:  New file.
2845         * generated/unpack_r4.c:  New file.
2846         * generated/unpack_r8.c:  New file.
2847         * generated/unpack_r10.c:  New file.
2848         * generated/unpack_r16.c:  New file.
2849         * generated/unpack_c4.c:  New file.
2850         * generated/unpack_c8.c:  New file.
2851         * generated/unpack_c10.c:  New file.
2852         * generated/unpack_c16.c:  New file.
2854 2008-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2856         PR libfortran/35632
2857         * io/transfer.c (data_transfer_init):  Fix whitespace.
2858         (next_record_w): Truncate the file only if the stream
2859         position is short of the file end.
2861 2008-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2863         * intrinsics/pack_generic.c:  Fix typo.
2865 2008-03-21  Janne Blomqvist  <jb@gcc.gnu.org>
2867         * gfortran.map: Move erfc_scaled symbols to new symbol node
2868         GFORTRAN_1.1, thereby fixing ABI bug introduced in r132846.
2870 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
2872         PR libfortran/32972
2873         * runtime/in_pack_generic.c (internal_pack):  Call correct
2874         function, pack_i16, for GFC_INTEGER_16.
2876 2008-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>
2878         PR libfortran/32972
2879         * Makefile.am:  Add new variable, i_pack_c, containing
2880         pack_i1.c, pack_i2.c, pack_i4.c, pack_i8.c, pack_i16.c,
2881         pack_r4.c, pack_r8.c, pack_r10.c, pack_r16.c, pack_c4.c,
2882         pack_c8.c, pack_c10.c, pack_c16.c.
2883         Add m4/pack.m4 to m4_files.
2884         Add i_pack_c to gfor_built_src.
2885         Add rule to generate i_pack_c from m4/pack.m4.
2886         * Makefile.in:  Regenerated.
2887         * libgfortran.h: Add prototypes for pack_i1, pack_i2, pack_i4,
2888         pack_i8, pack_i16, pack_r4, pack_r8, pack_c4, pack_c8,
2889         pack_c10, pack_c16.
2890         * intrinsics/pack_generic.c:  Add calls to specific
2891         pack functions.
2892         * m4/pack.m4:  New file.
2893         * generated/pack_i1.c:  New file.
2894         * generated/pack_i2.c:  New file.
2895         * generated/pack_i4.c:  New file.
2896         * generated/pack_i8.c:  New file.
2897         * generated/pack_i16.c:  New file.
2898         * generated/pack_r4.c:  New file.
2899         * generated/pack_r8.c:  New file.
2900         * generated/pack_r10.c:  New file.
2901         * generated/pack_r16.c:  New file.
2902         * generated/pack_c4.c:  New file.
2903         * generated/pack_c8.c:  New file.
2904         * generated/pack_c10.c:  New file.
2905         * generated/pack_c16.c:  New file.
2907 2008-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2909         PR libfortran/35627
2910         * io/list_read.c (free_line): Clear the line buffer enable flag and
2911         reset the index into line_buffer, aka item_count.
2912         (next_char): Cleanup whitespace.
2913         (read_logical): Use unget_char to assure that the first character of the
2914         bad logical is saved in case it is part of an object name. Remove the
2915         clearing of index and flag that is now in free_line.
2916         (read_real): Likewise.
2918 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
2920         PR libfortran/32972
2921         * runtime/in_pack_generic.c (internal_pack):  Fix typo in
2922         last commit.
2924 2008-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
2926         PR libfortran/32972
2927         * Makefile.am (in_pack_c): Add in_pack_i1.c, in_pack_i2.c,
2928         in_pack_r4.c, in_pack_r8.c, in_pack_r10.c and in_pack_r16.c.
2929         (in_unpack_c): Add in_unpack_i1.c, in_unpack_i2.c,
2930         in_unpack_r4.c, in_unpack_r8.c, in_unpack_r10.c and
2931         in_unpack_r16.c.
2932         * Makefile.in: Regenerate.
2933         * libgfortran.h:  Add prototypes for internal_pack_1,
2934         internal_pack_2, internal_pack_16, internal_pack_r4,
2935         internal_pack_r8, internal_pack_r10, internal_pack_r16,
2936         internal_pack_c10 and internal_pack_c16.  Add prototypes for
2937         internal_unpack_1, internal_unpack_2, internal_unpack_16,
2938         internal_unpack_r4, internal_unpack_r8, internal_unpack_r10,
2939         internal_unpack_r16, internal_unpack_c10 and
2940         internal_unpack_c16.
2941         * runtime/in_pack_generic.c (internal_pack): Use sizeof instead
2942         of hardwired sizes.
2943         Add calls to internal_pack_1, internal_pack_2,
2944         internal_pack_16, internal_pack_r4, internal_pack_r8,
2945         internal_pack_r10, internal_pack_r16, internal_pack_c10 and
2946         internal_pack_c16.
2947         * runtime/in_unpack_generic.c (internal_unpack):  Use sizeof
2948         instead of hardwired sizes.
2949         Add calls to internal_unpack_1, internal_unpack_2,
2950         internal_unpack_16, internal_unpack_r4, internal_unpack_r8,
2951         internal_unpack_r10, internal_unpack_r16, internal_unpack_c10
2952         and internal_unpack_c16.
2953         * generated/in_pack_r4.c:  New file.
2954         * generated/in_pack_i2.c:  New file.
2955         * generated/in_unpack_i1.c:  New file.
2956         * generated/in_pack_r10.c:  New file.
2957         * generated/in_unpack_r4.c:  New file.
2958         * generated/in_unpack_i2.c:  New file.
2959         * generated/in_unpack_r16.c:  New file.
2960         * generated/in_pack_r8.c:  New file.
2961         * generated/in_unpack_r10.c:  New file.
2962         * generated/in_unpack_r8.c:  New file.
2963         * generated/in_pack_r16.c:  New file.
2964         * generated/in_pack_i1.c:  New file.
2966 2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2968         PR libfortran/35617
2969         * io/list_read.c (eat_separator): If next character after eatline is '!'
2970         then eatline again. 
2972 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2974         * aclocal.m4: Regenerate.
2975         * configure: Likewise.
2976         * Makefile.in: Likewise.
2978 2008-03-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2980         PR libfortran/35524
2981         * intrinsics/erfc_scaled_inc.c: Only define the long double
2982         variant of erfc_scaled if expl is available.
2984 2008-03-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2986         PR libfortran/32812
2987         * intrinsics/random.c (scramble_seed, unscramble_seed): New
2988         functions.
2989         (random_seed_i4): Scramble the seed the user gives us before
2990         storing it, and unscramble it when we return it back later.
2992 2008-03-05  Hans-Peter Nilsson  <hp@axis.com>
2994         PR libfortran/35293
2995         * io/unix.c (fd_truncate): Fold s->special_file case into
2996         success case of ftruncate/chsize call instead of the failure case.
2997         Make failure case actually return failure.  Properly update stream
2998         pointers on failure.  Call runtime_error for targets without
2999         neither ftruncate nor chsize where such a call would be needed.
3001 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3003         PR fortran/33197
3004         * intrinsics/erfc_scaled_inc.c: New file.
3005         * intrinsics/erfc_scaled.c: New file.
3006         * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*.
3007         * Makefile.am: Add intrinsics/erfc_scaled.c.
3008         * config.h.in: Regenerate.
3009         * configure: Regenerate.
3010         * Makefile.in: Regenerate.
3012 2008-03-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3014         PR libfortran/35355
3015         * intrinsics/time_1.h (__time_1): Fix calculation of user_usec
3016         for mingw.
3018 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3020         PR libfortran/35063
3021         * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
3022         instead of macro kludge.
3023         
3024 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
3026         PR fortran/29549
3027         * Makefile.am: Add -fcx-fortran-rules to AM_CFLAGS for all of
3028         libgfortran.
3029         * Makefile.in: Regenerated.
3031 2008-02-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3033         * m4/ifunction_logical.m4: Add casts to get rid of warnings.
3034         * generated/all_l1.c: Regenerate.
3035         * generated/all_l2.c: Regenerate.
3036         * generated/all_l4.c: Regenerate.
3037         * generated/all_l8.c: Regenerate.
3038         * generated/all_l16.c: Regenerate.
3039         * generated/any_l1.c: Regenerate.
3040         * generated/any_l2.c: Regenerate.
3041         * generated/any_l4.c: Regenerate.
3042         * generated/any_l8.c: Regenerate.
3043         * generated/any_l16.c: Regenerate.
3044         * generated/count_1_l.c: Regenerate.
3045         * generated/count_2_l.c: Regenerate.
3046         * generated/count_4_l.c: Regenerate.
3047         * generated/count_8_l.c: Regenerate.
3048         * generated/count_16_l.c: Regenerate.
3050 2008-02-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3052         PR libfortran/32841
3053         * acinclude.m4: Don't use HAVE_MATH_H.
3054         * configure: Regenerate.
3056 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3058         PR libfortran/35132
3059         * io/transfer.c (next_record_w): Truncate after the last record for
3060         STREAM I/O.
3062         PR libfortran/34954
3063         * io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.
3065         PR libfortran/34974
3066         * io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
3067         is less than zero. (next_record_w): Use sseek to position the file to
3068         the max position reached.
3070 2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3072         PR libfortran/35036
3073         * write_float.def (output_float):  Add error checks for zero digits
3074         after decimal point in E and D format specifiers.
3075         
3076 2008-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3078         PR libfortran/35063
3079         * io/unit.c (destroy_unit_mutex): New function that uses
3080         __gthread_mutex_destroy_function or pthread_mutex_destroy after
3081         unlocking and before free_mem for final closure of I/O unit.
3082         (delete_root): Use new function.
3083         (free_internal_unit): Likewise.
3084         (close_unit_1): Likewise.
3086 2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
3088         PR libfortran/35001
3089         * m4/shape.m4:  Return 0 for extents <= 0.
3090         * generated/shape_i4.c:  Regenerated.
3091         * generated/shape_i8.c:  Regenerated.
3092         * generated/shape_i16.c:  Regenerated.
3094 2008-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>
3096         PR libfortran/34980
3097         * m4/shape.m4:  If return array is empty, return early.
3098         * generated/shape_i4.c:  Regenerated.
3099         * generated/shape_i8.c:  Regenerated.
3100         * generated/shape_i16.c:  Regenerated.
3102 2008-01-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
3104         PR libfofortran/34887
3105         * io/transfer.c (next_record_w): Always move to the farthest
3106         position when completing the record (also when we are
3107         processing a slash edit descriptor).
3109 2008-01-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3111         PR libfortran/34876
3112         * io/transfer.c (write_buf): Handle case of zero sized array.
3113         (transfer_array): Set data pointer to NULL and size to zero.  Then
3114         make a data transfer and return.
3115         
3116 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
3118         * configure: Regenerate.
3120 2008-01-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3122         PR libfortran/34795
3123         * io/inquire.c (inquire_via_unit): If a unit is opened, return values
3124         according to the open action for DIRECT, FORMATTED, and UNFORMATTED.
3125         (inquire_via_filename): Return "UNKNOWN" for SEQUENTIAL, DIRECT,
3126         FORAMATTED, and UNFORMATTED inquiries.
3127         * io/unix.c (inquire_sequential): Return "UNKNOWN" when appropriate
3128         for files that are not opened. (inquire_direct): Same.
3129         (inquire_formatted): Same.
3130         
3131 2008-01-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3133         PR libfortran/34782
3134         * io/transfer.c (formatted_transfer_scalar): Set max_pos to the greater
3135         of the current max_pos or the newly calculated position.
3137 2008-01-18  Tobias Burnus  <burnus@net-b.de>
3139         * io/write.c (write_real): Increase default precision
3140         for REAL(16) by one.
3142 2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>
3144         PR libfortran/34669
3145         * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
3146         to avoid piping the -fdump-parse-tree output to the assembler
3147         when configuring with -pipe.
3148         * mk-sik-inc.sh: Likewise.
3149         * mk-srk-inc.sh: Likewise.
3151 2008-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
3153         PR libfortran/34671
3154         * gfortran.am: Added _gfortran_all_l1, _gfortran_all_l2,
3155         _gfortran_any_l1, _gfortran_any_l2, -28,15 _gfortran_count_1_l,
3156         _gfortran_count_16_l, _gfortran_count_2_l, _gfortran_count_4_l and
3157         _gfortran_count_8_l Removed _gfortran_count_16_l16,
3158         _gfortran_count_16_l4, _gfortran_count_16_l8,
3159         _gfortran_count_4_l16, _gfortran_count_4_l4, _gfortran_count_4_l8,
3160         _gfortran_count_8_l16, _gfortran_count_8_l4 and
3161         _gfortran_count_8_l8.
3162         * Makefile.am: Added generated/any_l1.c and generated/any_l2.c to
3163         i_any_c.  Added generated/all_l1. and generated/all_l2.c to
3164         i_all_c.  Removed generated/count_4_l4.c, generated/count_8_l4.c,
3165         generated/count_16_l4.c, generated/count_4_l8.c,
3166         generated/count_8_l8.c, generated/count_16_l8.c,
3167         generated/count_4_l16.c, generated/count_8_l16.c, and
3168         generated/count_16_l16.c from i_count_c.  Added count_1_l.c,
3169         count_2_l.c, count_4_l.c, count_8_l.c and count_16_l.c to
3170         i_count_c.  I_M4_DEPS2 depends on ifunction_logical.m4, for
3171         any of the files generated from all.m4, any.m4 and count.m4.
3172         * Makefile.in:  Regenerated.
3173         * m4/ifunction_logical.m4:  New file.  Use
3174         GFC_LOGICAL_1 pointer for access to source arrays.
3175         * m4/any.m4:  Include ifunction_logical.m4 instead of
3176         ifunction.m4.  Don't check atype_name.
3177         * m4/all.m4:  Likewise.
3178         * m4/count.m4:  Likewise.
3179         * generated/any_l1.c:  New file.
3180         * generated/any_l2.c:  New file.
3181         * generated/all_l1.c:  New file.
3182         * generated/count_1_l.c:  New file.
3183         * generated/count_2_l.c:  New file.
3184         * generated/count_4_l.c:  New file.
3185         * generated/count_8_l.c:  New file.
3186         * generated/count_16_l.c:  New file.
3187         * generated/any_l4.c:  Regenerated.
3188         * generated/any_l8.c:  Regenerated.
3189         * generated/any_l16.c:  Regenerated.
3190         * generated/all_l4.c: Regenerated.
3191         * generated/all_l8.c: Regenerated.
3192         * generated/all_l16.c: Regenerated.
3193         * generated/count_4_l4.c:  Removed.
3194         * generated/count_4_l8.c:  Removed.
3195         * generated/count_4_l16.c:  Removed.
3196         * generated/count_8_l4.c:  Removed.
3197         * generated/count_8_l8.c:  Removed.
3198         * generated/count_8_l16.c:  Removed.
3199         * generated/count_16_l4.c:  Removed.
3200         * generated/count_16_l8.c:  Removed.
3201         * generated/count_16_l16.c:  Removed.
3203 2008-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
3205         PR libfortran/34746
3206         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Use %ld
3207         in printf format for all bounds checking; cast all
3208         integer-like arguments to runtime_error() to long int.
3209         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3210         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3211         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
3212         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3213         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3214         * generated/all_l16.c: Regenerated.
3215         * generated/all_l4.c: Regenerated.
3216         * generated/all_l8.c: Regenerated.
3217         * generated/any_l16.c: Regenerated.
3218         * generated/any_l4.c: Regenerated.
3219         * generated/any_l8.c: Regenerated.
3220         * generated/count_16_l16.c: Regenerated.
3221         * generated/count_16_l4.c: Regenerated.
3222         * generated/count_16_l8.c: Regenerated.
3223         * generated/count_4_l16.c: Regenerated.
3224         * generated/count_4_l4.c: Regenerated.
3225         * generated/count_4_l8.c: Regenerated.
3226         * generated/count_8_l16.c: Regenerated.
3227         * generated/count_8_l4.c: Regenerated.
3228         * generated/count_8_l8.c: Regenerated.
3229         * generated/maxloc0_16_i1.c: Regenerated.
3230         * generated/maxloc0_16_i16.c: Regenerated.
3231         * generated/maxloc0_16_i2.c: Regenerated.
3232         * generated/maxloc0_16_i4.c: Regenerated.
3233         * generated/maxloc0_16_i8.c: Regenerated.
3234         * generated/maxloc0_16_r10.c: Regenerated.
3235         * generated/maxloc0_16_r16.c: Regenerated.
3236         * generated/maxloc0_16_r4.c: Regenerated.
3237         * generated/maxloc0_16_r8.c: Regenerated.
3238         * generated/maxloc0_4_i1.c: Regenerated.
3239         * generated/maxloc0_4_i16.c: Regenerated.
3240         * generated/maxloc0_4_i2.c: Regenerated.
3241         * generated/maxloc0_4_i4.c: Regenerated.
3242         * generated/maxloc0_4_i8.c: Regenerated.
3243         * generated/maxloc0_4_r10.c: Regenerated.
3244         * generated/maxloc0_4_r16.c: Regenerated.
3245         * generated/maxloc0_4_r4.c: Regenerated.
3246         * generated/maxloc0_4_r8.c: Regenerated.
3247         * generated/maxloc0_8_i1.c: Regenerated.
3248         * generated/maxloc0_8_i16.c: Regenerated.
3249         * generated/maxloc0_8_i2.c: Regenerated.
3250         * generated/maxloc0_8_i4.c: Regenerated.
3251         * generated/maxloc0_8_i8.c: Regenerated.
3252         * generated/maxloc0_8_r10.c: Regenerated.
3253         * generated/maxloc0_8_r16.c: Regenerated.
3254         * generated/maxloc0_8_r4.c: Regenerated.
3255         * generated/maxloc0_8_r8.c: Regenerated.
3256         * generated/maxloc1_16_i1.c: Regenerated.
3257         * generated/maxloc1_16_i16.c: Regenerated.
3258         * generated/maxloc1_16_i2.c: Regenerated.
3259         * generated/maxloc1_16_i4.c: Regenerated.
3260         * generated/maxloc1_16_i8.c: Regenerated.
3261         * generated/maxloc1_16_r10.c: Regenerated.
3262         * generated/maxloc1_16_r16.c: Regenerated.
3263         * generated/maxloc1_16_r4.c: Regenerated.
3264         * generated/maxloc1_16_r8.c: Regenerated.
3265         * generated/maxloc1_4_i1.c: Regenerated.
3266         * generated/maxloc1_4_i16.c: Regenerated.
3267         * generated/maxloc1_4_i2.c: Regenerated.
3268         * generated/maxloc1_4_i4.c: Regenerated.
3269         * generated/maxloc1_4_i8.c: Regenerated.
3270         * generated/maxloc1_4_r10.c: Regenerated.
3271         * generated/maxloc1_4_r16.c: Regenerated.
3272         * generated/maxloc1_4_r4.c: Regenerated.
3273         * generated/maxloc1_4_r8.c: Regenerated.
3274         * generated/maxloc1_8_i1.c: Regenerated.
3275         * generated/maxloc1_8_i16.c: Regenerated.
3276         * generated/maxloc1_8_i2.c: Regenerated.
3277         * generated/maxloc1_8_i4.c: Regenerated.
3278         * generated/maxloc1_8_i8.c: Regenerated.
3279         * generated/maxloc1_8_r10.c: Regenerated.
3280         * generated/maxloc1_8_r16.c: Regenerated.
3281         * generated/maxloc1_8_r4.c: Regenerated.
3282         * generated/maxloc1_8_r8.c: Regenerated.
3283         * generated/maxval_i1.c: Regenerated.
3284         * generated/maxval_i16.c: Regenerated.
3285         * generated/maxval_i2.c: Regenerated.
3286         * generated/maxval_i4.c: Regenerated.
3287         * generated/maxval_i8.c: Regenerated.
3288         * generated/maxval_r10.c: Regenerated.
3289         * generated/maxval_r16.c: Regenerated.
3290         * generated/maxval_r4.c: Regenerated.
3291         * generated/maxval_r8.c: Regenerated.
3292         * generated/minloc0_16_i1.c: Regenerated.
3293         * generated/minloc0_16_i16.c: Regenerated.
3294         * generated/minloc0_16_i2.c: Regenerated.
3295         * generated/minloc0_16_i4.c: Regenerated.
3296         * generated/minloc0_16_i8.c: Regenerated.
3297         * generated/minloc0_16_r10.c: Regenerated.
3298         * generated/minloc0_16_r16.c: Regenerated.
3299         * generated/minloc0_16_r4.c: Regenerated.
3300         * generated/minloc0_16_r8.c: Regenerated.
3301         * generated/minloc0_4_i1.c: Regenerated.
3302         * generated/minloc0_4_i16.c: Regenerated.
3303         * generated/minloc0_4_i2.c: Regenerated.
3304         * generated/minloc0_4_i4.c: Regenerated.
3305         * generated/minloc0_4_i8.c: Regenerated.
3306         * generated/minloc0_4_r10.c: Regenerated.
3307         * generated/minloc0_4_r16.c: Regenerated.
3308         * generated/minloc0_4_r4.c: Regenerated.
3309         * generated/minloc0_4_r8.c: Regenerated.
3310         * generated/minloc0_8_i1.c: Regenerated.
3311         * generated/minloc0_8_i16.c: Regenerated.
3312         * generated/minloc0_8_i2.c: Regenerated.
3313         * generated/minloc0_8_i4.c: Regenerated.
3314         * generated/minloc0_8_i8.c: Regenerated.
3315         * generated/minloc0_8_r10.c: Regenerated.
3316         * generated/minloc0_8_r16.c: Regenerated.
3317         * generated/minloc0_8_r4.c: Regenerated.
3318         * generated/minloc0_8_r8.c: Regenerated.
3319         * generated/minloc1_16_i1.c: Regenerated.
3320         * generated/minloc1_16_i16.c: Regenerated.
3321         * generated/minloc1_16_i2.c: Regenerated.
3322         * generated/minloc1_16_i4.c: Regenerated.
3323         * generated/minloc1_16_i8.c: Regenerated.
3324         * generated/minloc1_16_r10.c: Regenerated.
3325         * generated/minloc1_16_r16.c: Regenerated.
3326         * generated/minloc1_16_r4.c: Regenerated.
3327         * generated/minloc1_16_r8.c: Regenerated.
3328         * generated/minloc1_4_i1.c: Regenerated.
3329         * generated/minloc1_4_i16.c: Regenerated.
3330         * generated/minloc1_4_i2.c: Regenerated.
3331         * generated/minloc1_4_i4.c: Regenerated.
3332         * generated/minloc1_4_i8.c: Regenerated.
3333         * generated/minloc1_4_r10.c: Regenerated.
3334         * generated/minloc1_4_r16.c: Regenerated.
3335         * generated/minloc1_4_r4.c: Regenerated.
3336         * generated/minloc1_4_r8.c: Regenerated.
3337         * generated/minloc1_8_i1.c: Regenerated.
3338         * generated/minloc1_8_i16.c: Regenerated.
3339         * generated/minloc1_8_i2.c: Regenerated.
3340         * generated/minloc1_8_i4.c: Regenerated.
3341         * generated/minloc1_8_i8.c: Regenerated.
3342         * generated/minloc1_8_r10.c: Regenerated.
3343         * generated/minloc1_8_r16.c: Regenerated.
3344         * generated/minloc1_8_r4.c: Regenerated.
3345         * generated/minloc1_8_r8.c: Regenerated.
3346         * generated/minval_i1.c: Regenerated.
3347         * generated/minval_i16.c: Regenerated.
3348         * generated/minval_i2.c: Regenerated.
3349         * generated/minval_i4.c: Regenerated.
3350         * generated/minval_i8.c: Regenerated.
3351         * generated/minval_r10.c: Regenerated.
3352         * generated/minval_r16.c: Regenerated.
3353         * generated/minval_r4.c: Regenerated.
3354         * generated/minval_r8.c: Regenerated.
3355         * generated/product_c10.c: Regenerated.
3356         * generated/product_c16.c: Regenerated.
3357         * generated/product_c4.c: Regenerated.
3358         * generated/product_c8.c: Regenerated.
3359         * generated/product_i1.c: Regenerated.
3360         * generated/product_i16.c: Regenerated.
3361         * generated/product_i2.c: Regenerated.
3362         * generated/product_i4.c: Regenerated.
3363         * generated/product_i8.c: Regenerated.
3364         * generated/product_r10.c: Regenerated.
3365         * generated/product_r16.c: Regenerated.
3366         * generated/product_r4.c: Regenerated.
3367         * generated/product_r8.c: Regenerated.
3368         * generated/sum_c10.c: Regenerated.
3369         * generated/sum_c16.c: Regenerated.
3370         * generated/sum_c4.c: Regenerated.
3371         * generated/sum_c8.c: Regenerated.
3372         * generated/sum_i1.c: Regenerated.
3373         * generated/sum_i16.c: Regenerated.
3374         * generated/sum_i2.c: Regenerated.
3375         * generated/sum_i4.c: Regenerated.
3376         * generated/sum_i8.c: Regenerated.
3377         * generated/sum_r10.c: Regenerated.
3378         * generated/sum_r16.c: Regenerated.
3379         * generated/sum_r4.c: Regenerated.
3380         * generated/sum_r8.c: Regenerated.
3382 2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
3384         PR libfortran/34670
3385         * m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
3386         (u_name):  New macro for the upper case name of the intrinsic.
3387         * m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
3388         bounds checking and rank check, depending on
3389         compile_options.bounds_check.
3390         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3391         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3392         * m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
3393         bounds checking and rank check, depending on
3394         compile_options.bounds_check.
3395         (`m'name`'rtype_qual`_'atype_code):  Likewise.
3396         (`s'name`'rtype_qual`_'atype_code):  Likewise.
3397         * generated/all_l16.c: Regenerated.
3398         * generated/all_l4.c: Regenerated.
3399         * generated/all_l8.c: Regenerated.
3400         * generated/any_l16.c: Regenerated.
3401         * generated/any_l4.c: Regenerated.
3402         * generated/any_l8.c: Regenerated.
3403         * generated/count_16_l16.c: Regenerated.
3404         * generated/count_16_l4.c: Regenerated.
3405         * generated/count_16_l8.c: Regenerated.
3406         * generated/count_4_l16.c: Regenerated.
3407         * generated/count_4_l4.c: Regenerated.
3408         * generated/count_4_l8.c: Regenerated.
3409         * generated/count_8_l16.c: Regenerated.
3410         * generated/count_8_l4.c: Regenerated.
3411         * generated/count_8_l8.c: Regenerated.
3412         * generated/maxloc0_16_i1.c: Regenerated.
3413         * generated/maxloc0_16_i16.c: Regenerated.
3414         * generated/maxloc0_16_i2.c: Regenerated.
3415         * generated/maxloc0_16_i4.c: Regenerated.
3416         * generated/maxloc0_16_i8.c: Regenerated.
3417         * generated/maxloc0_16_r10.c: Regenerated.
3418         * generated/maxloc0_16_r16.c: Regenerated.
3419         * generated/maxloc0_16_r4.c: Regenerated.
3420         * generated/maxloc0_16_r8.c: Regenerated.
3421         * generated/maxloc0_4_i1.c: Regenerated.
3422         * generated/maxloc0_4_i16.c: Regenerated.
3423         * generated/maxloc0_4_i2.c: Regenerated.
3424         * generated/maxloc0_4_i4.c: Regenerated.
3425         * generated/maxloc0_4_i8.c: Regenerated.
3426         * generated/maxloc0_4_r10.c: Regenerated.
3427         * generated/maxloc0_4_r16.c: Regenerated.
3428         * generated/maxloc0_4_r4.c: Regenerated.
3429         * generated/maxloc0_4_r8.c: Regenerated.
3430         * generated/maxloc0_8_i1.c: Regenerated.
3431         * generated/maxloc0_8_i16.c: Regenerated.
3432         * generated/maxloc0_8_i2.c: Regenerated.
3433         * generated/maxloc0_8_i4.c: Regenerated.
3434         * generated/maxloc0_8_i8.c: Regenerated.
3435         * generated/maxloc0_8_r10.c: Regenerated.
3436         * generated/maxloc0_8_r16.c: Regenerated.
3437         * generated/maxloc0_8_r4.c: Regenerated.
3438         * generated/maxloc0_8_r8.c: Regenerated.
3439         * generated/maxloc1_16_i1.c: Regenerated.
3440         * generated/maxloc1_16_i16.c: Regenerated.
3441         * generated/maxloc1_16_i2.c: Regenerated.
3442         * generated/maxloc1_16_i4.c: Regenerated.
3443         * generated/maxloc1_16_i8.c: Regenerated.
3444         * generated/maxloc1_16_r10.c: Regenerated.
3445         * generated/maxloc1_16_r16.c: Regenerated.
3446         * generated/maxloc1_16_r4.c: Regenerated.
3447         * generated/maxloc1_16_r8.c: Regenerated.
3448         * generated/maxloc1_4_i1.c: Regenerated.
3449         * generated/maxloc1_4_i16.c: Regenerated.
3450         * generated/maxloc1_4_i2.c: Regenerated.
3451         * generated/maxloc1_4_i4.c: Regenerated.
3452         * generated/maxloc1_4_i8.c: Regenerated.
3453         * generated/maxloc1_4_r10.c: Regenerated.
3454         * generated/maxloc1_4_r16.c: Regenerated.
3455         * generated/maxloc1_4_r4.c: Regenerated.
3456         * generated/maxloc1_4_r8.c: Regenerated.
3457         * generated/maxloc1_8_i1.c: Regenerated.
3458         * generated/maxloc1_8_i16.c: Regenerated.
3459         * generated/maxloc1_8_i2.c: Regenerated.
3460         * generated/maxloc1_8_i4.c: Regenerated.
3461         * generated/maxloc1_8_i8.c: Regenerated.
3462         * generated/maxloc1_8_r10.c: Regenerated.
3463         * generated/maxloc1_8_r16.c: Regenerated.
3464         * generated/maxloc1_8_r4.c: Regenerated.
3465         * generated/maxloc1_8_r8.c: Regenerated.
3466         * generated/maxval_i1.c: Regenerated.
3467         * generated/maxval_i16.c: Regenerated.
3468         * generated/maxval_i2.c: Regenerated.
3469         * generated/maxval_i4.c: Regenerated.
3470         * generated/maxval_i8.c: Regenerated.
3471         * generated/maxval_r10.c: Regenerated.
3472         * generated/maxval_r16.c: Regenerated.
3473         * generated/maxval_r4.c: Regenerated.
3474         * generated/maxval_r8.c: Regenerated.
3475         * generated/minloc0_16_i1.c: Regenerated.
3476         * generated/minloc0_16_i16.c: Regenerated.
3477         * generated/minloc0_16_i2.c: Regenerated.
3478         * generated/minloc0_16_i4.c: Regenerated.
3479         * generated/minloc0_16_i8.c: Regenerated.
3480         * generated/minloc0_16_r10.c: Regenerated.
3481         * generated/minloc0_16_r16.c: Regenerated.
3482         * generated/minloc0_16_r4.c: Regenerated.
3483         * generated/minloc0_16_r8.c: Regenerated.
3484         * generated/minloc0_4_i1.c: Regenerated.
3485         * generated/minloc0_4_i16.c: Regenerated.
3486         * generated/minloc0_4_i2.c: Regenerated.
3487         * generated/minloc0_4_i4.c: Regenerated.
3488         * generated/minloc0_4_i8.c: Regenerated.
3489         * generated/minloc0_4_r10.c: Regenerated.
3490         * generated/minloc0_4_r16.c: Regenerated.
3491         * generated/minloc0_4_r4.c: Regenerated.
3492         * generated/minloc0_4_r8.c: Regenerated.
3493         * generated/minloc0_8_i1.c: Regenerated.
3494         * generated/minloc0_8_i16.c: Regenerated.
3495         * generated/minloc0_8_i2.c: Regenerated.
3496         * generated/minloc0_8_i4.c: Regenerated.
3497         * generated/minloc0_8_i8.c: Regenerated.
3498         * generated/minloc0_8_r10.c: Regenerated.
3499         * generated/minloc0_8_r16.c: Regenerated.
3500         * generated/minloc0_8_r4.c: Regenerated.
3501         * generated/minloc0_8_r8.c: Regenerated.
3502         * generated/minloc1_16_i1.c: Regenerated.
3503         * generated/minloc1_16_i16.c: Regenerated.
3504         * generated/minloc1_16_i2.c: Regenerated.
3505         * generated/minloc1_16_i4.c: Regenerated.
3506         * generated/minloc1_16_i8.c: Regenerated.
3507         * generated/minloc1_16_r10.c: Regenerated.
3508         * generated/minloc1_16_r16.c: Regenerated.
3509         * generated/minloc1_16_r4.c: Regenerated.
3510         * generated/minloc1_16_r8.c: Regenerated.
3511         * generated/minloc1_4_i1.c: Regenerated.
3512         * generated/minloc1_4_i16.c: Regenerated.
3513         * generated/minloc1_4_i2.c: Regenerated.
3514         * generated/minloc1_4_i4.c: Regenerated.
3515         * generated/minloc1_4_i8.c: Regenerated.
3516         * generated/minloc1_4_r10.c: Regenerated.
3517         * generated/minloc1_4_r16.c: Regenerated.
3518         * generated/minloc1_4_r4.c: Regenerated.
3519         * generated/minloc1_4_r8.c: Regenerated.
3520         * generated/minloc1_8_i1.c: Regenerated.
3521         * generated/minloc1_8_i16.c: Regenerated.
3522         * generated/minloc1_8_i2.c: Regenerated.
3523         * generated/minloc1_8_i4.c: Regenerated.
3524         * generated/minloc1_8_i8.c: Regenerated.
3525         * generated/minloc1_8_r10.c: Regenerated.
3526         * generated/minloc1_8_r16.c: Regenerated.
3527         * generated/minloc1_8_r4.c: Regenerated.
3528         * generated/minloc1_8_r8.c: Regenerated.
3529         * generated/minval_i1.c: Regenerated.
3530         * generated/minval_i16.c: Regenerated.
3531         * generated/minval_i2.c: Regenerated.
3532         * generated/minval_i4.c: Regenerated.
3533         * generated/minval_i8.c: Regenerated.
3534         * generated/minval_r10.c: Regenerated.
3535         * generated/minval_r16.c: Regenerated.
3536         * generated/minval_r4.c: Regenerated.
3537         * generated/minval_r8.c: Regenerated.
3538         * generated/product_c10.c: Regenerated.
3539         * generated/product_c16.c: Regenerated.
3540         * generated/product_c4.c: Regenerated.
3541         * generated/product_c8.c: Regenerated.
3542         * generated/product_i1.c: Regenerated.
3543         * generated/product_i16.c: Regenerated.
3544         * generated/product_i2.c: Regenerated.
3545         * generated/product_i4.c: Regenerated.
3546         * generated/product_i8.c: Regenerated.
3547         * generated/product_r10.c: Regenerated.
3548         * generated/product_r16.c: Regenerated.
3549         * generated/product_r4.c: Regenerated.
3550         * generated/product_r8.c: Regenerated.
3551         * generated/sum_c10.c: Regenerated.
3552         * generated/sum_c16.c: Regenerated.
3553         * generated/sum_c4.c: Regenerated.
3554         * generated/sum_c8.c: Regenerated.
3555         * generated/sum_i1.c: Regenerated.
3556         * generated/sum_i16.c: Regenerated.
3557         * generated/sum_i2.c: Regenerated.
3558         * generated/sum_i4.c: Regenerated.
3559         * generated/sum_i8.c: Regenerated.
3560         * generated/sum_r10.c: Regenerated.
3561         * generated/sum_r16.c: Regenerated.
3562         * generated/sum_r4.c: Regenerated.
3563         * generated/sum_r8.c: Regenerated.
3565 2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3567         PR libfortran/34676
3568         * io/list_read.c (next_char): Only save the EOF condition for later if
3569         advance="no".
3571 2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
3573         PR libfortran/34565
3574         * io/io.h:  Adjust protoypes for open_internal(),
3575         next_array_record() and init_loop_spec().
3576         * io/list_read.c (next_char):  Use argument "finished"
3577         of next_array_record to check for end on internal file.
3578         * io/unit.c:  Calculate the offset for an array
3579         internal file and supply this informatin to open_internal().
3580         * io/unix.c (open_internal):  Set the offset for the internal
3581         file on open.
3582         * io/transfer.c (init_loop_spec):  Calculate the starting
3583         record in case of negative strides.  Return size of 0 for
3584         an empty array.
3585         (next_array_record):  Use an extra flag to signal that the
3586         array is finished.
3587         (next_record_r):  Use the new flag to next_array_record().
3588         (next_record_w):  Likewise.