From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21778 invoked by alias); 28 Nov 2006 00:34:21 -0000 Received: (qmail 21768 invoked by uid 22791); 28 Nov 2006 00:34:20 -0000 X-Spam-Check-By: sourceware.org Received: from hqvsbh2.ms.com (HELO hqvsbh2.ms.com) (205.228.12.104) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Nov 2006 00:34:04 +0000 Received: from hqvsbh2.ms.com (localhost [127.0.0.1]) by localhost.ms.com (Postfix) with ESMTP id DF099E8C5 for ; Mon, 27 Nov 2006 19:34:02 -0500 (EST) Received: from ny37im01.ms.com (unknown [144.14.31.40]) by hqvsbh2.ms.com (internal Postfix) with ESMTP id BD80AF5F6 for ; Mon, 27 Nov 2006 19:34:02 -0500 (EST) Received: from PIWEXOB01.msad.ms.com (piwexob01 [144.14.3.72]) by ny37im01.ms.com (Sendmail MTA Hub) with ESMTP id kAS0Y2Q01454 for ; Mon, 27 Nov 2006 19:34:02 -0500 (EST) Received: from PAWEXBH03.msad.ms.com ([205.228.46.226]) by PIWEXOB01.msad.ms.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 27 Nov 2006 19:34:02 -0500 Received: from NYWEXMB81.msad.ms.com ([144.203.227.8]) by PAWEXBH03.msad.ms.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 27 Nov 2006 19:34:02 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Tracking operator == Date: Tue, 28 Nov 2006 00:34:00 -0000 Message-ID: <1F8E762E1B3F814F9630D0D32A1C65F8097A9EFF@NYWEXMB81.msad.ms.com> From: "Kulkarni, Mayuresh \(IT\)" To: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00322.txt.bz2 Hello, I have a fairly large codebase, and I want to track where two doubles are being compared using the =3D=3D operator. (Am ignoring implicit conversions for now) I am looking at static analysis tools to do this, but if that is not feasible, then I was wondering if the following would work: For each .C file, run gcc (3.2) with the -fdump-tree-original option and then search in the tree for eq_expr and work out the types of the operands. I don't know anything about gcc's internal tree so I would like to ask if there are any cases (like a chain of typedefs etc) where the above will not work. Is there any other option to gcc that might be more suitable? Thanks a lot for any help. Mayuresh. -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does= not intend to waive confidentiality or privilege. Use of this email is pro= hibited when received in error.