[PATCH] Add offset_int to guard HOST_WIDE_INT overflow (PR tree-optimization/82042).

Martin Liška mliska@suse.cz
Wed Sep 20 07:51:00 GMT 2017


Hi.

This is partial fix for the PR, where I calculate 2 offsets in offset_int type.

Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.

Ready to be installed?
Martin

gcc/ChangeLog:

2017-09-20  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/82042
	* alias.c (memrefs_conflict_p): Calculate offset in offset_int
	type.
	* cse.c (use_related_value): Likewise.
---
 gcc/alias.c | 10 ++++++++--
 gcc/cse.c   | 14 ++++++++++----
 2 files changed, 18 insertions(+), 6 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-offset_int-to-guard-HOST_WIDE_INT-overflow-PR-tr.patch
Type: text/x-patch
Size: 1601 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170920/b3dffaf4/attachment.bin>


More information about the Gcc-patches mailing list