re PR middle-end/85956 (ICE in wide_int_to_tree_1, at tree.c:1549)
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Jan 2019 21:03:53 +0000 (22:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Jan 2019 21:03:53 +0000 (22:03 +0100)
commitda972c05f48637060ae3a3b121f99d1522413b82
tree52b89022a5b5b913eb3ed34efd5c71cfade6bf23
parentb13091dd9dbabe7fde4b112c4bfb9be729493c16
re PR middle-end/85956 (ICE in wide_int_to_tree_1, at tree.c:1549)

PR middle-end/85956
PR lto/88733
* tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
field.
* tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
* omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
fortran/
* trans-openmp.c: Include attribs.h.
(gfc_walk_alloc_comps, gfc_omp_clause_linear_ctor): Handle
VAR_DECL max bound with "omp dummy var" attribute like NULL or
error_mark_node - recompute number of elts independently.
testsuite/
* c-c++-common/gomp/pr85956.c: New test.
* g++.dg/gomp/pr88733.C: New test.

From-SVN: r267858
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr85956.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr88733.C [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h