aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-04-03 15:43:22 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-04-03 13:43:22 +0000
commita3dadf610789784e5fe7e80e3212daa172e1162c (patch)
treefe3110c9a5c54029e26a9236de5a86e7c9d3d7db /gcc
parentb93f25ad50bd186cc9a9e7951a9d8caf0f4184ee (diff)
downloadgcc-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/ChangeLog6
-rw-r--r--gcc/rtl.h2
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>
diff --git a/gcc/rtl.h b/gcc/rtl.h
index f31b4ad..0341ba0 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -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;
}