From 176dc0927d5abdd444d5121121a7e2df1361c876 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 13 Oct 2014 14:44:00 +0200 Subject: [PATCH] re PR bootstrap/63496 (../../gcc/ipa-polymorphic-call.c:2117:1: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]) PR bootstrap/63496 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto. From-SVN: r216146 --- gcc/ChangeLog | 5 +++++ gcc/ipa-polymorphic-call.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 667da04f2bd..d5a3a917e68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-10-13 Jan Hubicka + + PR bootstrap/63496 + * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto. + 2014-10-13 Marat Zakirov * asan.c (instrument_derefs): BIT_FIELD_REF added. diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 7d58601ae36..652c205b882 100644 --- a/gcc/ipa-polymorphic-call.c +++ b/gcc/ipa-polymorphic-call.c @@ -1235,7 +1235,7 @@ extr_type_from_vtbl_ptr_store (gimple stmt, struct type_change_info *tci, if (dump_file) fprintf (dump_file, " wrong offset %i!=%i or size %i\n", (int)offset, (int)tci->offset, (int)size); - return offset + GET_MODE_BITSIZE (Pmode) <= offset + return offset + GET_MODE_BITSIZE (Pmode) <= tci->offset || (max_size != -1 && tci->offset + GET_MODE_BITSIZE (Pmode) > offset + max_size) ? error_mark_node : NULL;