OSDN Git Service

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