public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Tracking operator ==
@ 2006-11-28  0:34 Kulkarni, Mayuresh (IT)
  0 siblings, 0 replies; only message in thread
From: Kulkarni, Mayuresh (IT) @ 2006-11-28  0:34 UTC (permalink / raw)
  To: gcc-help

Hello,

I have a fairly large codebase, and I want to track where two doubles
are being compared using the == 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 prohibited when received in error.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-28  0:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28  0:34 Tracking operator == Kulkarni, Mayuresh (IT)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).