aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-04-17 09:07:49 +0200
committerJakub Jelinek <jakub@redhat.com>2020-04-17 09:24:03 +0200
commitc58cb6ac6891886b7aa01c440ac71a5e7cbcba97 (patch)
treefdb519f82bc17d195a0d24c169218e70b442661b /gcc/fortran/resolve.c
parente9f799d25973fc38022c5ea71ed5a2bca58a847f (diff)
downloadgcc-c58cb6ac6891886b7aa01c440ac71a5e7cbcba97.zip
gcc-c58cb6ac6891886b7aa01c440ac71a5e7cbcba97.tar.gz
gcc-c58cb6ac6891886b7aa01c440ac71a5e7cbcba97.tar.bz2
inliner: Don't ICE on NULL TYPE_DOMAIN [PR94621]
When I've added the VLA tweak for OpenMP to avoid error_mark_nodes in the IL in type, I forgot that TYPE_DOMAIN could be NULL. Furthermore, as an optimization, this patch checks the hopefully cheapest condition that is very likely false most of the time (enabled only during OpenMP handling) first. 2020-04-17 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/94621 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN. Move id->adjust_array_error_bounds check first in the condition. * gcc.c-torture/compile/pr94621.c: New test.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions