]> gcc.gnu.org Git - gcc.git/blame - gcc/fortran/ChangeLog
search.c (check_final_overrider): Use inform instead of error for the diagnostics...
[gcc.git] / gcc / fortran / ChangeLog
CommitLineData
a48718a2
TK
12018-03-26 Thomas Koenig <tkoenig@gcc.gnu.org>
2
3 PR fortran/66709
4 * io.c: Include constructor.h.
5 (resolve_tag_format): For a constant character array, concatenate
6 into a single character expression.
7
a2b471e4
SJ
82018-03-25 Seth Johnson <johnsonsr@ornl.gov>
9 Dominique d'Humieres <dominiq@gcc.gnu.org>
10
11 PR fortran/84924
12 * check.c (gfc_check_c_f_pointer): Allow scalar noninteroperable
13 scalar derived type with -std=f2003 and -std=f2008.
14
8954606d
JD
152018-03-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16 Dominique d'Humieres <dominiq@gcc.gnu.org>
17
12056b7c 18 PR fortran/69497
8954606d
JD
19 * symbol.c (gfc_free_namespace): Delete the assert and only if
20 refs count is equals zero, free the namespace. Otherwise,
21 something is halfway and other errors will resound.
22
335d0338
TK
232018-03-24 Thomas Koenig <tkoenig@gcc.gnu.org>
24
25 PR fortran/70068
26 * expr.c (find_substring_ref): Change types of start, end
27 and length variables to gfc_charlen_t. Set length to zero
28 for empty substring.
29
ba77f7ba
SK
302018-03-24 Steven G. Kargl <kargl@gcc.gnu.org>
31
32 PR fortran/42651
33 * decl.c (check_function_name): Improved error message
34 (gfc_match_volatile, gfc_match_asynchronous) Use check_function_name.
35
b74fa126
SK
362018-03-22 Steven G. Kargl <kargl@gcc.gnu.org>
37
38 PR fortran/84922
39 * decl.c (get_proc_name): If the MODULE prefix appears in interface
40 body, then it must appear on the contained subroutine or function.
41 While here, fix nearby mis-indented code.
42
482768bd
TK
432018-03-21 Thomas Koenig <tkoenig@gcc.gnu.org>
44 Harald Anlauf <anlauf@gmx.de>
45
46 PR fortran/84957
47 * trans-types.c (gfc_sym_type): Do not dereference NULL pointer.
48
983d49dd
JB
492018-03-21 Janne Blomqvist <jb@gcc.gnu.org>
50
51 PR fortran/84615
52 * trans-expr.c (gfc_conv_procedure_call): Convert charlen to
53 gfc_charlen_type_node when calling procedure.
54
f11600c9
SK
552018-03-20 Steven G. Kargl <kargl@gcc.gnu.org>
56
57 PR fortran/85001
58 * interface.c (symbol_rank): Remove bogus null pointer check that
983d49dd 59 crept in when translating a ternary operator into an if-else
f11600c9
SK
60 constructor.
61
949d0060
TK
622018-03-19 Thomas Koenig <tkoenig@gcc.gnu.org>
63
64 PR fortran/84931
65 * simplify.c (gfc_convert_constant): Correctly handle iterators
66 for type conversion.
67
96c8b253
SK
682018-03-18 Steven G. Kargl <kargl@gcc.gnu.org>
69
70 PR fortran/77414
71 * decl.c (get_proc_name): Check for a subroutine re-defined in
72 the contain portion of a subroutine. Change language of existing
73 error message to better describe the issue. While here fix whitespace
74 issues.
75
81ea7c11
SK
762018-03-18 Steven G. Kargl <kargl@gcc.gnu.org>
77
78 PR fortran/65453
79 * decl.c (get_proc_name): Catch clash between a procedure statement
80 and a contained subprogram
81
299ab1b2
SK
822018-03-16 Steven G. Kargl <kargl@gcc.gnu.org>
83
84 PR fortran/69395
85 * decl.c (merge_array_spec): Correct the error condition.
86
64300da7
SK
872018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
88
89 PR fortran/78741
90 * decl.c (get_proc_name): Check for clash of entry name with
91 subroutine name.
92
93d1ab50
SK
932018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
94
95 PR fortran/69395
96 * decl.c (merge_array_spec): Limit the merging to maximum allowed
97 dimensions, and issue error message if limit is exceeded.
98
17164de4
SK
992018-03-13 Steven G. Kargl <kargl@gcc.gnu.org>
100
101 * check.c (gfc_check_kill_sub): Remove check for INTEGER(4) or (8).
102 * intrinsic.c (add_functions): Remove reference to gfc_resolve_kill.
103 (add_subroutines): Remove reference to gfc_resolve_kill_sub.
104 * intrinsic.texi: Update documentation.
105 * iresolve.c (gfc_resolve_kill, gfc_resolve_kill_sub): Remove.
106 * trans-decl.c (gfc_build_intrinsic_function_decls): Add
107 gfor_fndecl_kill and gfor_fndecl_kill_sub
108 * trans-intrinsic.c (conv_intrinsic_kill, conv_intrinsic_kill_sub): new
109 functions.
110 (gfc_conv_intrinsic_function): Use conv_intrinsic_kill.
111 (gfc_conv_intrinsic_subroutine): Use conv_intrinsic_kill_sub.
112 * trans.h: Declare gfor_fndecl_kill and gfor_fndecl_kill_sub.
113
26219cee
PT
1142018-03-11 Paul Thomas <pault@gcc.gnu.org>
115
116 PR fortran/84546
117 * trans-array.c (structure_alloc_comps): Make sure that the
118 vptr is copied and that the unlimited polymorphic _len is used
119 to compute the size to be allocated.
120 * trans-expr.c (gfc_get_class_array_ref): If unlimited, use the
121 unlimited polymorphic _len for the offset to the element.
122 (gfc_copy_class_to_class): Set the new 'unlimited' argument.
123 * trans.h : Add the boolean 'unlimited' to the prototype.
1813c97a
SK
124
1252018-03-11 Steven G. Kargl <kargl@gcc.gnu.org>
126
127 PR fortran/83939
128 * resolve.c (resolve_fl_procedure): Enforce F2018:C15100.
129
fbe1f017
SK
1302018-03-11 Steven G. Kargl <kargls@gcc.gnu.org>
131
132 * check.c (gfc_check_kill): Check pid and sig are scalar.
133 (gfc_check_kill_sub): Restrict kind to 4 and 8.
134 * intrinsic.c (add_function): Sort keyword list. Add pid and sig
135 keywords for KILL. Remove redundant *back="back" in favor of the
136 original *bck="back".
137 (add_subroutines): Sort keyword list. Add pid and sig keywords
138 for KILL.
139 * intrinsic.texi: Fix documentation to consistently use pid and sig.
140 * iresolve.c (gfc_resolve_kill): Kind can only be 4 or 8. Choose the
141 correct function.
142 (gfc_resolve_rename_sub): Add comment.
143
1442018-03-11 Thomas Koenig <tkoenig@gcc.gnu.org>
6f76317a
TK
145
146 PR fortran/66128
147 * simplify.c (simplify_transformation): Return default result for
148 empty array argument.
149 (gfc_simplify_all): Remove special-case handling for zerosize.
150 (gfc_simplify_any): Likewise.
151 (gfc_simplify_count): Likewise.
152 (gfc_simplify_iall): Likewise.
153 (gfc_simplify_iany): Likewise.
154 (gfc_simplify_iparity): Likewise.
155 (gfc_simplify_minval): Likewise.
156 (gfc_simplify_maxval): Likewise.
157 (gfc_simplify_norm2): Likewise.
158 (gfc_simplify_product): Likewise.
159 (gfc_simplify_sum): Likewise.
160
7d2fb01c
SK
1612018-03-10 Steven G. Kargl <kargl@gcc.gnu.org>
162
163 PR fortran/84734
164 * arith.c (check_result, eval_intrinsic): If result overflows, pass
165 the expression up the chain instead of a NULL pointer.
166
00df7c36
SK
1672018-03-07 Steven G. Kargl <kargl@gcc.gnu.org>
168
169 PR fortran/64124
170 PR fortran/70409
171 * decl.c (gfc_match_char_spec): Try to reduce a charlen to a constant.
172
5867bb9a
TK
1732017-03-06 Thomas Koenig <tkoenig@gcc.gnu.org>
174
175 PR fortran/84697
176 PR fortran/66128
177 * expr.c (simplify_parameter_variable): If p is a size zero array
178 and not an ARRAY_EXPR insert an empty array constructor and
179 return.
180 * gfortran.h: Add prototype for gfc_is_size_zero_array.
181 * simplify.c (is_size_zero_array): Make non-static and rename into
182 (gfc_is_size_zero_array): Check for parameter arrays of zero
183 size by comparing shape and absence of constructor.
184 (gfc_simplify_all): Use gfc_is_size_zero_array instead of
185 is_size_zero_array.
186 (gfc_simplify_count): Likewise.
187 (gfc_simplify_iall): Likewise.
188 (gfc_simplify_iany): Likewise.
189 (gfc_simplify_iparity): Likewise.
190 (gfc_simplify_minval): Likewise.
191 (gfc_simplify_maxval): Likewise.
192 (gfc_simplify_product): Likewise.
193 (gfc_simplify_sum): Likewise.
194
284ee475
SK
1952018-03-06 Steven G. Kargl <kargl@gcc.gnu.org>
196
197 PR fortran/56667
198 * primary.c (match_sym_complex_part): Give the matcher for an implied
199 do-loop a chance to run.
200
ac80378f
HA
2012018-03-03 Harald Anlauf <anlauf@gmx.de>
202
203 PR fortran/71085
204 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Do not
205 dereference NULL pointer.
206
94e6b5e5
SK
2072018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
208
209 PR fortran/66128
210 * simplify.c (is_size_zero_array): New function to check for size
211 zero array.
26219cee 212 (gfc_simplify_all, gfc_simplify_any, gfc_simplify_count,
94e6b5e5
SK
213 gfc_simplify_iall, gfc_simplify_iany, gfc_simplify_iparity,
214 gfc_simplify_minval, gfc_simplify_maxval, gfc_simplify_norm2,
215 gfc_simplify_product, gfc_simplify_sum): Use it, and implement
216 requirements from F2018.
217
a900a060
SK
2182018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
219
220 PR fortran/51434
221 * simplify.c (gfc_simplify_transfer): Resolve mold.
222
c8bd326c
PT
2232018-03-03 Paul Thomas <pault@gcc.gnu.org>
224
225 PR fortran/80965
226 * resolve.c (build_loc_call): Change symtree name from 'loc' to
227 '_loc'.
228
71a93e81
PT
2292018-03-01 Paul Thomas <pault@gcc.gnu.org>
230
231 PR fortran/84219
232 * target-memory.c (gfc_interpret_derived): Assert that BT_VOID
233 components are caf tokens.
234 (gfc_target_interpret_expr): Treat BT_VOID expressions as
235 integers.
236
b120c8b2
PT
2372018-03-01 Paul Thomas <pault@gcc.gnu.org>
238
239 PR fortran/84538
240 * class.c (class_array_ref_detected): Remove the condition that
241 there be no reference after the array reference.
242 (find_intrinsic_vtab): Remove excess whitespace.
243 * trans-array.c (gfc_conv_scalarized_array_ref): Rename 'tmp'
244 as 'base and call build_class_array_ref earlier.
245
b14a13fa
PT
2462018-02-28 Paul Thomas <pault@gcc.gnu.org>
247
248 PR fortran/83901
249 * trans-stmt.c (trans_associate_var): Make sure that the se
250 expression is a pointer type before converting it to the symbol
251 backend_decl type.
252
09ef33c1
SK
2532018-02-25 Steven G. Kargl <kargl@gcc.gnu.org>
254
255 PR fortran/83633
256 * decl.c (variable_decl): Check that an explicit-shape-array with
257 nonconstant bounds is allowed.
258
8fba26f4
PT
2592018-02-25 Paul Thomas <pault@gcc.gnu.org>
260
261 PR fortran/84523
262 * trans-intrinsic.c (gfc_conv_allocated): If the argument se
263 has a pre block, add it to the expression pre block.
264
6ef1366a
TK
2652018-02-25 Thomas Koenig <tkoenig@gcc.gnu.org>
266
267 PR fortran/78238
268 * gfortran.h (gfc_integer_4_kind): Define.
269 * resolve.c (resolve_select_type): Make sure that the
270 kind of c->high is gfc_integer_4_kind.
271
c034c38f
SK
2722018-02-24 Steven G. Kargl <kargl@gcc.gnu.org>
273
274 PR fortran/30792
275 * decl.c (gfc_match_data): Check for invalid substring in
276 data-implied-do
277
161ac473
SK
2782018-02-23 Steven G. Kargl <kargl@gcc.gnu.org>
279
280 * intrinsic.texi: Arguments to MATMUL cannot both be rank one.
281
a26f63a8
SK
2822018-02-23 Steven G. Kargl <kargl@gcc.gnu.org>
283
284 PR fortran/84511
285 * trans-io.c (transfer_expr): Deal with C_LOC in transfer statement.
286
3453b6aa
SK
2872018-02-23 Steven G. Kargl <kargl@gcc.gnu.org>
288
289 PR fortran/84346
290 * interface.c (compare_actual_formal): Issue error if keyword is
291 used in a statement function.
292
55ebc31f
JD
2932018-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
294
295 PR fortran/84506
296 * trans-io.c (set_parameter_value_inquire): Adjust range check of
297 negative unit values for kind=8 units to the kind=4 negative limit.
298
1996c75e
PT
2992018-02-23 Paul Thomas <pault@gcc.gnu.org>
300
301 PR fortran/83149
302 * trans-types.c (gfc_sym_type): Test sym->ns->proc_name before
303 accessing its components.
304
6869c12d
PT
3052018-02-23 Paul Thomas <pault@gcc.gnu.org>
306
307 PR fortran/83149
308 * trans-decl.c (gfc_finish_var_decl): Test sym->ns->proc_name
309 before accessing its components.
310
c287dea0
PT
3112018-02-23 Paul Thomas <pault@gcc.gnu.org>
312
313 PR fortran/83148
314 * trans-const.c : Clean up some whitespace issues.
315 * trans-expr.c (gfc_conv_initializer): If an iso_c_binding
316 derived type has a kind value of zero, set it to the default
317 integer kind.
318
dffb1e22
JB
3192018-02-23 Janne Blomqvist <jb@gcc.gnu.org>
320
321 PR fortran/84519
322 * trans-decl.c (gfc_build_builtin_function_decls): Add bool
323 argument to stop and error stop decls.
324 * trans-stmt.c (gfc_trans_stop): Add false value to argument
325 lists.
326
6cc22cf4
JB
3272018-02-22 Janne Blomqvist <jb@gcc.gnu.org>
328
329 PR 78534
330 PR 84509
331 * trans-decl.c (gfc_build_builtin_function_decls): Pass
332 gfc_int8_type node to pause_numeric, size_type_node to
333 pause_string.
334 * trans-stmt.c (gfc_trans_pause): Likewise.
335
3f5fabc0
JB
3362018-02-22 Janne Blomqvist <jb@gcc.gnu.org>
337
338 * gfortran.texi: Update Coarray API description.
339 * trans-decl.c (gfc_build_builtin_function_decls): Use size_t for
340 character lengths, int for exit codes.
341 (generate_coarray_sym_init): Use size_t for character length.
342 * trans-intrinsic.c (conv_co_collective): Likewise.
343 * trans-stmt.c (gfc_trans_lock_unlock): Likewise.
344 (gfc_trans_event_post_wait): Likewise.
345 (gfc_trans_sync): Likewise.
346 (gfc_trans_stop): Use size_t for character lengths, int for exit
347 codes.
348
04946c6b
TK
3492018-02-20 Thomas Koenig <tkoenig@gcc.gnu.org>
350
351 PR fortran/48890
352 PR fortran/83823
353 * primary.c (gfc_convert_to_structure_constructor):
354 For a constant string constructor, make sure the length
355 is correct.
356
5c60dbc1
PT
3572018-02-19 Paul Thomas <pault@gcc.gnu.org>
358
359 PR fortran/83344
360 PR fortran/83975
361 * resolve.c (resolve_assoc_var): Rearrange the logic for the
362 determination of the character length of associate names. If
363 the associate name is missing a length expression or the length
364 expression is not a constant and the target is not a variable,
365 make the associate name allocatable and deferred length.
366 * trans-decl.c (gfc_get_symbol_decl): Null the character length
367 backend_decl for deferred length associate names that are not
368 variables. Set 'length' to gfc_index_zero_node for character
369 associate names, whose character length is a PARM_DECL.
370
d48fc34a
TK
3712018-02-19 Thomas Koenig <tkoenig@gcc.gnu.org>
372
373 PR fortran/35339
374 * frontend-passes.c (traverse_io_block): Remove workaround for
375 PR 80945.
376
87e8aa3b
AV
3772018-02-19 Andre Vehreschild <vehre@gcc.gnu.org>
378
379 * gfortran.texi: Document additional src/dst_type. Fix some typos.
380 * trans-decl.c (gfc_build_builtin_function_decls): Declare the new
381 argument of _caf_*_by_ref () with * e { get, send, sendget }.
382 * trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Add the type of the
383 data referenced when generating a call to caf_get_by_ref ().
384 (conv_caf_send): Same but for caf_send_by_ref () and
385 caf_sendget_by_ref ().
386
26eacfe8
JD
3872018-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
388
389 PR fortran/84389
390 * io.c (check_format): Allow FMT_COLON.
391
d5ace305
PT
3922018-02-18 Paul Thomas <pault@gcc.gnu.org>
393
394 PR fortran/80945
395 * trans-array.c (gfc_conv_expr_descriptor): Set parmtype from
396 the typenode in the case of deferred length characters.
397
aab20638
TK
3982018-02-17 Thomas Koenig <tkoenig@gcc.gnu.org>
399
400 PR fortran/84270
401 * frontend-passes (scalarized_expr): If the expression
402 is an assumed size array, leave in the last reference
403 and pass AR_SECTION instead of AR_FULL to gfc_resolve
404 in order to avoid an error.
405
a8399af8
PT
4062018-02-17 Paul Thomas <pault@gcc.gnu.org>
407
408 PR fortran/84115
409 * resolve.c (resolve_assoc_var): If a non-constant target expr.
410 has no string length expression, make the associate variable
411 into a deferred length, allocatable symbol.
412 * trans-decl.c (gfc_is_reallocatable_lhs): Add and use a ptr to
413 the symbol.
414 * trans-stmt.c (trans_associate_var): Null and free scalar
415 associate names that are allocatable. After assignment, remove
416 the allocatable attribute to prevent reallocation.
417
83d9be55
JJ
4182018-02-16 Jakub Jelinek <jakub@redhat.com>
419
420 PR fortran/84418
421 * trans-openmp.c (gfc_trans_omp_clauses): For OMP_CLAUSE_LINEAR_REF
422 kind set OMP_CLAUSE_LINEAR_STEP to TYPE_SIZE_UNIT times last_step.
423
4242018-02-16 Dominique d'Humieres <dominiq@gcc.gnu.org>
71a21b9e
DH
425
426 PR fortran/84354
427 * decl.c (gfc_get_pdt_instance): Replace '%qs' with %qs.
428
f3ad8745
JW
4292018-02-15 Janus Weil <janus@gcc.gnu.org>
430
431 PR fortran/84409
432 * interface.c (check_dtio_arg_TKR_intent): Add a check for character
433 length.
434
ee3bb1b7
JW
4352018-02-14 Janus Weil <janus@gcc.gnu.org>
436
437 PR fortran/84385
438 * match.c (gfc_match_select_type): Fix check for selector in
439 SELECT TYPE statement.
440
4155fafc
JW
4412018-02-13 Janus Weil <janus@gcc.gnu.org>
442
443 PR fortran/84313
444 * symbol.c (check_conflict): Reject procedure pointers in common blocks.
445
7b47686d
AM
4462018-02-13 Alastair McKinstry <alastair.mckinstry@sceal.ie>
447 Janne Blomqvist <jb@gcc.gnu.org>
448
449 * module.c (dump_module): Use lbasename to ensure that module
450 files are reproducible.
451
24abcc44
JW
4522018-02-12 Janus Weil <janus@gcc.gnu.org>
453
454 PR fortran/84273
455 * resolve.c (resolve_component): Fix checks of passed argument in
456 procedure-pointer components.
457
6a793a8d
FXC
4582018-02-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
459
460 PR fortran/35299
461 * resolve.c (resolve_formal_arglist): Update error message.
462
61fad608
AV
4632018-02-11 Andre Vehreschild <vehre@gcc.gnu.org>
464
465 * gfortran.texi: Fix typos in documentation of caf_register ().
466 * trans-array.c (structure_alloc_comps): Only register a component of
467 a derived typed corray, not of an ultimate component coarray.
468
f3883269
SK
4692018-02-11 Steven G. Kargl <kargl@gcc.gnu.org>
470
471 PR fortran/54223
472 PR fortran/84276
473 * interface.c (compare_actual_formal): Add in_statement_function
474 bool parameter. Skip check of INTENT attribute for statement
475 functions. Arguments to a statement function cannot be optional,
476 issue error for missing argument.
477 (gfc_procedure_use, gfc_ppc_use, gfc_arglist_matches_symbol): Use
478 in_statement_function.
479
e519d2e8
PT
4802018-02-11 Paul Thomas <pault@gcc.gnu.org>
481
482 PR fortran/84074
483 * trans-expr.c (gfc_conv_derived_to_class): Set the use_offset
484 flag. If the is a vector subscript or the expression is not a
485 variable, make the descriptor one-based.
486
950ab3f1
PT
4872018-02-10 Paul Thomas <pault@gcc.gnu.org>
488
489 PR fortran/84141
490 PR fortran/84155
491 * trans-array.c (gfc_array_init_size): Revert the change made
492 in revision 257356 setting the dtype.
493 * trans-types.c (gfc_get_dtype): Do not use the cached dtype.
494 Call gfc_get_dtype_rank_type every time.
495
496 PR fortran/56691
497 * trans-array.c (gfc_conv_expr_descriptor): If the source array
498 is a descriptor type, use its offset, removing the condition
499 that is be a class expression.
500
b35a0ccd
SK
5012018-02-07 Steven G. Kargl <kargl@gcc.gnu.org>
502
503 PR fortran/82994
504 * match.c (gfc_match_deallocate): Check for NULL pointer.
505
82e259b8
TK
5062018-02-07 Thomas Koenig <tkoenig@gcc.gnu.org>
507
508 PR fortran/68560
509 * trans-intrinsic.c (gfc_conv_intrinsic_shape): New function.
510 (gfc_conv_intrinsic_function): Call it.
511
52b16cb3
SK
5122018-02-07 Steven G. Kargl <kargl@gcc.gnu.org>
513
514 PR fortran/82049
515 * match.c (gfc_match_type_spec): If the charlen is non-NULL, then
516 try to resolve it. While here return early if possible.
517
26f822c2
PT
5182018-02-04 Paul Thomas <pault@gcc.gnu.org>
519
520 PR fortran/84115
521 * trans-decl.c (gfc_get_symbol_decl): Do not finish the decl of
522 'length' if the symbol charlen backend_decl is an indirect ref.
523
2c536ce7
PT
5242018-02-03 Paul Thomas <pault@gcc.gnu.org>
525
526 PR fortran/84141
527 PR fortran/84155
528 * trans-array.c (gfc_array_init_size): Instead of gfc_get_dtype
529 use gfc_get_dtype_rank_type.
530
ae976c33
JB
5312018-02-01 Janne Blomqvist <jb@gcc.gnu.org>
532
533 PR 83975
534 PR 83344
535 * resolve.c (resolve_assoc_var): Generate an error if
536 target length unknown.
537
eae4d8fb
JB
5382018-02-01 Janne Blomqvist <jb@gcc.gnu.org>
539
540 PR fortran/83705
541 * simplify.c (gfc_simplify_repeat): Increase limit for deferring
542 to runtime, print a warning message.
543
c9243c04
JJ
5442018-01-31 Jakub Jelinek <jakub@redhat.com>
545
546 PR fortran/84116
547 * openmp.c (gfc_match_omp_clauses): If all the linear
548 gfc_match_omp_variable_list calls failed, don't gfc_free_omp_namelist
549 nor set *head = NULL. Formatting fixes.
550
1af73491
PT
5512018-01-31 Paul Thomas <pault@gcc.gnu.org>
552
553 PR fortran/84088
554 * trans-expr.c (gfc_conv_procedure_call): If the parm expr is
555 an address expression passed to an assumed rank dummy, convert
556 to an indirect reference.
557
125a677d
TK
5582018-01-31 Thomas Koenig <tkoenig@gcc.gnu.org>
559
560 * dump-parse-tree.c (write_proc): Use sym_name (which may
561 be sym->binding_label) instead of sym->name.
562
949b40a4
JB
5632018-01-31 Janne Blomqvist <jb@gcc.gnu.org>
564
565 * trans-const.c (gfc_conv_string_init): Use gfc_charlen_t instead
566 of int for slen.
567
9f3dcd14
JB
5682018-01-31 Janne Blomqvist <jb@gcc.gnu.org>
569
570 PR fortran/78534
571 * trans-expr.c (fill_with_spaces): Use memset instead of
572 generating loop.
573 (gfc_trans_string_copy): Improve opportunity to use builtins with
574 constant lengths.
575
f2adfb89
JJ
5762018-01-30 Jakub Jelinek <jakub@redhat.com>
577
578 PR debug/84131
579 * trans-array.c (gfc_get_descriptor_offsets_for_info): Set *data_off
580 to DATA_FIELD's offset rather than OFFSET_FIELD's offset.
581
125a677d 5822018-01-30 Thomas Koenig <tkoenig@gcc.gnu.org>
8fb2cc6b
TK
583
584 PR fortran/84134
585 * array.c (gfc_ref_dimen_size): Whitespace fixes. If stride is
586 zero, return false.
587
dca9e8be
TK
5882018-01-30 Thomas Koenig <tkoenig@gcc.gnu.org>
589
590 PR fortran/84133
591 * frontend-passes (matmul_to_var_expr): Return early if
592 in association list.
593 (inline_matmul_assign): Likewise.
594
3be34c0b
TK
5952017-01-29 Thomas Koenig <tkoenig@gcc.gnu.org>
596
597 PR fortran/84073
598 * resolve.c (resolve_component): Ensure BIND(C) character
599 components have length one.
600 (resolve_symbol): Likewise for variables.
601
aeb8c028
JJ
6022018-01-27 Jakub Jelinek <jakub@redhat.com>
603
604 PR fortran/84065
605 * decl.c (add_init_expr_to_sym): Ignore initializers for too large
606 lengths.
607
f8862a1b 6082018-01-26 Damian Rouson <damian@sourceryinstitute.org>
aeb8c028
JJ
609 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
610 Soren Rasmussen <s.c.rasmussen@gmail.com>
f8862a1b
DR
611
612 Partial support for Fortran 2018 teams features.
613
614 * array.c (gfc_match_array_ref): add team attribute in coarray
615 transfers.
616 * check.c (gfc_check_get_team, gfc_check_team_number): add new
617 functions for get_team and team_number.
618 * dump-parse-tree.c (show_code_node): add new statements: form team,
619 change team, end team, and sync team.
620 * expr.c (gfc_find_team_co): add new function.
621 * gfortran.h: add new statements.
622 * intrinsic.c (add_functions): add get_team and team_number functions.
623 * intrinsic.h: add get_team and team_number prototypes for check,
624 simplify, and resolve.
625 * iresolve.c (gfc_resolve_get_team, gfc_resolve_team_number): add new
626 functions.
627 * iso-fortran-env.def: add the team_type derived type.
628 * match.c (gfc_match_if, gfc_match_form_team, gfc_match_team_number)
629 (gfc_match_end_team, gfc_match_sync_team, gfc_match_change_team):
630 add change team, end team, form team, sync team match and functions.
631 * match.h: add new prototypes for change team, end team, form team,
632 and sync team.
633 * parse.c (decode_statement): add cases for change team, end team,
634 form team, and sync team.
635 * resolve.c: add cases for exec form team, change team, end team, and
636 sync team.
637 * simplify.c (gfc_simplify_get_team): add new function for get team.
638 * st.c (gfc_free_statement): add cases exec for change team, end team,
639 form team, sync team.
640 * trans-decl.c (gfor_fndecl_caf_form_team)
641 (gfor_fndecl_caf_change_team, gfor_fndecl_caf_end_team)
642 (gfor_fndecl_caf_sync_team, gfor_fndecl_caf_get_team)
643 (gfor_fndecl_caf_team_number): add functions and definitions.
644 * trans-intrinsic.c (conv_caf_send, conv_intrinsic_team_number): add
645 new function and team_type argument support.
646 * trans-stmt.c (gfc_trans_form_team, gfc_trans_change_team)
647 (gfc_trans_end_team, gfc_trans_sync_team): add new functions.
648 * trans-stmt.h: add new prototypes.
649 * trans-types.c (gfc_get_derived_type): check condition for team_type.
650 * trans.c (trans_code): new exec cases for form team, change team, end
651 team, and sync team.
652 * trans.h: add new prototypes.
653
deece1aa
SK
6542018-01-26 Steven G. Kargl <kargl@gcc.gnu.org>
655
656 PR fortran/83998
657 * simplify.c (compute_dot_product): Initialize result to INTEGER(1) 0
658 or .false. The summation does the correct type conversion.
659 (gfc_simplify_dot_product): Special case zero-sized arrays.
660
7fb43006
PT
6612018-25-01 Paul Thomas <pault@gcc.gnu.org>
662
663 PR fortran/37577
664 * array.c (gfc_match_array_ref): If standard earlier than F2008
665 it is an error if the reference dimension is greater than 7.
666 libgfortran.h : Increase GFC_MAX_DIMENSIONS to 15. Change the
667 dtype masks and shifts accordingly.
668 * trans-array.c (gfc_conv_descriptor_dtype): Use the dtype
669 type node to check the field.
670 (gfc_conv_descriptor_dtype): Access the rank field of dtype.
671 (duplicate_allocatable_coarray): Access the rank field of the
672 dtype descriptor rather than the dtype itself.
673 * trans-expr.c (get_scalar_to_descriptor_type): Store the type
674 of 'scalar' on entry and use its TREE_TYPE if it is ARRAY_TYPE
675 (ie. a character).
676 (gfc_conv_procedure_call): Pass TREE_OPERAND (tmp,0) to
677 get_scalar_to_descriptor_type if the actual expression is a
678 constant.
679 (gfc_trans_structure_assign): Assign the rank directly to the
680 dtype rank field.
681 * trans-intrinsic.c (gfc_conv_intrinsic_rank): Cast the result
682 to default integer kind.
683 (gfc_conv_intrinsic_sizeof): Obtain the element size from the
684 'elem_len' field of the dtype.
685 * trans-io.c (gfc_build_io_library_fndecls): Replace
686 gfc_int4_type_node with dtype_type_node where necessary.
687 (transfer_namelist_element): Use gfc_get_dtype_rank_type for
688 scalars.
689 * trans-types.c : Provide 'get_dtype_type_node' to acces the
690 dtype_type_node and, if necessary, build it.
691 The maximum size of an array element is now determined by the
692 maximum value of size_t.
693 Update the description of the array descriptor, including the
694 type def for the dtype_type.
695 (gfc_get_dtype_rank_type): Build a constructor for the dtype.
696 Distinguish RECORD_TYPEs that are BT_DERIVED or BT_CLASS.
697 (gfc_get_array_descriptor_base): Change the type of the dtype
698 field to dtype_type_node.
699 (gfc_get_array_descr_info): Get the offset to the rank field of
700 the dtype.
701 * trans-types.h : Add a prototype for 'get_dtype_type_node ()'.
702 * trans.h : Define the indices of the dtype fields.
703
f59986b2
PT
7042018-23-01 Paul Thomas <pault@gcc.gnu.org>
705
706 PR fortran/83866
707 * decl.c (gfc_match_derived_decl): If eos not matched, recover
708 and emit error about garbage after declaration.
709
84ee745e
PT
7102018-23-01 Paul Thomas <pault@gcc.gnu.org>
711
712 PR fortran/83898
713 * trans-stmt.c (trans_associate_var): Do not set cst_array_ctor
714 for characters.
715
6b271a2e
JB
7162018-01-22 Janne Blomqvist <jb@gcc.gnu.org>
717
718 PR 78534
719 PR 83704
720 * arith.c (gfc_arith_concat): Use size_t for string length.
721 (gfc_compare_string): Likewise.
722 (gfc_compare_with_Cstring): Likewise.
723 * array.c (gfc_resolve_character_array_constructor): Use
724 HOST_WIDE_INT, gfc_mpz_get_hwi.
725 * check.c (gfc_check_fe_runtime_error): Use size_t.
726 * data.c (create_character_initializer): Use HOST_WIDE_INT,
727 gfc_extract_hwi.
728 * decl.c (gfc_set_constant_character_len): Use gfc_charlen_t.
729 (add_init_expr_to_sym): Use HOST_WIDE_INT.
730 * expr.c (gfc_build_init_expr): Use HOST_WIDE_INT,
731 gfc_extract_hwi.
732 (gfc_apply_init): Likewise.
733 * match.h (gfc_set_constant_character_len): Update prototype.
734 * primary.c (match_string_constant): Use size_t.
735 * resolve.c (resolve_ordinary_assign): Use HOST_WIDE_INT,
736 gfc_mpz_get_hwi.
737 * simplify.c (init_result_expr): Likewise.
738 (gfc_simplify_len_trim): Use size_t.
739 * target-memory.c (gfc_encode_character): Use size_t.
740 (gfc_target_encode_expr): Use HOST_WIDE_INT, gfc_mpz_get_hwi.
741 (interpret_array): Use size_t.
742 (gfc_interpret_character): Likewise.
743 * target-memory.h (gfc_encode_character): Update prototype.
744 (gfc_interpret_character): Likewise.
745 (gfc_target_interpret_expr): Likewise.
746 * trans-const.c (gfc_build_string_const): Use size_t for length
747 argument.
748 (gfc_build_wide_string_const): Likewise.
749 * trans-const.h (gfc_build_string_const): Likewise.
750 (gfc_build_wide_string_const): Likewise.
751
f5240750
SK
7522018-01-20 Steven G. Kargl <kargl@gcc.gnu.org>
753
754 PR fortran/83900
755 * simplify.c (gfc_simplify_matmul): Set return type correctly.
756
f18fee82
SK
7572018-01-19 Steven G. Kargl <kargl@gcc.gnu.org>
758
759 PR fortran/83900
760 * simplify.c (gfc_simplify_matmul): Delete bogus assertion.
761
fcf79237
HA
7622018-01-17 Harald Anlauf <anlauf@gmx.de>
763
764 PR fortran/83864
765 * expr.c (add_init_expr_to_sym): Do not dereference NULL pointer.
766
c004a341
HA
7672018-01-17 Harald Anlauf <anlauf@gmx.de>
768
769 PR fortran/83874
770 * decl.c (add_init_expr_to_sym): Do not dereference NULL pointer.
771
75a3c61a
LK
7722018-01-15 Louis Krupp <louis.krupp@zoho.com>
773
774 PR fortran/82257
775 * interface.c (compare_rank): Don't try to retrieve CLASS_DATA
776 from symbol marked unlimited polymorphic.
777 * resolve.c (resolve_structure_cons): Likewise.
778 * misc.c (gfc_typename): Don't dereference derived->components
779 if it's NULL.
780
64b1806b
TK
7812018-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
782
783 PR fortran/54613
784 * gfortran.h (gfc_check_f): Rename f4ml to f5ml.
785 (gfc_logical_4_kind): New macro
786 * intrinsic.h (gfc_simplify_minloc): Add a gfc_expr *argument.
787 (gfc_simplify_maxloc): Likewise.
788 (gfc_resolve_maxloc): Likewise.
789 (gfc_resolve_minloc): Likewise.
790 * check.c (gfc_check_minloc_maxloc): Add checking for "back"
791 argument; also raise error if it is used (for now). Add it
792 if it isn't present.
793 * intrinsic.c (add_sym_4ml): Rename to
794 (add_sym_5ml), adjust for extra argument.
795 (add_functions): Add "back" constant. Adjust maxloc and minloc
796 for back argument.
797 * iresolve.c (gfc_resolve_maxloc): Add back argument. If back is
798 not of gfc_logical_4_kind, convert.
799 (gfc_resolve_minloc): Likewise.
800 * simplify.c (gfc_simplify_minloc): Add back argument.
801 (gfc_simplify_maxloc): Likewise.
802 * trans-intinsic.c (gfc_conv_intrinsic_minmaxloc): Rename last
803 argument to %VAL to ensure passing by value.
804 (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_minmaxloc
805 also for library calls.
806
f208c5cc
JD
8072018-01-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
808
809 PR fortran/82007
810 * resolve.c (resolve_transfer): Delete code looking for 'DT'
811 format specifiers in format strings. Set formatted to true if a
812 format string or format label is present.
813 * trans-io.c (get_dtio_proc): Likewise. (transfer_expr): Fix
814 whitespace.
64b1806b 815
83d9be55 8162018-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
39f309ac
TK
817
818 PR fortran/83744
819 * dump-parse-tree.c (get_c_type_name): Remove extra line.
820 Change for loop to use declaration in for loop. Handle BT_LOGICAL
821 and BT_CHARACTER.
822 (write_decl): Add where argument. Fix indentation. Replace
823 assert with error message. Add typename to warning
824 in comment.
825 (write_type): Adjust locus to call of write_decl.
826 (write_variable): Likewise.
827 (write_proc): Likewise. Replace assert with error message.
828
567a6e1c
PT
8292018-01-13 Paul Thomas <pault@gcc.gnu.org>
830
831 PR fortran/52162
832 * trans-expr.c (gfc_trans_scalar_assign): Flag is_alloc_lhs if
833 the rhs expression is neither an elemental nor a conversion
834 function.
835
836 PR fortran/83622
837 * trans-array.c (is_pointer_array): Remove unconditional return
838 of false for -fopenmp.
839
83d9be55 8402018-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
700b62cc
TK
841 <emsr@gcc.gnu.org>
842
843 PR fortran/83803
844 * dump-parse-tree.c (write_proc): Always emit closing parenthesis
845 for functions.
846
bdd82c9b
SK
8472018-01-10 Steven G. Kargl <kargl@gcc.gnu.org>
848
849 PR fortran/82367
850 * resolve.c (resolve_allocate_expr): Check for NULL pointer.
851
266404a8
SK
8522018-01-10 Steven G. Kargl <kargl@gcc.gnu.org>
853
854 PR fortran/83093
855 * resolve.c (resolve_charlen): Check the type of cl->length
856 after resolution.
857
85c2c761
JB
8582018-01-10 Janne Blomqvist <jb@gcc.gnu.org>
859
e10e60cb
JB
860 PR fortran/83740
861 * trans-array.c (gfc_trans_array_ctor_element): Fix formatting.
862
8632018-01-10 Janne Blomqvist <jb@gcc.gnu.org>
864
865 PR fortran/83740
85c2c761
JB
866 * trans-array.c (gfc_trans_array_ctor_element): Convert RHS to the
867 LHS type when assigning.
868
d4319ef8
SK
8692018-01-09 Steven G. Kargl <kargl@gcc.gnu.org>
870
871 PR fortran/83742
872 * expr.c (gfc_is_simply_contiguous): Check for NULL pointer.
873
8799df67
SK
8742018-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
875
876 * match.c (gfc_match_allocate): Check for NULL pointer.
877
a4f759de
SK
8782018-01-08 Steven G. Kargl <kargl@gcc.gnu.org>
879
880 * expr.c (gfc_check_pointer_assign): Fix typo in comment.
881
0b627b58
PT
8822018-01-08 Paul Thomas <pault@gcc.gnu.org>
883
884 PR fortran/83611
885 * decl.c (gfc_get_pdt_instance): If parameterized arrays have
886 an initializer, convert the kind parameters and add to the
887 component if the instance.
888 * trans-array.c (structure_alloc_comps): Add 'is_pdt_type' and
889 use it with case COPY_ALLOC_COMP. Call 'duplicate_allocatable'
890 for parameterized arrays. Clean up typos in comments. Convert
891 parameterized array initializers and copy into the array.
892 * trans-expr.c (gfc_trans_scalar_assign): Do a deep copy for
893 parameterized types.
894 *trans-stmt.c (trans_associate_var): Deallocate associate vars
895 as necessary, when they are PDT function results for example.
896
897 PR fortran/83731
898 * trans-array.c (structure_alloc_comps): Only compare len parms
899 when they are declared explicitly.
900
ee2d3987
JB
9012018-01-06 Janne Blomqvist <jb@gcc.gnu.org>
902
903 PR fortran/50892
904 * trans-expr.c (gfc_trans_pointer_assignment): fold_convert rhs to
905 lhs type.
906
f622221a
JB
9072018-01-05 Janne Blomqvist <jb@gcc.gnu.org>
908
909 PR fortran/78534
910 PR fortran/66310
911 * array.c (got_charlen): Use gfc_charlen_int_kind.
912 * class.c (gfc_find_derived_vtab): Use gfc_size_kind instead of
913 hardcoded kind.
914 (find_intrinsic_vtab): Likewise.
915 * decl.c (match_char_length): Use gfc_charlen_int_kind.
916 (add_init_expr_to_sym): Use gfc_charlen_t and gfc_charlen_int_kind.
917 (gfc_match_implicit): Use gfc_charlen_int_kind.
918 * dump-parse-tree.c (show_char_const): Use gfc_charlen_t and size_t.
919 (show_expr): Use HOST_WIDE_INT_PRINT_DEC.
920 * expr.c (gfc_get_character_expr): Length parameter of type
921 gfc_charlen_t.
922 (gfc_get_int_expr): Value argument of type HOST_WIDE_INT.
923 (gfc_extract_hwi): New function.
924 (simplify_const_ref): Make string_len of type gfc_charlen_t.
925 (gfc_simplify_expr): Use HOST_WIDE_INT for substring refs.
926 * frontend-passes.c (optimize_trim): Use gfc_charlen_int_kind.
927 * gfortran.h (gfc_mpz_get_hwi): New prototype.
928 (gfc_mpz_set_hwi): Likewise.
929 (gfc_charlen_t): New typedef.
930 (gfc_expr): Use gfc_charlen_t for character lengths.
931 (gfc_size_kind): New extern variable.
932 (gfc_extract_hwi): New prototype.
933 (gfc_get_character_expr): Use gfc_charlen_t for character length.
934 (gfc_get_int_expr): Use HOST_WIDE_INT type for value argument.
935 * gfortran.texi: Update description of hidden string length argument.
936 * iresolve.c (check_charlen_present): Use gfc_charlen_int_kind.
937 (gfc_resolve_char_achar): Likewise.
938 (gfc_resolve_repeat): Pass string length directly without
939 temporary, use gfc_charlen_int_kind.
940 (gfc_resolve_transfer): Use gfc_charlen_int_kind.
941 * match.c (select_intrinsic_set_tmp): Use HOST_WIDE_INT for charlen.
942 * misc.c (gfc_mpz_get_hwi): New function.
943 (gfc_mpz_set_hwi): New function.
944 * module.c (atom_int): Change type from int to HOST_WIDE_INT.
945 (parse_integer): Don't complain about large integers.
946 (write_atom): Use HOST_WIDE_INT for integers.
947 (mio_integer): Handle integer type mismatch.
948 (mio_hwi): New function.
949 (mio_intrinsic_op): Use HOST_WIDE_INT.
950 (mio_array_ref): Likewise.
951 (mio_expr): Likewise.
952 * primary.c (match_substring): Use gfc_charlen_int_kind.
953 * resolve.c (resolve_substring_charlen): Use gfc_charlen_int_kind.
954 (resolve_character_operator): Likewise.
955 (resolve_assoc_var): Likewise.
956 (resolve_select_type): Use HOST_WIDE_INT for charlen, use snprintf.
957 (resolve_charlen): Use mpz_sgn to determine sign.
958 * simplify.c (gfc_simplify_repeat): Use HOST_WIDE_INT/gfc_charlen_t
959 instead of long.
960 * symbol.c (generate_isocbinding_symbol): Use gfc_charlen_int_kind.
961 * target-memory.c (size_character): Length argument of type
962 gfc_charlen_t.
963 (gfc_encode_character): Likewise.
964 (gfc_interpret_character): Use gfc_charlen_t.
965 * target-memory.h (gfc_encode_character): Modify prototype.
966 * trans-array.c (gfc_trans_array_ctor_element): Use existing type.
967 (get_array_ctor_var_strlen): Use gfc_conv_mpz_to_tree_type.
968 (trans_array_constructor): Use existing type.
969 (get_array_charlen): Likewise.
970 * trans-const.c (gfc_conv_mpz_to_tree_type): New function.
971 * trans-const.h (gfc_conv_mpz_to_tree_type): New prototype.
972 * trans-decl.c (gfc_trans_deferred_vars): Use existing type.
973 (add_argument_checking): Likewise.
974 * trans-expr.c (gfc_class_len_or_zero_get): Build const of type
975 gfc_charlen_type_node.
976 (gfc_conv_intrinsic_to_class): Use gfc_charlen_int_kind instead of
977 4, fold_convert to correct type.
978 (gfc_conv_class_to_class): Build const of type size_type_node for
979 size.
980 (gfc_copy_class_to_class): Likewise.
981 (gfc_conv_string_length): Use same type in expression.
982 (gfc_conv_substring): Likewise, use HOST_WIDE_INT for charlen.
983 (gfc_conv_string_tmp): Make sure len is of the right type.
984 (gfc_conv_concat_op): Use same type in expression.
985 (gfc_conv_procedure_call): Likewise.
986 (fill_with_spaces): Comment out memset() block due to spurious
987 -Wstringop-overflow warnings.
988 (gfc_trans_string_copy): Use gfc_charlen_type_node.
989 (alloc_scalar_allocatable_for_subcomponent_assignment):
990 fold_convert to right type.
991 (gfc_trans_subcomponent_assign): Likewise.
992 (trans_class_vptr_len_assignment): Build const of correct type.
993 (gfc_trans_pointer_assignment): Likewise.
994 (alloc_scalar_allocatable_for_assignment): fold_convert to right
995 type in expr.
996 (trans_class_assignment): Build const of correct type.
997 * trans-intrinsic.c (gfc_conv_associated): Likewise.
998 (gfc_conv_intrinsic_repeat): Do calculation in sizetype.
999 * trans-io.c (gfc_build_io_library_fndecls): Use
1000 gfc_charlen_type_node for character lengths.
1001 (set_string): Convert to right type in assignment.
1002 * trans-stmt.c (gfc_trans_label_assign): Build const of
1003 gfc_charlen_type_node.
1004 (trans_associate_var): Likewise.
1005 (gfc_trans_character_select): Likewise.
1006 (gfc_trans_allocate): Likewise, don't typecast strlen result.
1007 (gfc_trans_deallocate): Don't typecast strlen result.
1008 * trans-types.c (gfc_size_kind): New variable.
1009 (gfc_init_types): Determine gfc_charlen_int_kind and gfc_size_kind
1010 from size_type_node.
1011 * trans-types.h: Fix comment.
1012
fbd35ba1
TK
10132018-01-04 Thomas Koenig <tkoenig@gcc.gnu.org>
1014
1015 PR fortran/83683
1016 PR fortran/45689
1017 * check.c (gfc_check_eoshift): Check for string length and
1018 for conformance of boundary.
1019 * intrinsic.c (add_functions): Add gfc_simplify_eoshift.
1020 * intrinsic.h: Add prototype for gfc_simplify_eoshift.
1021 * simplify.c (gfc_simplify_eoshift): New function.
1022
5c0caeb3
RS
10232018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1024 Alan Hayward <alan.hayward@arm.com>
1025 David Sherwood <david.sherwood@arm.com>
1026
1027 * trans-types.c (gfc_type_for_mode): Handle MODE_VECTOR_BOOL.
1028
928686b1
RS
10292018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
1030 Alan Hayward <alan.hayward@arm.com>
1031 David Sherwood <david.sherwood@arm.com>
1032
1033 * trans-types.c (gfc_type_for_mode): Check valid_vector_subparts_p.
1034
8987beac
TK
10352018-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
1036
1037 PR fortran/83664
1038 * check.c (gfc_check_eoshift): Error for missing boundary if array
1039 is not one of the standard types.
1040
65e6aea3
JJ
10412018-01-03 Jakub Jelinek <jakub@redhat.com>
1042
85ec4feb
JJ
1043 Update copyright years.
1044
65e6aea3
JJ
1045 * gfortranspec.c (lang_specific_driver): Update copyright notice
1046 dates.
1047 * gfc-internals.texi: Bump @copying's copyright year.
1048 * gfortran.texi: Ditto.
1049 * intrinsic.texi: Ditto.
1050 * invoke.texi: Ditto.
1051
a1d6c052
TK
10522017-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>
1053
1054 PR fortran/45689
1055 * intrinsic.c (add_function): Add gfc_simplify_maxloc and
1056 gfc_simplify_minloc to maxloc and minloc, respectively.
1057 * intrinsic.h: Add prototypes for gfc_simplify_minloc
1058 and gfc_simplify_maxloc.
1059 * simplify.c (min_max_chose): Adjust prototype. Modify function
1060 to have a return value which indicates if the extremum was found.
1061 (is_constant_array_expr): Fix typo in comment.
1062 (simplify_minmaxloc_to_scalar): New function.
1063 (simplify_minmaxloc_nodim): New function.
1064 (new_array): New function.
1065 (simplify_minmaxloc_to_array): New function.
1066 (gfc_simplify_minmaxloc): New function.
1067 (simplify_minloc): New function.
1068 (simplify_maxloc): New function.
1069
a9ec0cfc
TK
10702018-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>
1071
1072 PR fortran/45689
1073 PR fortran/83650
1074 * simplify.c (gfc_simplify_cshift): Re-implement to allow full
1075 range of arguments.
1076
f549bfb3
PT
10772018-01-01 Paul Thomas <pault@gcc.gnu.org>
1078
1079 PR fortran/83076
1080 * resolve.c (resolve_fl_derived0): Add caf_token fields for
1081 allocatable and pointer scalars, when -fcoarray selected.
1082 * trans-types.c (gfc_copy_dt_decls_ifequal): Copy the token
1083 field as well as the backend_decl.
1084 (gfc_get_derived_type): Flag GFC_FCOARRAY_LIB for module
1085 derived types that are not vtypes. Components with caf_token
1086 attribute are pvoid types. For a component requiring it, find
1087 the caf_token field and have the component token field point to
1088 its backend_decl.
1089
1090 PR fortran/83319
1091 *trans-types.c (gfc_get_array_descriptor_base): Add the token
1092 field to the descriptor even when codimen not set.
21fa2a29 1093\f
65e6aea3 1094Copyright (C) 2018 Free Software Foundation, Inc.
ad41bd84
JM
1095
1096Copying and distribution of this file, with or without modification,
1097are permitted in any medium without royalty provided the copyright
1098notice and this notice are preserved.
This page took 3.347961 seconds and 5 git commands to generate.