1 2014-10-20 Janne Blomqvist <jb@gcc.gnu.org>
4 * configure.ac: Check for strtok_r.
5 * runtime/main.c (gfstrtok_r): Fallback implementation of
7 (find_addr2line): Use strtok_r to split PATH.
8 * config.h.in: Regenerated.
9 * configure: Regenerated.
11 2014-08-20 Steven G. Kargl <kargl@gcc.gnu.org>
14 * m4/bessel.m4: Avoid indexing off the end of an array.
15 * generated/bessel_r10.c: Regenerated.
16 * generated/bessel_r16.c: Ditto.
17 * generated/bessel_r4.c: Ditto.
18 * generated/bessel_r8.c: Ditto.
20 2014-07-31 Janne Blomqvist <jb@gcc.gnu.org>
22 Backport from mainline
24 * libgfortran.h (xmallocarray): New prototype.
25 * runtime/memory.c (xmallocarray): New function.
26 (xcalloc): Check for nonzero separately instead of multiplying.
27 * generated/*.c: Regenerated.
28 * intrinsics/cshift0.c (cshift0): Call xmallocarray instead of
30 * intrinsics/eoshift0.c (eoshift0): Likewise.
31 * intrinsics/eoshift2.c (eoshift2): Likewise.
32 * intrinsics/pack_generic.c (pack_internal): Likewise.
33 (pack_s_internal): Likewise.
34 * intrinsics/reshape_generic.c (reshape_internal): Likewise.
35 * intrinsics/spread_generic.c (spread_internal): Likewise.
36 (spread_internal_scalar): Likewise.
37 * intrinsics/string_intrinsics_inc.c (string_trim): Likewise.
38 (string_minmax): Likewise.
39 * intrinsics/transpose_generic.c (transpose_internal): Likewise.
40 * intrinsics/unpack_generic.c (unpack_internal): Likewise.
41 * io/list_read.c (nml_touch_nodes): Don't cast xmalloc return value.
42 * io/transfer.c (st_set_nml_var): Call xmallocarray instead of
44 * io/unit.c (get_internal_unit): Likewise.
45 (filename_from_unit): Don't cast xmalloc return value.
46 * io/write.c (nml_write_obj): Likewise, formatting.
47 * m4/bessel.m4 (bessel_jn_r'rtype_kind`): Call xmallocarray
49 (besse_yn_r'rtype_kind`): Likewise.
50 * m4/cshift1.m4 (cshift1): Likewise.
51 * m4/eoshift1.m4 (eoshift1): Likewise.
52 * m4/eoshift3.m4 (eoshift3): Likewise.
53 * m4/iforeach.m4: Likewise.
54 * m4/ifunction.m4: Likewise.
55 * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code):
57 * m4/in_pack.m4 (internal_pack_'rtype_ccode`): Likewise.
58 * m4/matmul.m4 (matmul_'rtype_code`): Likewise.
59 * m4/matmull.m4 (matmul_'rtype_code`): Likewise.
60 * m4/pack.m4 (pack_'rtype_code`): Likewise.
61 * m4/reshape.m4 (reshape_'rtype_ccode`): Likewise.
62 * m4/shape.m4 (shape_'rtype_kind`): Likewise.
63 * m4/spread.m4 (spread_'rtype_code`): Likewise.
64 (spread_scalar_'rtype_code`): Likewise.
65 * m4/transpose.m4 (transpose_'rtype_code`): Likewise.
66 * m4/unpack.m4 (unpack0_'rtype_code`): Likewise.
67 (unpack1_'rtype_code`): Likewise.
68 * runtime/convert_char.c (convert_char1_to_char4): Likewise.
69 (convert_char4_to_char1): Simplify.
70 * runtime/environ.c (init_unformatted): Call xmallocarray instead
72 * runtime/in_pack_generic.c (internal_pack): Likewise.
74 2014-05-26 Janne Blomqvist <jb@gcc.gnu.org>
76 Backport from mainline
78 * intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf
80 (fdate): Use gf_ctime.
81 (fdate_sub): Likewise.
83 (ctime_sub): Likewise.
85 2014-05-25 Janne Blomqvist <jb@gcc.gnu.org>
89 * io/unix.c (raw_close): Check if s->fd is -1.
90 (fd_to_stream): Check return value of fstat(), handle error.
92 2014-05-22 Release Manager
96 2014-05-03 Janne Blomqvist <jb@gcc.gnu.org>
100 * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
101 _POSIX_MONOTONIC_CLOCK as well.
103 2014-04-12 Jerry DeLisle <jvdelisle@gcc.gnu>
105 Backport from mainline
107 * io/unit.c (is_trim_ok): If internal unit is array, do not trim.
109 2014-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
111 Backport from mainline
112 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
113 * configure: Regenerate.
115 2014-03-15 Dominique d'Humieres <dominiq@lps.ens.fr>
117 Backport from mainline
119 * io/write_float.def (output_float): Remove unused variable
120 nzero_real. Replace a double space with a single one.
121 (determine_en_precision): Fix wrong handling of the EN format.
123 2014-03-15 Jerry DeLisle <jvdelisle@gcc.gnu>
125 Backport from mainline
128 * io/list_read.c (finish_list_read): Read one character to check
129 for the end of the file. If it is the end, then issue the file
130 end error message. If not, use eat_line to reach the end
131 without giving error. The next attempt to read will then
132 issue the error as described above.
133 * io/read.c (read_decimal): Quickly skip spaces to avoid calls
135 * io/unit.c (is_trim_ok): New helper function to check various
136 conditions to see if its OK to trim the internal unit string.
137 (get_internal_unit): Use LEN_TRIM to shorten selected internal
138 unit strings for optimizing READ. Enable this optimization for
141 2014-02-21 Jerry DeLisle <jvdelisle@gcc.gnu>
142 Dominique d'Humieres <dominiq@lps.ens.fr>
143 Steven G. Kargl <kargl@gcc.gnu.org>
145 Backport from mainline
148 * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
149 unused bit. Define new variable line_buffer_pos.
150 * io/list_read.c (free_saved, next_char, l_push_char,
151 read_logical, read_real): Replace use of item_count with
152 line_buffer_pos for line_buffer look ahead.
153 (read_logical, read_integer, parse_real, read_real, check_type):
154 Adjust location of free_line to after generating error messages
155 to retain the correct item count for the message.
157 2014-02-15 Jerry DeLisle <jvdelisle@gcc.gnu>
158 Dominique d'Humieres <dominiq@lps.ens.fr>
160 Backport from mainline
164 * io/write_float.def (output_float): Fix wrong handling of the
166 (output_float_FMT_G_): Fixes rounding issues with -m32.
168 2013-10-16 Release Manager
170 * GCC 4.8.2 released.
172 2013-10-04 Tobias Burnus <burnus@net-b.de>
175 * io/list_read (parse_repeat, read_integer, read_character,
176 parse_real, read_real, check_type, list_formatted_read_scalar,
177 finish_list_read): Call list_free.
179 2013-06-21 Uros Bizjak <ubizjak@gmail.com>
181 Backport from mainline
182 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
184 * config/fpu-387.h (_FPU_MASK_ALL): New.
185 (_FPU_EX_ALL): Ditto.
186 (set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
187 clear stalled exception flags. Correctly clear stalled SSE
188 exception flags. Simplify code.
190 Backport from mainline
191 2013-06-19 Uros Bizjak <ubizjak@gmail.com>
193 * config/fpu-387.h: Use __asm__ and __volatile__ consistently.
195 2013-05-31 Release Manager
197 * GCC 4.8.1 released.
199 2013-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
201 Backport from mainline:
202 2013-03-20 Tilo Schwarz <tilo@tilo-schwarz.de>
205 * io/list_read.c (nml_read_obj): Don't end the component loop on a
206 nested derived type, but continue with the next loop iteration.
207 (nml_get_obj_data): Don't move the first_nl pointer further in the
208 list if a qualifier was found.
210 2013-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
212 Backport from mainline:
215 * io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
216 when checking for EOF. Use error return mechanism when EOF detected.
217 Do not return FAILURE unless parse_err_msg and parse_err_msg_size have
218 been set. Use hit_eof.
219 (nml_get_obj_data): Likewise use the correct error mechanism.
220 * io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
223 2013-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
225 Backport from mainline:
226 2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
229 * io/list_read.c (nml_parse_qualifier): To check for a derived type
230 don't use the namelist head element type but the current element type.
231 (nml_get_obj_data): Add current namelist element type to
232 nml_parse_qualifier call.
234 2013-04-02 Tobias Burnus <burnus@net-b.de>
236 Backport from mainline:
237 2013-03-28 Tobias Burnus <burnus@net-b.de>
240 * io/list_read.c (nml_query): Only abort when
242 (namelist_read): Add goto instead of falling through.
244 2013-04-02 Tobias Burnus <burnus@net-b.de>
246 Backport from mainline:
247 2013-03-29 Tobias Burnus <burnus@net-b.de>
250 * io/format.c (parse_format): With caching, copy
252 (save_parsed_format): Use dtp->format directly without
255 2012-03-29 Tobias Burnus <burnus@net-b.de>
258 * io/format.c (parse_format_list): Also cache FMT_STRING.
259 (parse_format): Update call.
261 2013-03-24 Tobias Burnus <burnus@net-b.de>
264 * io/list_read.c (read_real): Fix EOF diagnostic.
266 2013-03-22 Release Manager
268 * GCC 4.8.0 released.
270 2013-03-11 Tobias Burnus <burnus@net-b.de>
272 * io/transfer.c (read_block_direct): Correct condition.
273 * intrinsics/execute_command_line.c (execute_command_line):
274 Remove dead code for the HAVE_FORK case.
276 2013-02-21 Janne Blomqvist <jb@gcc.gnu.org>
279 * io/open.c (test_endfile): Call stell only if size != 0.
280 * io/unix.c (raw_tell): Revert r194679.
281 (raw_size): Return size field only for regular files, otherwise 0.
283 2013-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
286 * acinclude.m4 (LIBGFOR_CHECK_FOR_BROKEN_POWF): Remove check for
288 * configure.ac (LIBGFOR_CHECK_FOR_BROKEN_POWF): Likewise.
289 * intrinsics/c99_functions.c: Likewise.
290 * configure: Rebuilt.
291 * config.h.in: Rebuilt.
293 2013-02-06 Janus Weil <janus@gcc.gnu.org>
296 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is
299 2013-01-23 Janne Blomqvist <jb@gcc.gnu.org>
301 * io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
302 instead of reverse_memcpy.
303 * io/io.h (reverse_memcpy): Remove prototype.
304 * io/transfer.c (reverse_memcpy): Make static, move towards
306 (bswap_array): New function.
307 (unformatted_read): Use bswap_array to byte swap the data
309 (unformatted_write): Use a larger temp buffer and bswap_array.
310 (us_read): Use __builtin_bswapXX instead of reverse_memcpy.
311 (write_us_marker): Likewise.
313 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
315 Update copyright years.
317 2013-01-06 Tobias Burnus <burnus@net-b.de>
320 * intrinsics/env.c (get_environment_variable_i8): Don't use
321 uninitialized variable.
323 2013-01-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
326 * io/list_read.c (read_real): Do not call hit_eof when EOF can be
327 treated as a value separator.
328 (parse_real): Likewise.
329 (read_logical): Likewise.
330 (read_character): Likewise.
331 (read_complex): Likewise.
333 Copyright (C) 2013 Free Software Foundation, Inc.
335 Copying and distribution of this file, with or without modification,
336 are permitted in any medium without royalty provided the copyright
337 notice and this notice are preserved.