From patchwork Thu Jan 16 05:08:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1224007 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-517483-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=UYk1YnYg; dkim=pass (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0818 header.b=F57vWfPb; dkim-atps=neutral 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 47ysg95hgbz9sPW for ; Thu, 16 Jan 2020 16:09:07 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=rLs0KYckuH338GKffjM0my0HyLQ30dyadW6qr5RTQVv+HB9cjI Rnb2bN8AuCXbtJr5LsRk2HYUg6nhfOPk2b57qQ3DZkQAweCf7FcRkMV2j6i6uYrP KxqnJ8Dn//0pPcJjlsGow3A2xI2Fmsx3NsNCJCLU8/VdJgEGGQPY+Ey78= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=3NtE96FznR+RvRRCeo2Y4yb/frg=; b=UYk1YnYgFT056IdKIlzi WH5mt1PIefQDo5ef2Ppsd2DeVrfLAm0FJw+r7Nem1YHgmjOj06nieZWuL3ncU9iN kcRWhKfn8c7J7s84196wZrOKD+RKRcRWgg5QJQlvMDioO3CclBfzKruuEGEy5SpA NBKDt8v8v5eztOn1BPlnHko= Received: (qmail 73787 invoked by alias); 16 Jan 2020 05:08:58 -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 73777 invoked by uid 89); 16 Jan 2020 05:08:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx0b-0016f401.pphosted.com Received: from mx0a-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.148.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Jan 2020 05:08:56 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00G5593C021435 for ; Wed, 15 Jan 2020 21:08:54 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=i+i9nwFCAjIs9Zmn91d2BQfpRF9Ww8ZWc9NBokZ0V20=; b=F57vWfPbURuejOYSHgCUR5PQb0Bp7xE8ky6wJflEsPv1Xzotq6u5WZSoOVFoRyM21uRT ad0iKfRIV34JrooDnrykE8zjNKX1HrgNOshi6WDJHYjpUtIaWSXTHu8ZQHPsDFuB1mPU 0aVi1CLebo4OqAEbn4k6ww3K2okGfIscFZIjAtTke1oOXHxdM8kfZwMs2e02zXCG3HCm PBhFeCB+NxAPu/4MBXw76OSlx68Jz/sNWArRLSIa6uVPMy2apc0YXDf9dgjheBMMuUxj J96pAzOYXbl0tgfUItFRNHULRV9bB15ZtdGNJsnvyXuhbLkFAyHj7/8dM+IREK2Oqma5 UQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2xhc6sre9x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 15 Jan 2020 21:08:54 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Jan 2020 21:08:53 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 15 Jan 2020 21:08:53 -0800 Received: from linux.pinskiwright.org.com (unknown [10.104.47.220]) by maili.marvell.com (Postfix) with ESMTP id EEA663F7040; Wed, 15 Jan 2020 21:08:52 -0800 (PST) From: To: CC: Andrew Pinski Subject: [PATCH 1/2] Fix uninitialized field in expand_operand. Date: Wed, 15 Jan 2020 21:08:48 -0800 Message-ID: <1579151329-6088-1-git-send-email-apinski@marvell.com> MIME-Version: 1.0 From: Andrew Pinski Commit g:f96bf49a0 added the target field to expand_operand. But it leaves it uninitialized when doing a full initialization inside create_expand_operand. This fixes the problem and improves the code generation inside create_expand_operand too. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. ChangeLog: * optabs.h (create_expand_operand): Initialize target field also. Change-Id: Ib653fbfbb2b0709970db87fb94de14b59758bc6c --- gcc/optabs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/optabs.h b/gcc/optabs.h index 07bdc56586e..5bd19503a0a 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -78,6 +78,7 @@ create_expand_operand (class expand_operand *op, { op->type = type; op->unsigned_p = unsigned_p; + op->target = 0; op->unused = 0; op->mode = mode; op->value = value;