OSDN Git Service

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