From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68671 invoked by alias); 22 Aug 2019 18:19:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 68658 invoked by uid 89); 22 Aug 2019 18:19:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=EXT, HX-Languages-Length:970 X-HELO: mx0b-0016f401.pphosted.com Received: from mx0b-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.156.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Aug 2019 18:19:04 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7MIG9tg015100; Thu, 22 Aug 2019 11:19:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : references : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=aCpn9/uWZBgZlqaKgSy8oCkAuq9lFUeigakFltH9fYM=; b=R+DvtkODd2ahnfZFuRkX6cSOsw0958+avCiu4Xz1eKIkY6e2oW+3y77Jvvh+a2diuEJE ID1EUhQAZ5VKDnOIrKxeQLDSjkDwvlZCf3HMJUXYA06zdaePitXsDVkGlje4jZGPufR3 eG3FbgrZZ74X7cAsF5SjPE9nPQed0rkz/FQRO4y7hFYfFA0CjJzTlRI6YG884mqeUujp ommFBH3OTkIETW+Ti8aXQm/fIbxpOTtDgh6zdbJsIGXMNSP6Afnbs/zbpQhsQ7UDwcol ek5+ZU/AC0QGUY08B6TrR40qZbImkWZJhuwIfgL2cMCxojPlugFqb+8cZzd/hAjrywIE lw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2uhag24vq4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 22 Aug 2019 11:19:01 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 22 Aug 2019 11:18:59 -0700 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (104.47.49.54) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 22 Aug 2019 11:18:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MQkMeL6aGFlYjUgS9anC+2J/Ijt56GnrzeseSW5AwIhS8xFaHq9tP5s2ERk5ejOiqI3H0mLDIHhwY78QDUsbaRrkDTc4yGRzfW98IOFvyoHeew0wsNvcIw8PIap9omPefesPgFwFmEq6PjWNf0TmqhYU0Ips0rLOUziy0L+4nSI6j9u0YkvtoBxBt5nQlHrYQIM0rapKxB1EvWin8+evpnRvHYmhDgg5tnpUaSNOnqXczr8zFztxY/Yts5ZfjpQa6+7c51v0IGO/jGaulDL6Us6N9VF5JBVkm2n+SdhSOhIZEIS1Ukt7H8IHmf9hTQDPtcis/fJHLTHocQlyA7pnkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aCpn9/uWZBgZlqaKgSy8oCkAuq9lFUeigakFltH9fYM=; b=k3T3b2vVKUI/mkKp17gb8Dx9w+fdRpaxXWn6no+myRFI1KIS0vJ+0wVuM7OouMfDIbXXsC554MA4y3RwQvhApMmpipx0vEQ1voTpwYpGcTnT2iA/u37dk8kt1yXpDMIcijtAIhrLrv73Wjg9LIZWC+zOcj82MsfmpCxkhAb72pg+oZix7Em+HznRR5WJqADmEZeM/4Tz71KcDcAknzikcfBo7gAUoWNRe6Vuba4wE5q3rhHXIux2yCOjwxQHGyUK3ppZJxTkO95yxdS1aZ/spdyKrUuDB1+nv3nq85LabWpkX7BVsQN4RaA+j2qXzPacwmCOSe+b13i4XojrlgCZTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aCpn9/uWZBgZlqaKgSy8oCkAuq9lFUeigakFltH9fYM=; b=XZC+zdcOZTrK2SgTWtLnUliLZwxPi4kKJfb+Q8q98Zcx2VIAnyWL/bt3vyghnXcKv4EJpY9JxkkuvqiyaWSY+Koi0QfmYLshDQw89wWAyPkudMMisB5/OgJ+GfsXXDF1q0/qBY2TbSu1v4Kdyq8fTgqlH6MvojIATqF2iqK4oHo= Received: from MWHPR18MB1072.namprd18.prod.outlook.com (10.173.124.11) by MWHPR18MB1037.namprd18.prod.outlook.com (10.173.122.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.19; Thu, 22 Aug 2019 18:18:54 +0000 Received: from MWHPR18MB1072.namprd18.prod.outlook.com ([fe80::5438:30c1:1337:a22b]) by MWHPR18MB1072.namprd18.prod.outlook.com ([fe80::5438:30c1:1337:a22b%2]) with mapi id 15.20.2178.020; Thu, 22 Aug 2019 18:18:54 +0000 From: Gary Oblock To: Martin Jambor , GCC Development Subject: Re: [EXT] Re: How does one traverse all the global decls Date: Thu, 22 Aug 2019 18:19:00 -0000 Message-ID: References: x-ms-oob-tlc-oobclassifiers: OLM:8273; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +yFG3lrki1gCt9TIZs+L0U/Btl7cmCEJttb0z8dGAOcGBIZjjzRTSUJMrwstTz/wgOMRiYE5NFflfu8rsC4kiQ== X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00189.txt.bz2 On 8/22/19 2:16 AM, Martin Jambor wrote: > External Email > > ---------------------------------------------------------------------- > Hi, > > On Wed, Aug 21 2019, Gary Oblock wrote: >> I'm trying to do some analysis code for an optimization >> that involves my code looking at all the declarations and >> types there of during the link time optimizations. >> >> Note, doing this for the local variables seems to be trivial >> because of FOR_EACH_LOCAL_DECL and there are also >> obvious ways of getting at the type information once I have >> a decl. However, I can't seem to find any similar way of >> getting at the global level decls. >> >> I'd appreciate your help on this. >> > Look at FOR_EACH_VARIABLE defined in cgraph.h (because symtab.h does not > exist) and it's various uses throughout the compiler. > > Martin > Martin -- Thanks, even though this wasn't exactly what I was hoping for. :-) -- Gary