diff options
author | Richard Biener <rguenther@suse.de> | 2018-04-26 07:21:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-04-26 07:21:42 +0000 |
commit | bde84d51205c49afc0379757aa51bdb17a4eca10 (patch) | |
tree | 7dd9eb7318a103cdc57fba805851ed79c737c064 /gcc/tree-cfg.c | |
parent | e92306590ef0c4e51a0fc0053469a28ed60b1c1c (diff) | |
download | gcc-bde84d51205c49afc0379757aa51bdb17a4eca10.zip gcc-bde84d51205c49afc0379757aa51bdb17a4eca10.tar.gz gcc-bde84d51205c49afc0379757aa51bdb17a4eca10.tar.bz2 |
re PR middle-end/85450 (ICE: invalid types in nop conversion during GIMPLE pass: ompexp)
2018-04-26 Richard Biener <rguenther@suse.de>
PR middle-end/85450
* tree-cfg.c (verify_gimple_assign_unary): Restore proper
checking of integer<->pointer conversions.
* omp-expand.c (expand_omp_for_static_nochunk): Avoid
sign-/zero-extending pointer types.
(expand_omp_for_static_chunk): Likewise.
From-SVN: r259667
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 9485f73..c4767a3 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3842,7 +3842,7 @@ verify_gimple_assign_unary (gassign *stmt) || (POINTER_TYPE_P (rhs1_type) && INTEGRAL_TYPE_P (lhs_type) && (TYPE_PRECISION (rhs1_type) >= TYPE_PRECISION (lhs_type) - || ptrofftype_p (sizetype)))) + || ptrofftype_p (lhs_type)))) return false; /* Allow conversion from integral to offset type and vice versa. */ |