From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24064 invoked by alias); 18 Oct 2011 13:44:31 -0000 Received: (qmail 24055 invoked by uid 22791); 18 Oct 2011 13:44:30 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Oct 2011 13:44:10 +0000 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 18 Oct 2011 06:44:09 -0700 X-ExtLoop1: 1 Received: from azsmsx601.amr.corp.intel.com ([10.2.121.193]) by AZSMGA002.ch.intel.com with ESMTP; 18 Oct 2011 06:44:09 -0700 Received: from azsmsx602.amr.corp.intel.com (10.2.121.201) by azsmsx601.amr.corp.intel.com (10.2.121.193) with Microsoft SMTP Server (TLS) id 8.2.255.0; Tue, 18 Oct 2011 06:44:09 -0700 Received: from azsmsx502.amr.corp.intel.com ([10.2.121.75]) by azsmsx602.amr.corp.intel.com ([10.2.121.201]) with mapi; Tue, 18 Oct 2011 06:44:09 -0700 From: "Iyer, Balaji V" To: Ian Lance Taylor CC: "'gcc@gcc.gnu.org'" Date: Tue, 18 Oct 2011 15:00:00 -0000 Subject: RE: Function Name from CALL_INSN RTX Message-ID: <2950715866004049A240A2F9BB410E7315FB28F60A@azsmsx502.amr.corp.intel.com> References: <2950715866004049A240A2F9BB410E7315FB11509F@azsmsx502.amr.corp.intel.com>, In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2011-10/txt/msg00273.txt.bz2 Thanks for the help Ian. The function get_callee_fndecl takes in a tree and= returns a tree. I would like to get the function name from the RTX. Is the= re a function for this purpose?=20 Thanks, Balaji V. Iyer. ________________________________________ From: Ian Lance Taylor [iant@google.com] Sent: Tuesday, October 18, 2011 12:47 AM To: Iyer, Balaji V Cc: 'gcc@gcc.gnu.org' Subject: Re: Function Name from CALL_INSN RTX "Iyer, Balaji V" writes: > Is it possible to extract the function name (as a tree or char *) = from a CALL_INSN RTX? Is there a #define or a series of #defines that can = accomplish this? Not always, of course. A call through a function pointer has no name. The function get_callee_fndecl will do its best to get the function decl from a CALL_EXPR. Ian