From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22714 invoked by alias); 6 Nov 2002 13:09:27 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22705 invoked from network); 6 Nov 2002 13:09:25 -0000 Received: from unknown (HELO nikam.ms.mff.cuni.cz) (195.113.18.106) by sources.redhat.com with SMTP; 6 Nov 2002 13:09:25 -0000 Received: from camelot.ms.mff.cuni.cz (kampanus.ms.mff.cuni.cz [195.113.18.107]) by nikam.ms.mff.cuni.cz (Postfix) with SMTP id 1E8A14E29B; Wed, 6 Nov 2002 14:09:25 +0100 (CET) Received: by camelot.ms.mff.cuni.cz (sSMTP sendmail emulation); Wed, 6 Nov 2002 14:09:23 +0100 Date: Wed, 06 Nov 2002 05:09:00 -0000 From: Jan Hubicka To: Jan Beulich Cc: gcc@gcc.gnu.org Subject: Re: accessing machine specific attributes from rtx Message-ID: <20021106130923.GL22059@kam.mff.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2002-11/txt/msg00162.txt.bz2 > I would like to add a couple of optmization hint attributes to function declarations (and pointers to functions) to the IA64 targets, but I seem to have difficulty to understand how these attributes can be accessed when I have only rtx elements at hand. Specifically, the information is needed at the point where the function call is being expanded (in this case this would be in ia64_expand_call). I can see that attributes like 'pure', 'const', or 'noreturn' are being converted to notes in emit_call_1, but there does not seem to be a way to extend this scheme for a given machine. If the target were only direct function calls, then perhaps I could look up the declaration from the target function's name, but this is no alternative as it is supposed to work for indirect calls, too. You are probably looking for TARGET_ATTRIBUTE_TABLE. You may take a look how it is handled on i386, that already defines some hooks for optimization. Let me know if you need more. Honza > > Thank you for any hints, Jan > > > i.A. Jan Beulich > Software Engineer Senior > Novell Core OS Engineering > > Novell, the leading provider of Net business solutions. > http://www.novell.com/