From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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: Thu, 16 Jan 2020 07:08:00 -0000 Message-ID: <1579151329-6088-1-git-send-email-apinski@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2020-01/txt/msg00928.txt.bz2 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; -- 2.17.1