Message ID | 20200630233146.338613-8-nick.alcock@oracle.com |
---|---|
State | New |
Headers | show
Delivered-To: patches-gcc@linaro.org Received: by 2002:a4a:6c4f:0:0:0:0:0 with SMTP id u15csp4104128oof; Tue, 30 Jun 2020 16:32:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv+STHUnP+OHPYxeG1YkRIfT/EFUMs6nZpAMp4XZd7wGLC2CL/Q14Fy1pPsdo5qKQ+Qb5M X-Received: by 2002:a17:906:1403:: with SMTP id p3mr12320487ejc.106.1593559958690; Tue, 30 Jun 2020 16:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593559958; cv=none; d=google.com; s=arc-20160816; b=kVA6uhSjI2RAN1pg3id4Btl+FoOtpfW4So6yBIQ77WHC+R5+EyemEiEMziVq3luCKP XbOCwNKpgkylahfI33Ers6LdxKH3D+4qoZPvBj+8wqLDpzblUSdNY1b2fR8FsCWfgZSe iBbF1j0lunxP4pzd0MqjxKSmjuDYuWv7UK03DNIZMcsm9KFUK1RjgrboIg0BcAo/37Oz q3fMSw3zGvPWoa0BFCde7WcYTb+q644YCvdLmvKs8/ovJMlhfV1TXExrJXOsHaeRUrfU 8YQmhp5W2kGrGBSa90qDvZuM6KUEiYGvko0lDihMIHSZ3KPRMJXOnLxHqRlJS376uOD6 MQDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=0pNSh5BuplpElAU1WFv/F4q0rMypjUxv/bBaayCiRSo=; b=NPIKl/Lzsy5Ayrz1cASyeNNEP8EazLR3lAw2a3Q2LlnZHt4LMdE2szChKlMPL5mPfS YdViuVW0SOkIfrwOvrM2MK3iOseS/n0M+a35HqZpHaUwadruNPuI1wUeKKhgS95RX8KM HMkugUYrejXUFA/jpBNIKBa27oVp7nMo0E3VBZ3n2+xjFeqBizT7BJA0P09YKrXPVoPt 3HvK4jI2la4FUbbHqaTKAK6fZZevbyqkn+5GnBOFTVsGAA6/RMDjFNpII5LLLkGdkD2A X85gezMxoODGbH99eM81tvcOXFMpuNNrwTfOvs3EINACKkGIjg4EbF5y7NQ5sjuORBk5 NvTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=RKBSwAY7; spf=pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom=binutils-bounces@sourceware.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Return-Path: <binutils-bounces@sourceware.org> Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ce24si2556487ejb.156.2020.06.30.16.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 16:32:38 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=RKBSwAY7; spf=pass (google.com: domain of binutils-bounces@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom=binutils-bounces@sourceware.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B152F3861029; Tue, 30 Jun 2020 23:32:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B152F3861029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1593559925; bh=0pNSh5BuplpElAU1WFv/F4q0rMypjUxv/bBaayCiRSo=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=RKBSwAY7iz7LXlyapPaCRcVVPZKk99tEofZYiCFs+Md/XGpsj8joAnhuu/i9FC2L5 LOY9TB81WueWU+LvVpkUJy0aYrw6cpswZAqn0dKbpWh2w2JD21QAZLhu1fIAWEEgTz 5cIGx3beQt2t8cEKFsDuZBfM+HsBSVaCveKG/pCM= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by sourceware.org (Postfix) with ESMTPS id 02FB63851C0D for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 02FB63851C0D Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05UNSD1C046025 for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:58 GMT Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 31xx1dv7tn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:58 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05UNMgDT150402 for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:57 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 31xg14pj01-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:57 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 05UNVvvm005781 for <binutils@sourceware.org>; Tue, 30 Jun 2020 23:31:57 GMT Received: from loom.srvr.nix (/81.187.191.129) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Jun 2020 23:31:57 +0000 To: binutils@sourceware.org Subject: [PATCH 07/59] libctf, open: drop unnecessary historical wart around forwards Date: Wed, 1 Jul 2020 00:30:54 +0100 Message-Id: <20200630233146.338613-8-nick.alcock@oracle.com> X-Mailer: git-send-email 2.27.0.247.g3dff7de930 In-Reply-To: <20200630233146.338613-1-nick.alcock@oracle.com> References: <20200630233146.338613-1-nick.alcock@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9668 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 mlxlogscore=999 suspectscore=1 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300162 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9668 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1015 adultscore=0 suspectscore=1 mlxlogscore=999 cotscore=-2147483648 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 mlxscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300162 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <http://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <http://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Nick Alcock via Binutils <binutils@sourceware.org> Reply-To: Nick Alcock <nick.alcock@oracle.com> Errors-To: binutils-bounces@sourceware.org Sender: "Binutils" <binutils-bounces@sourceware.org> |
Series |
|
Related |
show
|
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index 4daa1e45351..05672f36498 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -692,17 +692,11 @@ init_types (ctf_file_t *fp, ctf_header_t *cth) if (vbytes < 0) return ECTF_CORRUPT; + /* For forward declarations, ctt_type is the CTF_K_* kind for the tag, + so bump that population count too. */ if (kind == CTF_K_FORWARD) - { - /* For forward declarations, ctt_type is the CTF_K_* kind for the tag, - so bump that population count too. If ctt_type is unknown, treat - the tag as a struct. */ + pop[tp->ctt_type]++; - if (tp->ctt_type == CTF_K_UNKNOWN || tp->ctt_type >= CTF_K_MAX) - pop[CTF_K_STRUCT]++; - else - pop[tp->ctt_type]++; - } tp = (ctf_type_t *) ((uintptr_t) tp + increment + vbytes); pop[kind]++; }