OSDN Git Service

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