1 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
4 * io/transfer.c (dta_transfer_init): Do not treat as an
5 asynchronous statement unless the statement has
7 (st_write_done): Likewise.
8 (st_read_done): Do not perform async_wait for synchronous I/O
10 (st_read_done): Likewise.
12 2018-12-02 Janne Blomqvist <jb@gcc.gnu.org>
15 * runtime/backtrace.c (show_backtrace): Use atomic load/store to
16 access the static lbstate pointer.
18 2018-11-30 Janne Blomqvist <jb@gcc.gnu.org>
21 * runtime/backtrace.c (show_backtrace): Make lbstate a static
22 variable, initialize once.
24 2018-11-23 Janne Blomqvist <jb@gcc.gnu.org>
26 * runtime/error.c (MAGIC): Remove.
27 (recursion_key): New variable.
28 (recursion_check): Use thread-specific variable for recursion
29 check if threads are active.
30 (constructor_recursion_check): New function.
31 (destructor_recursion_check): New funcion.
33 2018-11-22 Janne Blomqvist <jb@gcc.gnu.org>
35 * acinclude.m4 (LIBGFOR_CHECK_ATOMIC_FETCH_ADD): Rename and test
36 presence of atomic builtins instead of sync builtins.
37 * configure.ac (LIBGFOR_CHECK_ATOMIC_FETCH_ADD): Call new test.
38 * io/io.h (inc_waiting_locked): Use __atomic_fetch_add.
39 (predec_waiting_locked): Use __atomic_add_fetch.
40 (dec_waiting_unlocked): Use __atomic_fetch_add.
41 * config.h.in: Regenerated.
42 * configure: Regenerated.
43 * Makefile.in: Regenerated.
45 2018-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
48 * io/transfer.c (read_sf_internal): Delete leftover
51 2018-11-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
54 * io/transfer.c (read_sf_internal): Add support for early
55 comma termination of internal unit formatted reads.
57 2018-10-31 Joseph Myers <joseph@codesourcery.com>
60 * Makefile.am: Include multilib.am.
61 * configure.ac: Remove AC_PREREQ.
62 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
64 2017-10-28 Thomas Koenig <tkoenig@gcc.gnu.org>
67 * Makefile.am: Add files for findloc.
68 * Makefile.in: Regenerated.
69 * libgfortran.h (gfc_array_index_type): Add.
70 (gfc_array_s1): Add using GFC_UINTEGER_1.
71 (gfc_array_s4): Likewise.
72 Replace unnecessary comment.
73 (HAVE_GFC_UINTEGER_1): Define.
74 (HAVE_GFC_UINTEGER_4): Define.
75 * m4/findloc0.m4: New file.
76 * m4/findloc0s.m4: New file.
77 * m4/findloc1.m4: New file.
78 * m4/findloc1s.m4: New file.
79 * m4/findloc2s.m4: New file.
80 * m4/ifindloc0.m4: New file.
81 * m4/ifindloc1.m4: New file.
82 * m4/ifindloc2.m4: New file.
83 * m4/iparm.m4: Use unsigned integer for characters.
84 * generated/findloc0_c16.c: New file.
85 * generated/findloc0_c4.c: New file.
86 * generated/findloc0_c8.c: New file.
87 * generated/findloc0_i1.c: New file.
88 * generated/findloc0_i16.c: New file.
89 * generated/findloc0_i2.c: New file.
90 * generated/findloc0_i4.c: New file.
91 * generated/findloc0_i8.c: New file.
92 * generated/findloc0_r16.c: New file.
93 * generated/findloc0_r4.c: New file.
94 * generated/findloc0_r8.c: New file.
95 * generated/findloc0_s1.c: New file.
96 * generated/findloc0_s4.c: New file.
97 * generated/findloc1_c16.c: New file.
98 * generated/findloc1_c4.c: New file.
99 * generated/findloc1_c8.c: New file.
100 * generated/findloc1_i1.c: New file.
101 * generated/findloc1_i16.c: New file.
102 * generated/findloc1_i2.c: New file.
103 * generated/findloc1_i4.c: New file.
104 * generated/findloc1_i8.c: New file.
105 * generated/findloc1_r16.c: New file.
106 * generated/findloc1_r4.c: New file.
107 * generated/findloc1_r8.c: New file.
108 * generated/findloc1_s1.c: New file.
109 * generated/findloc1_s4.c: New file.
110 * generated/findloc2_s1.c: New file.
111 * generated/findloc2_s4.c: New file.
112 * generated/maxloc0_16_s1.c: Regenerated.
113 * generated/maxloc0_16_s4.c: Regenerated.
114 * generated/maxloc0_4_s1.c: Regenerated.
115 * generated/maxloc0_4_s4.c: Regenerated.
116 * generated/maxloc0_8_s1.c: Regenerated.
117 * generated/maxloc0_8_s4.c: Regenerated.
118 * generated/maxloc1_16_s1.c: Regenerated.
119 * generated/maxloc1_16_s4.c: Regenerated.
120 * generated/maxloc1_4_s1.c: Regenerated.
121 * generated/maxloc1_4_s4.c: Regenerated.
122 * generated/maxloc1_8_s1.c: Regenerated.
123 * generated/maxloc1_8_s4.c: Regenerated.
124 * generated/maxloc2_16_s1.c: Regenerated.
125 * generated/maxloc2_16_s4.c: Regenerated.
126 * generated/maxloc2_4_s1.c: Regenerated.
127 * generated/maxloc2_4_s4.c: Regenerated.
128 * generated/maxloc2_8_s1.c: Regenerated.
129 * generated/maxloc2_8_s4.c: Regenerated.
130 * generated/maxval0_s1.c: Regenerated.
131 * generated/maxval0_s4.c: Regenerated.
132 * generated/maxval1_s1.c: Regenerated.
133 * generated/maxval1_s4.c: Regenerated.
134 * generated/minloc0_16_s1.c: Regenerated.
135 * generated/minloc0_16_s4.c: Regenerated.
136 * generated/minloc0_4_s1.c: Regenerated.
137 * generated/minloc0_4_s4.c: Regenerated.
138 * generated/minloc0_8_s1.c: Regenerated.
139 * generated/minloc0_8_s4.c: Regenerated.
140 * generated/minloc1_16_s1.c: Regenerated.
141 * generated/minloc1_16_s4.c: Regenerated.
142 * generated/minloc1_4_s1.c: Regenerated.
143 * generated/minloc1_4_s4.c: Regenerated.
144 * generated/minloc1_8_s1.c: Regenerated.
145 * generated/minloc1_8_s4.c: Regenerated.
146 * generated/minloc2_16_s1.c: Regenerated.
147 * generated/minloc2_16_s4.c: Regenerated.
148 * generated/minloc2_4_s1.c: Regenerated.
149 * generated/minloc2_4_s4.c: Regenerated.
150 * generated/minloc2_8_s1.c: Regenerated.
151 * generated/minloc2_8_s4.c: Regenerated.
152 * generated/minval0_s1.c: Regenerated.
153 * generated/minval0_s4.c: Regenerated.
154 * generated/minval1_s1.c: Regenerated.
155 * generated/minval1_s4.c: Regenerated.
157 2018-10-06 Janne Blomqvist <jb@gcc.gnu.org>
159 * io/unix.c (compare_file_filename): Use gfc_charlen_type instead
160 of int for string length.
161 (inquire_sequential): Likewise.
162 (inquire_direct): Likewise.
163 (inquire_formatted): Likewise.
164 (inquire_unformatted): Likewise.
165 (inquire_access): Likewise.
166 (inquire_read): Likewise.
167 (inquire_write): Likewise.
168 (inquire_readwrite): Likewise.
169 * io/unix.h (compare_file_filename): Likewise.
170 (inquire_sequential): Likewise.
171 (inquire_direct): Likewise.
172 (inquire_formatted): Likewise.
173 (inquire_unformatted): Likewise.
174 (inquire_read): Likewise.
175 (inquire_write): Likewise.
176 (inquire_readwrite): Likewise.
178 2018-10-02 Gerald Pfeifer <gerald@pfeifer.com>
180 * io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.
182 2018-09-21 Janne Blomqvist <jb@gcc.gnu.org>
184 * config.h.in: Regenerated.
185 * configure: Regenerated.
186 * configure.ac: Check for writev and sys/uio.h.
187 * libgfortran.h: Include sys/uio.h.
188 (st_vprintf): Remove prototype.
189 (struct iovec): Define if not available.
190 (estr_writev): New prototype.
191 * runtime/backtrace.c (error_callback): Use estr_writev.
192 * runtime/error.c (ST_VPRINTF_SIZE): Remove.
193 (estr_writev): New function.
194 (st_vprintf): Remove.
195 (gf_vsnprintf): New function.
196 (ST_ERRBUF_SIZE): New macro.
197 (st_printf): Use vsnprintf.
198 (os_error): Use estr_writev.
199 (runtime_error): Use vsnprintf and estr_writev.
200 (runtime_error_at): Likewise.
201 (runtime_warning_at): Likewise.
202 (internal_error): Use estr_writev.
203 (generate_error_common): Likewise.
204 (generate_warning): Likewise.
205 (notify_std): Likewise.
206 * runtime/pause.c (pause_string): Likewise.
207 * runtime/stop.c (report_exception): Likewise.
208 (stop_string): Likewise.
209 (error_stop_string): Likewise.
211 2018-09-16 Thomas Koenig <tkoenig@gcc.gnu.org>
214 * m4/matmul_internal.m4: Adjust error messages.
215 * generated/matmul_c10.c: Regenerated.
216 * generated/matmul_c16.c: Regenerated.
217 * generated/matmul_c4.c: Regenerated.
218 * generated/matmul_c8.c: Regenerated.
219 * generated/matmul_i1.c: Regenerated.
220 * generated/matmul_i16.c: Regenerated.
221 * generated/matmul_i2.c: Regenerated.
222 * generated/matmul_i4.c: Regenerated.
223 * generated/matmul_i8.c: Regenerated.
224 * generated/matmul_r10.c: Regenerated.
225 * generated/matmul_r16.c: Regenerated.
226 * generated/matmul_r4.c: Regenerated.
227 * generated/matmul_r8.c: Regenerated.
228 * generated/matmulavx128_c10.c: Regenerated.
229 * generated/matmulavx128_c16.c: Regenerated.
230 * generated/matmulavx128_c4.c: Regenerated.
231 * generated/matmulavx128_c8.c: Regenerated.
232 * generated/matmulavx128_i1.c: Regenerated.
233 * generated/matmulavx128_i16.c: Regenerated.
234 * generated/matmulavx128_i2.c: Regenerated.
235 * generated/matmulavx128_i4.c: Regenerated.
236 * generated/matmulavx128_i8.c: Regenerated.
237 * generated/matmulavx128_r10.c: Regenerated.
238 * generated/matmulavx128_r16.c: Regenerated.
239 * generated/matmulavx128_r4.c: Regenerated.
240 * generated/matmulavx128_r8.c: Regenerated.
242 2018-09-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
244 * io/unix.c (fallback_access): Avoid calling close on
245 uninitialized file descriptor.
247 2018-09-12 Kwok Cheung Yeung <kcy@codesourcery.com>
249 * runtime/minimal.c (estr_write): Define in terms of write.
251 2018-09-12 Andrew Stubbs <ams@codesourcery.com>
253 * runtime/minimal.c (exit): Only work around nvptx bugs on nvptx.
255 2018-09-07 Janne Blomqvist <jb@gcc.gnu.org>
257 * runtime/environ.c (init_unsigned_integer): Remove.
259 2018-09-05 Hans-Peter Nilsson <hp@axis.com>
261 * io/async.h: Use __gthread_mutex_t, not pthread_mutex_t.
263 2018-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
265 * io/io.h: Change declaration of vlist type to
266 gfc_full_array_i4 to eliminate warning for mismatched type.
267 * io/format.c ((parse_format_list): Use gfc_full_array_i4.
268 * io/io.h: Use gfc_full_array_i4.
270 2018-08-25 Thomas Koenig <tkoenig@gcc.gnu.org>
273 * m4/matmul_internal.m4: Correct calculation of needed buffer size
274 for arrays of shape (1,n).
275 * generated/matmul_c10.c: Regenerated
276 * generated/matmul_c16.c: Regenerated
277 * generated/matmul_c4.c: Regenerated
278 * generated/matmul_c8.c: Regenerated
279 * generated/matmul_i1.c: Regenerated
280 * generated/matmul_i16.c: Regenerated
281 * generated/matmul_i2.c: Regenerated
282 * generated/matmul_i4.c: Regenerated
283 * generated/matmul_i8.c: Regenerated
284 * generated/matmul_r10.c: Regenerated
285 * generated/matmul_r16.c: Regenerated
286 * generated/matmul_r4.c: Regenerated
287 * generated/matmul_r8.c: Regenerated
288 * generated/matmulavx128_c10.c: Regenerated
289 * generated/matmulavx128_c16.c: Regenerated
290 * generated/matmulavx128_c4.c: Regenerated
291 * generated/matmulavx128_c8.c: Regenerated
292 * generated/matmulavx128_i1.c: Regenerated
293 * generated/matmulavx128_i16.c: Regenerated
294 * generated/matmulavx128_i2.c: Regenerated
295 * generated/matmulavx128_i4.c: Regenerated
296 * generated/matmulavx128_i8.c: Regenerated
297 * generated/matmulavx128_r10.c: Regenerated
298 * generated/matmulavx128_r16.c: Regenerated
299 * generated/matmulavx128_r4.c: Regenerated
300 * generated/matmulavx128_r8.c: Regenerated
302 2018-08-23 David Edelsohn <dje.gcc@gmail.com>
304 * async.h (ASYNC_IO): Revert _AIX test.
306 2018-08-22 Thomas Koenig <tkoenig@gcc.gnu.org>
308 * async.h: Set ASYNC_IO to zero if _AIX is defined.
309 (struct adv_cond): If ASYNC_IO is zero, the struct has no members.
310 (async_unit): If ASYNC_IO is zero, remove unneeded members.
312 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
313 Thomas Koenig <tkoenig@gcc.gnu.org>
316 * Makefile.am: Add async.c to gfor_io_src.
317 Add async.h to gfor_io_headers.
318 * Makefile.in: Regenerated.
319 * gfortran.map: Add _gfortran_st_wait_async.
320 * io/async.c: New file.
321 * io/async.h: New file.
322 * io/close.c: Include async.h.
323 (st_close): Call async_wait for an asynchronous unit.
324 * io/file_pos.c (st_backspace): Likewise.
325 (st_endfile): Likewise.
326 (st_rewind): Likewise.
327 (st_flush): Likewise.
328 * io/inquire.c: Add handling for asynchronous PENDING
330 * io/io.h (st_parameter_dt): Add async bit.
331 (st_parameter_wait): Correct.
332 (gfc_unit): Add au pointer.
333 (st_wait_async): Add prototype.
334 (transfer_array_inner): Likewise.
335 (st_write_done_worker): Likewise.
336 * io/open.c: Include async.h.
337 (new_unit): Initialize asynchronous unit.
338 * io/transfer.c (async_opt): New struct.
339 (wrap_scalar_transfer): New function.
340 (transfer_integer): Call wrap_scalar_transfer to do the work.
341 (transfer_real): Likewise.
342 (transfer_real_write): Likewise.
343 (transfer_character): Likewise.
344 (transfer_character_wide): Likewise.
345 (transfer_complex): Likewise.
346 (transfer_array_inner): New function.
347 (transfer_array): Call transfer_array_inner.
348 (transfer_derived): Call wrap_scalar_transfer.
349 (data_transfer_init): Check for asynchronous I/O.
350 Perform a wait operation on any pending asynchronous I/O
351 if the data transfer is synchronous. Copy PDT and enqueue
352 thread for data transfer.
353 (st_read_done_worker): New function.
354 (st_read_done): Enqueue transfer or call st_read_done_worker.
355 (st_write_done_worker): New function.
356 (st_write_done): Enqueue transfer or call st_read_done_worker.
357 (st_wait): Document as no-op for compatibility reasons.
358 (st_wait_async): New function.
359 * io/unit.c (insert_unit): Use macros LOCK, UNLOCK and TRYLOCK;
360 add NOTE where necessary.
361 (get_gfc_unit): Likewise.
362 (init_units): Likewise.
363 (close_unit_1): Likewise. Call async_close if asynchronous.
364 (close_unit): Use macros LOCK and UNLOCK.
365 (finish_last_advance_record): Likewise.
366 (newunit_alloc): Likewise.
367 * io/unix.c (find_file): Likewise.
368 (flush_all_units_1): Likewise.
369 (flush_all_units): Likewise.
370 * libgfortran.h (generate_error_common): Add prototype.
371 * runtime/error.c: Include io.h and async.h.
372 (generate_error_common): New function.
374 2018-08-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376 * configure.ac: Check for <sys/random.h>.
377 * configure, config.h.in: Regenerate.
378 * intrinsics/random.c [HAVE_SYS_RANDOM_H]: Include <sys/random.h>.
380 2018-08-13 Janne Blomqvist <jb@gcc.gnu.org>
382 * configure.ac: Check for getentropy.
383 * intrinsics/random.c (getosrandom): Use getentropy if available.
384 * config.h.in: Regenerated.
385 * configure: Regenerated.
387 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
389 Revert 'AsyncI/O patch committed'
390 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
391 Thomas Koenig <tkoenig@gcc.gnu.org>
394 * Makefile.am: Add async.c to gfor_io_src.
395 Add async.h to gfor_io_headers.
396 * Makefile.in: Regenerated.
397 * gfortran.map: Add _gfortran_st_wait_async.
398 * io/async.c: New file.
399 * io/async.h: New file.
400 * io/close.c: Include async.h.
401 (st_close): Call async_wait for an asynchronous unit.
402 * io/file_pos.c (st_backspace): Likewise.
403 (st_endfile): Likewise.
404 (st_rewind): Likewise.
405 (st_flush): Likewise.
406 * io/inquire.c: Add handling for asynchronous PENDING
408 * io/io.h (st_parameter_dt): Add async bit.
409 (st_parameter_wait): Correct.
410 (gfc_unit): Add au pointer.
411 (st_wait_async): Add prototype.
412 (transfer_array_inner): Likewise.
413 (st_write_done_worker): Likewise.
414 * io/open.c: Include async.h.
415 (new_unit): Initialize asynchronous unit.
416 * io/transfer.c (async_opt): New struct.
417 (wrap_scalar_transfer): New function.
418 (transfer_integer): Call wrap_scalar_transfer to do the work.
419 (transfer_real): Likewise.
420 (transfer_real_write): Likewise.
421 (transfer_character): Likewise.
422 (transfer_character_wide): Likewise.
423 (transfer_complex): Likewise.
424 (transfer_array_inner): New function.
425 (transfer_array): Call transfer_array_inner.
426 (transfer_derived): Call wrap_scalar_transfer.
427 (data_transfer_init): Check for asynchronous I/O.
428 Perform a wait operation on any pending asynchronous I/O
429 if the data transfer is synchronous. Copy PDT and enqueue
430 thread for data transfer.
431 (st_read_done_worker): New function.
432 (st_read_done): Enqueue transfer or call st_read_done_worker.
433 (st_write_done_worker): New function.
434 (st_write_done): Enqueue transfer or call st_read_done_worker.
435 (st_wait): Document as no-op for compatibility reasons.
436 (st_wait_async): New function.
437 * io/unit.c (insert_unit): Use macros LOCK, UNLOCK and TRYLOCK;
438 add NOTE where necessary.
439 (get_gfc_unit): Likewise.
440 (init_units): Likewise.
441 (close_unit_1): Likewise. Call async_close if asynchronous.
442 (close_unit): Use macros LOCK and UNLOCK.
443 (finish_last_advance_record): Likewise.
444 (newunit_alloc): Likewise.
445 * io/unix.c (find_file): Likewise.
446 (flush_all_units_1): Likewise.
447 (flush_all_units): Likewise.
448 * libgfortran.h (generate_error_common): Add prototype.
449 * runtime/error.c: Include io.h and async.h.
450 (generate_error_common): New function.
452 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
453 Thomas Koenig <tkoenig@gcc.gnu.org>
456 * Makefile.am: Add async.c to gfor_io_src.
457 Add async.h to gfor_io_headers.
458 * Makefile.in: Regenerated.
459 * gfortran.map: Add _gfortran_st_wait_async.
460 * io/async.c: New file.
461 * io/async.h: New file.
462 * io/close.c: Include async.h.
463 (st_close): Call async_wait for an asynchronous unit.
464 * io/file_pos.c (st_backspace): Likewise.
465 (st_endfile): Likewise.
466 (st_rewind): Likewise.
467 (st_flush): Likewise.
468 * io/inquire.c: Add handling for asynchronous PENDING
470 * io/io.h (st_parameter_dt): Add async bit.
471 (st_parameter_wait): Correct.
472 (gfc_unit): Add au pointer.
473 (st_wait_async): Add prototype.
474 (transfer_array_inner): Likewise.
475 (st_write_done_worker): Likewise.
476 * io/open.c: Include async.h.
477 (new_unit): Initialize asynchronous unit.
478 * io/transfer.c (async_opt): New struct.
479 (wrap_scalar_transfer): New function.
480 (transfer_integer): Call wrap_scalar_transfer to do the work.
481 (transfer_real): Likewise.
482 (transfer_real_write): Likewise.
483 (transfer_character): Likewise.
484 (transfer_character_wide): Likewise.
485 (transfer_complex): Likewise.
486 (transfer_array_inner): New function.
487 (transfer_array): Call transfer_array_inner.
488 (transfer_derived): Call wrap_scalar_transfer.
489 (data_transfer_init): Check for asynchronous I/O.
490 Perform a wait operation on any pending asynchronous I/O
491 if the data transfer is synchronous. Copy PDT and enqueue
492 thread for data transfer.
493 (st_read_done_worker): New function.
494 (st_read_done): Enqueue transfer or call st_read_done_worker.
495 (st_write_done_worker): New function.
496 (st_write_done): Enqueue transfer or call st_read_done_worker.
497 (st_wait): Document as no-op for compatibility reasons.
498 (st_wait_async): New function.
499 * io/unit.c (insert_unit): Use macros LOCK, UNLOCK and TRYLOCK;
500 add NOTE where necessary.
501 (get_gfc_unit): Likewise.
502 (init_units): Likewise.
503 (close_unit_1): Likewise. Call async_close if asynchronous.
504 (close_unit): Use macros LOCK and UNLOCK.
505 (finish_last_advance_record): Likewise.
506 (newunit_alloc): Likewise.
507 * io/unix.c (find_file): Likewise.
508 (flush_all_units_1): Likewise.
509 (flush_all_units): Likewise.
510 * libgfortran.h (generate_error_common): Add prototype.
511 * runtime/error.c: Include io.h and async.h.
512 (generate_error_common): New function.
514 2018-06-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
517 * io/write_float.def (build_float_string): Initialize *len.
519 2018-06-01 Steven G. Kargl <kargl@gcc.gnu.org>
523 * libgfortran.h: Remove the GFC_DTYPE_COPY_SETRANK macro.
524 * intrinsics/reshape_generic.c: Directly assign rank.
525 * intrinsics/spread_generic.c: Ditto.
526 * m4/iforeach-s.m4: Ditto.
527 * m4/iforeach.m4: Ditto.
528 * m4/ifunction-s.m4: Ditto.
529 * m4/ifunction-s2.m4: Ditto.
530 * m4/ifunction.m4: Ditto.
531 * m4/ifunction_logical.m4: Ditto.
532 * m4/reshape.m4: Ditto.
533 * m4/spread.m4: Ditto.
534 * generated/all_l1.c: Regenerated from m4 files.
535 * generated/all_l16.c: Ditto.
536 * generated/all_l2.c: Ditto.
537 * generated/all_l4.c: Ditto.
538 * generated/all_l8.c: Ditto.
539 * generated/any_l1.c: Ditto.
540 * generated/any_l16.c: Ditto.
541 * generated/any_l2.c: Ditto.
542 * generated/any_l4.c: Ditto.
543 * generated/any_l8.c: Ditto.
544 * generated/count_16_l.c: Ditto.
545 * generated/count_1_l.c: Ditto.
546 * generated/count_2_l.c: Ditto.
547 * generated/count_4_l.c: Ditto.
548 * generated/count_8_l.c: Ditto.
549 * generated/iall_i1.c: Ditto.
550 * generated/iall_i16.c: Ditto.
551 * generated/iall_i2.c: Ditto.
552 * generated/iall_i4.c: Ditto.
553 * generated/iall_i8.c: Ditto.
554 * generated/iany_i1.c: Ditto.
555 * generated/iany_i16.c: Ditto.
556 * generated/iany_i2.c: Ditto.
557 * generated/iany_i4.c: Ditto.
558 * generated/iany_i8.c: Ditto.
559 * generated/iparity_i1.c: Ditto.
560 * generated/iparity_i16.c: Ditto.
561 * generated/iparity_i2.c: Ditto.
562 * generated/iparity_i4.c: Ditto.
563 * generated/iparity_i8.c: Ditto.
564 * generated/maxloc0_16_i1.c: Ditto.
565 * generated/maxloc0_16_i16.c: Ditto.
566 * generated/maxloc0_16_i2.c: Ditto.
567 * generated/maxloc0_16_i4.c: Ditto.
568 * generated/maxloc0_16_i8.c: Ditto.
569 * generated/maxloc0_16_r10.c: Ditto.
570 * generated/maxloc0_16_r16.c: Ditto.
571 * generated/maxloc0_16_r4.c: Ditto.
572 * generated/maxloc0_16_r8.c: Ditto.
573 * generated/maxloc0_16_s1.c: Ditto.
574 * generated/maxloc0_16_s4.c: Ditto.
575 * generated/maxloc0_4_i1.c: Ditto.
576 * generated/maxloc0_4_i16.c: Ditto.
577 * generated/maxloc0_4_i2.c: Ditto.
578 * generated/maxloc0_4_i4.c: Ditto.
579 * generated/maxloc0_4_i8.c: Ditto.
580 * generated/maxloc0_4_r10.c: Ditto.
581 * generated/maxloc0_4_r16.c: Ditto.
582 * generated/maxloc0_4_r4.c: Ditto.
583 * generated/maxloc0_4_r8.c: Ditto.
584 * generated/maxloc0_4_s1.c: Ditto.
585 * generated/maxloc0_4_s4.c: Ditto.
586 * generated/maxloc0_8_i1.c: Ditto.
587 * generated/maxloc0_8_i16.c: Ditto.
588 * generated/maxloc0_8_i2.c: Ditto.
589 * generated/maxloc0_8_i4.c: Ditto.
590 * generated/maxloc0_8_i8.c: Ditto.
591 * generated/maxloc0_8_r10.c: Ditto.
592 * generated/maxloc0_8_r16.c: Ditto.
593 * generated/maxloc0_8_r4.c: Ditto.
594 * generated/maxloc0_8_r8.c: Ditto.
595 * generated/maxloc0_8_s1.c: Ditto.
596 * generated/maxloc0_8_s4.c: Ditto.
597 * generated/maxloc1_16_i1.c: Ditto.
598 * generated/maxloc1_16_i16.c: Ditto.
599 * generated/maxloc1_16_i2.c: Ditto.
600 * generated/maxloc1_16_i4.c: Ditto.
601 * generated/maxloc1_16_i8.c: Ditto.
602 * generated/maxloc1_16_r10.c: Ditto.
603 * generated/maxloc1_16_r16.c: Ditto.
604 * generated/maxloc1_16_r4.c: Ditto.
605 * generated/maxloc1_16_r8.c: Ditto.
606 * generated/maxloc1_16_s1.c: Ditto.
607 * generated/maxloc1_16_s4.c: Ditto.
608 * generated/maxloc1_4_i1.c: Ditto.
609 * generated/maxloc1_4_i16.c: Ditto.
610 * generated/maxloc1_4_i2.c: Ditto.
611 * generated/maxloc1_4_i4.c: Ditto.
612 * generated/maxloc1_4_i8.c: Ditto.
613 * generated/maxloc1_4_r10.c: Ditto.
614 * generated/maxloc1_4_r16.c: Ditto.
615 * generated/maxloc1_4_r4.c: Ditto.
616 * generated/maxloc1_4_r8.c: Ditto.
617 * generated/maxloc1_4_s1.c: Ditto.
618 * generated/maxloc1_4_s4.c: Ditto.
619 * generated/maxloc1_8_i1.c: Ditto.
620 * generated/maxloc1_8_i16.c: Ditto.
621 * generated/maxloc1_8_i2.c: Ditto.
622 * generated/maxloc1_8_i4.c: Ditto.
623 * generated/maxloc1_8_i8.c: Ditto.
624 * generated/maxloc1_8_r10.c: Ditto.
625 * generated/maxloc1_8_r16.c: Ditto.
626 * generated/maxloc1_8_r4.c: Ditto.
627 * generated/maxloc1_8_r8.c: Ditto.
628 * generated/maxloc1_8_s1.c: Ditto.
629 * generated/maxloc1_8_s4.c: Ditto.
630 * generated/maxval1_s1.c: Ditto.
631 * generated/maxval1_s4.c: Ditto.
632 * generated/maxval_i1.c: Ditto.
633 * generated/maxval_i16.c: Ditto.
634 * generated/maxval_i2.c: Ditto.
635 * generated/maxval_i4.c: Ditto.
636 * generated/maxval_i8.c: Ditto.
637 * generated/maxval_r10.c: Ditto.
638 * generated/maxval_r16.c: Ditto.
639 * generated/maxval_r4.c: Ditto.
640 * generated/maxval_r8.c: Ditto.
641 * generated/minloc0_16_i1.c: Ditto.
642 * generated/minloc0_16_i16.c: Ditto.
643 * generated/minloc0_16_i2.c: Ditto.
644 * generated/minloc0_16_i4.c: Ditto.
645 * generated/minloc0_16_i8.c: Ditto.
646 * generated/minloc0_16_r10.c: Ditto.
647 * generated/minloc0_16_r16.c: Ditto.
648 * generated/minloc0_16_r4.c: Ditto.
649 * generated/minloc0_16_r8.c: Ditto.
650 * generated/minloc0_16_s1.c: Ditto.
651 * generated/minloc0_16_s4.c: Ditto.
652 * generated/minloc0_4_i1.c: Ditto.
653 * generated/minloc0_4_i16.c: Ditto.
654 * generated/minloc0_4_i2.c: Ditto.
655 * generated/minloc0_4_i4.c: Ditto.
656 * generated/minloc0_4_i8.c: Ditto.
657 * generated/minloc0_4_r10.c: Ditto.
658 * generated/minloc0_4_r16.c: Ditto.
659 * generated/minloc0_4_r4.c: Ditto.
660 * generated/minloc0_4_r8.c: Ditto.
661 * generated/minloc0_4_s1.c: Ditto.
662 * generated/minloc0_4_s4.c: Ditto.
663 * generated/minloc0_8_i1.c: Ditto.
664 * generated/minloc0_8_i16.c: Ditto.
665 * generated/minloc0_8_i2.c: Ditto.
666 * generated/minloc0_8_i4.c: Ditto.
667 * generated/minloc0_8_i8.c: Ditto.
668 * generated/minloc0_8_r10.c: Ditto.
669 * generated/minloc0_8_r16.c: Ditto.
670 * generated/minloc0_8_r4.c: Ditto.
671 * generated/minloc0_8_r8.c: Ditto.
672 * generated/minloc0_8_s1.c: Ditto.
673 * generated/minloc0_8_s4.c: Ditto.
674 * generated/minloc1_16_i1.c: Ditto.
675 * generated/minloc1_16_i16.c: Ditto.
676 * generated/minloc1_16_i2.c: Ditto.
677 * generated/minloc1_16_i4.c: Ditto.
678 * generated/minloc1_16_i8.c: Ditto.
679 * generated/minloc1_16_r10.c: Ditto.
680 * generated/minloc1_16_r16.c: Ditto.
681 * generated/minloc1_16_r4.c: Ditto.
682 * generated/minloc1_16_r8.c: Ditto.
683 * generated/minloc1_16_s1.c: Ditto.
684 * generated/minloc1_16_s4.c: Ditto.
685 * generated/minloc1_4_i1.c: Ditto.
686 * generated/minloc1_4_i16.c: Ditto.
687 * generated/minloc1_4_i2.c: Ditto.
688 * generated/minloc1_4_i4.c: Ditto.
689 * generated/minloc1_4_i8.c: Ditto.
690 * generated/minloc1_4_r10.c: Ditto.
691 * generated/minloc1_4_r16.c: Ditto.
692 * generated/minloc1_4_r4.c: Ditto.
693 * generated/minloc1_4_r8.c: Ditto.
694 * generated/minloc1_4_s1.c: Ditto.
695 * generated/minloc1_4_s4.c: Ditto.
696 * generated/minloc1_8_i1.c: Ditto.
697 * generated/minloc1_8_i16.c: Ditto.
698 * generated/minloc1_8_i2.c: Ditto.
699 * generated/minloc1_8_i4.c: Ditto.
700 * generated/minloc1_8_i8.c: Ditto.
701 * generated/minloc1_8_r10.c: Ditto.
702 * generated/minloc1_8_r16.c: Ditto.
703 * generated/minloc1_8_r4.c: Ditto.
704 * generated/minloc1_8_r8.c: Ditto.
705 * generated/minloc1_8_s1.c: Ditto.
706 * generated/minloc1_8_s4.c: Ditto.
707 * generated/minval1_s1.c: Ditto.
708 * generated/minval1_s4.c: Ditto.
709 * generated/minval_i1.c: Ditto.
710 * generated/minval_i16.c: Ditto.
711 * generated/minval_i2.c: Ditto.
712 * generated/minval_i4.c: Ditto.
713 * generated/minval_i8.c: Ditto.
714 * generated/minval_r10.c: Ditto.
715 * generated/minval_r16.c: Ditto.
716 * generated/minval_r4.c: Ditto.
717 * generated/minval_r8.c: Ditto.
718 * generated/norm2_r10.c: Ditto.
719 * generated/norm2_r16.c: Ditto.
720 * generated/norm2_r4.c: Ditto.
721 * generated/norm2_r8.c: Ditto.
722 * generated/parity_l1.c: Ditto.
723 * generated/parity_l16.c: Ditto.
724 * generated/parity_l2.c: Ditto.
725 * generated/parity_l4.c: Ditto.
726 * generated/parity_l8.c: Ditto.
727 * generated/product_c10.c: Ditto.
728 * generated/product_c16.c: Ditto.
729 * generated/product_c4.c: Ditto.
730 * generated/product_c8.c: Ditto.
731 * generated/product_i1.c: Ditto.
732 * generated/product_i16.c: Ditto.
733 * generated/product_i2.c: Ditto.
734 * generated/product_i4.c: Ditto.
735 * generated/product_i8.c: Ditto.
736 * generated/product_r10.c: Ditto.
737 * generated/product_r16.c: Ditto.
738 * generated/product_r4.c: Ditto.
739 * generated/product_r8.c: Ditto.
740 * generated/reshape_c10.c: Ditto.
741 * generated/reshape_c16.c: Ditto.
742 * generated/reshape_c4.c: Ditto.
743 * generated/reshape_c8.c: Ditto.
744 * generated/reshape_i16.c: Ditto.
745 * generated/reshape_i4.c: Ditto.
746 * generated/reshape_i8.c: Ditto.
747 * generated/reshape_r10.c: Ditto.
748 * generated/reshape_r16.c: Ditto.
749 * generated/reshape_r4.c: Ditto.
750 * generated/reshape_r8.c: Ditto.
751 * generated/spread_c10.c: Ditto.
752 * generated/spread_c16.c: Ditto.
753 * generated/spread_c4.c: Ditto.
754 * generated/spread_c8.c: Ditto.
755 * generated/spread_i1.c: Ditto.
756 * generated/spread_i16.c: Ditto.
757 * generated/spread_i2.c: Ditto.
758 * generated/spread_i4.c: Ditto.
759 * generated/spread_i8.c: Ditto.
760 * generated/spread_r10.c: Ditto.
761 * generated/spread_r16.c: Ditto.
762 * generated/spread_r4.c: Ditto.
763 * generated/spread_r8.c: Ditto.
764 * generated/sum_c10.c: Ditto.
765 * generated/sum_c16.c: Ditto.
766 * generated/sum_c4.c: Ditto.
767 * generated/sum_c8.c: Ditto.
768 * generated/sum_i1.c: Ditto.
769 * generated/sum_i16.c: Ditto.
770 * generated/sum_i2.c: Ditto.
771 * generated/sum_i4.c: Ditto.
772 * generated/sum_i8.c: Ditto.
773 * generated/sum_r10.c: Ditto.
774 * generated/sum_r16.c: Ditto.
775 * generated/sum_r4.c: Ditto.
776 * generated/sum_r8.c: Ditto.
778 2018-06-01 Steven G. Kargl <kargl@gcc.gnu.org>
781 * libgfortran/Makefile.am: Add random_init.f90 to build.
782 * libgfortran/Makefile.in: Regenerated.
783 * libgfortran/gfortran.map: Expose symbol for _gfortran_random_init.
784 * libgfortran/intrinsics/random_init.f90: Implementation.
786 2018-05-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
789 * io/write.c (write_real, write_real_g0, write_complex): Use
790 separate local variables for the float string length.
792 2018-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
795 * io/write.c (write_integer): Initialise the fnode format to
796 FMT_NONE, used for list directed write.
797 (BUF_STACK_SZ): Bump default buffer size up to avoid allocs on
800 2018-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
803 * io/write.c (write_float_0): Use separate local variable for
804 the float string length.
806 2018-05-08 Thomas Koenig <tkoenig@gcc.gnu.org>
809 * m4/iforeach-s.m4: Remove assertion that back is zero.
810 * m4/iforeach.m4: Likewise. Remove leading 'do'
811 before implementation start.
812 * m4/ifunction-s.m4: Remove assertion that back is zero.
813 * m4/ifunction.m4: Likewise. Remove for loop if HAVE_BACK_ARG
815 * m4/maxloc0.m4: Reorganize loops. Split loops between >= and =,
816 depending if back is true. Mark the condition of having
817 found a value which exceeds the limit as unlikely.
818 * m4/minloc0.m4: Likewise.
819 * m4/maxloc1.m4: Likewise.
820 * m4/minloc1.m4: Likewise.
821 * m4/maxloc1s.m4: Handle back argument.
822 * m4/minloc1s.m4: Likewise.
823 * m4/maxloc2s.m4: Remove assertion that back is zero.
824 Remove special handling of loop start. Handle back argument.
825 * m4/minloc2s.m4: Likewise.
826 * generated/iall_i1.c: Regenerated.
827 * generated/iall_i16.c: Regenerated.
828 * generated/iall_i2.c: Regenerated.
829 * generated/iall_i4.c: Regenerated.
830 * generated/iall_i8.c: Regenerated.
831 * generated/iany_i1.c: Regenerated.
832 * generated/iany_i16.c: Regenerated.
833 * generated/iany_i2.c: Regenerated.
834 * generated/iany_i4.c: Regenerated.
835 * generated/iany_i8.c: Regenerated.
836 * generated/iparity_i1.c: Regenerated.
837 * generated/iparity_i16.c: Regenerated.
838 * generated/iparity_i2.c: Regenerated.
839 * generated/iparity_i4.c: Regenerated.
840 * generated/iparity_i8.c: Regenerated.
841 * generated/maxloc0_16_i1.c: Regenerated.
842 * generated/maxloc0_16_i16.c: Regenerated.
843 * generated/maxloc0_16_i2.c: Regenerated.
844 * generated/maxloc0_16_i4.c: Regenerated.
845 * generated/maxloc0_16_i8.c: Regenerated.
846 * generated/maxloc0_16_r10.c: Regenerated.
847 * generated/maxloc0_16_r16.c: Regenerated.
848 * generated/maxloc0_16_r4.c: Regenerated.
849 * generated/maxloc0_16_r8.c: Regenerated.
850 * generated/maxloc0_16_s1.c: Regenerated.
851 * generated/maxloc0_16_s4.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_4_s1.c: Regenerated.
862 * generated/maxloc0_4_s4.c: Regenerated.
863 * generated/maxloc0_8_i1.c: Regenerated.
864 * generated/maxloc0_8_i16.c: Regenerated.
865 * generated/maxloc0_8_i2.c: Regenerated.
866 * generated/maxloc0_8_i4.c: Regenerated.
867 * generated/maxloc0_8_i8.c: Regenerated.
868 * generated/maxloc0_8_r10.c: Regenerated.
869 * generated/maxloc0_8_r16.c: Regenerated.
870 * generated/maxloc0_8_r4.c: Regenerated.
871 * generated/maxloc0_8_r8.c: Regenerated.
872 * generated/maxloc0_8_s1.c: Regenerated.
873 * generated/maxloc0_8_s4.c: Regenerated.
874 * generated/maxloc1_16_i1.c: Regenerated.
875 * generated/maxloc1_16_i16.c: Regenerated.
876 * generated/maxloc1_16_i2.c: Regenerated.
877 * generated/maxloc1_16_i4.c: Regenerated.
878 * generated/maxloc1_16_i8.c: Regenerated.
879 * generated/maxloc1_16_r10.c: Regenerated.
880 * generated/maxloc1_16_r16.c: Regenerated.
881 * generated/maxloc1_16_r4.c: Regenerated.
882 * generated/maxloc1_16_r8.c: Regenerated.
883 * generated/maxloc1_16_s1.c: Regenerated.
884 * generated/maxloc1_16_s4.c: Regenerated.
885 * generated/maxloc1_4_i1.c: Regenerated.
886 * generated/maxloc1_4_i16.c: Regenerated.
887 * generated/maxloc1_4_i2.c: Regenerated.
888 * generated/maxloc1_4_i4.c: Regenerated.
889 * generated/maxloc1_4_i8.c: Regenerated.
890 * generated/maxloc1_4_r10.c: Regenerated.
891 * generated/maxloc1_4_r16.c: Regenerated.
892 * generated/maxloc1_4_r4.c: Regenerated.
893 * generated/maxloc1_4_r8.c: Regenerated.
894 * generated/maxloc1_4_s1.c: Regenerated.
895 * generated/maxloc1_4_s4.c: Regenerated.
896 * generated/maxloc1_8_i1.c: Regenerated.
897 * generated/maxloc1_8_i16.c: Regenerated.
898 * generated/maxloc1_8_i2.c: Regenerated.
899 * generated/maxloc1_8_i4.c: Regenerated.
900 * generated/maxloc1_8_i8.c: Regenerated.
901 * generated/maxloc1_8_r10.c: Regenerated.
902 * generated/maxloc1_8_r16.c: Regenerated.
903 * generated/maxloc1_8_r4.c: Regenerated.
904 * generated/maxloc1_8_r8.c: Regenerated.
905 * generated/maxloc1_8_s1.c: Regenerated.
906 * generated/maxloc1_8_s4.c: Regenerated.
907 * generated/maxloc2_16_s1.c: Regenerated.
908 * generated/maxloc2_16_s4.c: Regenerated.
909 * generated/maxloc2_4_s1.c: Regenerated.
910 * generated/maxloc2_4_s4.c: Regenerated.
911 * generated/maxloc2_8_s1.c: Regenerated.
912 * generated/maxloc2_8_s4.c: Regenerated.
913 * generated/maxval_i1.c: Regenerated.
914 * generated/maxval_i16.c: Regenerated.
915 * generated/maxval_i2.c: Regenerated.
916 * generated/maxval_i4.c: Regenerated.
917 * generated/maxval_i8.c: Regenerated.
918 * generated/maxval_r10.c: Regenerated.
919 * generated/maxval_r16.c: Regenerated.
920 * generated/maxval_r4.c: Regenerated.
921 * generated/maxval_r8.c: Regenerated.
922 * generated/minloc0_16_i1.c: Regenerated.
923 * generated/minloc0_16_i16.c: Regenerated.
924 * generated/minloc0_16_i2.c: Regenerated.
925 * generated/minloc0_16_i4.c: Regenerated.
926 * generated/minloc0_16_i8.c: Regenerated.
927 * generated/minloc0_16_r10.c: Regenerated.
928 * generated/minloc0_16_r16.c: Regenerated.
929 * generated/minloc0_16_r4.c: Regenerated.
930 * generated/minloc0_16_r8.c: Regenerated.
931 * generated/minloc0_16_s1.c: Regenerated.
932 * generated/minloc0_16_s4.c: Regenerated.
933 * generated/minloc0_4_i1.c: Regenerated.
934 * generated/minloc0_4_i16.c: Regenerated.
935 * generated/minloc0_4_i2.c: Regenerated.
936 * generated/minloc0_4_i4.c: Regenerated.
937 * generated/minloc0_4_i8.c: Regenerated.
938 * generated/minloc0_4_r10.c: Regenerated.
939 * generated/minloc0_4_r16.c: Regenerated.
940 * generated/minloc0_4_r4.c: Regenerated.
941 * generated/minloc0_4_r8.c: Regenerated.
942 * generated/minloc0_4_s1.c: Regenerated.
943 * generated/minloc0_4_s4.c: Regenerated.
944 * generated/minloc0_8_i1.c: Regenerated.
945 * generated/minloc0_8_i16.c: Regenerated.
946 * generated/minloc0_8_i2.c: Regenerated.
947 * generated/minloc0_8_i4.c: Regenerated.
948 * generated/minloc0_8_i8.c: Regenerated.
949 * generated/minloc0_8_r10.c: Regenerated.
950 * generated/minloc0_8_r16.c: Regenerated.
951 * generated/minloc0_8_r4.c: Regenerated.
952 * generated/minloc0_8_r8.c: Regenerated.
953 * generated/minloc0_8_s1.c: Regenerated.
954 * generated/minloc0_8_s4.c: Regenerated.
955 * generated/minloc1_16_i1.c: Regenerated.
956 * generated/minloc1_16_i16.c: Regenerated.
957 * generated/minloc1_16_i2.c: Regenerated.
958 * generated/minloc1_16_i4.c: Regenerated.
959 * generated/minloc1_16_i8.c: Regenerated.
960 * generated/minloc1_16_r10.c: Regenerated.
961 * generated/minloc1_16_r16.c: Regenerated.
962 * generated/minloc1_16_r4.c: Regenerated.
963 * generated/minloc1_16_r8.c: Regenerated.
964 * generated/minloc1_16_s1.c: Regenerated.
965 * generated/minloc1_16_s4.c: Regenerated.
966 * generated/minloc1_4_i1.c: Regenerated.
967 * generated/minloc1_4_i16.c: Regenerated.
968 * generated/minloc1_4_i2.c: Regenerated.
969 * generated/minloc1_4_i4.c: Regenerated.
970 * generated/minloc1_4_i8.c: Regenerated.
971 * generated/minloc1_4_r10.c: Regenerated.
972 * generated/minloc1_4_r16.c: Regenerated.
973 * generated/minloc1_4_r4.c: Regenerated.
974 * generated/minloc1_4_r8.c: Regenerated.
975 * generated/minloc1_4_s1.c: Regenerated.
976 * generated/minloc1_4_s4.c: Regenerated.
977 * generated/minloc1_8_i1.c: Regenerated.
978 * generated/minloc1_8_i16.c: Regenerated.
979 * generated/minloc1_8_i2.c: Regenerated.
980 * generated/minloc1_8_i4.c: Regenerated.
981 * generated/minloc1_8_i8.c: Regenerated.
982 * generated/minloc1_8_r10.c: Regenerated.
983 * generated/minloc1_8_r16.c: Regenerated.
984 * generated/minloc1_8_r4.c: Regenerated.
985 * generated/minloc1_8_r8.c: Regenerated.
986 * generated/minloc1_8_s1.c: Regenerated.
987 * generated/minloc1_8_s4.c: Regenerated.
988 * generated/minloc2_16_s1.c: Regenerated.
989 * generated/minloc2_16_s4.c: Regenerated.
990 * generated/minloc2_4_s1.c: Regenerated.
991 * generated/minloc2_4_s4.c: Regenerated.
992 * generated/minloc2_8_s1.c: Regenerated.
993 * generated/minloc2_8_s4.c: Regenerated.
994 * generated/minval_i1.c: Regenerated.
995 * generated/minval_i16.c: Regenerated.
996 * generated/minval_i2.c: Regenerated.
997 * generated/minval_i4.c: Regenerated.
998 * generated/minval_i8.c: Regenerated.
999 * generated/minval_r10.c: Regenerated.
1000 * generated/minval_r16.c: Regenerated.
1001 * generated/minval_r4.c: Regenerated.
1002 * generated/minval_r8.c: Regenerated.
1003 * generated/norm2_r10.c: Regenerated.
1004 * generated/norm2_r16.c: Regenerated.
1005 * generated/norm2_r4.c: Regenerated.
1006 * generated/norm2_r8.c: Regenerated.
1007 * generated/parity_l1.c: Regenerated.
1008 * generated/parity_l16.c: Regenerated.
1009 * generated/parity_l2.c: Regenerated.
1010 * generated/parity_l4.c: Regenerated.
1011 * generated/parity_l8.c: Regenerated.
1012 * generated/product_c10.c: Regenerated.
1013 * generated/product_c16.c: Regenerated.
1014 * generated/product_c4.c: Regenerated.
1015 * generated/product_c8.c: Regenerated.
1016 * generated/product_i1.c: Regenerated.
1017 * generated/product_i16.c: Regenerated.
1018 * generated/product_i2.c: Regenerated.
1019 * generated/product_i4.c: Regenerated.
1020 * generated/product_i8.c: Regenerated.
1021 * generated/product_r10.c: Regenerated.
1022 * generated/product_r16.c: Regenerated.
1023 * generated/product_r4.c: Regenerated.
1024 * generated/product_r8.c: Regenerated.
1025 * generated/sum_c10.c: Regenerated.
1026 * generated/sum_c16.c: Regenerated.
1027 * generated/sum_c4.c: Regenerated.
1028 * generated/sum_c8.c: Regenerated.
1029 * generated/sum_i1.c: Regenerated.
1030 * generated/sum_i16.c: Regenerated.
1031 * generated/sum_i2.c: Regenerated.
1032 * generated/sum_i4.c: Regenerated.
1033 * generated/sum_i8.c: Regenerated.
1034 * generated/sum_r10.c: Regenerated.
1035 * generated/sum_r16.c: Regenerated.
1036 * generated/sum_r4.c: Regenerated.
1037 * generated/sum_r8.c: Regenerated.
1039 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1041 * configure: Regenerated.
1043 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
1047 * runtime/minimal.c (stop_numeric): Reimplement.
1048 (stop_string, error_stop_string, error_stop_numeric): New
1051 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1053 * configure: Regenerated.
1055 2018-04-18 David Malcolm <dmalcolm@redhat.com>
1058 * configure: Regenerate.
1060 2018-04-06 Thomas Koenig <tkoenig@gcc.gnu.org>
1063 * m4/matmul_internal.m4: If ycount == 1, add one more row to
1064 the internal buffer.
1065 * generated/matmul_c10.c: Regenerated.
1066 * generated/matmul_c16.c: Regenerated.
1067 * generated/matmul_c4.c: Regenerated.
1068 * generated/matmul_c8.c: Regenerated.
1069 * generated/matmul_i1.c: Regenerated.
1070 * generated/matmul_i16.c: Regenerated.
1071 * generated/matmul_i2.c: Regenerated.
1072 * generated/matmul_i4.c: Regenerated.
1073 * generated/matmul_i8.c: Regenerated.
1074 * generated/matmul_r10.c: Regenerated.
1075 * generated/matmul_r16.c: Regenerated.
1076 * generated/matmul_r4.c: Regenerated.
1077 * generated/matmul_r8.c: Regenerated.
1078 * generated/matmulavx128_c10.c: Regenerated.
1079 * generated/matmulavx128_c16.c: Regenerated.
1080 * generated/matmulavx128_c4.c: Regenerated.
1081 * generated/matmulavx128_c8.c: Regenerated.
1082 * generated/matmulavx128_i1.c: Regenerated.
1083 * generated/matmulavx128_i16.c: Regenerated.
1084 * generated/matmulavx128_i2.c: Regenerated.
1085 * generated/matmulavx128_i4.c: Regenerated.
1086 * generated/matmulavx128_i8.c: Regenerated.
1087 * generated/matmulavx128_r10.c: Regenerated.
1088 * generated/matmulavx128_r16.c: Regenerated.
1089 * generated/matmulavx128_r4.c: Regenerated.
1090 * generated/matmulavx128_r8.c: Regenerated.
1092 2018-04-04 Thomas Koenig <tkoenig@gcc.gnu.org>
1095 * runtime/minimal.c (stop_numeric): Add new function in order to
1096 implement numeric stop on minimal targets.
1098 2018-03-28 Jakub Jelinek <jakub@redhat.com>
1100 * io/io.h (IOPARM_DT_DEFAULT_EXP): Rename to ...
1101 (IOPARM_DT_DEC_EXT): ... this.
1102 * io/list_read.c (parse_real): Adjust for IOPARM_DT_DEFAULT_EXP
1103 renaming to IOPARM_DT_DEC_EXT.
1104 (read_real): Likewise.
1105 * io/read.c (read_f): Likewise.
1107 2018-03-15 Jakub Jelinek <jakub@redhat.com>
1109 PR libgfortran/84880
1110 * intrinsics/kill.c (kill): Rename to...
1111 (PREFIX (kill)): ... this. Use export_proto_np instead of export_proto.
1113 2018-03-13 Steven G. Kargl <kargl@gcc.gnu.org>
1115 * libgfortran/gfortran.map: Remove _gfortran_kill_i4,
1116 _gfortran_kill_i4_sub, _gfortran_kill_i8, and _gfortran_kill_i8_sub.
1117 Add _gfortran_kill and _gfortran_kill_sub.
1118 * libgfortran/intrinsics/kill.c: Eliminate _gfortran_kill_i4,
1119 _gfortran_kill_i4_sub, _gfortran_kill_i8, and _gfortran_kill_i8_sub.
1120 Add _gfortran_kill and _gfortran_kill_sub.
1122 2018-02-23 Janne Blomqvist <jb@gcc.gnu.org>
1125 * caf/libcaf.h (_gfortran_caf_stop_numeric): Add bool argument.
1126 (_gfortran_caf_stop_str): Likewise.
1127 (_gfortran_caf_error_stop_str): Likewise.
1128 (_gfortran_caf_error_stop): Likewise.
1129 * caf/mpi.c (_gfortran_caf_error_stop_str): Handle new argument.
1130 (_gfortran_caf_error_stop): Likewise.
1131 * caf/single.c (_gfortran_caf_stop_numeric): Likewise.
1132 (_gfortran_caf_stop_str): Likewise.
1133 (_gfortran_caf_error_stop_str): Likewise.
1134 (_gfortran_caf_error_stop): Likewise.
1135 (_gfortran_caf_lock): Likewise.
1136 (_gfortran_caf_unlock): Likewise.
1137 * libgfortran.h (stop_string): Add bool argument.
1138 * runtime/pause.c (do_pause): Add false argument.
1139 * runtime/stop.c (stop_numeric): Handle new argument.
1140 (stop_string): Likewise.
1141 (error_stop_string): Likewise.
1142 (error_stop_numeric): Likewise.
1144 2018-02-22 Janne Blomqvist <jb@gcc.gnu.org>
1148 * runtime/pause.c (pause_numeric): Modify to take GFC_INTEGER_8
1150 (pause_string): Modify to take size_t character length argument.
1152 2018-02-22 Janne Blomqvist <jb@gcc.gnu.org>
1154 * libgfortran.h (stop_string): Use size_t for character length.
1155 * runtime/stop.c (stop_string): Likewise.
1156 (error_stop_string): Likewise.
1157 (stop_numeric): Use int for exit code.
1158 (error_stop_numeric): Likewise.
1159 * caf/libcaf.h: Remove stdint.h include.
1160 (_gfortran_caf_register): Use size_t for character length.
1161 (_gfortran_caf_deregister): Likewise.
1162 (_gfortran_caf_sync_all): Likewise.
1163 (_gfortran_caf_sync_memory): Likewise.
1164 (_gfortran_caf_sync_images): Likewise.
1165 (_gfortran_caf_stop_numeric): Use int for exit code.
1166 (_gfortran_caf_stop_str): Use size_t for character length.
1167 (_gfortran_caf_error_stop_str): Likewise.
1168 (_gfortran_caf_error_stop): Use int for exit code.
1169 (_gfortran_caf_co_broadcast): Use size_t for character length.
1170 (_gfortran_caf_co_sum): Likewise.
1171 (_gfortran_caf_co_min): Likewise.
1172 (_gfortran_caf_co_max): Likewise.
1173 (_gfortran_caf_co_reduce): Likewise.
1174 (_gfortran_caf_lock): Likewise.
1175 (_gfortran_caf_unlock): Likewise.
1176 (_gfortran_caf_event_post): Likewise.
1177 (_gfortran_caf_event_wait): Likewise.
1178 * caf/mpi.c (_gfortran_caf_register): Update implementation to
1180 (_gfortran_caf_deregister): Likewise.
1181 (_gfortran_caf_sync_all): Likewise.
1182 (_gfortran_caf_sync_images): Likewise.
1183 (_gfortran_caf_error_stop_str): Likewise.
1184 (_gfortran_caf_error_stop): Likewise.
1185 * caf/single.c (caf_internal_error): Likewise.
1186 (_gfortran_caf_register): Likewise.
1187 (_gfortran_caf_deregister): Likewise.
1188 (_gfortran_caf_sync_all): Likewise.
1189 (_gfortran_caf_sync_memory): Likewise.
1190 (_gfortran_caf_sync_images): Likewise.
1191 (_gfortran_caf_stop_numeric): Likewise.
1192 (_gfortran_caf_stop_str): Likewise.
1193 (_gfortran_caf_error_stop_str): Likewise.
1194 (_gfortran_caf_error_stop): Likewise.
1195 (_gfortran_caf_co_broadcast): Likewise.
1196 (_gfortran_caf_co_sum): Likewise.
1197 (_gfortran_caf_co_min): Likewise.
1198 (_gfortran_caf_co_max): Likewise.
1199 (_gfortran_caf_co_reduce): Likewise.
1200 (_gfortran_caf_event_post): Likewise.
1201 (_gfortran_caf_event_wait): Likewise.
1202 (_gfortran_caf_lock): Likewise.
1203 (_gfortran_caf_unlock): Likewise.
1205 2018-02-19 Andre Vehreschild <vehre@gcc.gnu.org>
1207 * caf/libcaf.h: Add type parameters to the caf_*_by_ref prototypes.
1208 * caf/single.c (get_for_ref): Simplifications and now respecting
1210 (_gfortran_caf_get_by_ref): Added source type handing to get_for_ref().
1211 (send_by_ref): Simplifications and respecting the dst_type now.
1212 (_gfortran_caf_send_by_ref): Added destination type hand over to
1214 (_gfortran_caf_sendget_by_ref): Added general support and fixed stack
1215 corruption. The function is now really usable.
1217 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1220 * configure: Regenerate.
1222 2018-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1224 PR libgfortran/84412
1225 * io/transfer.c (finalize_transfer): After completng an internal unit
1226 I/O operation, clear internal_unit_kind.
1228 2018-02-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1230 * libgfortran.h (GFC_ARRAY_DESCRIPTOR): Remove dimension
1231 of descriptor to use vaiable members for dim.
1232 Change usage of GFC_ARRAY_DESCRIPTOR accordingly.
1233 (GFC_FILL_ARRAY_DESCRIPTOR): New macro.
1234 (gfc_full_array_i4): New type.
1235 * intrinsics/date_and_time.c (secnds): Use sizeof
1236 (gfc_array_i4) + sizeof (descriptor_dimension) for memory
1238 * intrinsics/reshape_generic.c: Use GFC_FULL_ARRAY_DESCRIPTOR.
1239 * io/format.c: Use sizeof (gfc_array_i4) + sizeof
1240 (descriptor_dimension) for memoy allocation.
1241 * io/list_read.c (list_formatted_read_scalar): Use
1242 gfc_full_array_i4 for variable.
1243 (nml_read_obj): Likewise.
1244 * io/write.c (list_formatted_write_scalar): Likewise.
1245 (nml_write_obj): Likewise.
1246 * m4/reshape.m4: Use GFC_FULL_ARRAY_DESCRIPTOR.
1247 * generated/reshape_c10.c: Regenerated.
1248 * generated/reshape_c16.c: Regenerated.
1249 * generated/reshape_c4.c: Regenerated.
1250 * generated/reshape_c8.c: Regenerated.
1251 * generated/reshape_i16.c: Regenerated.
1252 * generated/reshape_i4.c: Regenerated.
1253 * generated/reshape_i8.c: Regenerated.
1254 * generated/reshape_r10.c: Regenerated.
1255 * generated/reshape_r16.c: Regenerated.
1256 * generated/reshape_r4.c: Regenerated.
1257 * generated/reshape_r8.c: Regenerated.
1259 2018-01-31 Janne Blomqvist <jb@gcc.gnu.org>
1261 * generated/cshift1_16.c (cshift1): Regenerated.
1262 * generated/cshift1_4.c (cshift1): Regenerated.
1263 * generated/cshift1_8.c (cshift1): Regenerated.
1264 * generated/eoshift1_16.c (eoshift1): Regenerated.
1265 * generated/eoshift1_4.c (eoshift1): Regenerated.
1266 * generated/eoshift1_8.c (eoshift1): Regenerated.
1267 * generated/eoshift3_16.c (eoshift3): Regenerated.
1268 * generated/eoshift3_4.c (eoshift3): Regenerated.
1269 * generated/eoshift3_8.c (eoshift3): Regenerated.
1270 * generated/in_pack_c10.c (internal_pack_c10): Regenerated.
1271 * generated/in_pack_c16.c (internal_pack_c16): Regenerated.
1272 * generated/in_pack_c4.c (internal_pack_c4): Regenerated.
1273 * generated/in_pack_c8.c (internal_pack_c8): Regenerated.
1274 * generated/in_pack_i1.c (internal_pack_1): Regenerated.
1275 * generated/in_pack_i16.c (internal_pack_16): Regenerated.
1276 * generated/in_pack_i2.c (internal_pack_2): Regenerated.
1277 * generated/in_pack_i4.c (internal_pack_4): Regenerated.
1278 * generated/in_pack_i8.c (internal_pack_8): Regenerated.
1279 * generated/in_pack_r10.c (internal_pack_r10): Regenerated.
1280 * generated/in_pack_r16.c (internal_pack_r16): Regenerated.
1281 * generated/in_pack_r4.c (internal_pack_r4): Regenerated.
1282 * generated/in_pack_r8.c (internal_pack_r8): Regenerated.
1283 * generated/in_unpack_c10.c (internal_unpack_c10): Regenerated.
1284 * generated/in_unpack_c16.c (internal_unpack_c16): Regenerated.
1285 * generated/in_unpack_c4.c (internal_unpack_c4): Regenerated.
1286 * generated/in_unpack_c8.c (internal_unpack_c8): Regenerated.
1287 * generated/in_unpack_i1.c (internal_unpack_1): Regenerated.
1288 * generated/in_unpack_i16.c (internal_unpack_16): Regenerated.
1289 * generated/in_unpack_i2.c (internal_unpack_2): Regenerated.
1290 * generated/in_unpack_i4.c (internal_unpack_4): Regenerated.
1291 * generated/in_unpack_i8.c (internal_unpack_8): Regenerated.
1292 * generated/in_unpack_r10.c (internal_unpack_r10): Regenerated.
1293 * generated/in_unpack_r16.c (internal_unpack_r16): Regenerated.
1294 * generated/in_unpack_r4.c (internal_unpack_r4): Regenerated.
1295 * generated/in_unpack_r8.c (internal_unpack_r8): Regenerated.
1296 * generated/reshape_c10.c (reshape_c10): Regenerated.
1297 * generated/reshape_c16.c (reshape_c16): Regenerated.
1298 * generated/reshape_c4.c (reshape_c4): Regenerated.
1299 * generated/reshape_c8.c (reshape_c8): Regenerated.
1300 * generated/reshape_i16.c (reshape_16): Regenerated.
1301 * generated/reshape_i4.c (reshape_4): Regenerated.
1302 * generated/reshape_i8.c (reshape_8): Regenerated.
1303 * generated/reshape_r10.c (reshape_r10): Regenerated.
1304 * generated/reshape_r16.c (reshape_r16): Regenerated.
1305 * generated/reshape_r4.c (reshape_r4): Regenerated.
1306 * generated/reshape_r8.c (reshape_r8): Regenerated.
1307 * generated/shape_i1.c (shape_1): Regenerated.
1308 * generated/shape_i16.c (shape_16): Regenerated.
1309 * generated/shape_i2.c (shape_2): Regenerated.
1310 * generated/shape_i4.c (shape_4): Regenerated.
1311 * generated/shape_i8.c (shape_8): Regenerated.
1312 * generated/spread_c10.c (spread_scalar_c10): Regenerated.
1313 * generated/spread_c16.c (spread_scalar_c16): Regenerated.
1314 * generated/spread_c4.c (spread_scalar_c4): Regenerated.
1315 * generated/spread_c8.c (spread_scalar_c8): Regenerated.
1316 * generated/spread_i1.c (spread_scalar_i1): Regenerated.
1317 * generated/spread_i16.c (spread_scalar_i16): Regenerated.
1318 * generated/spread_i2.c (spread_scalar_i2): Regenerated.
1319 * generated/spread_i4.c (spread_scalar_i4): Regenerated.
1320 * generated/spread_i8.c (spread_scalar_i8): Regenerated.
1321 * generated/spread_r10.c (spread_scalar_r10): Regenerated.
1322 * generated/spread_r16.c (spread_scalar_r16): Regenerated.
1323 * generated/spread_r4.c (spread_scalar_r4): Regenerated.
1324 * generated/spread_r8.c (spread_scalar_r8): Regenerated.
1325 * intrinsics/random.c (jump): Use size_t for array index in loop.
1326 (getosrandom): Likewise.
1327 (arandom_r4): Make n an index_type.
1328 (arandom_r8): Likewise.
1329 (arandom_r10): Likewise.
1330 (arandom_r16): Likewise.
1331 (scramble_seed): Use size_t for array index in loop.
1332 * m4/cshift1.m4: Make i an index_type.
1333 * m4/eoshift1.m4: Likewise.
1334 * m4/eoshift3.m4: Likewise.
1335 * m4/in_pack.m4: Make n an index_type.
1336 * m4/in_unpack.m4: Likewise.
1337 * m4/reshape.m4: Make n and dim index_type's.
1338 * m4/shape.m4: Make n an index_type.
1339 * m4/spread.m4: Likewise, use index_type argument rather than
1341 * runtime/bounds.c (bounds_ifunction_return): Make n an
1343 * runtime/in_pack_generic.c (internal_pack): Likewise.
1344 * runtime/in_unpack_generic.c (internal_unpack): Make n and size
1347 2018-01-30 Thomas Koenig <tkoenig@gcc.gnu.org>
1350 * libgfortran.h: Remove GFC_DTYPE_DERIVED_1, GFC_DTYPE_DERIVED_2,
1351 GFC_DTYPE_DERIVED_4, GFC_DTYPE_DERIVED_8 and GFC_DTYPE_DERIVED_16.
1352 * m4/cshift1.m4: Remove GFC_DTYPE_DERIVED_1.
1353 * generated/cshift1_16.c: Regenerated.
1354 * generated/cshift1_4.c: Regenerated.
1355 * generated/cshift1_8.c: Regenerated.
1356 * intrinsics/cshift0.c: Remove GFC_DTYPE_DERIVED_1.
1357 * intrinsics/pack_generic.c (pack): Move handling of other types
1358 into separate switch statement.
1359 * intrinsics/spread_generic.c (spread): Likewise.
1360 (spread_scalar): Likewise.
1361 * intrinsics/unpack_generic.c (unpack1): Likewise.
1362 (unpack0): Likewise.
1363 * runtime/in_pack_generic.c (internal_pack): Likewise.
1364 * runtime/in_unpack_generic.c (internal_unpack): Likewise.
1366 2018-01-25 Paul Thomas <pault@gcc.gnu.org>
1369 * caf/single.c (_gfortran_caf_failed_images): Access the 'type'
1370 and 'elem_len' fields of the dtype instead of the shifts.
1371 (_gfortran_caf_stopped_images): Likewise.
1372 * intrinsics/associated.c (associated): Compare the 'type' and
1373 'elem_len' fields instead of the dtype.
1374 * caf/date_and_time.c : Access the dtype fields rather using
1376 * io/transfer.c (transfer_array ): Comment on item count.
1377 (set_nml_var,st_set_nml_var): Change dtype type and use fields.
1378 (st_set_nml_dtio_var): Likewise.
1379 * libgfortran.h : Change definition of GFC_ARRAY_DESCRIPTOR and
1380 add a typedef for the dtype_type. Change the GFC_DTYPE_* macros
1381 to access the dtype fields.
1383 2018-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
1386 * m4/iparm.m4: Add back_arg macro if in minloc or maxloc.
1387 * m4/iforeach-s.m4: Add optional argument back with back_arg
1388 macro. Improve m4 quoting. If HAVE_BACK_ARG is defined, assert
1389 that back is non-true.
1390 * m4/iforeach.m4: Likewise.
1391 * m4/ifunction-s.m4: Likewise.
1392 * m4/ifunction.m4: Likewise.
1393 * m4/maxloc0.m4: Include assert.h
1394 * m4/minloc0.m4: Likewise.
1395 * m4/maxloc0s.m4: #define HAVE_BACK_ARG.
1396 * m4/minloc0s.m4: Likewise.
1397 * m4/maxloc1s.m4: Likewise.
1398 * m4/minloc1s.m4: Likewise.
1399 * m4/maxloc1.m4: Include assert.h, #define HAVE_BACK_ARG.
1400 * m4/minloc1.m4: Likewise.
1401 * m4/maxloc2s.m4: Add assert.h, add back_arg, assert that
1403 * m4/minloc2s.m4: Likewise.
1404 * generated/iall_i1.c: Regenerated.
1405 * generated/iall_i16.c: Regenerated.
1406 * generated/iall_i2.c: Regenerated.
1407 * generated/iall_i4.c: Regenerated.
1408 * generated/iall_i8.c: Regenerated.
1409 * generated/iany_i1.c: Regenerated.
1410 * generated/iany_i16.c: Regenerated.
1411 * generated/iany_i2.c: Regenerated.
1412 * generated/iany_i4.c: Regenerated.
1413 * generated/iany_i8.c: Regenerated.
1414 * generated/iparity_i1.c: Regenerated.
1415 * generated/iparity_i16.c: Regenerated.
1416 * generated/iparity_i2.c: Regenerated.
1417 * generated/iparity_i4.c: Regenerated.
1418 * generated/iparity_i8.c: Regenerated.
1419 * generated/maxloc0_16_i1.c: Regenerated.
1420 * generated/maxloc0_16_i16.c: Regenerated.
1421 * generated/maxloc0_16_i2.c: Regenerated.
1422 * generated/maxloc0_16_i4.c: Regenerated.
1423 * generated/maxloc0_16_i8.c: Regenerated.
1424 * generated/maxloc0_16_r10.c: Regenerated.
1425 * generated/maxloc0_16_r16.c: Regenerated.
1426 * generated/maxloc0_16_r4.c: Regenerated.
1427 * generated/maxloc0_16_r8.c: Regenerated.
1428 * generated/maxloc0_16_s1.c: Regenerated.
1429 * generated/maxloc0_16_s4.c: Regenerated.
1430 * generated/maxloc0_4_i1.c: Regenerated.
1431 * generated/maxloc0_4_i16.c: Regenerated.
1432 * generated/maxloc0_4_i2.c: Regenerated.
1433 * generated/maxloc0_4_i4.c: Regenerated.
1434 * generated/maxloc0_4_i8.c: Regenerated.
1435 * generated/maxloc0_4_r10.c: Regenerated.
1436 * generated/maxloc0_4_r16.c: Regenerated.
1437 * generated/maxloc0_4_r4.c: Regenerated.
1438 * generated/maxloc0_4_r8.c: Regenerated.
1439 * generated/maxloc0_4_s1.c: Regenerated.
1440 * generated/maxloc0_4_s4.c: Regenerated.
1441 * generated/maxloc0_8_i1.c: Regenerated.
1442 * generated/maxloc0_8_i16.c: Regenerated.
1443 * generated/maxloc0_8_i2.c: Regenerated.
1444 * generated/maxloc0_8_i4.c: Regenerated.
1445 * generated/maxloc0_8_i8.c: Regenerated.
1446 * generated/maxloc0_8_r10.c: Regenerated.
1447 * generated/maxloc0_8_r16.c: Regenerated.
1448 * generated/maxloc0_8_r4.c: Regenerated.
1449 * generated/maxloc0_8_r8.c: Regenerated.
1450 * generated/maxloc0_8_s1.c: Regenerated.
1451 * generated/maxloc0_8_s4.c: Regenerated.
1452 * generated/maxloc1_16_i1.c: Regenerated.
1453 * generated/maxloc1_16_i16.c: Regenerated.
1454 * generated/maxloc1_16_i2.c: Regenerated.
1455 * generated/maxloc1_16_i4.c: Regenerated.
1456 * generated/maxloc1_16_i8.c: Regenerated.
1457 * generated/maxloc1_16_r10.c: Regenerated.
1458 * generated/maxloc1_16_r16.c: Regenerated.
1459 * generated/maxloc1_16_r4.c: Regenerated.
1460 * generated/maxloc1_16_r8.c: Regenerated.
1461 * generated/maxloc1_16_s1.c: Regenerated.
1462 * generated/maxloc1_16_s4.c: Regenerated.
1463 * generated/maxloc1_4_i1.c: Regenerated.
1464 * generated/maxloc1_4_i16.c: Regenerated.
1465 * generated/maxloc1_4_i2.c: Regenerated.
1466 * generated/maxloc1_4_i4.c: Regenerated.
1467 * generated/maxloc1_4_i8.c: Regenerated.
1468 * generated/maxloc1_4_r10.c: Regenerated.
1469 * generated/maxloc1_4_r16.c: Regenerated.
1470 * generated/maxloc1_4_r4.c: Regenerated.
1471 * generated/maxloc1_4_r8.c: Regenerated.
1472 * generated/maxloc1_4_s1.c: Regenerated.
1473 * generated/maxloc1_4_s4.c: Regenerated.
1474 * generated/maxloc1_8_i1.c: Regenerated.
1475 * generated/maxloc1_8_i16.c: Regenerated.
1476 * generated/maxloc1_8_i2.c: Regenerated.
1477 * generated/maxloc1_8_i4.c: Regenerated.
1478 * generated/maxloc1_8_i8.c: Regenerated.
1479 * generated/maxloc1_8_r10.c: Regenerated.
1480 * generated/maxloc1_8_r16.c: Regenerated.
1481 * generated/maxloc1_8_r4.c: Regenerated.
1482 * generated/maxloc1_8_r8.c: Regenerated.
1483 * generated/maxloc1_8_s1.c: Regenerated.
1484 * generated/maxloc1_8_s4.c: Regenerated.
1485 * generated/maxval_i1.c: Regenerated.
1486 * generated/maxval_i16.c: Regenerated.
1487 * generated/maxval_i2.c: Regenerated.
1488 * generated/maxval_i4.c: Regenerated.
1489 * generated/maxval_i8.c: Regenerated.
1490 * generated/maxval_r10.c: Regenerated.
1491 * generated/maxval_r16.c: Regenerated.
1492 * generated/maxval_r4.c: Regenerated.
1493 * generated/maxval_r8.c: Regenerated.
1494 * generated/minloc0_16_i1.c: Regenerated.
1495 * generated/minloc0_16_i16.c: Regenerated.
1496 * generated/minloc0_16_i2.c: Regenerated.
1497 * generated/minloc0_16_i4.c: Regenerated.
1498 * generated/minloc0_16_i8.c: Regenerated.
1499 * generated/minloc0_16_r10.c: Regenerated.
1500 * generated/minloc0_16_r16.c: Regenerated.
1501 * generated/minloc0_16_r4.c: Regenerated.
1502 * generated/minloc0_16_r8.c: Regenerated.
1503 * generated/minloc0_16_s1.c: Regenerated.
1504 * generated/minloc0_16_s4.c: Regenerated.
1505 * generated/minloc0_4_i1.c: Regenerated.
1506 * generated/minloc0_4_i16.c: Regenerated.
1507 * generated/minloc0_4_i2.c: Regenerated.
1508 * generated/minloc0_4_i4.c: Regenerated.
1509 * generated/minloc0_4_i8.c: Regenerated.
1510 * generated/minloc0_4_r10.c: Regenerated.
1511 * generated/minloc0_4_r16.c: Regenerated.
1512 * generated/minloc0_4_r4.c: Regenerated.
1513 * generated/minloc0_4_r8.c: Regenerated.
1514 * generated/minloc0_4_s1.c: Regenerated.
1515 * generated/minloc0_4_s4.c: Regenerated.
1516 * generated/minloc0_8_i1.c: Regenerated.
1517 * generated/minloc0_8_i16.c: Regenerated.
1518 * generated/minloc0_8_i2.c: Regenerated.
1519 * generated/minloc0_8_i4.c: Regenerated.
1520 * generated/minloc0_8_i8.c: Regenerated.
1521 * generated/minloc0_8_r10.c: Regenerated.
1522 * generated/minloc0_8_r16.c: Regenerated.
1523 * generated/minloc0_8_r4.c: Regenerated.
1524 * generated/minloc0_8_r8.c: Regenerated.
1525 * generated/minloc0_8_s1.c: Regenerated.
1526 * generated/minloc0_8_s4.c: Regenerated.
1527 * generated/minloc1_16_i1.c: Regenerated.
1528 * generated/minloc1_16_i16.c: Regenerated.
1529 * generated/minloc1_16_i2.c: Regenerated.
1530 * generated/minloc1_16_i4.c: Regenerated.
1531 * generated/minloc1_16_i8.c: Regenerated.
1532 * generated/minloc1_16_r10.c: Regenerated.
1533 * generated/minloc1_16_r16.c: Regenerated.
1534 * generated/minloc1_16_r4.c: Regenerated.
1535 * generated/minloc1_16_r8.c: Regenerated.
1536 * generated/minloc1_16_s1.c: Regenerated.
1537 * generated/minloc1_16_s4.c: Regenerated.
1538 * generated/minloc1_4_i1.c: Regenerated.
1539 * generated/minloc1_4_i16.c: Regenerated.
1540 * generated/minloc1_4_i2.c: Regenerated.
1541 * generated/minloc1_4_i4.c: Regenerated.
1542 * generated/minloc1_4_i8.c: Regenerated.
1543 * generated/minloc1_4_r10.c: Regenerated.
1544 * generated/minloc1_4_r16.c: Regenerated.
1545 * generated/minloc1_4_r4.c: Regenerated.
1546 * generated/minloc1_4_r8.c: Regenerated.
1547 * generated/minloc1_4_s1.c: Regenerated.
1548 * generated/minloc1_4_s4.c: Regenerated.
1549 * generated/minloc1_8_i1.c: Regenerated.
1550 * generated/minloc1_8_i16.c: Regenerated.
1551 * generated/minloc1_8_i2.c: Regenerated.
1552 * generated/minloc1_8_i4.c: Regenerated.
1553 * generated/minloc1_8_i8.c: Regenerated.
1554 * generated/minloc1_8_r10.c: Regenerated.
1555 * generated/minloc1_8_r16.c: Regenerated.
1556 * generated/minloc1_8_r4.c: Regenerated.
1557 * generated/minloc1_8_r8.c: Regenerated.
1558 * generated/minloc1_8_s1.c: Regenerated.
1559 * generated/minloc1_8_s4.c: Regenerated.
1560 * generated/minval_i1.c: Regenerated.
1561 * generated/minval_i16.c: Regenerated.
1562 * generated/minval_i2.c: Regenerated.
1563 * generated/minval_i4.c: Regenerated.
1564 * generated/minval_i8.c: Regenerated.
1565 * generated/minval_r10.c: Regenerated.
1566 * generated/minval_r16.c: Regenerated.
1567 * generated/minval_r4.c: Regenerated.
1568 * generated/minval_r8.c: Regenerated.
1569 * generated/norm2_r10.c: Regenerated.
1570 * generated/norm2_r16.c: Regenerated.
1571 * generated/norm2_r4.c: Regenerated.
1572 * generated/norm2_r8.c: Regenerated.
1573 * generated/parity_l1.c: Regenerated.
1574 * generated/parity_l16.c: Regenerated.
1575 * generated/parity_l2.c: Regenerated.
1576 * generated/parity_l4.c: Regenerated.
1577 * generated/parity_l8.c: Regenerated.
1578 * generated/product_c10.c: Regenerated.
1579 * generated/product_c16.c: Regenerated.
1580 * generated/product_c4.c: Regenerated.
1581 * generated/product_c8.c: Regenerated.
1582 * generated/product_i1.c: Regenerated.
1583 * generated/product_i16.c: Regenerated.
1584 * generated/product_i2.c: Regenerated.
1585 * generated/product_i4.c: Regenerated.
1586 * generated/product_i8.c: Regenerated.
1587 * generated/product_r10.c: Regenerated.
1588 * generated/product_r16.c: Regenerated.
1589 * generated/product_r4.c: Regenerated.
1590 * generated/product_r8.c: Regenerated.
1591 * generated/sum_c10.c: Regenerated.
1592 * generated/sum_c16.c: Regenerated.
1593 * generated/sum_c4.c: Regenerated.
1594 * generated/sum_c8.c: Regenerated.
1595 * generated/sum_i1.c: Regenerated.
1596 * generated/sum_i16.c: Regenerated.
1597 * generated/sum_i2.c: Regenerated.
1598 * generated/sum_i4.c: Regenerated.
1599 * generated/sum_i8.c: Regenerated.
1600 * generated/sum_r10.c: Regenerated.
1601 * generated/sum_r16.c: Regenerated.
1602 * generated/sum_r4.c: Regenerated.
1603 * generated/sum_r8.c: Regenerated.
1605 2018-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
1607 PR libgfortran/83811
1608 * write.c (select_buffer): Adjust buffer size up by 1.
1610 2018-01-08 Janne Blomqvist <jb@gcc.gnu.org>
1612 PR 78534, bugfix for r256322
1613 * io/transfer.c (next_record_w): Use correct type for return value
1614 of next_array_record.
1616 2018-01-07 Thomas Koenig <tkoenig@gcc.gnu.org>
1618 * libgfortran.h (GFC_DTYPE_COPY): New macro.
1619 (GFC_DTYPE_COPY_SETRANK): New macro.
1620 (GFC_DTYPE_IS_UNSET): New macro.
1621 * intrinsics/cshift0.c (cshift0): Use new macros.
1622 * intrinsics/eoshift0.c (eoshift0): Likewise.
1623 * intrinsics/eoshift2.c (eoshift2): Likewise.
1624 * intrinsics/move_alloc.c (move_alloc): Likewise.
1625 * intrinsics/reshape_generic.c (reshape_internal): Likewise.
1626 * intrinsics/spread_generic.c (spread_internal): Likewise.
1627 * intrinsics/spread_generic.c (spread_scalar): Likewise.
1628 * intrinsics/spread_generic.c (spread_char_scalar): Likewise.
1629 * intrinsics/spread_generic.c (spread_char4_scalar): Likewise.
1630 * intrinsics/unpack_generic.c (unpack0): Likewise.
1631 * intrinsics/unpack_generic.c (unpack0_char): Likewise.
1632 * intrinsics/unpack_generic.c (unpack0_char4): Likewise.
1633 * m4/cshift1.m4 (cshift1): Likewise.
1634 * m4/eoshift1.m4 (eoshift1): Likewise.
1635 * m4/eoshift3.m4 (eoshift3): Likewise.
1636 * m4/iforeach-s.m4: Likewise.
1637 * m4/iforeach.m4: Likewise.
1638 * m4/ifunction-s.m4: Likewise.
1639 * m4/ifunction-s2.m4: Likewise.
1640 * m4/ifunction.m4: Likewise.
1641 * m4/ifunction_logical.m4: Likewise.
1642 * m4/reshape.m4: Likewise.
1643 * m4/spread.m4: Likewise.
1644 * generated/all_l1.c : Regenerated.
1645 * generated/all_l16.c : Regenerated.
1646 * generated/all_l2.c : Regenerated.
1647 * generated/all_l4.c : Regenerated.
1648 * generated/all_l8.c : Regenerated.
1649 * generated/any_l1.c : Regenerated.
1650 * generated/any_l16.c : Regenerated.
1651 * generated/any_l2.c : Regenerated.
1652 * generated/any_l4.c : Regenerated.
1653 * generated/any_l8.c : Regenerated.
1654 * generated/count_16_l.c : Regenerated.
1655 * generated/count_1_l.c : Regenerated.
1656 * generated/count_2_l.c : Regenerated.
1657 * generated/count_4_l.c : Regenerated.
1658 * generated/count_8_l.c : Regenerated.
1659 * generated/cshift1_16.c : Regenerated.
1660 * generated/cshift1_4.c : Regenerated.
1661 * generated/cshift1_8.c : Regenerated.
1662 * generated/eoshift1_16.c : Regenerated.
1663 * generated/eoshift1_4.c : Regenerated.
1664 * generated/eoshift1_8.c : Regenerated.
1665 * generated/eoshift3_16.c : Regenerated.
1666 * generated/eoshift3_4.c : Regenerated.
1667 * generated/eoshift3_8.c : Regenerated.
1668 * generated/iall_i1.c : Regenerated.
1669 * generated/iall_i16.c : Regenerated.
1670 * generated/iall_i2.c : Regenerated.
1671 * generated/iall_i4.c : Regenerated.
1672 * generated/iall_i8.c : Regenerated.
1673 * generated/iany_i1.c : Regenerated.
1674 * generated/iany_i16.c : Regenerated.
1675 * generated/iany_i2.c : Regenerated.
1676 * generated/iany_i4.c : Regenerated.
1677 * generated/iany_i8.c : Regenerated.
1678 * generated/iparity_i1.c : Regenerated.
1679 * generated/iparity_i16.c : Regenerated.
1680 * generated/iparity_i2.c : Regenerated.
1681 * generated/iparity_i4.c : Regenerated.
1682 * generated/iparity_i8.c : Regenerated.
1683 * generated/maxloc0_16_i1.c : Regenerated.
1684 * generated/maxloc0_16_i16.c : Regenerated.
1685 * generated/maxloc0_16_i2.c : Regenerated.
1686 * generated/maxloc0_16_i4.c : Regenerated.
1687 * generated/maxloc0_16_i8.c : Regenerated.
1688 * generated/maxloc0_16_r10.c : Regenerated.
1689 * generated/maxloc0_16_r16.c : Regenerated.
1690 * generated/maxloc0_16_r4.c : Regenerated.
1691 * generated/maxloc0_16_r8.c : Regenerated.
1692 * generated/maxloc0_16_s1.c : Regenerated.
1693 * generated/maxloc0_16_s4.c : Regenerated.
1694 * generated/maxloc0_4_i1.c : Regenerated.
1695 * generated/maxloc0_4_i16.c : Regenerated.
1696 * generated/maxloc0_4_i2.c : Regenerated.
1697 * generated/maxloc0_4_i4.c : Regenerated.
1698 * generated/maxloc0_4_i8.c : Regenerated.
1699 * generated/maxloc0_4_r10.c : Regenerated.
1700 * generated/maxloc0_4_r16.c : Regenerated.
1701 * generated/maxloc0_4_r4.c : Regenerated.
1702 * generated/maxloc0_4_r8.c : Regenerated.
1703 * generated/maxloc0_4_s1.c : Regenerated.
1704 * generated/maxloc0_4_s4.c : Regenerated.
1705 * generated/maxloc0_8_i1.c : Regenerated.
1706 * generated/maxloc0_8_i16.c : Regenerated.
1707 * generated/maxloc0_8_i2.c : Regenerated.
1708 * generated/maxloc0_8_i4.c : Regenerated.
1709 * generated/maxloc0_8_i8.c : Regenerated.
1710 * generated/maxloc0_8_r10.c : Regenerated.
1711 * generated/maxloc0_8_r16.c : Regenerated.
1712 * generated/maxloc0_8_r4.c : Regenerated.
1713 * generated/maxloc0_8_r8.c : Regenerated.
1714 * generated/maxloc0_8_s1.c : Regenerated.
1715 * generated/maxloc0_8_s4.c : Regenerated.
1716 * generated/maxloc1_16_i1.c : Regenerated.
1717 * generated/maxloc1_16_i16.c : Regenerated.
1718 * generated/maxloc1_16_i2.c : Regenerated.
1719 * generated/maxloc1_16_i4.c : Regenerated.
1720 * generated/maxloc1_16_i8.c : Regenerated.
1721 * generated/maxloc1_16_r10.c : Regenerated.
1722 * generated/maxloc1_16_r16.c : Regenerated.
1723 * generated/maxloc1_16_r4.c : Regenerated.
1724 * generated/maxloc1_16_r8.c : Regenerated.
1725 * generated/maxloc1_16_s1.c : Regenerated.
1726 * generated/maxloc1_16_s4.c : Regenerated.
1727 * generated/maxloc1_4_i1.c : Regenerated.
1728 * generated/maxloc1_4_i16.c : Regenerated.
1729 * generated/maxloc1_4_i2.c : Regenerated.
1730 * generated/maxloc1_4_i4.c : Regenerated.
1731 * generated/maxloc1_4_i8.c : Regenerated.
1732 * generated/maxloc1_4_r10.c : Regenerated.
1733 * generated/maxloc1_4_r16.c : Regenerated.
1734 * generated/maxloc1_4_r4.c : Regenerated.
1735 * generated/maxloc1_4_r8.c : Regenerated.
1736 * generated/maxloc1_4_s1.c : Regenerated.
1737 * generated/maxloc1_4_s4.c : Regenerated.
1738 * generated/maxloc1_8_i1.c : Regenerated.
1739 * generated/maxloc1_8_i16.c : Regenerated.
1740 * generated/maxloc1_8_i2.c : Regenerated.
1741 * generated/maxloc1_8_i4.c : Regenerated.
1742 * generated/maxloc1_8_i8.c : Regenerated.
1743 * generated/maxloc1_8_r10.c : Regenerated.
1744 * generated/maxloc1_8_r16.c : Regenerated.
1745 * generated/maxloc1_8_r4.c : Regenerated.
1746 * generated/maxloc1_8_r8.c : Regenerated.
1747 * generated/maxloc1_8_s1.c : Regenerated.
1748 * generated/maxloc1_8_s4.c : Regenerated.
1749 * generated/maxval1_s1.c : Regenerated.
1750 * generated/maxval1_s4.c : Regenerated.
1751 * generated/maxval_i1.c : Regenerated.
1752 * generated/maxval_i16.c : Regenerated.
1753 * generated/maxval_i2.c : Regenerated.
1754 * generated/maxval_i4.c : Regenerated.
1755 * generated/maxval_i8.c : Regenerated.
1756 * generated/maxval_r10.c : Regenerated.
1757 * generated/maxval_r16.c : Regenerated.
1758 * generated/maxval_r4.c : Regenerated.
1759 * generated/maxval_r8.c : Regenerated.
1760 * generated/minloc0_16_i1.c : Regenerated.
1761 * generated/minloc0_16_i16.c : Regenerated.
1762 * generated/minloc0_16_i2.c : Regenerated.
1763 * generated/minloc0_16_i4.c : Regenerated.
1764 * generated/minloc0_16_i8.c : Regenerated.
1765 * generated/minloc0_16_r10.c : Regenerated.
1766 * generated/minloc0_16_r16.c : Regenerated.
1767 * generated/minloc0_16_r4.c : Regenerated.
1768 * generated/minloc0_16_r8.c : Regenerated.
1769 * generated/minloc0_16_s1.c : Regenerated.
1770 * generated/minloc0_16_s4.c : Regenerated.
1771 * generated/minloc0_4_i1.c : Regenerated.
1772 * generated/minloc0_4_i16.c : Regenerated.
1773 * generated/minloc0_4_i2.c : Regenerated.
1774 * generated/minloc0_4_i4.c : Regenerated.
1775 * generated/minloc0_4_i8.c : Regenerated.
1776 * generated/minloc0_4_r10.c : Regenerated.
1777 * generated/minloc0_4_r16.c : Regenerated.
1778 * generated/minloc0_4_r4.c : Regenerated.
1779 * generated/minloc0_4_r8.c : Regenerated.
1780 * generated/minloc0_4_s1.c : Regenerated.
1781 * generated/minloc0_4_s4.c : Regenerated.
1782 * generated/minloc0_8_i1.c : Regenerated.
1783 * generated/minloc0_8_i16.c : Regenerated.
1784 * generated/minloc0_8_i2.c : Regenerated.
1785 * generated/minloc0_8_i4.c : Regenerated.
1786 * generated/minloc0_8_i8.c : Regenerated.
1787 * generated/minloc0_8_r10.c : Regenerated.
1788 * generated/minloc0_8_r16.c : Regenerated.
1789 * generated/minloc0_8_r4.c : Regenerated.
1790 * generated/minloc0_8_r8.c : Regenerated.
1791 * generated/minloc0_8_s1.c : Regenerated.
1792 * generated/minloc0_8_s4.c : Regenerated.
1793 * generated/minloc1_16_i1.c : Regenerated.
1794 * generated/minloc1_16_i16.c : Regenerated.
1795 * generated/minloc1_16_i2.c : Regenerated.
1796 * generated/minloc1_16_i4.c : Regenerated.
1797 * generated/minloc1_16_i8.c : Regenerated.
1798 * generated/minloc1_16_r10.c : Regenerated.
1799 * generated/minloc1_16_r16.c : Regenerated.
1800 * generated/minloc1_16_r4.c : Regenerated.
1801 * generated/minloc1_16_r8.c : Regenerated.
1802 * generated/minloc1_16_s1.c : Regenerated.
1803 * generated/minloc1_16_s4.c : Regenerated.
1804 * generated/minloc1_4_i1.c : Regenerated.
1805 * generated/minloc1_4_i16.c : Regenerated.
1806 * generated/minloc1_4_i2.c : Regenerated.
1807 * generated/minloc1_4_i4.c : Regenerated.
1808 * generated/minloc1_4_i8.c : Regenerated.
1809 * generated/minloc1_4_r10.c : Regenerated.
1810 * generated/minloc1_4_r16.c : Regenerated.
1811 * generated/minloc1_4_r4.c : Regenerated.
1812 * generated/minloc1_4_r8.c : Regenerated.
1813 * generated/minloc1_4_s1.c : Regenerated.
1814 * generated/minloc1_4_s4.c : Regenerated.
1815 * generated/minloc1_8_i1.c : Regenerated.
1816 * generated/minloc1_8_i16.c : Regenerated.
1817 * generated/minloc1_8_i2.c : Regenerated.
1818 * generated/minloc1_8_i4.c : Regenerated.
1819 * generated/minloc1_8_i8.c : Regenerated.
1820 * generated/minloc1_8_r10.c : Regenerated.
1821 * generated/minloc1_8_r16.c : Regenerated.
1822 * generated/minloc1_8_r4.c : Regenerated.
1823 * generated/minloc1_8_r8.c : Regenerated.
1824 * generated/minloc1_8_s1.c : Regenerated.
1825 * generated/minloc1_8_s4.c : Regenerated.
1826 * generated/minval1_s1.c : Regenerated.
1827 * generated/minval1_s4.c : Regenerated.
1828 * generated/minval_i1.c : Regenerated.
1829 * generated/minval_i16.c : Regenerated.
1830 * generated/minval_i2.c : Regenerated.
1831 * generated/minval_i4.c : Regenerated.
1832 * generated/minval_i8.c : Regenerated.
1833 * generated/minval_r10.c : Regenerated.
1834 * generated/minval_r16.c : Regenerated.
1835 * generated/minval_r4.c : Regenerated.
1836 * generated/minval_r8.c : Regenerated.
1837 * generated/norm2_r10.c : Regenerated.
1838 * generated/norm2_r16.c : Regenerated.
1839 * generated/norm2_r4.c : Regenerated.
1840 * generated/norm2_r8.c : Regenerated.
1841 * generated/parity_l1.c : Regenerated.
1842 * generated/parity_l16.c : Regenerated.
1843 * generated/parity_l2.c : Regenerated.
1844 * generated/parity_l4.c : Regenerated.
1845 * generated/parity_l8.c : Regenerated.
1846 * generated/product_c10.c : Regenerated.
1847 * generated/product_c16.c : Regenerated.
1848 * generated/product_c4.c : Regenerated.
1849 * generated/product_c8.c : Regenerated.
1850 * generated/product_i1.c : Regenerated.
1851 * generated/product_i16.c : Regenerated.
1852 * generated/product_i2.c : Regenerated.
1853 * generated/product_i4.c : Regenerated.
1854 * generated/product_i8.c : Regenerated.
1855 * generated/product_r10.c : Regenerated.
1856 * generated/product_r16.c : Regenerated.
1857 * generated/product_r4.c : Regenerated.
1858 * generated/product_r8.c : Regenerated.
1859 * generated/reshape_c10.c : Regenerated.
1860 * generated/reshape_c16.c : Regenerated.
1861 * generated/reshape_c4.c : Regenerated.
1862 * generated/reshape_c8.c : Regenerated.
1863 * generated/reshape_i16.c : Regenerated.
1864 * generated/reshape_i4.c : Regenerated.
1865 * generated/reshape_i8.c : Regenerated.
1866 * generated/reshape_r10.c : Regenerated.
1867 * generated/reshape_r16.c : Regenerated.
1868 * generated/reshape_r4.c : Regenerated.
1869 * generated/reshape_r8.c : Regenerated.
1870 * generated/spread_c10.c : Regenerated.
1871 * generated/spread_c16.c : Regenerated.
1872 * generated/spread_c4.c : Regenerated.
1873 * generated/spread_c8.c : Regenerated.
1874 * generated/spread_i1.c : Regenerated.
1875 * generated/spread_i16.c : Regenerated.
1876 * generated/spread_i2.c : Regenerated.
1877 * generated/spread_i4.c : Regenerated.
1878 * generated/spread_i8.c : Regenerated.
1879 * generated/spread_r10.c : Regenerated.
1880 * generated/spread_r16.c : Regenerated.
1881 * generated/spread_r4.c : Regenerated.
1882 * generated/spread_r8.c : Regenerated.
1883 * generated/sum_c10.c : Regenerated.
1884 * generated/sum_c16.c : Regenerated.
1885 * generated/sum_c4.c : Regenerated.
1886 * generated/sum_c8.c : Regenerated.
1887 * generated/sum_i1.c : Regenerated.
1888 * generated/sum_i16.c : Regenerated.
1889 * generated/sum_i2.c : Regenerated.
1890 * generated/sum_i4.c : Regenerated.
1891 * generated/sum_i8.c : Regenerated.
1892 * generated/sum_r10.c : Regenerated.
1893 * generated/sum_r16.c : Regenerated.
1894 * generated/sum_r4.c : Regenerated.
1895 * generated/sum_r8.c : Regenerated.
1897 2018-01-07 Janne Blomqvist <jb@gcc.gnu.org>
1901 * io/fbuf.c (fbuf_init): Use size_t instead of int for length.
1902 (fbuf_debug): Convert debug output to unsigned long.
1903 (fbuf_reset): Use ptrdiff_t for return value.
1904 (fbuf_alloc): Use size_t for length argument.
1905 (fbuf_flush): Handle large buffers.
1906 (fbuf_flush_list): Likewise.
1907 (fbuf_seek): Use ptrdiff_t for offset and return value.
1908 (fbuf_read): Use size_t for length argument.
1909 (fbuf_getc_refill): Use size_t to match fbuf_read.
1910 * io/fbuf.h (struct fbuf): Use size_t for lengths.
1911 (fbuf_init): Use size_t instead of int for length.
1912 (fbuf_reset): Use ptrdiff_t for return value.
1913 (fbuf_alloc): Use size_t for length argument.
1914 (fbuf_seek): Use ptrdiff_t for offset and return value.
1915 (fbuf_read): Use size_t for length argument.
1916 * io/io.h (read_block_form): Likewise.
1917 (read_block_form4): Likewise.
1918 (write_block): Likewise.
1920 (read_a_char4): Likewise.
1922 (write_a): Likewise.
1923 (write_a_char4): Likewise.
1924 * io/list_read.c (list_formatted_read_scalar): Use size_t to
1925 handle large buffers.
1926 * io/read.c (read_l): Likewise.
1927 (read_utf8): Likewise.
1928 (read_utf8_char1): Likewise.
1929 (read_default_char1): Likewise.
1930 (read_utf8_char4): Likewise.
1931 (read_default_char4): Likewise.
1933 (read_a_char4): Likewise.
1934 (eat_leading_spaces): Likewise.
1935 (next_char): Likewise.
1936 (read_decimal): Likewise.
1937 (read_radix): Likewise.
1940 * io/transfer.c (read_sf_internal): Likewise.
1941 (read_sf): Likewise.
1942 (read_block_form): Likewise.
1943 (read_block_form4): Likewise.
1944 (write_block): Likewise.
1945 (formatted_transfer_scalar_write): Likewise.
1946 (next_record_w): Likewise.
1947 * io/unix.c (mem_alloc_r): Likewise.
1948 (mem_alloc_r4): Likewise.
1949 (mem_alloc_w): Likewise.
1950 (mem_alloc_w4): Likewise.
1951 (mem_read): Likewise.
1952 (mem_read4): Likewise.
1953 (mem_write): Likewise.
1954 (mem_write4): Likewise.
1955 (open_internal): Likewise.
1956 (open_internal4): Likewise.
1957 * io/unix.h (open_internal): Likewise.
1958 (open_internal4): Likewise.
1959 (mem_alloc_w): Likewise.
1960 (mem_alloc_r): Likewise.
1961 (mem_alloc_w4): Likewise.
1962 (mem_alloc_r4): Likewise.
1963 * io/write.c (write_check_cc): Likewise.
1964 (write_cc): Likewise.
1965 (write_a): Likewise.
1966 (write_a_char4): Likewise.
1968 2018-01-06 Janne Blomqvist <jb@gcc.gnu.org>
1970 * io/write.c (namelist_write): Remove unused variable "i".
1972 2018-01-06 Dominique d'Humieres <dominiq@lps.ens.fr>
1973 Janne Blomqvist <jb@gcc.gnu.org>
1976 * io/write.c (write_character): Use size_t instead of int for
1979 2018-01-05 Janne Blomqvist <jb@gcc.gnu.org>
1982 * intrinsics/args.c (getarg_i4): Use gfc_charlen_type.
1983 (get_command_argument_i4): Likewise.
1984 (get_command_i4): Likewise.
1985 * intrinsics/chmod.c (chmod_internal): Likewise.
1986 * intrinsics/env.c (get_environment_variable_i4): Likewise.
1987 * intrinsics/extends_type_of.c (struct vtype): Use size_t for size
1989 * intrinsics/gerror.c (gerror): Use gfc_charlen_type.
1990 * intrinsics/getlog.c (getlog): Likewise.
1991 * intrinsics/hostnm.c (hostnm_0): Likewise.
1992 * intrinsics/string_intrinsics_inc.c (string_len_trim): Rework to
1993 work if gfc_charlen_type is unsigned.
1994 (string_scan): Likewise.
1995 * io/transfer.c (transfer_character): Modify prototype.
1996 (transfer_character_write): Likewise.
1997 (transfer_character_wide): Likewise.
1998 (transfer_character_wide_write): Likewise.
1999 (transfer_array): Typecast to avoid signed-unsigned comparison.
2000 * io/unit.c (is_trim_ok): Use gfc_charlen_type.
2001 * io/write.c (namelist_write): Likewise.
2002 * libgfortran.h (gfc_charlen_type): Change typedef to size_t.
2004 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2006 Update copyright years.
2008 2018-01-02 Janne Blomqvist <jb@gcc.gnu.org>
2010 PR libgfortran/83649
2011 * io/unix.c (MAX_CHUNK): New define.
2012 (raw_read): For reads larger than MAX_CHUNK, loop.
2013 (raw_write): Write no more than MAX_CHUNK bytes per iteration.
2015 Copyright (C) 2018 Free Software Foundation, Inc.
2017 Copying and distribution of this file, with or without modification,
2018 are permitted in any medium without royalty provided the copyright
2019 notice and this notice are preserved.