diff options
author | Richard Biener <rguenther@suse.de> | 2023-04-24 13:20:25 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-04-28 11:07:54 +0200 |
commit | 6e6f86f22873aab7059e083fd0c9905bd58e5efa (patch) | |
tree | 53f001276c3a42a3d97bb8fa21445bd90f98e7ad /libgomp | |
parent | 977a43f5ba778b5c5cf9c56ba04ed4fde5d1ae78 (diff) | |
download | gcc-6e6f86f22873aab7059e083fd0c9905bd58e5efa.zip gcc-6e6f86f22873aab7059e083fd0c9905bd58e5efa.tar.gz gcc-6e6f86f22873aab7059e083fd0c9905bd58e5efa.tar.bz2 |
tree-optimization/109644 - missing IL checking
We fail to verify the constraints under which we allow handled
components to wrap registers. The gcc.dg/pr70022.c testcase shows
that we happily end up with
_2 = VIEW_CONVERT_EXPR<int[4]>(v_1(D))
as produced by SSA rewrite and update_address_taken. But the intent
was that we wrap registers with at most a single level of handled
components and specifically only allow __real, __imag, BIT_FIELD_REF
and VIEW_CONVERT_EXPR on them, but not ARRAY_REF or COMPONENT_REF.
The following makes IL verification stricter which catches the
problem.
PR tree-optimization/109644
* tree-cfg.cc (verify_types_in_gimple_reference): Check
register constraints on the outermost VIEW_CONVERT_EXPR
only. Do not allow register or invariant bases on
multi-level or possibly variable index handled components.
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions