OSDN Git Service

0248cc21d3628f59c7ef4e51701999b44efa9341
[pf3gnuchains/gcc-fork.git] / libgfortran / ChangeLog
1 2007-10-19  Ben Elliston  <bje@au.ibm.com>
2
3         * intrinsics/signal.c (alarm_sub_i4): Mark conditionally unused
4         parameters with __attribute__ ((unused)).
5         (alarm_sub_i8): Likewise.
6         (alarm_sub_int_i4): Likewise.
7         (alarm_sub_int_i8): Likewise.
8
9 2007-10-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10             Jerry DeLisle  <jvdelisle@gcc.gnu.org>
11
12         PR libfortran/33795
13         * libgfortran.h: Add unbuffered_preconnected.
14         * io/unix.c (output_stream): Set stream unbuffered flag if
15         options.unbuffered_preconnected has been set.
16         (error_stream): Ditto.
17         * runtime/environ.c (variable_table): Add to environment variable table
18         the entry: GFORTRAN_UNBUFFERED_PRECONNECTED. 
19         
20 2007-10-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21
22         PR libfortran/32021
23         * runtime/backtrace.c (local_strcasestr): Protect by appropriate
24         macros.
25         * runtime/main.c (cleanup): Cast argument to free.
26         * intrinsics/spread_generic.c (spread_internal): Match runtime_error
27         arguments and format.
28         * intrinsics/signal.c (alarm_sub_int_i4, alarm_sub_int_i8): Cast
29         pointers to avoid warnings.
30
31 2007-10-18  Ben Elliston  <bje@au.ibm.com>
32
33         * runtime/environ.c (init_choice): Remove unused function.
34         (show_choice): Likewise.
35         (choice): Remove.
36         (FP_ROUND_NEAREST, FP_ROUND_UP, FP_ROUND_DOWN, FP_ROUND_ZERO):
37         Remove.
38         (precision, signal_choices): Remove.
39
40 2007-10-15 Christopher D. Rickett <crickett@lanl.gov>
41
42         PR fortran/32600
43         * libgfortran/intrinsics/iso_c_binding.c: Remove c_associated_1
44         and c_associated_2.
45         * libgfortran/intrinsics/iso_c_binding.h: Ditto.
46         * libgfortran/gfortran.map: Ditto.
47
48 2007-10-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
49
50         PR libfortran/33055
51         * io/inquire.c (inquire_via_unit):  If inquiring by unit, check for
52         an error condition from the IOSTAT variable and set EXIST to false if
53         there was a bad unit number.
54
55 2007-10-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
56
57         PR libfortran/33672
58         * io/list_read.c (nml_parse_qualifier): Add character specific error
59         messages.  Check for proper form of sub-string qualifiers.  Return the
60         parsed_rank flag indicating a non-zero rank qualifier.
61         (nml_get_obj_data):  Count the instances of non-zero rank qualifiers.
62         Issue an error if more that one non-zero rank qualifier is found.
63
64 2007-10-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
65
66         PR libfortran/33253
67         * io/list_read.c (read_character): Use line_buffer to scan ahead for
68         object name or string when no delimiter is found.
69
70 2007-10-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
71
72         PR libfortran/32021
73         * runtime/environ.c (init_mem, show_mem, init_round, show_round,
74         init_precision, show_precision, init_signal, show_signal): Remove.
75         (variable_table): Remove GFORTRAN_MEM_INIT, GFORTRAN_MEM_CHECK,
76         GFORTRAN_SIGHUP, GFORTRAN_SIGINT, GFORTRAN_FPU_ROUND and
77         GFORTRAN_FPU_PRECISION.
78         * libgfortran.h (options_t): Remove mem_check, fpu_round,
79         fpu_precision, sighup, sigint, allocate_init_flag and
80         allocate_init_value.
81
82 2007-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
83
84         PR libfortran/33253
85         * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
86         and quote value in check of first character in string.
87
88 2007-10-02  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
89
90         PR fortran/33469
91         * io/write.c (write_real): Widen the default formats.
92
93 2007-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
94
95         PR libfortran/33400
96         * io/list_read.c (next_char): Interpret encountering the end of file the
97         first time as an end of line.  Subsequent reads give EOF error.
98
99 2007-09-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
100
101         PR libfortran/33421
102         * io/list_read.c (read_character): Revert r128057.
103
104 2007-09-21  Bernhard Fischer  <aldot>
105
106         PR fortran/31546
107         * (configure.ac): Add --enable-intermodule for onestep build.
108         * (Makefile.am): Handle onestep build.
109         * (configure, Makefile.in): Regenerate.
110
111 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
112
113         PR libfortran/26253
114         * intrinsics/c99_functions.c (scalbn): Use ldexp if appopriate.
115
116 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
117
118         PR libfortran/23272
119         * io/unix.c (id_from_handle, id_from_path, id_from_fd): New
120         functions.
121         (compare_file_filename, find_file, find_file0): Use the new
122         functions above.
123
124 2007-09-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
125
126         * acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test.
127         * configure.ac: Don't call LIBGFOR_TARGET_ILP32.
128         * configure: Regenerate.
129         * config.h.in: Regenerate.
130
131 2007-09-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
132
133         PR libfortran/21185
134         * runtime/compile_options.c (set_options): Fix typo.
135         * runtime/main.c (store_exe_path): If getcwd is not available,
136         don't use it.
137         * intrinsics/getcwd.c: Same thing here.
138         * io/unix.c (fallback_access): New fallback function for access.
139         (fix_fd): Don't use dup if it's not available.
140         * configure.ac: Check for dup and getcwd.
141         * configure: Regenerate.
142         * config.h.in: Regenerate.
143
144 2007-09-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
145
146         * io/io.h: Include libgfortran.h first.
147
148 2007-09-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
149
150         PR libfortran/33386
151         * runtime/select.c (select_string): Initialize default_jump.
152
153 2007-09-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
154
155         PR libfortran/33307
156         * io/filepos.c (st_backspace): Don't truncate when already at the end
157         of the file.
158         
159 2007-09-07  Uros Bizjak  <ubizjak@gmail.com>
160
161         * config/fpu-387.h: Include cpuid.h.
162         (set_fpu): Use __get_cpuid to check for SSE.
163
164 2007-09-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
165
166         PR fortran/33298
167         * intrinsics/spread_generic.c(spread_internal): Enable
168         bounds checking by comparing extents if the bounds_check
169         option has been set.  If any extent is <=0, return early.
170
171 2007-09-06  David Edelsohn  <edelsohn@gnu.org>
172
173         * libgfortran.h: Include config.h first.
174         * io/io.h (struct stream): Rename truncate to trunc.
175         * io/unix.c (fd_open): Same.
176         (open_internal): Same.
177
178 2007-09-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
179
180         PR libfortran/33253
181         * io/write.c (nml_write_obj): Set the delimiter correctly before
182         calling write_character. (namelist_write): Clean up the code a little
183         and add comments to clarify what its doing.
184
185 2007-09-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
186
187         PR libfortran/33225
188         * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
189         new file write_float.def. Include write_float.def.
190         (extract_real): Delete. (calculate_sign): Delete.
191         (calculate_exp): Delete. (calculate_G_format): Delete.
192         (output_float): Delete. (write_float): Delete.
193         * io/write_float.def (calculate_sign): Added.
194         (output_float): Refactored to be independent of kind and added to this
195         file for inclusion. (write_infnan): New function to write "Infinite"
196         or "NaN" depending on flags passed, independent of kind.
197         (CALCULATE_EXP): New macro to build kind specific functions. Use it.
198         (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
199         (DTOA, DTOAL): Macros to implement "decimal to ascii".
200         (WRITE_FLOAT): New macro for kind specific write_float functions.
201         (write_float): Revised function to determine kind and use WRITE_FLOAT
202         to implement kind specific output.
203
204 2007-09-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
205
206         PR libfortran/33253
207         * io/list_read.c (read_character): Use DELIM_APOSTROPHE and
208         DELIM_QUOTE in check of first character in string. 
209
210 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
211
212         PR fortran/31675
213         * libgfortran.h: Include gcc/fortran/libgfortran.h.
214         Remove M_PI, GFC_MAX_DIMENSIONS, GFC_DTYPE_*, GFC_NUM_RANK_BITS,
215         error_codes, GFC_STD_*, GFC_FPE_* and unit_convert.
216         * runtime/environ.c (variable_table): Use GFC_*_UNIT_NUMBER instead
217         of hardcoded constants.
218         (do_parse, init_unformatted): Use GFC_CONVERT_* macros instead of
219         CONVERT_*.
220         * runtime/string.c (find_option): Use LIBERROR_BAD_OPTION instead
221         of ERROR_BAD_OPTION.
222         * runtime/error.c (translate_error, generate_error): Use
223         LIBERROR_* macros instead of ERROR_*.
224         * io/file_pos.c (formatted_backspace, unformatted_backspace,
225         st_backspace, st_rewind, st_flush): Rename macros.
226         * io/open.c (convert_opt, edit_modes, new_unit, already_open,
227         st_open): Likewise.
228         * io/close.c (st_close): Likewise.
229         * io/list_read.c (next_char, convert_integer, parse_repeat,
230         read_logical, read_integer, read_character, parse_real,
231         check_type, list_formatted_read_scalar, namelist_read,
232         nml_err_ret): Likewise.
233         * io/read.c (convert_real, read_l, read_decimal, read_radix,
234         read_f): Likewise.
235         * io/inquire.c (inquire_via_unit): Likewise.
236         * io/unit.c (get_internal_unit): Likewise.
237         * io/transfer.c (read_sf, read_block, read_block_direct,
238         write_block, write_buf, unformatted_read, unformatted_write,
239         formatted_transfer_scalar, us_read, us_write, data_transfer_init,
240         skip_record, next_record_r, write_us_marker, next_record_w_unf,
241         next_record_w, finalize_transfer, st_read, st_write_done):
242         Likewise.
243         * io/format.c (format_error): Likewise.
244
245 2007-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
246
247         * m4/minloc1.m4: Update copyright year and ajust headers order.
248         * m4/maxloc1.m4: Likewise.
249         * m4/in_pack.m4: Likewise.
250         * m4/sum.m4: Likewise.
251         * m4/fraction.m4: Likewise.
252         * m4/all.m4: Likewise.
253         * m4/set_exponent.m4: Likewise.
254         * m4/transpose.m4: Likewise.
255         * m4/eoshift1.m4: Likewise.
256         * m4/spacing.m4: Likewise.
257         * m4/eoshift3.m4: Likewise.
258         * m4/minval.m4: Likewise.
259         * m4/count.m4: Likewise.
260         * m4/maxval.m4: Likewise.
261         * m4/exponent.m4: Likewise.
262         * m4/shape.m4: Likewise.
263         * m4/head.m4: Likewise.
264         * m4/cshift1.m4: Likewise.
265         * m4/minloc0.m4: Likewise.
266         * m4/nearest.m4: Likewise.
267         * m4/maxloc0.m4: Likewise.
268         * m4/pow.m4: Likewise.
269         * m4/in_unpack.m4: Likewise.
270         * m4/matmull.m4: Likewise.
271         * m4/product.m4: Likewise.
272         * m4/reshape.m4: Likewise.
273         * m4/any.m4: Likewise.
274         * m4/rrspacing.m4: Likewise.
275         * m4/matmul.m4: Likewise.
276         * runtime/backtrace.c: Likewise.
277         * runtime/environ.c: Likewise.
278         * runtime/in_pack_generic.c: Likewise.
279         * runtime/compile_options.c: Likewise.
280         * runtime/in_unpack_generic.c: Likewise.
281         * runtime/main.c: Likewise.
282         * runtime/stop.c: Likewise.
283         * runtime/string.c: Likewise.
284         * runtime/memory.c: Likewise.
285         * runtime/error.c: Likewise.
286         * runtime/pause.c: Likewise.
287         * intrinsics/ierrno.c: Likewise.
288         * intrinsics/system_clock.c: Likewise.
289         * intrinsics/cshift0.c: Likewise.
290         * intrinsics/unlink.c: Likewise.
291         * intrinsics/ctime.c: Likewise.
292         * intrinsics/etime.c: Likewise.
293         * intrinsics/cpu_time.c: Likewise.
294         * intrinsics/malloc.c: Likewise.
295         * intrinsics/hostnm.c: Likewise.
296         * intrinsics/sleep.c: Likewise.
297         * intrinsics/exit.c: Likewise.
298         * intrinsics/perror.c: Likewise.
299         * intrinsics/transpose_generic.c: Likewise.
300         * intrinsics/pack_generic.c: Likewise.
301         * intrinsics/spread_generic.c: Likewise.
302         * intrinsics/stat.c: Likewise.
303         * intrinsics/string_intrinsics.c: Likewise.
304         * intrinsics/getcwd.c: Likewise.
305         * intrinsics/date_and_time.c: Likewise.
306         * intrinsics/unpack_generic.c: Likewise.
307         * intrinsics/move_alloc.c: Likewise.
308         * intrinsics/getlog.c: Likewise.
309         * intrinsics/eoshift0.c: Likewise.
310         * intrinsics/eoshift2.c: Likewise.
311         * intrinsics/reshape_generic.c: Likewise.
312         * intrinsics/system.c: Likewise.
313         * intrinsics/iso_c_binding.c: Likewise.
314         * intrinsics/env.c: Likewise.
315         * intrinsics/kill.c: Likewise.
316         * intrinsics/reshape_packed.c: Likewise.
317         * intrinsics/time.c: Likewise.
318         * intrinsics/gerror.c: Likewise.
319         * intrinsics/access.c: Likewise.
320         * intrinsics/fnum.c: Likewise.
321         * intrinsics/abort.c: Likewise.
322         * intrinsics/rename.c: Likewise.
323         * intrinsics/signal.c: Likewise.
324         * intrinsics/symlnk.c: Likewise.
325         * intrinsics/random.c: Likewise.
326         * intrinsics/umask.c: Likewise.
327         * intrinsics/getXid.c: Likewise.
328         * intrinsics/rand.c: Likewise.
329         * intrinsics/chdir.c: Likewise.
330         * intrinsics/chmod.c: Likewise.
331         * intrinsics/clock.c: Likewise.
332         * intrinsics/args.c: Likewise.
333         * intrinsics/link.c: Likewise.
334         * c99_protos.h: Likewise.
335         * config/fpu-387.h: Likewise.
336         * config/fpu-aix.h: Likewise.
337         * config/fpu-sysv.h: Likewise.
338         * config/fpu-generic.h: Likewise.
339         * config/fpu-glibc.h: Likewise.
340         * io/file_pos.c: Likewise.
341         * io/open.c: Likewise.
342         * io/size_from_kind.c: Likewise.
343         * io/close.c: Likewise.
344         * io/list_read.c: Likewise.
345         * io/read.c: Likewise.
346         * io/inquire.c: Likewise.
347         * io/unit.c: Likewise.
348         * io/unix.c: Likewise.
349         * io/transfer.c: Likewise.
350         * io/intrinsics.c: Likewise.
351         * io/format.c: Likewise.
352         * io/lock.c: Likewise.
353         * io/write.c: Likewise.
354         * io/write_float.def: Likewise.
355         * fmain.c: Likewise.
356         * generated/minval_r8.c: Regenerate.
357         * generated/minloc1_16_r16.c: Regenerate.
358         * generated/maxloc1_4_r8.c: Regenerate.
359         * generated/sum_i8.c: Regenerate.
360         * generated/eoshift3_4.c: Regenerate.
361         * generated/transpose_c8.c: Regenerate.
362         * generated/any_l16.c: Regenerate.
363         * generated/eoshift1_8.c: Regenerate.
364         * generated/pow_r8_i8.c: Regenerate.
365         * generated/reshape_r16.c: Regenerate.
366         * generated/pow_i4_i16.c: Regenerate.
367         * generated/maxval_i2.c: Regenerate.
368         * generated/product_r4.c: Regenerate.
369         * generated/maxloc1_8_i4.c: Regenerate.
370         * generated/exponent_r16.c: Regenerate.
371         * generated/maxloc0_4_r4.c: Regenerate.
372         * generated/fraction_r16.c: Regenerate.
373         * generated/in_unpack_i8.c: Regenerate.
374         * generated/matmul_r8.c: Regenerate.
375         * generated/product_i2.c: Regenerate.
376         * generated/fraction_r4.c: Regenerate.
377         * generated/minloc0_4_r16.c: Regenerate.
378         * generated/reshape_c4.c: Regenerate.
379         * generated/minloc0_4_i1.c: Regenerate.
380         * generated/maxloc0_4_r16.c: Regenerate.
381         * generated/maxloc0_4_i2.c: Regenerate.
382         * generated/minloc1_8_r16.c: Regenerate.
383         * generated/maxloc1_8_r16.c: Regenerate.
384         * generated/set_exponent_r8.c: Regenerate.
385         * generated/in_unpack_i16.c: Regenerate.
386         * generated/transpose_c16.c: Regenerate.
387         * generated/maxloc0_8_i8.c: Regenerate.
388         * generated/pow_c4_i8.c: Regenerate.
389         * generated/sum_r16.c: Regenerate.
390         * generated/sum_i1.c: Regenerate.
391         * generated/minloc1_4_r8.c: Regenerate.
392         * generated/transpose_r10.c: Regenerate.
393         * generated/pow_i8_i4.c: Regenerate.
394         * generated/maxloc1_16_r16.c: Regenerate.
395         * generated/minloc1_16_i4.c: Regenerate.
396         * generated/maxloc1_16_i4.c: Regenerate.
397         * generated/minloc0_16_i8.c: Regenerate.
398         * generated/maxloc0_16_i8.c: Regenerate.
399         * generated/nearest_r8.c: Regenerate.
400         * generated/spacing_r16.c: Regenerate.
401         * generated/transpose_i8.c: Regenerate.
402         * generated/count_16_l16.c: Regenerate.
403         * generated/maxval_r16.c: Regenerate.
404         * generated/count_8_l8.c: Regenerate.
405         * generated/product_c10.c: Regenerate.
406         * generated/minloc1_8_i4.c: Regenerate.
407         * generated/minloc0_16_i16.c: Regenerate.
408         * generated/matmul_r16.c: Regenerate.
409         * generated/eoshift1_16.c: Regenerate.
410         * generated/minloc0_4_r4.c: Regenerate.
411         * generated/pow_c16_i16.c: Regenerate.
412         * generated/set_exponent_r10.c: Regenerate.
413         * generated/pow_i16_i16.c: Regenerate.
414         * generated/product_c4.c: Regenerate.
415         * generated/sum_r4.c: Regenerate.
416         * generated/pow_c16_i4.c: Regenerate.
417         * generated/rrspacing_r10.c: Regenerate.
418         * generated/in_pack_c16.c: Regenerate.
419         * generated/minloc0_4_i2.c: Regenerate.
420         * generated/maxloc0_8_i1.c: Regenerate.
421         * generated/reshape_i4.c: Regenerate.
422         * generated/minloc0_8_i8.c: Regenerate.
423         * generated/matmul_c8.c: Regenerate.
424         * generated/spacing_r4.c: Regenerate.
425         * generated/in_pack_c4.c: Regenerate.
426         * generated/all_l16.c: Regenerate.
427         * generated/minloc1_16_r10.c: Regenerate.
428         * generated/sum_i2.c: Regenerate.
429         * generated/minloc0_16_i1.c: Regenerate.
430         * generated/reshape_c16.c: Regenerate.
431         * generated/maxloc0_16_i1.c: Regenerate.
432         * generated/maxloc1_8_r8.c: Regenerate.
433         * generated/minval_i16.c: Regenerate.
434         * generated/reshape_r10.c: Regenerate.
435         * generated/exponent_r10.c: Regenerate.
436         * generated/maxval_i4.c: Regenerate.
437         * generated/any_l4.c: Regenerate.
438         * generated/minval_i8.c: Regenerate.
439         * generated/maxloc1_4_i8.c: Regenerate.
440         * generated/fraction_r10.c: Regenerate.
441         * generated/maxloc0_16_i16.c: Regenerate.
442         * generated/shape_i4.c: Regenerate.
443         * generated/pow_r16_i8.c: Regenerate.
444         * generated/maxloc0_8_r4.c: Regenerate.
445         * generated/rrspacing_r8.c: Regenerate.
446         * generated/pow_c10_i4.c: Regenerate.
447         * generated/minloc1_4_i16.c: Regenerate.
448         * generated/minloc0_4_r10.c: Regenerate.
449         * generated/maxloc1_4_i16.c: Regenerate.
450         * generated/minloc0_8_i16.c: Regenerate.
451         * generated/maxloc0_4_r10.c: Regenerate.
452         * generated/maxloc0_8_i16.c: Regenerate.
453         * generated/minloc1_8_r10.c: Regenerate.
454         * generated/product_i4.c: Regenerate.
455         * generated/minloc0_16_r4.c: Regenerate.
456         * generated/sum_c16.c: Regenerate.
457         * generated/maxloc1_8_r10.c: Regenerate.
458         * generated/maxloc0_16_r4.c: Regenerate.
459         * generated/transpose_c10.c: Regenerate.
460         * generated/minloc1_16_r8.c: Regenerate.
461         * generated/minloc0_8_i1.c: Regenerate.
462         * generated/maxloc0_4_i4.c: Regenerate.
463         * generated/transpose_r4.c: Regenerate.
464         * generated/maxloc1_16_r8.c: Regenerate.
465         * generated/pow_i16_i8.c: Regenerate.
466         * generated/cshift1_4.c: Regenerate.
467         * generated/maxloc0_8_i2.c: Regenerate.
468         * generated/sum_r10.c: Regenerate.
469         * generated/nearest_r16.c: Regenerate.
470         * generated/sum_c4.c: Regenerate.
471         * generated/maxloc1_16_r10.c: Regenerate.
472         * generated/count_4_l16.c: Regenerate.
473         * generated/pow_c8_i8.c: Regenerate.
474         * generated/matmul_i8.c: Regenerate.
475         * generated/in_pack_i4.c: Regenerate.
476         * generated/pow_i4_i8.c: Regenerate.
477         * generated/minloc0_16_i2.c: Regenerate.
478         * generated/minloc1_8_r8.c: Regenerate.
479         * generated/maxloc0_16_i2.c: Regenerate.
480         * generated/exponent_r4.c: Regenerate.
481         * generated/spacing_r10.c: Regenerate.
482         * generated/matmul_c16.c: Regenerate.
483         * generated/pow_c4_i16.c: Regenerate.
484         * generated/maxval_r10.c: Regenerate.
485         * generated/count_4_l4.c: Regenerate.
486         * generated/shape_i16.c: Regenerate.
487         * generated/minval_i1.c: Regenerate.
488         * generated/maxloc1_4_i1.c: Regenerate.
489         * generated/matmul_r10.c: Regenerate.
490         * generated/minloc1_4_i8.c: Regenerate.
491         * generated/pow_r10_i8.c: Regenerate.
492         * generated/minloc0_8_r4.c: Regenerate.
493         * generated/in_unpack_c4.c: Regenerate.
494         * generated/matmul_l4.c: Regenerate.
495         * generated/product_i16.c: Regenerate.
496         * generated/minloc0_16_r16.c: Regenerate.
497         * generated/reshape_r8.c: Regenerate.
498         * generated/pow_r10_i16.c: Regenerate.
499         * generated/all_l4.c: Regenerate.
500         * generated/in_pack_c10.c: Regenerate.
501         * generated/minloc0_4_i4.c: Regenerate.
502         * generated/minloc0_8_i2.c: Regenerate.
503         * generated/matmul_i1.c: Regenerate.
504         * generated/reshape_c10.c: Regenerate.
505         * generated/minval_r4.c: Regenerate.
506         * generated/maxloc1_4_r4.c: Regenerate.
507         * generated/pow_r8_i16.c: Regenerate.
508         * generated/sum_i4.c: Regenerate.
509         * generated/maxval_r8.c: Regenerate.
510         * generated/count_16_l8.c: Regenerate.
511         * generated/transpose_c4.c: Regenerate.
512         * generated/eoshift1_4.c: Regenerate.
513         * generated/eoshift3_8.c: Regenerate.
514         * generated/minval_r16.c: Regenerate.
515         * generated/minloc1_4_i1.c: Regenerate.
516         * generated/minval_i2.c: Regenerate.
517         * generated/maxloc1_4_i2.c: Regenerate.
518         * generated/pow_i8_i16.c: Regenerate.
519         * generated/product_r8.c: Regenerate.
520         * generated/maxloc1_8_i8.c: Regenerate.
521         * generated/maxloc0_4_r8.c: Regenerate.
522         * generated/maxloc0_16_r16.c: Regenerate.
523         * generated/in_unpack_i4.c: Regenerate.
524         * generated/matmul_r4.c: Regenerate.
525         * generated/sum_c10.c: Regenerate.
526         * generated/minloc1_4_r16.c: Regenerate.
527         * generated/fraction_r8.c: Regenerate.
528         * generated/maxloc1_4_r16.c: Regenerate.
529         * generated/set_exponent_r4.c: Regenerate.
530         * generated/minloc0_8_r16.c: Regenerate.
531         * generated/in_unpack_c16.c: Regenerate.
532         * generated/reshape_c8.c: Regenerate.
533         * generated/maxloc0_8_r16.c: Regenerate.
534         * generated/nearest_r10.c: Regenerate.
535         * generated/maxloc0_8_i4.c: Regenerate.
536         * generated/pow_c4_i4.c: Regenerate.
537         * generated/matmul_i2.c: Regenerate.
538         * generated/minloc1_4_r4.c: Regenerate.
539         * generated/transpose_i16.c: Regenerate.
540         * generated/matmul_c10.c: Regenerate.
541         * generated/minloc0_16_i4.c: Regenerate.
542         * generated/maxloc0_16_i4.c: Regenerate.
543         * generated/pow_i8_i8.c: Regenerate.
544         * generated/nearest_r4.c: Regenerate.
545         * generated/minloc1_16_i8.c: Regenerate.
546         * generated/maxloc1_16_i8.c: Regenerate.
547         * generated/transpose_i4.c: Regenerate.
548         * generated/count_8_l4.c: Regenerate.
549         * generated/minloc1_4_i2.c: Regenerate.
550         * generated/matmul_l16.c: Regenerate.
551         * generated/maxloc1_8_i1.c: Regenerate.
552         * generated/minloc0_16_r10.c: Regenerate.
553         * generated/minloc1_8_i8.c: Regenerate.
554         * generated/minloc0_4_r8.c: Regenerate.
555         * generated/product_r16.c: Regenerate.
556         * generated/product_c8.c: Regenerate.
557         * generated/pow_r16_i16.c: Regenerate.
558         * generated/sum_r8.c: Regenerate.
559         * generated/pow_c16_i8.c: Regenerate.
560         * generated/in_pack_i16.c: Regenerate.
561         * generated/minloc0_8_i4.c: Regenerate.
562         * generated/matmul_c4.c: Regenerate.
563         * generated/minloc1_16_i16.c: Regenerate.
564         * generated/reshape_i8.c: Regenerate.
565         * generated/spacing_r8.c: Regenerate.
566         * generated/in_pack_c8.c: Regenerate.
567         * generated/maxloc1_8_r4.c: Regenerate.
568         * generated/minloc1_16_i1.c: Regenerate.
569         * generated/maxloc1_16_i1.c: Regenerate.
570         * generated/reshape_i16.c: Regenerate.
571         * generated/minval_r10.c: Regenerate.
572         * generated/pow_r4_i8.c: Regenerate.
573         * generated/minloc1_8_i1.c: Regenerate.
574         * generated/minval_i4.c: Regenerate.
575         * generated/maxloc1_4_i4.c: Regenerate.
576         * generated/maxloc1_8_i2.c: Regenerate.
577         * generated/maxval_i8.c: Regenerate.
578         * generated/eoshift3_16.c: Regenerate.
579         * generated/any_l8.c: Regenerate.
580         * generated/maxloc0_16_r10.c: Regenerate.
581         * generated/rrspacing_r4.c: Regenerate.
582         * generated/shape_i8.c: Regenerate.
583         * generated/maxloc0_8_r8.c: Regenerate.
584         * generated/minloc0_4_i16.c: Regenerate.
585         * generated/maxloc0_4_i16.c: Regenerate.
586         * generated/minloc1_4_r10.c: Regenerate.
587         * generated/minloc1_8_i16.c: Regenerate.
588         * generated/pow_c10_i8.c: Regenerate.
589         * generated/maxloc1_4_r10.c: Regenerate.
590         * generated/maxloc1_8_i16.c: Regenerate.
591         * generated/in_unpack_c10.c: Regenerate.
592         * generated/minloc0_8_r10.c: Regenerate.
593         * generated/maxloc0_8_r10.c: Regenerate.
594         * generated/minloc1_16_r4.c: Regenerate.
595         * generated/maxloc1_16_r4.c: Regenerate.
596         * generated/minloc0_16_r8.c: Regenerate.
597         * generated/pow_i16_i4.c: Regenerate.
598         * generated/product_i8.c: Regenerate.
599         * generated/maxloc0_16_r8.c: Regenerate.
600         * generated/sum_i16.c: Regenerate.
601         * generated/maxloc0_4_i8.c: Regenerate.
602         * generated/transpose_r8.c: Regenerate.
603         * generated/cshift1_8.c: Regenerate.
604         * generated/maxloc1_16_i16.c: Regenerate.
605         * generated/matmul_i4.c: Regenerate.
606         * generated/pow_c8_i4.c: Regenerate.
607         * generated/pow_i4_i4.c: Regenerate.
608         * generated/minloc1_8_r4.c: Regenerate.
609         * generated/sum_c8.c: Regenerate.
610         * generated/count_8_l16.c: Regenerate.
611         * generated/minloc1_16_i2.c: Regenerate.
612         * generated/maxloc1_16_i2.c: Regenerate.
613         * generated/in_pack_i8.c: Regenerate.
614         * generated/transpose_r16.c: Regenerate.
615         * generated/maxval_i16.c: Regenerate.
616         * generated/exponent_r8.c: Regenerate.
617         * generated/matmul_i16.c: Regenerate.
618         * generated/count_4_l8.c: Regenerate.
619         * generated/pow_c8_i16.c: Regenerate.
620         * generated/maxval_i1.c: Regenerate.
621         * generated/minloc1_4_i4.c: Regenerate.
622         * generated/minloc1_8_i2.c: Regenerate.
623         * generated/pow_c10_i16.c: Regenerate.
624         * generated/product_c16.c: Regenerate.
625         * generated/reshape_r4.c: Regenerate.
626         * generated/in_unpack_c8.c: Regenerate.
627         * generated/minloc0_8_r8.c: Regenerate.
628         * generated/matmul_l8.c: Regenerate.
629         * generated/product_r10.c: Regenerate.
630         * generated/set_exponent_r16.c: Regenerate.
631         * generated/cshift1_16.c: Regenerate.
632         * generated/product_i1.c: Regenerate.
633         * generated/all_l8.c: Regenerate.
634         * generated/maxloc0_4_i1.c: Regenerate.
635         * generated/rrspacing_r16.c: Regenerate.
636         * generated/minloc0_4_i8.c: Regenerate.
637         * generated/pow_r4_i16.c: Regenerate.
638         * generated/count_16_l4.c: Regenerate.
639         * generated/maxval_r4.c: Regenerate.
640
641 2007-08-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
642
643         PR libfortran/33225
644         * io/write.c: Revert changes from patch of 2007-08-27.
645         * io/write_float.def: Remove file, reverting addition.
646
647 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
648
649         * runtime/memory.c (internal_realloc, allocate, allocate_array,
650         deallocate): Remove functions.
651         * gfortran.map (_gfortran_allocate, _gfortran_allocate_array,
652         _gfortran_deallocate, _gfortran_internal_realloc): Remove symbols.
653         * libgfortran.h (error_codes): Add comment.
654
655 2007-08-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
656
657         PR libfortran/33055
658         Revert previous patch.
659
660 2007-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
661
662         * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
663         new file write_float.def. Include write_float.def.
664         (extract_real): Delete. (calculate_sign): Delete.
665         (calculate_exp): Delete. (calculate_G_format): Delete.
666         (output_float): Delete. (write_float): Delete.
667         * io/write_float.def (calculate_sign): Added.
668         (output_float): Refactored to be independent of kind and added to this
669         file for inclusion. (write_infnan): New function to write "Infinite"
670         or "NaN" depending on flags passed, independent of kind.
671         (CALCULATE_EXP): New macro to build kind specific functions. Use it.
672         (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
673         (DTOA, DTOAL): Macros to implement "decimal to ascii".
674         (WRITE_FLOAT): New macro for kind specific write_float functions.
675         (write_float): Revised function to determine kind and use WRITE_FLOAT
676         to implement kind specific output.
677
678 2007-08-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
679
680         PR libfortran/33055
681         * io/inquire.c (inquire_via_unit):  If inquiring by unit, check for 
682         an error condition from the IOSTAT variable and set EXIST to false if
683         there was a bad unit number.
684
685 2007-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
686
687         PR fortran/32972
688         * libgfortran.h:  Remove GFOR_POINTER_L8_TO_L4 macro.
689         Add GFOR_POINTER_TO_L1 macro.
690         * m4/iforeach.m4(`m'name`'rtype_qual`_'atype_code):
691         Change argument 'mask' to gfc_array_l1.  Adjust prototype.
692         Change mask pointer to GFC_LOGICAL_1.  Multiply strides
693         by kind of mask
694         * m4/ifunction.m4:  Likewise.
695         * intrinsics/pack_generic.c(pack_internal):  Likewise.
696         * intrinsics/unpack_generic.c(unpack_internal):  Likewise.
697         * m4/matmull.m4:  Switch to GFC_LOGICAL_1.  Multiply strides by
698         kind of logical arguments a and b.
699         * generated/matmul_l16.c: Regenerated.
700         * generated/matmul_l4.c: Regenerated.
701         * generated/matmul_l8.c: Regenerated.
702         * generated/maxloc0_16_i1.c: Regenerated.
703         * generated/maxloc0_16_i16.c: Regenerated.
704         * generated/maxloc0_16_i2.c: Regenerated.
705         * generated/maxloc0_16_i4.c: Regenerated.
706         * generated/maxloc0_16_i8.c: Regenerated.
707         * generated/maxloc0_16_r10.c: Regenerated.
708         * generated/maxloc0_16_r16.c: Regenerated.
709         * generated/maxloc0_16_r4.c: Regenerated.
710         * generated/maxloc0_16_r8.c: Regenerated.
711         * generated/maxloc0_4_i1.c: Regenerated.
712         * generated/maxloc0_4_i16.c: Regenerated.
713         * generated/maxloc0_4_i2.c: Regenerated.
714         * generated/maxloc0_4_i4.c: Regenerated.
715         * generated/maxloc0_4_i8.c: Regenerated.
716         * generated/maxloc0_4_r10.c: Regenerated.
717         * generated/maxloc0_4_r16.c: Regenerated.
718         * generated/maxloc0_4_r4.c: Regenerated.
719         * generated/maxloc0_4_r8.c: Regenerated.
720         * generated/maxloc0_8_i1.c: Regenerated.
721         * generated/maxloc0_8_i16.c: Regenerated.
722         * generated/maxloc0_8_i2.c: Regenerated.
723         * generated/maxloc0_8_i4.c: Regenerated.
724         * generated/maxloc0_8_i8.c: Regenerated.
725         * generated/maxloc0_8_r10.c: Regenerated.
726         * generated/maxloc0_8_r16.c: Regenerated.
727         * generated/maxloc0_8_r4.c: Regenerated.
728         * generated/maxloc0_8_r8.c: Regenerated.
729         * generated/maxloc1_16_i1.c: Regenerated.
730         * generated/maxloc1_16_i16.c: Regenerated.
731         * generated/maxloc1_16_i2.c: Regenerated.
732         * generated/maxloc1_16_i4.c: Regenerated.
733         * generated/maxloc1_16_i8.c: Regenerated.
734         * generated/maxloc1_16_r10.c: Regenerated.
735         * generated/maxloc1_16_r16.c: Regenerated.
736         * generated/maxloc1_16_r4.c: Regenerated.
737         * generated/maxloc1_16_r8.c: Regenerated.
738         * generated/maxloc1_4_i1.c: Regenerated.
739         * generated/maxloc1_4_i16.c: Regenerated.
740         * generated/maxloc1_4_i2.c: Regenerated.
741         * generated/maxloc1_4_i4.c: Regenerated.
742         * generated/maxloc1_4_i8.c: Regenerated.
743         * generated/maxloc1_4_r10.c: Regenerated.
744         * generated/maxloc1_4_r16.c: Regenerated.
745         * generated/maxloc1_4_r4.c: Regenerated.
746         * generated/maxloc1_4_r8.c: Regenerated.
747         * generated/maxloc1_8_i1.c: Regenerated.
748         * generated/maxloc1_8_i16.c: Regenerated.
749         * generated/maxloc1_8_i2.c: Regenerated.
750         * generated/maxloc1_8_i4.c: Regenerated.
751         * generated/maxloc1_8_i8.c: Regenerated.
752         * generated/maxloc1_8_r10.c: Regenerated.
753         * generated/maxloc1_8_r16.c: Regenerated.
754         * generated/maxloc1_8_r4.c: Regenerated.
755         * generated/maxloc1_8_r8.c: Regenerated.
756         * generated/maxval_i1.c: Regenerated.
757         * generated/maxval_i16.c: Regenerated.
758         * generated/maxval_i2.c: Regenerated.
759         * generated/maxval_i4.c: Regenerated.
760         * generated/maxval_i8.c: Regenerated.
761         * generated/maxval_r10.c: Regenerated.
762         * generated/maxval_r16.c: Regenerated.
763         * generated/maxval_r4.c: Regenerated.
764         * generated/maxval_r8.c: Regenerated.
765         * generated/minloc0_16_i1.c: Regenerated.
766         * generated/minloc0_16_i16.c: Regenerated.
767         * generated/minloc0_16_i2.c: Regenerated.
768         * generated/minloc0_16_i4.c: Regenerated.
769         * generated/minloc0_16_i8.c: Regenerated.
770         * generated/minloc0_16_r10.c: Regenerated.
771         * generated/minloc0_16_r16.c: Regenerated.
772         * generated/minloc0_16_r4.c: Regenerated.
773         * generated/minloc0_16_r8.c: Regenerated.
774         * generated/minloc0_4_i1.c: Regenerated.
775         * generated/minloc0_4_i16.c: Regenerated.
776         * generated/minloc0_4_i2.c: Regenerated.
777         * generated/minloc0_4_i4.c: Regenerated.
778         * generated/minloc0_4_i8.c: Regenerated.
779         * generated/minloc0_4_r10.c: Regenerated.
780         * generated/minloc0_4_r16.c: Regenerated.
781         * generated/minloc0_4_r4.c: Regenerated.
782         * generated/minloc0_4_r8.c: Regenerated.
783         * generated/minloc0_8_i1.c: Regenerated.
784         * generated/minloc0_8_i16.c: Regenerated.
785         * generated/minloc0_8_i2.c: Regenerated.
786         * generated/minloc0_8_i4.c: Regenerated.
787         * generated/minloc0_8_i8.c: Regenerated.
788         * generated/minloc0_8_r10.c: Regenerated.
789         * generated/minloc0_8_r16.c: Regenerated.
790         * generated/minloc0_8_r4.c: Regenerated.
791         * generated/minloc0_8_r8.c: Regenerated.
792         * generated/minloc1_16_i1.c: Regenerated.
793         * generated/minloc1_16_i16.c: Regenerated.
794         * generated/minloc1_16_i2.c: Regenerated.
795         * generated/minloc1_16_i4.c: Regenerated.
796         * generated/minloc1_16_i8.c: Regenerated.
797         * generated/minloc1_16_r10.c: Regenerated.
798         * generated/minloc1_16_r16.c: Regenerated.
799         * generated/minloc1_16_r4.c: Regenerated.
800         * generated/minloc1_16_r8.c: Regenerated.
801         * generated/minloc1_4_i1.c: Regenerated.
802         * generated/minloc1_4_i16.c: Regenerated.
803         * generated/minloc1_4_i2.c: Regenerated.
804         * generated/minloc1_4_i4.c: Regenerated.
805         * generated/minloc1_4_i8.c: Regenerated.
806         * generated/minloc1_4_r10.c: Regenerated.
807         * generated/minloc1_4_r16.c: Regenerated.
808         * generated/minloc1_4_r4.c: Regenerated.
809         * generated/minloc1_4_r8.c: Regenerated.
810         * generated/minloc1_8_i1.c: Regenerated.
811         * generated/minloc1_8_i16.c: Regenerated.
812         * generated/minloc1_8_i2.c: Regenerated.
813         * generated/minloc1_8_i4.c: Regenerated.
814         * generated/minloc1_8_i8.c: Regenerated.
815         * generated/minloc1_8_r10.c: Regenerated.
816         * generated/minloc1_8_r16.c: Regenerated.
817         * generated/minloc1_8_r4.c: Regenerated.
818         * generated/minloc1_8_r8.c: Regenerated.
819         * generated/minval_i1.c: Regenerated.
820         * generated/minval_i16.c: Regenerated.
821         * generated/minval_i2.c: Regenerated.
822         * generated/minval_i4.c: Regenerated.
823         * generated/minval_i8.c: Regenerated.
824         * generated/minval_r10.c: Regenerated.
825         * generated/minval_r16.c: Regenerated.
826         * generated/minval_r4.c: Regenerated.
827         * generated/minval_r8.c: Regenerated.
828         * generated/product_c10.c: Regenerated.
829         * generated/product_c16.c: Regenerated.
830         * generated/product_c4.c: Regenerated.
831         * generated/product_c8.c: Regenerated.
832         * generated/product_i1.c: Regenerated.
833         * generated/product_i16.c: Regenerated.
834         * generated/product_i2.c: Regenerated.
835         * generated/product_i4.c: Regenerated.
836         * generated/product_i8.c: Regenerated.
837         * generated/product_r10.c: Regenerated.
838         * generated/product_r16.c: Regenerated.
839         * generated/product_r4.c: Regenerated.
840         * generated/product_r8.c: Regenerated.
841         * generated/sum_c10.c: Regenerated.
842         * generated/sum_c16.c: Regenerated.
843         * generated/sum_c4.c: Regenerated.
844         * generated/sum_c8.c: Regenerated.
845         * generated/sum_i1.c: Regenerated.
846         * generated/sum_i16.c: Regenerated.
847         * generated/sum_i2.c: Regenerated.
848         * generated/sum_i4.c: Regenerated.
849         * generated/sum_i8.c: Regenerated.
850         * generated/sum_r10.c: Regenerated.
851         * generated/sum_r16.c: Regenerated.
852         * generated/sum_r4.c: Regenerated.
853         * generated/sum_r8.c: Regenerated.
854         
855 2007-08-23  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
856
857         PR libfortran/23138
858         * acinclude.m4 (LIBGFOR_CHECK_MINGW_SNPRINTF): New check.
859         * configure.ac: Use LIBGFOR_CHECK_MINGW_SNPRINTF.
860         * libgfortran.h: If HAVE_MINGW_SNPRINTF is true, use __mingw_snprintf
861         instead of snprintf.
862         * config.h.in: Regenerate.
863         * configure: Regenerate.
864
865 2007-08-22  Bernhard Fischer  <rep.dot.nop@gmail.com>
866
867         * libgfortran/Makefile.am (AM_CPPFLAGS): Commentary typo fix.
868
869 2007-08-17  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
870
871         PR fortran/33079
872         * intrinsics/string_intrinsics.c (string_trim, string_minmax): Fix
873         the zero-length result case.
874
875 2007-08-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
876
877         PR fortran/33077
878         * intrinsics/random.c (random_seed_i8): Fix code logic.
879
880 2007-08-13  Danny Smith  <dannysmit@users.sourceforge.net>
881
882         * acinclude.m4 (GTHREAD_USE_WEAK) Define to 0 for mingw32.
883         * configure: Regenerate.
884
885 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
886
887         PR fortran/30964
888         PR fortran/33054
889         * intrinsics/random.c (random_seed): Rename into random_seed_i4.
890         (random_seed_i8): New function.
891         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_random_seed,
892         add _gfortran_random_seed_i4 and _gfortran_random_seed_i8.
893         * libgfortran.h (iexport_proto): Replace random_seed by
894         random_seed_i4 and random_seed_i8.
895         * runtime/main.c (init): Call the new random_seed_i4.
896
897 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
898             Tobias Burnus  <burnus@gcc.gnu.org>
899
900         PR fortran/31189
901         * runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
902         when displaying backtrace.
903         * runtime/compile_options.c: Include <signal.h>.
904         (handler): New function.
905         (set_options): Set signal handlers for backtrace.
906         * libgfortran.h (handler): Add prototype.
907
908 2007-08-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
909
910         * intrinsics/string_intrinsics.c (compare_string): Return an int.
911         * libgfortran.h (compare_string): Likewise.
912
913 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
914
915         PR fortran/31270
916         * runtime/error.c (runtime_error_at): Add a variable number of
917         arguments.
918         * libgfortran.h (runtime_error_at): Update prototype.
919
920 2007-08-10  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
921
922         PR fortran/32933
923         * intrinsics/associated.c: Change return type of associated into
924         a C int.
925
926 2007-08-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
927
928         PR libfortran/33039
929         * io/list_read.c (find_nml_name): Check for a space after a namelist
930         name match.
931
932 2007-08-09  Tobias Burnus  <burnus@net-b.de>
933
934         PR fortran/32987
935         * io/format.c (next_char): Treat '\t' as ' ' in format specification.
936
937 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
938
939         PR fortran/30947
940         * intrinsics/signal.c: Create specific versions of alarm_sub and
941         alarm_sub_int according to the integer kind of the last argument.
942         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_alarm_sub and
943         _gfortran_alarm_sub_int, add _gfortran_alarm_sub_i4,
944         _gfortran_alarm_sub_i8, _gfortran_alarm_sub_int_i4 and
945         _gfortran_alarm_sub_int_i8.
946
947 2007-08-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
948
949         PR fortran/29828
950         * intrinsics/string_intrinsics.c (string_minmax): New function
951         and prototype.
952         * gfortran.map (GFORTRAN_1.0): Add _gfortran_string_minmax
953
954 2007-08-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
955
956         PR fortran/31202
957         * intrinsics/c99_functions.c (roundl): Provide fallback
958         implementation for systems without ceill.
959         * c99_protos.h (roundl): Define prototype in all cases.
960
961 2007-08-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
962
963         PR libfortran/32977
964         * io/unix.c:  If there is no vsnprintf, use vsprintf and issue
965         a fatal error when a buffer overrun occurs.
966
967 2007-08-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
968
969         PR fortran/31202
970         * intrinsics/c99_functions.c (roundl,lroundf,lround,lroundl,
971         llroundf,llround,llroundl): New functions.
972         * c99_protos.h (roundl,lroundf,lround,lroundl,llroundf,llround,
973         llroundl): New prototypes.
974         * configure.ac: Check for lroundf, lround, lroundl, llroundf,
975         llround and llroundl.
976         * configure: Regenerate.
977         * Makefile.in: Regenerate.
978         * config.h.in: Regenerate.
979
980 2007-07-30  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
981
982         * libgfortran.h: Include <stdarg.h>.
983
984 2007-07-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
985
986         PR libfortran/32858
987         PR libfortran/30814
988         * configure.ac:  Added checks for presence of stdio.h and
989         stdarg.h.  Test presence of vsnprintf().
990         * configure: Regenerated.
991         * config.h.in:  Regenerated.
992         * libgfortran.h:  Include <stdio.h>.  Add printf attribute to
993         prototype of runtime_error.  Remove prototype for st_sprintf.
994         Add prototype for st_vprintf.
995         * runtime/main.c (store_exec_path):  Replace st_sprintf by sprintf.
996         * runtime/error.c (st_sprintf):  Remove.
997         (runtime_error):  Rewrite as a variadic function.  Call
998         st_vprintf().
999         * intrinsics/pack_generic.c:  Output extents of LHS and RHS for
1000         bounds error.
1001         * io/open.c (new_unit):  Replace st_sprintf by sprintf.
1002         * io/list_read.c (convert_integer):  Likewise.
1003         (parse_repeat):  Likewise.
1004         (read_logical):  Likewise.
1005         (read_character):  Likewise.
1006         (parse_real):  Likewise.
1007         (read_real):  Likewise.
1008         (check_type):  Likewise.
1009         (nml_parse_qualifyer):  Likewise.
1010         (nml_read_obj):  Likewise.
1011         (nml_get_ojb_data):  Likewise.
1012         * io/unix.c (init_error_stream):  Remove.
1013         (tempfile):  Replace st_sprintf by sprintf.
1014         (st_vprintf):  New function.
1015         (st_printf):  Rewrite to call st_vprintf.
1016         * io/transfer.c (require_type):  Replace st_sprintf by sprintf.
1017         * io/format.c (format_error):  Likewise.
1018         * io/write.c (nml_write_obj):  Likewise.
1019
1020 2007-07-27  Janne Blomqvist  <jb@gcc.gnu.org>
1021
1022         * io/transfer.c (st_set_nml_var_dim): Use index_type instead of
1023         GFC_INTEGER_4 for array descriptor triplets.
1024
1025 2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1026
1027         * io/unix.c (stream_ttyname): Mark argument as potentialy unused.
1028
1029 2007-07-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1030
1031         PR fortran/32035
1032         * runtime/select.c (select_string): Adjust prototype and function
1033         so that the return value is an integer, not a pointer.
1034
1035 2007-07-24  Tobias Burnus  <burnus@net-b.de>
1036
1037         * libgfortran.h:  Add bounds_check to compile_options_t.
1038
1039 2007-07-24  Thomas Koenig  <tkoenig@gcc.gnu.org>
1040
1041         PR fortran/30814
1042         * libgfortran.h:  Add bounds_check to compile_options_t.
1043         * runtime/compile_options.c (set_options):  Add handling
1044         of compile_options.bounds_check.
1045         * intrinsics/pack_generic.c (pack_internal):  Also determine
1046         the number of elements if compile_options.bounds_check is
1047         true.  Raise runtime error if a different array shape is
1048         detected.
1049
1050 2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
1051
1052         PR fortran/32600
1053         * intrinsics/iso_c_binding.c (c_funloc): Remove.
1054         * intrinsics/iso_c_binding.h: Remove c_funloc.
1055         * gfortran.map: Ditto.
1056
1057 2007-07-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1058
1059         * io/read.c (convert_real): Generate error only on EINVAL.
1060
1061 2007-07-21  Christopher D. Rickett  <crickett@lanl.gov>
1062
1063         PR fortran/32627
1064         * libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
1065         for character/string arguments.
1066         * libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
1067         the optional SHAPE arg to be any valid integer kind.
1068         * libgfortran/gfortran.map: Add c_f_pointer_s0.
1069         * libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
1070         character kind.
1071         * libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
1072         c_f_pointer for complex and logical types.
1073         * libgfortran/gfortran.map: Add c_f_pointer versions for logical
1074         and complex types.
1075
1076 2007-07-19  Christopher D. Rickett  <crickett@lanl.gov>
1077
1078         PR fortran/32600
1079         * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
1080         * libgfortran/intrinsics/iso_c_binding.h: Ditto.
1081         * libgfortran/gfortran.map: Ditto.
1082
1083 2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1084             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1085
1086         PR fortran/32611
1087         * runtime/compile_options.c (set_std): Remove.
1088         (set_options): New function.
1089         (init_compile_options): Add initialization for -fsign-zero option.
1090         * gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
1091         _gfortran_set_options.
1092         * libgfortran.h (compile_options_t): Add sign_zero field.
1093         * io/write.c (output_float): Use the sign bit of the value to determine
1094         if a negative sign should be emitted for zero values.  Do not emit the
1095         negative sign for zero if -fno-sign-zero was set during compile.
1096         
1097 2007-07-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1098
1099         PR libgfortran/32752
1100         * io/unix.c (unix_stream): Move buffer pointer adjacent to
1101         small_buffer.
1102         * io/transfer.c (formatted_transfer_scalar): If stream I/O, set
1103         bytes_used to zero. Fix off by one error in calculation of pos and
1104         skips. Eliminate duplicate pending_spaces check.
1105
1106 2007-07-15  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1107
1108         PR fortran/32357
1109         * intrinsics/mvbits.c: Change prototype so that FROMPOS, LEN and
1110         TOPOS arguments are C int.
1111
1112 2007-07-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1113
1114         PR libgfortran/32702
1115         * io/unix.c (unix_stream): Restore buffer pointer and small_buffer.
1116         (fd_alloc): If the number of bytes needed is greater than the default
1117         BUFFER_SIZE, allocate a new buffer large enough.  Free the old buffer
1118         if necessary. (fd_sfree): Restore use of buffer pointer.
1119         (fd_close): Likewise. (fd_open): Likewise.
1120         (init_error_stream): Likewise.
1121         
1122 2007-07-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
1123
1124         PR libfortran/32336
1125         * m4/matmul.m4:  When the dimension of b is incorrect,
1126         raise a runtime error instead of a failed assertion.
1127         * generated/matmul_i1.c:  Regenerated.
1128         * generated/matmul_i2.c:  Regenerated.
1129         * generated/matmul_i4.c:  Regenerated.
1130         * generated/matmul_i8.c:  Regenerated.
1131         * generated/matmul_i16.c:  Regenerated.
1132         * generated/matmul_r4.c:  Regenerated.
1133         * generated/matmul_r8.c:  Regenerated.
1134         * generated/matmul_r10.c:  Regenerated.
1135         * generated/matmul_r16.c:  Regenerated.
1136
1137 2007-07-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1138
1139         PR libgfortran/32678
1140         * io/transfer.c (formatted_transfer_scalar): Don't allow
1141         pending_spaces to go negative.
1142
1143 2007-07-08  Thomas Koenig  <tkoenig@gcc.gnu.org>
1144
1145         PR libfortran/32217
1146         * intrinsics/unpack_generic.c:  If the destination array is
1147         empty, return early.
1148
1149 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         * aclocal.m4: Regenerated.
1152
1153 2007-07-04  David Edelsohn  <edelsohn@gnu.org>
1154
1155         * configure.ac: SUBST CFLAGS.
1156         * configure: Regenerate.
1157
1158 2007-07-03  Janne Blomqvist  <jb@gcc.gnu.org>
1159
1160         * libgfortran.h: Mark internal_malloc_size as a malloc function.
1161         * runtime/memory.c (internal_realloc_size): Remove.
1162         (internal_realloc): Call realloc directly instead of
1163         internal_realloc_size.
1164         (allocate_size): Remove.
1165         (allocate): Call malloc directly instead of allocate_size, mark as
1166         malloc function.
1167
1168 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1169
1170         Restore collateral damage from ISO C Binding merge.
1171
1172 2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1173
1174         PR libgfortran/32456
1175         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1176         for unit directly.
1177
1178 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1179
1180         * Makefile.in:  Regenerated with automake 1.9.6.
1181
1182 2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
1183
1184         * Makefile.in:  Remove extraneous kill.lo rule.
1185
1186 2007-07-02  Janne Blomqvist  <jb@gcc.gnu.org>
1187
1188         PR fortran/32239
1189         * generated/pow_r*_i4.c: Removed.
1190
1191 2007-07-01  Christopher D. Rickett  <crickett@lanl.gov>
1192
1193         * Makefile.in: Add support for iso_c_generated_procs.c and
1194         iso_c_binding.c.
1195         * Makefile.am: Ditto.
1196         * intrinsics/iso_c_generated_procs.c: New file containing helper
1197         functions.
1198         * intrinsics/iso_c_binding.c: Ditto.
1199         * intrinsics/iso_c_binding.h: New file
1200         * gfortran.map: Include the __iso_c_binding_c_* functions.
1201         * libgfortran.h: define GFC_NUM_RANK_BITS.
1202
1203 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1204
1205         PR fortran/32239
1206         * Makefile.am: Don't generate real**int4 pow functions.
1207         * gfortran.map: Remove real**int4 pow symbols.
1208         * Makefile.in: Regenerated.
1209
1210 2007-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1211
1212         PR libgfortran/32554
1213         * io/write.c (output_float): Set edigits to a fixed size, avoiding
1214         variation in field width calculation and eliminate buffer overrun.
1215
1216 2007-07-01  Janne Blomqvist  <jb@gcc.gnu.org>
1217
1218         * runtime/memory.c (internal_realloc): Use index_type for size
1219         argument instead of GFC_INTEGER_4.
1220         (allocate_array): Likewise.
1221         (allocate): Likewise, add ifdef around unnecessary check.
1222         (internal_reallo64): Remove.
1223         (allocate_array64): Remove.
1224         (allocate64): Remove.
1225         * gfortran.map: Remove symbols for 64-bit allocation functions.
1226
1227 2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1228
1229         PR libgfortran/32456
1230         * io/unit.c (filename_from_unit): Don't use find_unit, instead search
1231         for unit directly.
1232
1233 2007-06-24  Adam Nemet  <anemet@caviumnetworks.com>
1234
1235         PR libfortran/32495
1236         * runtime/backtrace.c (local_strcasestr): Rename from strcasestr.
1237         (show_backtrace): Rename strcasestr to local_strcasestr.
1238
1239 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1240
1241         PR libgfortran/32456
1242         * runtime/error.c (show_locus): Update to emit the unit number
1243         and file name involved with the error.  Use new function
1244         filename_from_unit.
1245         * libgfortran.h (filename_from_unit): Declare new function.
1246         * io/unit.c (init_units): Set the unit file name for stdin, stdout,
1247         and stderr for use later in error reporting.
1248         (filename_from_unit): Add this new function.
1249
1250 2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1251
1252         PR libgfortran/32446
1253         * io/write.c (output_float): Calculate ndigits correctly for large
1254         numbered formats that must pad zeros before the decimal point.
1255
1256 2007-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1257
1258         PR libfortran/32345
1259         * runtime/backtrace.c (show_backtrace): Only use snprintf if
1260         available.
1261
1262 2007-06-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1263
1264         PR libgfortran/32235
1265         * io/transfer.c (st_read): Remove test for end of file condition.
1266         (next_record_r): Add test for end of file condition.
1267
1268 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1269
1270         * configure: Regenerate.
1271
1272 2007-05-28  Tobias Burnus  <burnus@net-b.de>
1273
1274         PR fortran/32124
1275         * runtime/memory.c (allocate_size): Use ERROR_ALLOCATION.
1276         (allocate,allocate64): Use stat variable if present.
1277
1278 2007-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1279
1280         * runtime/string.c (compare0): Use gfc_charlen_type instead of
1281         int.
1282         (fstrlen): Likewise.
1283         (find_option): Likewise.
1284         (fstrcpy): Use gfc_charlen_type instead of int, return length.
1285         (cf_strcpy): Likewise.
1286         * libgfortran.h: Change string prototypes to use gfc_charlen_type.
1287         * io/open.c (new_unit): Use snprintf if available.
1288         * io/list_read.c (nml_touch_nodes): Use memcpy instead of
1289         strcpy/strcat.
1290         (nml_read_obj): Likewise.
1291         * io/transfer.c (st_set_nml_var): Likewise.
1292         * io/write.c (output_float): Use snprintf if available.
1293         (nml_write_obj) Use memcpy instead of strcpy/strcat.
1294
1295 2007-05-26  Janne Blomqvist  <jb@gcc.gnu.org>
1296
1297         * io/unix.c (unix_stream): Rearrange struct members, remove
1298         small_buffer.
1299         (int_stream): New struct.
1300         (fd_alloc): Always use existing buffer, never reallocate.
1301         (fd_sfree): Remove check for buffer != small_buffer.
1302         (fd_close): Likewise.
1303         (mem_alloc_r_at): Change to use int_stream.
1304         (mem_alloc_w_at): Likewise.
1305         (mem_read): Likewise.
1306         (mem_write): Likewise.
1307         (mem_set): Likewise.
1308         (mem_truncate): Likewise.
1309         (mem_close): Likewise.
1310         (mem_sfree): Likewise.
1311         (empty_internal_buffer): Likewise.
1312         (open_internal): Likewise.
1313         
1314 2007-05-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1315
1316         * io/transfer.c (unformatted_read): Use size from front end
1317         eliminating use of size_from_real_kind.
1318         (unformatted_write): Ditto.
1319
1320 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1321
1322         * Makefile.in: Regenerate.
1323         * configure: Regenerate.
1324         * aclocal.m4: Regenerate.
1325
1326 2007-05-22  Tobias Burnus  <burnus@net-b.de>
1327
1328         * libgfortran.h: Mark stop_numeric as noreturn.
1329
1330 2007-05-22  Tobias Burnus  <burnus@net-b.de>
1331
1332         PR libgfortran/31295
1333         * intrinsics/eoshift0.c (eoshift0): Silence uninitialized warning.
1334         * intrinsics/eoshift2.c (eoshift2): Ditto.
1335
1336 2007-05-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1337
1338         PR libfortran/31964
1339         * intrinsics/ishftc.c (ishftc4, ishftc8, ishftc16): Fix mask to handle
1340         shift of bit-size number of bits.
1341
1342 2007-05-17  Tobias Burnus <burnus@net-b.de>
1343
1344         PR fortran/31917
1345         * runtime/environ.c (mark_range): Fix setting default convert unit.
1346
1347 2007-05-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1348
1349         PR libfortran/31922
1350         * intrinsics/string_intrinsics.c (string_trim): Set result to null if
1351         string length is zero.
1352
1353 2007-05-15  Tobias Burnus  <burnus@net-b.de>
1354
1355         PR libfortran/31915
1356         * io/transfer.c (unformatted_read): Use proper size for real(10).
1357           (unformatted_write): Ditto.
1358
1359 2007-05-14  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1360
1361         PR fortran/30723
1362         * runtime/memory.c (internal_malloc, internal_malloc64,
1363         internal_free): Remove.
1364         * runtime/error.c (os_error): Export function.
1365         * intrinsics/move_alloc.c: Include stdlib.h.
1366         (move_alloc): Call free instead of internal_free.
1367         (move_alloc_c): Wrap long lines.
1368         * libgfortran.h (os_error): Export prototype.
1369         (internal_free): Remove prototype.
1370         * gfortran.map (GFORTRAN_1.0): Remove _gfortran_internal_free,
1371         _gfortran_internal_malloc and _gfortran_internal_malloc64.
1372         Add _gfortran_os_error.
1373
1374 2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1375
1376         PR libfortran/31880
1377         * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.
1378
1379 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1380
1381         PR libfortran/31607
1382         * intrinsics/system.c (system_sub): Call flush_all_units.
1383         * io/io.h (flush_all_units): Move prototype to libgfortran.h.
1384         * libgfortran.h (flush_all_units): Add prototype.
1385
1386 2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1387
1388         PR libfortran/31201
1389         * runtime/error.c (runtime_error_at): New function.
1390         (generate_error): Export this function.
1391         * gfortran.map: Add _gfortran_generate_error and
1392         _gfortran_runtime_error_at.
1393         * libgfortran.h: Add comment to reference error codes in front end.
1394         (library_start): Locate prototype with library_end macro and add
1395         a new comment.  Add prototype for runtime_error_at. Export prototype
1396         for generate_error.
1397         * io/lock.c (library_start): Fix check for error condition.
1398         * io/transfer.c (data_transfer_init): Add library check.
1399
1400 2007-05-04  Daniel Franke  <franke.daniel@gmail.com>
1401
1402         PR fortran/22359
1403         * io/intrinsics.c (fseek_sub): New.
1404         * io/unix.c (fd_fseek): Change logical and physical offsets only
1405         if seek succeeds.
1406         * gfortran.map (fseek_sub): New.
1407
1408 2007-05-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1409
1410         PR libfortran/31210
1411         * io/transfer.c (transfer_character): Avoid passing a NULL
1412         pointer as source to the transfer routines, if the string length
1413         is zero.
1414
1415 2007-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1416
1417         PR libfortran/31501
1418         * io/list_read.c (next_char): Fix whitespace.
1419         * io/io.h: Remove prototypes and define macros for is_array_io,
1420         is_stream_io, and is_internal_unit.
1421         * io/unit.c (is_array_io), (is_internal_unit), (is_stream_io): Delete
1422         these functions.
1423         * io/transfer.c (read_sf): Change handling of internal_unit to make a
1424         single call to salloc_r and use memcpy to transfer the data. 
1425
1426 2007-04-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1427
1428         PR libfortran/31532
1429         * io/file_pos.c (st_backspace): Set flags.position for end of file
1430         condition and use new function update_position.
1431         (st_endfile): Use new function update_position.
1432         * io/io.h: Add prototype for new function.
1433         * io/inquire.c (inquire_via_unit): If not direct access, set NEXTREC
1434         to zero.
1435         * io/unit.c (update_position): New function to update position info
1436         used by inquire.
1437         * io/transfer.c (next_record): Fix typo and use new function.
1438
1439 2007-04-25  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1440
1441         PR libfortran/31299
1442         * intrinsics/getlog.c: Use getpwuid and geteuid instead of
1443         getlogin if they are available.
1444         * configure.ac: Add checks for getpwuid and geteuid.
1445         * configure: Regenerate.
1446         * config.h.in: Regenerate.
1447
1448 2007-04-25  Janne Blomqvist  <jb@gcc.gnu.org>
1449
1450         * configure: Regenerate using autoconf 2.59.
1451         * Makefile.in: Likewise.  
1452         * config.h.in: Likewise.
1453
1454 2007-04-24  Janne Blomqvist  <jb@gcc.gnu.org>
1455
1456         PR libfortran/27740
1457         * configure.ac: New test to determine if symbol versioning is
1458         supported.
1459         * Makefile.am: Use result of above test to add appropriate linker
1460         flags.
1461         * gfortran.map: New file.
1462         * configure: Regenerated.
1463         * Makefile.in: Regenerated.
1464         * config.h.in: Regenerated.
1465
1466 2007-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1467
1468         PR fortran/31618
1469         * io/transfer.c (read_block_direct):  Instead of calling us_read,
1470         set dtp->u.p.current_unit->current_record = 0 so that pre_position
1471         will read the record marker.
1472         (data_transfer_init):  For different error conditions, call
1473         generate_error, then return.
1474
1475 2007-04-19  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1476
1477         * runtime/main.c (please_free_exe_path_when_done): New variable.
1478         (store_exe_path): Initialize character buffer, and mark whether
1479         exe_path should be free'd by the library destructor function.
1480         (cleanup): Only free exe_path if needed.
1481
1482 2007-04-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1483             Tobias Burnus  <burnus@net-b.de>
1484
1485         PR libfortran/31286
1486         PR libfortran/31296
1487         * intrinsics/cshift0.c (cshift0): Initialize sstride[0] and rstride[0].
1488         * intrinsics/unpack_generic.c (unpack0, unpack0_char): Zero the
1489         array structures we pass to unpack_internal.
1490
1491 2007-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1492
1493         * io/open.c (test_endfile): Revert changes for 31052, restoring this
1494         function. 
1495
1496 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1497
1498         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.  Add libgfortran_la_LINK.
1499         * Makefile.in: Regenerate.
1500
1501 2007-04-11  Kai Tietz  <kai.tietz@onevision.com>
1502
1503         * configure: Regenerate.
1504
1505 2007-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1506
1507         * intrinsics/cpu_time.c: Don't include headers already included
1508         by libgfortran.h. Protect inclusion of sys/times.h.
1509         * configure.ac: Remove unneeded checks for finit, stdio.h,
1510         stddef.h, math.h and sys/params.h.
1511         * config/fpu-aix.h: Don't include headers already included by
1512         libgfortran.h.
1513         * config/fpu-sysv.h: Likewise.
1514         * io/write.c: Likewise.
1515         * m4/minloc1.m4: Likewise.
1516         * m4/maxloc1.m4: Likewise.
1517         * m4/fraction.m4: Likewise.
1518         * m4/set_exponent.m4: Likewise.
1519         * m4/spacing.m4: Likewise.
1520         * m4/minval.m4: Likewise.
1521         * m4/maxval.m4: Likewise.
1522         * m4/exponent.m4: Likewise.
1523         * m4/nearest.m4: Likewise.
1524         * m4/minloc0.m4: Likewise.
1525         * m4/maxloc0.m4: Likewise.
1526         * m4/rrspacing.m4: Likewise.
1527         * runtime/main.c: Likewise.
1528         * runtime/error.c: Likewise.
1529         * intrinsics/system_clock.c: Likewise.
1530         * intrinsics/etime.c: Likewise.
1531         * intrinsics/stat.c: Likewise.
1532         * intrinsics/date_and_time.c: Likewise.
1533         * intrinsics/env.c: Likewise.
1534         * intrinsics/kill.c: Likewise.
1535         * intrinsics/getXid.c: Likewise.
1536         * intrinsics/chmod.c: Likewise.
1537         * intrinsics/args.c: Likewise.
1538         * intrinsics/c99_functions.c: Likewise.
1539         * generated/minval_r8.c: Regenerate.
1540         * generated/maxloc1_4_r8.c: Regenerate.
1541         * generated/minloc1_16_r16.c: Regenerate.
1542         * generated/maxval_i2.c: Regenerate.
1543         * generated/maxloc1_8_i4.c: Regenerate.
1544         * generated/exponent_r16.c: Regenerate.
1545         * generated/maxloc0_4_r4.c: Regenerate.
1546         * generated/fraction_r16.c: Regenerate.
1547         * generated/fraction_r4.c: Regenerate.
1548         * generated/minloc0_4_r16.c: Regenerate.
1549         * generated/minloc0_4_i1.c: Regenerate.
1550         * generated/maxloc0_4_r16.c: Regenerate.
1551         * generated/maxloc0_4_i2.c: Regenerate.
1552         * generated/minloc1_8_r16.c: Regenerate.
1553         * generated/maxloc1_8_r16.c: Regenerate.
1554         * generated/set_exponent_r8.c: Regenerate.
1555         * generated/maxloc0_8_i8.c: Regenerate.
1556         * generated/minloc1_4_r8.c: Regenerate.
1557         * generated/maxloc1_16_r16.c: Regenerate.
1558         * generated/minloc1_16_i4.c: Regenerate.
1559         * generated/maxloc1_16_i4.c: Regenerate.
1560         * generated/minloc0_16_i8.c: Regenerate.
1561         * generated/maxloc0_16_i8.c: Regenerate.
1562         * generated/nearest_r8.c: Regenerate.
1563         * generated/spacing_r16.c: Regenerate.
1564         * generated/maxval_r16.c: Regenerate.
1565         * generated/minloc1_8_i4.c: Regenerate.
1566         * generated/minloc0_16_i16.c: Regenerate.
1567         * generated/minloc0_4_r4.c: Regenerate.
1568         * generated/set_exponent_r10.c: Regenerate.
1569         * generated/rrspacing_r10.c: Regenerate.
1570         * generated/minloc0_4_i2.c: Regenerate.
1571         * generated/maxloc0_8_i1.c: Regenerate.
1572         * generated/minloc0_8_i8.c: Regenerate.
1573         * generated/spacing_r4.c: Regenerate.
1574         * generated/minloc1_16_r10.c: Regenerate.
1575         * generated/minloc0_16_i1.c: Regenerate.
1576         * generated/maxloc0_16_i1.c: Regenerate.
1577         * generated/maxloc1_8_r8.c: Regenerate.
1578         * generated/minval_i16.c: Regenerate.
1579         * generated/exponent_r10.c: Regenerate.
1580         * generated/maxval_i4.c: Regenerate.
1581         * generated/minval_i8.c: Regenerate.
1582         * generated/maxloc1_4_i8.c: Regenerate.
1583         * generated/fraction_r10.c: Regenerate.
1584         * generated/maxloc0_16_i16.c: Regenerate.
1585         * generated/maxloc0_8_r4.c: Regenerate.
1586         * generated/rrspacing_r8.c: Regenerate.
1587         * generated/minloc1_4_i16.c: Regenerate.
1588         * generated/minloc0_4_r10.c: Regenerate.
1589         * generated/maxloc1_4_i16.c: Regenerate.
1590         * generated/minloc0_8_i16.c: Regenerate.
1591         * generated/maxloc0_4_r10.c: Regenerate.
1592         * generated/maxloc0_8_i16.c: Regenerate.
1593         * generated/minloc1_8_r10.c: Regenerate.
1594         * generated/minloc0_16_r4.c: Regenerate.
1595         * generated/maxloc1_8_r10.c: Regenerate.
1596         * generated/maxloc0_16_r4.c: Regenerate.
1597         * generated/minloc1_16_r8.c: Regenerate.
1598         * generated/minloc0_8_i1.c: Regenerate.
1599         * generated/maxloc0_4_i4.c: Regenerate.
1600         * generated/maxloc1_16_r8.c: Regenerate.
1601         * generated/maxloc0_8_i2.c: Regenerate.
1602         * generated/nearest_r16.c: Regenerate.
1603         * generated/maxloc1_16_r10.c: Regenerate.
1604         * generated/minloc0_16_i2.c: Regenerate.
1605         * generated/minloc1_8_r8.c: Regenerate.
1606         * generated/maxloc0_16_i2.c: Regenerate.
1607         * generated/exponent_r4.c: Regenerate.
1608         * generated/spacing_r10.c: Regenerate.
1609         * generated/maxval_r10.c: Regenerate.
1610         * generated/minval_i1.c: Regenerate.
1611         * generated/maxloc1_4_i1.c: Regenerate.
1612         * generated/minloc1_4_i8.c: Regenerate.
1613         * generated/minloc0_8_r4.c: Regenerate.
1614         * generated/minloc0_16_r16.c: Regenerate.
1615         * generated/minloc0_4_i4.c: Regenerate.
1616         * generated/minloc0_8_i2.c: Regenerate.
1617         * generated/minval_r4.c: Regenerate.
1618         * generated/maxloc1_4_r4.c: Regenerate.
1619         * generated/maxval_r8.c: Regenerate.
1620         * generated/minval_r16.c: Regenerate.
1621         * generated/minloc1_4_i1.c: Regenerate.
1622         * generated/minval_i2.c: Regenerate.
1623         * generated/maxloc1_4_i2.c: Regenerate.
1624         * generated/maxloc1_8_i8.c: Regenerate.
1625         * generated/maxloc0_4_r8.c: Regenerate.
1626         * generated/maxloc0_16_r16.c: Regenerate.
1627         * generated/minloc1_4_r16.c: Regenerate.
1628         * generated/fraction_r8.c: Regenerate.
1629         * generated/maxloc1_4_r16.c: Regenerate.
1630         * generated/set_exponent_r4.c: Regenerate.
1631         * generated/minloc0_8_r16.c: Regenerate.
1632         * generated/maxloc0_8_r16.c: Regenerate.
1633         * generated/nearest_r10.c: Regenerate.
1634         * generated/maxloc0_8_i4.c: Regenerate.
1635         * generated/minloc1_4_r4.c: Regenerate.
1636         * generated/minloc0_16_i4.c: Regenerate.
1637         * generated/maxloc0_16_i4.c: Regenerate.
1638         * generated/nearest_r4.c: Regenerate.
1639         * generated/minloc1_16_i8.c: Regenerate.
1640         * generated/maxloc1_16_i8.c: Regenerate.
1641         * generated/minloc1_4_i2.c: Regenerate.
1642         * generated/maxloc1_8_i1.c: Regenerate.
1643         * generated/minloc0_16_r10.c: Regenerate.
1644         * generated/minloc1_8_i8.c: Regenerate.
1645         * generated/minloc0_4_r8.c: Regenerate.
1646         * generated/minloc0_8_i4.c: Regenerate.
1647         * generated/minloc1_16_i16.c: Regenerate.
1648         * generated/spacing_r8.c: Regenerate.
1649         * generated/maxloc1_8_r4.c: Regenerate.
1650         * generated/minloc1_16_i1.c: Regenerate.
1651         * generated/maxloc1_16_i1.c: Regenerate.
1652         * generated/minval_r10.c: Regenerate.
1653         * generated/minval_i4.c: Regenerate.
1654         * generated/minloc1_8_i1.c: Regenerate.
1655         * generated/maxloc1_4_i4.c: Regenerate.
1656         * generated/maxloc1_8_i2.c: Regenerate.
1657         * generated/maxval_i8.c: Regenerate.
1658         * generated/maxloc0_16_r10.c: Regenerate.
1659         * generated/rrspacing_r4.c: Regenerate.
1660         * generated/minloc0_4_i16.c: Regenerate.
1661         * generated/maxloc0_8_r8.c: Regenerate.
1662         * generated/maxloc0_4_i16.c: Regenerate.
1663         * generated/minloc1_4_r10.c: Regenerate.
1664         * generated/minloc1_8_i16.c: Regenerate.
1665         * generated/maxloc1_4_r10.c: Regenerate.
1666         * generated/minloc0_8_r10.c: Regenerate.
1667         * generated/maxloc1_8_i16.c: Regenerate.
1668         * generated/maxloc0_8_r10.c: Regenerate.
1669         * generated/minloc1_16_r4.c: Regenerate.
1670         * generated/maxloc1_16_r4.c: Regenerate.
1671         * generated/minloc0_16_r8.c: Regenerate.
1672         * generated/maxloc0_16_r8.c: Regenerate.
1673         * generated/maxloc0_4_i8.c: Regenerate.
1674         * generated/maxloc1_16_i16.c: Regenerate.
1675         * generated/minloc1_8_r4.c: Regenerate.
1676         * generated/minloc1_16_i2.c: Regenerate.
1677         * generated/maxloc1_16_i2.c: Regenerate.
1678         * generated/maxval_i16.c: Regenerate.
1679         * generated/exponent_r8.c: Regenerate.
1680         * generated/minloc1_4_i4.c: Regenerate.
1681         * generated/maxval_i1.c: Regenerate.
1682         * generated/minloc1_8_i2.c: Regenerate.
1683         * generated/minloc0_8_r8.c: Regenerate.
1684         * generated/set_exponent_r16.c: Regenerate.
1685         * generated/maxloc0_4_i1.c: Regenerate.
1686         * generated/rrspacing_r16.c: Regenerate.
1687         * generated/minloc0_4_i8.c: Regenerate.
1688         * generated/maxval_r4.c: Regenerate.
1689         * configure: Regenerate.
1690         * config.h.in: Regenerate.
1691
1692 2007-04-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1693
1694         PR libfortran/31395
1695         * io/format.c (parse_format_list): Fix parsing.
1696
1697 2007-04-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1698
1699         PR fortran/31304
1700         intrinsics/string_intrinsics.c (string_repeat): Remove.
1701
1702 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1703
1704         PR libfortran/31052
1705         * io/open.c (test_endfile): Delete this function.
1706         (edit_modes): Delete call to test_endfile.
1707         (new_unit): Likewise.
1708         * io/io.h: Delete prototype for test_endfile.
1709         * io/transfer.c (next_record_r): Remove use of test_endfile.
1710         (st_read):  Add test for end file condition and adjust status. 
1711
1712 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1713
1714         PR libfortran/31366
1715         * io/transfer.c (read_block_direct): Do not generate error when reading
1716         past EOF on a short record that is less than the RECL= specified.
1717         
1718 2007-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1719
1720         PR libfortran/31207
1721         * io/unit.c (close_unit_1): If there are bytes previously written from
1722         ADVANCE="no", move to the end before closing.
1723
1724 2007-03-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1725
1726         PR libfortran/31335
1727         * intrinsics/stat.c: Only provide STAT and FSTAT library routines
1728         if stat() and fstat() library functions are available. When lstat()
1729         is not available, use stat() instead.
1730         * configure.ac: Add checks for stat, fstat and lstat.
1731         * configure: Regenerate.
1732         * config.h.in: Regenerate.
1733
1734 2007-03-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1735
1736         PR libfortran/31052
1737         * io/transfer.c (next_record_r): Do not call test_endfile if in
1738         namelist mode.
1739
1740 2007-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1741
1742         PR libfortran/31199
1743         * io/io.h: Add saved_pos to gfc_unit structure.
1744         * io/open.c (new_unit): Initialize saved_pos.
1745         * io/transfer.c (data_transfer_init): Set max_pos to value in
1746         saved_pos.
1747         (next_record_w): Fix whitespace.
1748         (finalze_transfer): Calculate max_pos for ADVANCE="no" and save it for
1749         later use.  If not ADVANCE="no" set saved_pos to zero.
1750
1751 2007-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
1752
1753         PR libfortran/31196
1754         * intrinsics/reshape_generic.c (reshape_internal):  Increment
1755         correct variable.
1756
1757 2007-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1758
1759         PR libfortran/31052
1760         * file_pos.c: Update Copyright year.
1761         * io/open.c (test_endfile): Restore test_endfile to fix SPEC
1762         regression.  Update Copyright year.
1763         * io/io.h: Same.
1764         * io/unix.c (is_special): Add missing type for this function.
1765         Update Copyright year.
1766         * io/transfer.c (next_record_r): Restore test_endfile.
1767         (st_read): Fix whitespace.  Update Copyright year
1768
1769 2007-03-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1770
1771         * configure.ac: Add missing check for gettimeofday.
1772         * config.h.in: Renegerate.
1773         * configure: Regenerate.
1774
1775 2007-03-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1776
1777         PR libfortran/31052
1778         * io/file_position (st_rewind): Fix comments. Remove use of
1779         test_endfile. Don't seek if already at 0 position.  Use new is_special
1780         function to set endfile state.
1781         * io/open.c (test_endfile): Delete this function.
1782         * io/io.h: Delete prototype for test_endfile.  Add prototype
1783         for is_special.
1784         * io/unix.c (is_special): New function. Fix whitespace.
1785         * io/transfer.c (next_record_r): Remove use of test_endfile.
1786
1787 2007-03-16  David Edelsohn  <edelsohn@gnu.org>
1788
1789         * runtime/main.c: Include "config.h" first.
1790
1791 2007-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1792
1793         PR libfortran/31099
1794         * io/file_pos.c (st_rewind): Don't set bytes_left to zero.
1795
1796 2007-03-15  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1797
1798         * runtime/backtrace.c: New file.
1799         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
1800         environment variable.
1801         * runtime/compile_options.c (set_std): Add new argument.
1802         * runtime/main.c (store_exe_path, full_exe_path): New functions.
1803         * runtime/error.c (sys_exit): Add call to show_backtrace.
1804         * libgfortran.h (options_t): New backtrace field.
1805         (store_exe_path, full_exe_path, show_backtrace): New prototypes.
1806         * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
1807         close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
1808         and getppid.
1809         * Makefile.am: Add runtime/backtrace.c.
1810         * fmain.c (main): Add call to store_exe_path.
1811         * Makefile.in: Renegerate.
1812         * config.h.in: Renegerate.
1813         * configure: Regenerate.
1814
1815 2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1816
1817         PR libfortran/31051
1818         * io/transfer.c (formatted_transfer_scalar): Adjust position for
1819         pending spaces when in writing mode.  Clean up some formatting.
1820
1821 2007-03-14  Thomas Koenig  <Thomas.Koenig@online.de>
1822
1823         PR libfortran/30690
1824         * all.m4: Quote everything, except for m4 macros.
1825         * any.m4: Likewise.
1826         * count.m4: Likewise.
1827         * cshift1.m4: Likewise.
1828         * eoshift1.m4: Likewise.
1829         * eoshift3.m4: Likewise.
1830         * exponent.m4: Likewise.
1831         * fraction.m4: Likewise.
1832         * in_pack.m4: Likewise.
1833         * in_unpack.m4: Likewise.
1834         * matmul.m4: Likewise.
1835         * matmull.m4: Likewise.
1836         * nearest.m4: Likewise.
1837         * pow.m4: Likewise.
1838         * product.m4: Likewise.
1839         * reshape.m4: Likewise.
1840         * rrspacing.m4: Likewise.
1841         * set_exponent.m4: Likewise.
1842         * shape.m4: Likewise.
1843         * spacing.m4: Likewise.
1844         * transpose.m4: Likewise.
1845
1846 2007-03-14  Jakub Jelinek  <jakub@redhat.com>
1847
1848         * io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
1849         O_RDONLY even if errno is EROFS.
1850
1851 2007-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1852
1853         PR libfortran/31099
1854         * io/open.c (new_unit): Initialize bytes_left and recl_subrecord.
1855         * io/transfer.c (next_record_w): Set bytes left to record length for
1856         sequential unformatted I/O.
1857         (next_record_r): Ditto.
1858         (read_block_direct): Fix test for exceeding bytes_left.
1859
1860 2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
1861
1862         PR fortran/30947
1863         * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with 
1864         integer arguments.
1865
1866 2007-03-04  Thomas Koenig  <Thomas.Koenig@online.de>
1867
1868         PR libfortran/30981
1869         * m4/pow_m4: Use appropriate unsigned int type for u.
1870         * generated/pow_c10_i16.c: Regenerated.
1871         * generated/pow_c10_i4.c: Regenerated.
1872         * generated/pow_c10_i8.c: Regenerated.
1873         * generated/pow_c16_i16.c: Regenerated.
1874         * generated/pow_c16_i4.c: Regenerated.
1875         * generated/pow_c16_i8.c: Regenerated.
1876         * generated/pow_c4_i16.c: Regenerated.
1877         * generated/pow_c4_i4.c: Regenerated.
1878         * generated/pow_c4_i8.c: Regenerated.
1879         * generated/pow_c8_i16.c: Regenerated.
1880         * generated/pow_c8_i4.c: Regenerated.
1881         * generated/pow_c8_i8.c: Regenerated.
1882         * generated/pow_i16_i16.c: Regenerated.
1883         * generated/pow_i16_i4.c: Regenerated.
1884         * generated/pow_i16_i8.c: Regenerated.
1885         * generated/pow_i4_i16.c: Regenerated.
1886         * generated/pow_i4_i4.c: Regenerated.
1887         * generated/pow_i4_i8.c: Regenerated.
1888         * generated/pow_i8_i16.c: Regenerated.
1889         * generated/pow_i8_i4.c: Regenerated.
1890         * generated/pow_i8_i8.c: Regenerated.
1891         * generated/pow_r10_i16.c: Regenerated.
1892         * generated/pow_r10_i4.c: Regenerated.
1893         * generated/pow_r10_i8.c: Regenerated.
1894         * generated/pow_r16_i16.c: Regenerated.
1895         * generated/pow_r16_i4.c: Regenerated.
1896         * generated/pow_r16_i8.c: Regenerated.
1897         * generated/pow_r4_i16.c: Regenerated.
1898         * generated/pow_r4_i4.c: Regenerated.
1899         * generated/pow_r4_i8.c: Regenerated.
1900         * generated/pow_r8_i16.c: Regenerated.
1901         * generated/pow_r8_i4.c: Regenerated.
1902         * generated/pow_r8_i8.c: Regenerated.
1903
1904 2007-03-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1905
1906         PR libfortran/31001
1907         * intrinsics/pack_generic.c (pack_internal): Add special checks
1908         for zero-sized arrays.
1909
1910 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1911
1912         * Makefile.am: Add dummy install-pdf target.
1913         * Makefile.in: Regenerate
1914
1915 2007-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1916
1917         PR libfortran/30918
1918         * io/listread.c (namelist_read): Eat comment line.
1919
1920 2007-02-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
1921
1922         PR libfortran/30910
1923         * io/write.c (output_float): Add condition of format F only for
1924         special case rounding with zero precision.
1925
1926 2007-02-19  Thomas Koenig  <Thomas.Koenig@online.de>
1927
1928         PR libfortran/30533
1929         PR libfortran/30765
1930         * Makefile.am: Add $(srcdir) too all files in generated/.
1931         (i_maxloc0_c): Add maxloc0_4_i1.c, maxloc0_8_i1.c,
1932         maxloc0_16_i1.c, maxloc0_4_i2.c, maxloc0_8_i2.c and
1933         maxloc0_16_i2.c.
1934         (i_maxloc1_c): Add maxloc1_4_i1.c, maxloc1_8_i1.c,
1935         maxloc1_16_i1.c, maxloc1_4_i2.c, maxloc1_8_i2.c and
1936         maxloc1_16_i2.c.
1937         (i_maxval_c): Add maxval_i1.c and maxval_i2.c.
1938         (i_minloc0_c):  Add minloc0_4_i1.c, minloc0_8_i1.c,
1939         minloc0_16_i1.c, minloc0_4_i2.c, minloc0_8_i2.c and
1940         minloc0_16_i2.c.
1941         (i_minloc_1.c): Add minloc1_4_i1.c, minloc1_8_i1.c,
1942         minloc1_16_i1.c, minloc1_4_i2.c, minloc1_8_i2.c and
1943         minloc1_16_i2.c.
1944         (i_minval_c):  Add minval_i1.c and minval_i2.c.
1945         (i_sum_c):  Add sum_i1.c and sum_i2.c.
1946         (i_product_c):  Add product_i1.c and product_i2.c.
1947         (i_matmul_c):  Add matmul_i1.c and matmul_i2.c.
1948         (gfor_built_specific_src):  Remove $(srcdir) from target.
1949         (gfor_bulit_specific2_src):  Likewise.
1950         Makefile.in:  Regenerated.
1951         libgfortran.h:  Add GFC_INTEGER_1_HUGE and GFC_INTEGER_2_HUGE.
1952         Add gfc_array_i1 and gfc_array_i2.
1953         * generated/matmul_i1.c: New file.
1954         * generated/matmul_i2.c: New file.
1955         * generated/maxloc0_16_i1.c: New file.
1956         * generated/maxloc0_16_i2.c: New file.
1957         * generated/maxloc0_4_i1.c: New file.
1958         * generated/maxloc0_4_i2.c: New file.
1959         * generated/maxloc0_8_i1.c: New file.
1960         * generated/maxloc0_8_i2.c: New file.
1961         * generated/maxloc1_16_i1.c: New file.
1962         * generated/maxloc1_16_i2.c: New file.
1963         * generated/maxloc1_4_i1.c: New file.
1964         * generated/maxloc1_4_i2.c: New file.
1965         * generated/maxloc1_8_i1.c: New file.
1966         * generated/maxloc1_8_i2.c: New file.
1967         * generated/maxval_i1.c: New file.
1968         * generated/maxval_i2.c: New file.
1969         * generated/minloc0_16_i1.c: New file.
1970         * generated/minloc0_16_i2.c: New file.
1971         * generated/minloc0_4_i1.c: New file.
1972         * generated/minloc0_4_i2.c: New file.
1973         * generated/minloc0_8_i1.c: New file.
1974         * generated/minloc0_8_i2.c: New file.
1975         * generated/minloc1_16_i1.c: New file.
1976         * generated/minloc1_16_i2.c: New file.
1977         * generated/minloc1_4_i1.c: New file.
1978         * generated/minloc1_4_i2.c: New file.
1979         * generated/minloc1_8_i1.c: New file.
1980         * generated/minloc1_8_i2.c: New file.
1981         * generated/minval_i1.c: New file.
1982         * generated/minval_i2.c: New file.
1983         * generated/product_i1.c: New file.
1984         * generated/product_i2.c: New file.
1985         * generated/sum_i1.c: New file.
1986         * generated/sum_i2.c: New file.
1987
1988 2007-02-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1989
1990         * runtime/memory.c (deallocate): Correct comment.
1991
1992 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
1993
1994         * Makefile.am:  Use $(M4) instead of m4.
1995         * Makefile.in:  Regenerate.
1996
1997 2007-02-10  Thomas Koenig  <Thomas.Koenig@online.de>
1998
1999         * Makefile.am: Remove $(srcdir) from assorted targets
2000         in maintainer mode.
2001         * Makefile.in: Regenerate.
2002
2003 2007-02-09  Thomas Koenig  <Thomas.Koenig@online.de>
2004             Tobias Burnus  <burnus@net-b.de>
2005
2006         PR fortran/30512
2007         * m4/iparm.m4: Use HUGE-1 for most negative integer.
2008         * generated/maxloc1_8_i4.c: Regenerate.
2009         * generated/maxloc0_8_i8.c: Regenerate.
2010         * generated/maxloc1_16_i4.c: Regenerate.
2011         * generated/maxloc0_16_i8.c: Regenerate.
2012         * generated/maxval_i4.c: Regenerate.
2013         * generated/maxloc1_4_i8.c: Regenerate.
2014         * generated/maxloc0_16_i16.c: Regenerate.
2015         * generated/maxloc1_4_i16.c: Regenerate.
2016         * generated/maxloc0_8_i16.c: Regenerate.
2017         * generated/maxloc0_4_i4.c: Regenerate.
2018         * generated/maxloc1_8_i8.c: Regenerate.
2019         * generated/maxloc0_8_i4.c: Regenerate.
2020         * generated/maxloc0_16_i4.c: Regenerate.
2021         * generated/maxloc1_16_i8.c: Regenerate.
2022         * generated/maxloc1_4_i4.c: Regenerate.
2023         * generated/maxval_i8.c: Regenerate.
2024         * generated/maxloc0_4_i16.c: Regenerate.
2025         * generated/maxloc1_8_i16.c: Regenerate.
2026         * generated/maxloc0_4_i8.c: Regenerate.
2027         * generated/maxloc1_16_i16.c: Regenerate.
2028         * generated/maxval_i16.c: Regenerate.
2029
2030 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2031
2032         PR fortran/30611
2033         * intrinsics/string_intrinsics.c (string_repeat): Don't check
2034         if ncopies is negative.
2035
2036 2007-02-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2037
2038         PR libfortran/30007
2039         * libgfortran.h: Do not prefix symbol name with
2040         __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
2041
2042 2007-02-02  Paul Thomas  <pault@gcc.gnu.org>
2043
2044         PR fortran/30284
2045         PR fortran/30626
2046         * io/transfer.c (init_loop_spec, next_array_record): Change to
2047         lbound rather than unity base.
2048
2049 2007-01-21  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2050
2051         * runtime/error.c: Include sys/time.h before sys/resource.h.
2052
2053 2007-01-21  Thomas Koenig  <Thomas.Koenig@online.de>
2054
2055         PR libfortran/30525
2056         * intrinsics/string_intrinsics.c(compare_string):  Make
2057         sure that comparisons are done unsigned.
2058
2059 2007-01-21  Tobias Burnus  <burnus@net-b.de>
2060
2061         PR libfortran/30015
2062         * intrinsics/date_and_time.c (date_and_time): Fix case where time
2063           can go backwards.
2064         * configure.ac: Remove AC_TRY_RUN test for timezone in
2065           gettimeofday.
2066         * acinclude.m4: Ditto.
2067         * configure: Regenerate.
2068         * config.h.in: Regenerate.
2069
2070 2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2071
2072         * m4/misc_specifics.m4: Add _gfortran prefix to specific names.
2073         * m4/specific2.m4: Likewise.
2074         * m4/specific.m4: Likewise.
2075         * intrinsics/f2c_specifics.F90: Likewise.
2076         * intrinsics/selected_int_kind.f90: Add _gfortran prefix.
2077         * intrinsics/selected_real_kind.f90: Likewise.
2078         * intrinsics/dprod_r8.f90: Likewise.
2079         * Makefile.am: Add -fallow-leading-underscore to the
2080         gfor_specific_src files, as well as selected_real_kind.F90
2081         and selected_int_kind.F90
2082         * Makefile.in: Regenerate.
2083         * generated/_sqrt_c8.F90: Regenerate.
2084         * generated/_sign_r16.F90: Regenerate.
2085         * generated/_log_c16.F90: Regenerate.
2086         * generated/_sin_c10.F90: Regenerate.
2087         * generated/_tanh_r4.F90: Regenerate.
2088         * generated/_tanh_r8.F90: Regenerate.
2089         * generated/_log10_r10.F90: Regenerate.
2090         * generated/_aimag_c4.F90: Regenerate.
2091         * generated/_sign_r4.F90: Regenerate.
2092         * generated/_aimag_c8.F90: Regenerate.
2093         * generated/_sign_r8.F90: Regenerate.
2094         * generated/_mod_i4.F90: Regenerate.
2095         * generated/_cos_r16.F90: Regenerate.
2096         * generated/_aint_r10.F90: Regenerate.
2097         * generated/_mod_i8.F90: Regenerate.
2098         * generated/_abs_i16.F90: Regenerate.
2099         * generated/_sqrt_c10.F90: Regenerate.
2100         * generated/_atan2_r4.F90: Regenerate.
2101         * generated/_cos_c4.F90: Regenerate.
2102         * generated/_atan_r16.F90: Regenerate.
2103         * generated/_tanh_r10.F90: Regenerate.
2104         * generated/_atan2_r8.F90: Regenerate.
2105         * generated/_cos_c8.F90: Regenerate.
2106         * generated/_exp_r4.F90: Regenerate.
2107         * generated/_log_r10.F90: Regenerate.
2108         * generated/_exp_r8.F90: Regenerate.
2109         * generated/_abs_r4.F90: Regenerate.
2110         * generated/_abs_r8.F90: Regenerate.
2111         * generated/_sin_r16.F90: Regenerate.
2112         * generated/_tan_r4.F90: Regenerate.
2113         * generated/_tan_r8.F90: Regenerate.
2114         * generated/_sign_i4.F90: Regenerate.
2115         * generated/_sign_i8.F90: Regenerate.
2116         * generated/_exp_c16.F90: Regenerate.
2117         * generated/_sqrt_r16.F90: Regenerate.
2118         * generated/_conjg_c4.F90: Regenerate.
2119         * generated/_conjg_c8.F90: Regenerate.
2120         * generated/_dim_r16.F90: Regenerate.
2121         * generated/_mod_r10.F90: Regenerate.
2122         * generated/_abs_c10.F90: Regenerate.
2123         * generated/_conjg_c16.F90: Regenerate.
2124         * generated/_tan_r16.F90: Regenerate.
2125         * generated/_asinh_r10.F90: Regenerate.
2126         * generated/_abs_i4.F90: Regenerate.
2127         * generated/_abs_i8.F90: Regenerate.
2128         * generated/_acos_r10.F90: Regenerate.
2129         * generated/_exp_r10.F90: Regenerate.
2130         * generated/_acosh_r16.F90: Regenerate.
2131         * generated/_atan2_r16.F90: Regenerate.
2132         * generated/_cos_c16.F90: Regenerate.
2133         * generated/_mod_i16.F90: Regenerate.
2134         * generated/_asin_r4.F90: Regenerate.
2135         * generated/_anint_r16.F90: Regenerate.
2136         * generated/_asin_r8.F90: Regenerate.
2137         * generated/_aimag_c10.F90: Regenerate.
2138         * generated/_exp_c4.F90: Regenerate.
2139         * generated/_sinh_r10.F90: Regenerate.
2140         * generated/_exp_c8.F90: Regenerate.
2141         * generated/_log10_r4.F90: Regenerate.
2142         * generated/_log10_r8.F90: Regenerate.
2143         * generated/_abs_c4.F90: Regenerate.
2144         * generated/_abs_r16.F90: Regenerate.
2145         * generated/_abs_c8.F90: Regenerate.
2146         * generated/_asin_r10.F90: Regenerate.
2147         * generated/_sign_r10.F90: Regenerate.
2148         * generated/_atanh_r16.F90: Regenerate.
2149         * generated/_log_c10.F90: Regenerate.
2150         * generated/_cosh_r16.F90: Regenerate.
2151         * generated/_sin_c16.F90: Regenerate.
2152         * generated/_cos_r10.F90: Regenerate.
2153         * generated/_log10_r16.F90: Regenerate.
2154         * generated/_aint_r16.F90: Regenerate.
2155         * generated/_acos_r4.F90: Regenerate.
2156         * generated/_acos_r8.F90: Regenerate.
2157         * generated/_sqrt_c16.F90: Regenerate.
2158         * generated/_acosh_r4.F90: Regenerate.
2159         * generated/_atan_r10.F90: Regenerate.
2160         * generated/_acosh_r8.F90: Regenerate.
2161         * generated/_sign_i16.F90: Regenerate.
2162         * generated/_tanh_r16.F90: Regenerate.
2163         * generated/_log_r4.F90: Regenerate.
2164         * generated/_log_r8.F90: Regenerate.
2165         * generated/_sin_r4.F90: Regenerate.
2166         * generated/_sin_r8.F90: Regenerate.
2167         * generated/_log_r16.F90: Regenerate.
2168         * generated/_sin_r10.F90: Regenerate.
2169         * generated/_sqrt_r4.F90: Regenerate.
2170         * generated/_exp_c10.F90: Regenerate.
2171         * generated/_sqrt_r8.F90: Regenerate.
2172         * generated/_asinh_r4.F90: Regenerate.
2173         * generated/_sqrt_r10.F90: Regenerate.
2174         * generated/_asinh_r8.F90: Regenerate.
2175         * generated/_dim_r4.F90: Regenerate.
2176         * generated/_dim_r8.F90: Regenerate.
2177         * generated/_dim_r10.F90: Regenerate.
2178         * generated/_cosh_r4.F90: Regenerate.
2179         * generated/_conjg_c10.F90: Regenerate.
2180         * generated/_tan_r10.F90: Regenerate.
2181         * generated/_cosh_r8.F90: Regenerate.
2182         * generated/_mod_r16.F90: Regenerate.
2183         * generated/_abs_c16.F90: Regenerate.
2184         * generated/_cos_r4.F90: Regenerate.
2185         * generated/_asinh_r16.F90: Regenerate.
2186         * generated/_cos_r8.F90: Regenerate.
2187         * generated/_atanh_r4.F90: Regenerate.
2188         * generated/_atanh_r8.F90: Regenerate.
2189         * generated/_acos_r16.F90: Regenerate.
2190         * generated/_anint_r4.F90: Regenerate.
2191         * generated/_acosh_r10.F90: Regenerate.
2192         * generated/_anint_r8.F90: Regenerate.
2193         * generated/_exp_r16.F90: Regenerate.
2194         * generated/_mod_r4.F90: Regenerate.
2195         * generated/_cos_c10.F90: Regenerate.
2196         * generated/_atan2_r10.F90: Regenerate.
2197         * generated/_dim_i16.F90: Regenerate.
2198         * generated/_mod_r8.F90: Regenerate.
2199         * generated/_anint_r10.F90: Regenerate.
2200         * generated/_aint_r4.F90: Regenerate.
2201         * generated/_aint_r8.F90: Regenerate.
2202         * generated/_dim_i4.F90: Regenerate.
2203         * generated/_sinh_r4.F90: Regenerate.
2204         * generated/_log_c4.F90: Regenerate.
2205         * generated/_dim_i8.F90: Regenerate.
2206         * generated/_sinh_r8.F90: Regenerate.
2207         * generated/_log_c8.F90: Regenerate.
2208         * generated/_sin_c4.F90: Regenerate.
2209         * generated/_sin_c8.F90: Regenerate.
2210         * generated/misc_specifics.F90: Regenerate.
2211         * generated/_abs_r10.F90: Regenerate.
2212         * generated/_aimag_c16.F90: Regenerate.
2213         * generated/_atan_r4.F90: Regenerate.
2214         * generated/_sinh_r16.F90: Regenerate.
2215         * generated/_atan_r8.F90: Regenerate.
2216         * generated/_atanh_r10.F90: Regenerate.
2217         * generated/_cosh_r10.F90: Regenerate.
2218         * generated/_sqrt_c4.F90: Regenerate.
2219         * generated/_asin_r16.F90: Regenerate.
2220
2221 2007-01-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2222
2223         PR libfortran/26893
2224         * acinclude.m4 (LIBGFOR_WORKING_GFORTRAN): New check.
2225         * configure.ac: Add call to LIBGFOR_WORKING_GFORTRAN.
2226         * configure: Regenerate.
2227         * config.h.in: Regenerate because it was forgottent in the last
2228         commit.
2229
2230 2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2231             Tobias Burnus  <burnus@net-b.de>
2232
2233         PR libfortran/29649
2234         * runtime/environ.c (variable_table): New GFORTRAN_ERROR_DUMPCORE
2235         environment variable.
2236         * runtime/compile_options.c (set_std): Add new argument.
2237         * runtime/error.c (sys_exit): Move from io/unix.c. Add coredump
2238         functionality.
2239         * libgfortran.h (options_t): New dump_core and backtrace members.
2240         (sys_exit): Move prototype.
2241         * io/unix.c (sys_exit): Move to runtime/error.c.
2242         * configure.ac: Add check for getrlimit.
2243         * configure: Regenerate.
2244
2245 2007-01-17  Tom Tromey  <tromey@redhat.com>
2246
2247         PR libfortran/27107:
2248         * aclocal.m4, configure, Makefile.in: Rebuilt.
2249         * configure.ac: Enable automake dependency tracking.  Update
2250         minimum automake version.
2251
2252 2007-01-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2253
2254         PR libfortran/27107
2255         * runtime/environ.c: Don't include io/io.h.
2256         * runtime/string.c: Don't include io/io.h.
2257         (compare0): Add cast to avoid warning.
2258         * runtime/error.c: Don't include io/io.h.
2259         (st_printf): Move to io/unix.c.
2260         * intrinsics/flush.c: Delete, contents moved to io/intrinsics.c.
2261         * intrinsics/fget.c: Likewise.
2262         * intrinsics/ftell.c: Likewise.
2263         * intrinsics/tty.c: Likewise.
2264         * libgfortran.h (DEFAULT_RECL, notification_std,
2265         get_unformatted_convert, IOPARM_*, st_parameter_common, unit_convert,
2266         DEFAULT_TEMPDIR): New declarations.
2267         * io/io.h (DEFAULT_RECL, notification_std, get_unformatted_convert,
2268         IOPARM_*, st_parameter_common, unit_convert, DEFAULT_TEMPDIR):
2269         Move to libgfortran.h.
2270         * io/unix.c: Add io/unix.h content.
2271         (st_printf): New function.
2272         * io/intrinsics.c: New file.
2273         * io/unix.h: Remove, contents moved into unix.c.
2274         * libtool-version: Update library version to 3.0.0.
2275         * configure.ac: Update library version to 0.3.
2276         * Makefile.am (intrinsics/fget.c, intrinsics/flush.c,
2277         intrinsics/ftell.c, intrinsics/tty.c, libgfortran.h): Remove targets.
2278         * Makefile.in: Regenerate.
2279         * configure: Regenerate.
2280
2281 2007-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2282
2283         PR libfortran/30435
2284         * io/list_read.c (finish_separator): Don't call next_record.
2285         (list_formatted_read_scalar): Clean up some comments and whitespace.
2286         (nml_read_obj): Whitespace fix.
2287
2288 2007-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
2289
2290         PR libfortran/30162
2291         * io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
2292         s->file_length == -1.
2293         (fd_alloc_w_at): Do not adjust file_length if file is not seekable.
2294         (fd_seek): If not seekable, just return success.
2295         (fd_truncate): If not seekable, no need to truncate.  Return failure
2296         if seek fails and the stream is not a pipe.
2297         (fd_to_stream): Make test for non-seekable file more robust.
2298
2299 2007-01-01  Steven G. Kargl  <kargls@comcast.net>
2300
2301         * ChangeLog: Copied to ...
2302         * ChangeLog-2006: here.