1 2019-08-17 Janne Blomqvist <jb@gcc.gnu.org>
4 * gfortran.map: Add GFORTRAN_10 node, add _gfortran_os_error_at
6 * libgfortran.h (os_error_at): New prototype.
7 * runtime/error.c (os_error_at): New function.
9 2019-08-13 Janne Blomqvist <jb@gcc.gnu.org>
12 * intrinsics/random.c (prng_state): Update state struct.
13 (master_state): Update to match new size.
14 (get_rand_state): Update to match new PRNG.
16 (xorshift1024star): Replace with prng_next.
17 (prng_next): New function.
18 (jump): Update for new PRNG.
19 (lcg_parkmiller): Replace with splitmix64.
20 (splitmix64): New function.
21 (getosrandom): Fix return value, simplify.
22 (init_rand_state): Use getosrandom only to get 8 bytes, splitmix64
23 to fill rest of state.
24 (random_r4): Update to new function and struct names.
25 (random_r8): Likewise.
26 (random_r10): Likewise.
27 (random_r16): Likewise.
28 (arandom_r4): Liekwise.
29 (arandom_r8): Likewise.
30 (arandom_r10): Likwewise.
31 (arandom_r16): Likewise.
32 (xor_keys): Reduce size to match new PRNG.
33 (random_seed_i4): Update to new function and struct names, remove
34 special handling of variable p used in previous PRNG.
35 (random_seed_i8): Likewise.
37 2019-08-07 Janne Blomqvist <jb@gcc.gnu.org>
40 * io/inquire.c (inquire_via_filename): Set recl to -1 for
43 2019-07-21 Thomas König <tkoenig@gcc.gnu.org>
46 * io/unix.c (BUFFER_SIZE): Delete.
47 (BUFFER_FORMATTED_SIZE_DEFAULT): New variable.
48 (BUFFER_UNFORMATTED_SIZE_DEFAULT): New variable.
49 (unix_stream): Add buffer_size.
50 (buf_read): Use s->buffer_size instead of BUFFER_SIZE.
51 (buf_write): Likewise.
52 (buf_init): Add argument unformatted. Handle block sizes
53 for unformatted vs. formatted, using defaults if provided.
54 (fd_to_stream): Add argument unformatted in call to buf_init.
55 * libgfortran.h (options_t): Add buffer_size_formatted and
56 buffer_size_unformatted.
57 * runtime/environ.c (variable_table): Add
58 GFORTRAN_UNFORMATTED_BUFFER_SIZE and
59 GFORTRAN_FORMATTED_BUFFER_SIZE.
61 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
62 Andrew Stubbs <ams@codesourcery.com>
64 * configure: Regenerate.
65 * configure.ac (LIBGFOR_MINIMAL): Do not use on AMD GCN.
67 2019-06-14 Janne Blomqvist <jb@gcc.gnu.org>
70 * runtime/memory.c (SIZE_MAX):Remove macro definition.
71 (xmallocarray): Use __builtin_mul_overflow.
73 2019-05-22 Jeff Law <law@redhat.com>
76 * io/format.c (parse_format_list): set default width when the
77 IOPARM_DT_DEC_EXT flag is set for i, f and g.
78 * io/io.h: add default_width_for_integer, default_width_for_float
79 and default_precision_for_float.
80 * io/write.c (write_boz): extra parameter giving length of data
81 corresponding to the type's kind.
82 (write_b): pass data length as extra parameter in calls to
84 (write_o): pass data length as extra parameter in calls to
86 (write_z): pass data length as extra parameter in calls to
88 (size_from_kind): also set size is default width is set.
89 * io/write_float.def (build_float_string): new paramter inserted
90 before result parameter. If default width use values passed
91 instead of the values in fnode.
92 (FORMAT_FLOAT): macro modified to check for default width and
93 calls to build_float_string to pass in default width.
94 (get_float_string): set width and precision to defaults when
97 2019-05-19 Janne Blomqvist <jb@gcc.gnu.org>
100 * intrinsics/execute_command_line (sigchld_handler): New function.
101 (execute_command_line): Install handler for SIGCHLD.
102 * configure.ac: Check for presence of sigaction and waitpid.
103 * config.h.in: Regenerated.
104 * configure: Regenerated.
106 2019-05-17 Janne Blomqvist <jb@gcc.gnu.org>
109 * configure.ac (AC_CHECK_FUNCS_ONCE): Check for posix_spawn.
110 * intrinsics/execute_command_line (execute_command_line): Use
112 * Makefile.in: Regenerated.
113 * config.h.in: Regenerated.
114 * configure: Regenerated.
116 2019-05-17 Jakub Jelinek <jakub@redhat.com>
119 * gfortran.map (GFORTRAN_9.2): Export _gfortran_{,m,s}findloc{0,1}_r10.
120 * Makefile.am (i_findloc0_c): Add $(srcdir)/generated/findloc0_r10.c.
121 (i_findloc1_c): Add $(srcdir)/generated/findloc1_r10.c.
122 * Makefile.in: Regenerated.
123 * generated/findloc0_r10.c: Generated.
124 * generated/findloc1_r10.c: Generated.
127 * gfortran.map (GFORTRAN_9.2): New symbol version, export
128 _gfortran_{,m,s}findloc0_i2 in it.
130 2019-05-15 Janne Blomqvist <jb@gcc.gnu.org>
133 * io/open.c (new_unit): Don't check if the file is already open
136 2019-05-02 Jakub Jelinek <jakub@redhat.com>
138 * Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).
139 * Makefile.in: Regenerated.
141 2019-04-14 Paul Thomas <pault@gcc.gnu.org>
144 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Only
145 return immediately if the source pointer is null. Bring
146 forward the extraction of the gfc type. Extract the kind so
147 that the element size can be correctly computed for sections
148 and components of derived type arrays. Remove the free of the
149 CFI descriptor since this is now done in trans-expr.c.
150 (gfc_desc_to_cfi_desc): Only allocate the CFI descriptor if it
152 (CFI_section): Normalise the difference between the upper and
153 lower bounds by the stride to correctly calculate the extents
157 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc): Use
158 the stride measure for the gfc span if it is not a multiple
159 of the element length. Otherwise use the element length.
162 * runtime/ISO_Fortran_binding.c (CFI_is_contiguous) : Return
163 1 for true and 0 otherwise to comply with the standard. Correct
164 the contiguity check for rank 3 and greater by using the stride
165 measure of the lower dimension rather than the element length.
167 2019-03-25 John David Anglin <danglin@gcc.gnu.org>
170 * io/write_float.def (build_float_string): Don't copy digits when
173 2019-03-05 Jakub Jelinek <jakub@redhat.com>
176 * caf/single.c (_gfortran_caf_sendget_by_ref): Cast &temp to
177 gfc_descriptor_t * to avoid warning.
179 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
181 * io/transfer.c (transfer_array_inner): Do not
182 cast charlen to index_type.
184 2019-02-25 Dominique d'Humieres <dominiq@gcc.gnu.org>
187 * io/write.c (write_integer): Add width for INTEGER(16).
189 2019-02-23 Paul Thomas <pault@gcc.gnu.org>
193 * runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc) : In the
194 interchange between character and derived, the character type
195 was being set incorrectly.
196 (gfc_desc_to_cfi_desc) : Eliminate the interchange of types in
197 this function. Do not add the kind and length information to
198 the type field of structures. Lbounds were incorrectly being
199 set to zero for allocatable and pointer descriptors. Should
200 have been non-pointer, non-allocatables that received this
203 2019-01-30 Uroš Bizjak <ubizjak@gmail.com>
207 2016-11-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
210 * config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.
212 2019-01-30 Uroš Bizjak <ubizjak@gmail.com>
215 * config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled
216 exception flags before changing trap mode. Optimize to call
217 feenableexcept and fedisableexcept only once.
219 2019-01-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
221 * io/async.c (init_adv_cond): Use __GTHREAD_COND_INIT_FUNCTION().
223 2019-01-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
226 * io/close.c (st_close): Simplify text of error message to not
227 presume a specific cause of failure to remove file.
229 2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
232 * io/close.c (st_close): Fix typo.
234 2019-01-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
237 * io/close.c (st_close): Generate error if calls to 'remove' return
240 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
241 Kwok Cheung Yeung <kcy@codesourcery.com>
242 Julian Brown <julian@codesourcery.com>
243 Tom de Vries <tom@codesourcery.com>
245 * configure.ac: Use minimal mode for amdgcn.
246 * configure: Regenerate.
248 2019-01-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
251 * io/open.c (newunit): Free format buffer if the unit specified is for
252 stdin, stdout, or stderr.
254 2019-01-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
257 * io/list_read.c (namelist_read): Use nml_err_ret path on read error
258 not based on stdin_unit.
260 2019-01-12 Paul Thomas <pault@gcc.gnu.org>
262 * ISO_Fortran_binding.h : New file.
263 * Makefile.am : Include ISO_Fortran_binding.c in the list of
265 * Makefile.in : Regenerated.
266 * gfortran.map : Add _gfortran_cfi_desc_to_gfc_desc,
267 _gfortran_gfc_desc_to_cfi_desc and the CFI API functions.
268 * runtime/ISO_Fortran_binding.c : New file containing the new
269 functions added to the map.
271 2019-01-12 Jakub Jelinek <jakub@redhat.com>
274 * m4/minloc0.m4: Reindent to avoid -Wmisleading-indentation warnings.
275 * generated/minloc0_4_i1.c: Regenerated.
276 * generated/minloc0_4_i2.c: Regenerated.
277 * generated/minloc0_4_i4.c: Regenerated.
278 * generated/minloc0_4_i8.c: Regenerated.
279 * generated/minloc0_4_i16.c: Regenerated.
280 * generated/minloc0_4_r4.c: Regenerated.
281 * generated/minloc0_4_r8.c: Regenerated.
282 * generated/minloc0_4_r10.c: Regenerated.
283 * generated/minloc0_4_r16.c: Regenerated.
284 * generated/minloc0_8_i1.c: Regenerated.
285 * generated/minloc0_8_i2.c: Regenerated.
286 * generated/minloc0_8_i4.c: Regenerated.
287 * generated/minloc0_8_i8.c: Regenerated.
288 * generated/minloc0_8_i16.c: Regenerated.
289 * generated/minloc0_8_r4.c: Regenerated.
290 * generated/minloc0_8_r8.c: Regenerated.
291 * generated/minloc0_8_r10.c: Regenerated.
292 * generated/minloc0_8_r16.c: Regenerated.
293 * generated/minloc0_16_i1.c: Regenerated.
294 * generated/minloc0_16_i2.c: Regenerated.
295 * generated/minloc0_16_i4.c: Regenerated.
296 * generated/minloc0_16_i8.c: Regenerated.
297 * generated/minloc0_16_i16.c: Regenerated.
298 * generated/minloc0_16_r4.c: Regenerated.
299 * generated/minloc0_16_r8.c: Regenerated.
300 * generated/minloc0_16_r10.c: Regenerated.
301 * generated/minloc0_16_r16.c: Regenerated.
303 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
306 * caf/single.c: Mechanically replace "can not" with "cannot".
307 * io/unit.c: Likewise.
309 2019-01-07 Thomas Koenig <tkoenig@gcc.gnu.org>
310 Harald Anlauf <anlauf@gmx.de>
311 Tobias Burnus <burnus@gcc.gnu.org>
314 * Makefile.am: Add intrinsics/is_contiguous.c.
315 * Makefile.in: Regenerated.
316 * gfortran.map: Add _gfortran_is_contiguous0.
317 * intrinsics/is_contiguous.c: New file.
318 * libgfortran.h: Add prototype for is_contiguous0.
320 2019-01-07 Janne Blomqvist <jb@gcc.gnu.org>
322 * gfortran.map (GFORTRAN_9): Make GFORTRAN_9 node depend on
325 2019-01-01 Jakub Jelinek <jakub@redhat.com>
327 Update copyright years.
329 Copyright (C) 2019 Free Software Foundation, Inc.
331 Copying and distribution of this file, with or without modification,
332 are permitted in any medium without royalty provided the copyright
333 notice and this notice are preserved.