diff options
author | Martin Liska <mliska@suse.cz> | 2018-04-03 15:43:22 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-04-03 13:43:22 +0000 |
commit | a3dadf610789784e5fe7e80e3212daa172e1162c (patch) | |
tree | fe3110c9a5c54029e26a9236de5a86e7c9d3d7db /gcc | |
parent | b93f25ad50bd186cc9a9e7951a9d8caf0f4184ee (diff) | |
download | gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.zip gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.tar.gz gcc-a3dadf610789784e5fe7e80e3212daa172e1162c.tar.bz2 |
Remove UBSAN in dwarf2out.c (PR tree-optimization/82491).
2018-04-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/82491
* rtl.h (strip_offset_and_add): Replace += suboffset with
poly_uint64 () + suboffset.
From-SVN: r259030
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a43c39..bac81f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-04-03 Martin Liska <mliska@suse.cz> + + PR tree-optimization/82491 + * rtl.h (strip_offset_and_add): Replace += suboffset with + poly_uint64 () + suboffset. + 2018-03-29 Martin Liska <mliska@suse.cz> Martin Jambor <mjambor@suse.cz> @@ -4339,7 +4339,7 @@ strip_offset_and_add (rtx x, poly_int64_pod *offset) { poly_int64 suboffset; x = strip_offset (x, &suboffset); - *offset += suboffset; + *offset = poly_uint64 (*offset) + suboffset; } return x; } |