]> git.ipfire.org Git - thirdparty/gcc.git/commit
apply TLC to GIMPLE reference verification
authorRichard Biener <rguenther@suse.de>
Tue, 18 May 2021 11:57:06 +0000 (13:57 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 19 May 2021 08:18:46 +0000 (10:18 +0200)
commita73a5af281cebd03bbd37f37eef9a8a91b5fbf95
tree0346758f0f5d647b9f201dd8b0b9ba4c45ae0dbf
parentea30c7bd497bcd390f7b177e1e156f630a90f232
apply TLC to GIMPLE reference verification

This inlines verify_types_in_gimple_min_lval and makes sure we
also verify call lhs and arguments.  It also asserts that
WITH_SIZE_EXPR in plain assignments does not happen, instead
those should have become memcpy/memset.

2021-05-18  Richard Biener  <rguenther@suse.de>

* tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
(verify_types_in_gimple_reference): ... here.  Sanitize.
(verify_gimple_call): Verify references in LHS and arguments.
(verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
gcc/tree-cfg.c