From patchwork Mon Oct 13 12:44:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 399168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 36D6914009B for ; Mon, 13 Oct 2014 23:45:11 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=HnQuwhLc/fn8dwAMMfGfUblpCYlhzBsVJy+j1B+GtMAgmI7nMA96T odayOSzc1VS508mj3F5j9J32O70Oh5BNl+flpfGCHaMOo0dMb06+yUD49SepM/M0 aUg5XJICqzx2IEtwBq8yOx4pAspqRDqzNZoVL0/wNR1XJIgs9xALBM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=rEZ/RP0S2e9N5o9ol7Paex4UXtM=; b=redGHxggJWNxBsm2Oxg7 zd9ymk/ojWDmLHDh7rZ32Faqgbu6VkAcGSGZBIfqWccF4aWzTWLf91Sk5X07yU5F ow7m1U4vmIjT/Sl5g4wY9HQvkfx6mEg48G5zv8Y4+rZXBMQeiAI0N1Dj5Vo90EXY /qgSzMSHbDAQOxb7f/dnJBQ= Received: (qmail 22876 invoked by alias); 13 Oct 2014 12:45:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 22867 invoked by uid 89); 13 Oct 2014 12:45:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 13 Oct 2014 12:45:02 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id BC90254236F; Mon, 13 Oct 2014 14:44:57 +0200 (CEST) Date: Mon, 13 Oct 2014 14:44:57 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix bootstrap/63496 (pasto in ipa-polymorphic-call-context.c) Message-ID: <20141013124457.GA9031@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi, this patch fixes pasto in ipa-polymorphic-call.c. Of course I was not intending to compare offset+64 with offset ;) Honza PR bootstrap/63496 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto. Index: ipa-polymorphic-call.c =================================================================== --- ipa-polymorphic-call.c (revision 216141) +++ ipa-polymorphic-call.c (working copy) @@ -1235,7 +1235,7 @@ extr_type_from_vtbl_ptr_store (gimple st 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;