diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2021-12-01 12:58:12 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2021-12-01 13:57:50 +0530 |
commit | da9386f9a70ac494939650c0e0a0e4168a6f76d8 (patch) | |
tree | ec05dc6498fe70ecd3ce0bcdac7b782564fad750 /libcpp/lex.c | |
parent | c177e80609287cd32c6096a4ddc4dbef56c74f77 (diff) | |
download | gcc-da9386f9a70ac494939650c0e0a0e4168a6f76d8.zip gcc-da9386f9a70ac494939650c0e0a0e4168a6f76d8.tar.gz gcc-da9386f9a70ac494939650c0e0a0e4168a6f76d8.tar.bz2 |
tree-optimization/103456 - Record only successes from object_sizes_set
Avoid overwriting osi->changed if object_sizes_set does not update the
size, so that a previous success in the same pass is not overwritten.
This fixes the bootstrap-ubsan build config, which was failing due to
incorrect object size.
gcc/ChangeLog:
PR tree-optimization/103456
* tree-object-size.c (merge_object_sizes): Update osi->changed
only if object_sizes_set succeeded.
gcc/testsuite/ChangeLog:
PR tree-optimization/103456
* gcc.dg/ubsan/pr103456.c: New test.
Co-authored-by: Martin Liška <mliska@suse.cz>
Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
Diffstat (limited to 'libcpp/lex.c')
0 files changed, 0 insertions, 0 deletions