From patchwork Thu Jan 2 01:00:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 306005 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 9C9A72C00A1 for ; Thu, 2 Jan 2014 12:00:17 +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 :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= default; b=ZduoE2hHGKCapIYMDxm6GKZiS+U3iiiykosmdSo4nzJag7Qr7HoHy HiV2+mQ8C00x+XpLNeEgEN7LFPIR0IScwf5uIIHuM3jAN/P832djSnFZJIxrBrny pIkFga7gFfH+boCN+/fsXCqoqCRc62DVtHURwNgrDhYT7sgLfk515g= 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 :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=default; bh=hwWLrmhXASECJvPUkbVdR4jkAu0=; b=G2Q0iMiB4P+136JNCLnRIluZpn6d DzHkawLCZovwEOCtoSPrXiJ4QE0kE+LEqfPAy5eVoKOTvhZQ8r/usLlB7Cyx+J/2 DPNggCBo5tHKe2S8hDF83WElzRnvTuCj3mLVIOAiqI5jKSJA3gWBvNpDTrm5qnOm jcaW4DqKXKVPFTo= Received: (qmail 13642 invoked by alias); 2 Jan 2014 01:00:10 -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 10352 invoked by uid 89); 2 Jan 2014 01:00:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: qmta04.emeryville.ca.mail.comcast.net Received: from qmta04.emeryville.ca.mail.comcast.net (HELO qmta04.emeryville.ca.mail.comcast.net) (76.96.30.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Jan 2014 01:00:05 +0000 Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by qmta04.emeryville.ca.mail.comcast.net with comcast id 8oxv1n0030QkzPwA4p04wg; Thu, 02 Jan 2014 01:00:04 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta02.emeryville.ca.mail.comcast.net with comcast id 8p021n00k0BKwT48Np03UM; Thu, 02 Jan 2014 01:00:03 +0000 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: [PATCH] pch bug fix (take 2, PR pch/59436) From: Mike Stump In-Reply-To: <20140101230856.GO892@tucnak.redhat.com> Date: Wed, 1 Jan 2014 17:00:02 -0800 Cc: Richard Biener , Laurynas Biveinis , Richard Sandiford , gcc-patches@gcc.gnu.org Message-Id: <0D361854-33A9-4E2D-BD49-B10113164E6F@comcast.net> References: <20140101074631.GL892@tucnak.redhat.com> <20140101185348.GN892@tucnak.redhat.com> <20140101230856.GO892@tucnak.redhat.com> To: Jakub Jelinek X-IsSubscribed: yes On Jan 1, 2014, at 3:08 PM, Jakub Jelinek wrote: > if (memcmp (tmp_optabs, this_target_optabs, sizeof (struct target_optabs))) > - TREE_OPTIMIZATION_OPTABS (optnode) = (unsigned char *) tmp_optabs; > + TREE_OPTIMIZATION_OPTABS (optnode) = (void *) tmp_optabs; Oh, the cast isn't necessary. is fine. diff --git a/gcc/optabs.c b/gcc/optabs.c index 24e75d5..3958735 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -6242,7 +6242,7 @@ init_tree_optimization_optabs (tree optnode) /* If the optabs changed, record it. */ if (memcmp (tmp_optabs, this_target_optabs, sizeof (struct target_optabs))) - TREE_OPTIMIZATION_OPTABS (optnode) = (unsigned char *) tmp_optabs; + TREE_OPTIMIZATION_OPTABS (optnode) = tmp_optabs; else { TREE_OPTIMIZATION_OPTABS (optnode) = NULL;