From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 495 invoked by alias); 2 Aug 2003 01:37:08 -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 484 invoked from network); 2 Aug 2003 01:37:07 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.73.237.138) by sources.redhat.com with SMTP; 2 Aug 2003 01:37:07 -0000 Received: (qmail 28026 invoked from network); 2 Aug 2003 01:35:23 -0000 Received: from egil.codesourcery.com (HELO taltos.codesourcery.com) (zack@66.92.14.122) by mail.codesourcery.com with DES-CBC3-SHA encrypted SMTP; 2 Aug 2003 01:35:23 -0000 Received: by taltos.codesourcery.com (sSMTP sendmail emulation); Fri, 1 Aug 2003 18:37:05 -0700 From: "Zack Weinberg" To: DJ Delorie Cc: gcc@gcc.gnu.org Subject: Re: need function decl/type in get_parm_info References: <200308020030.h720UDQ17207@greed.delorie.com> Date: Sat, 02 Aug 2003 11:16:00 -0000 In-Reply-To: <200308020030.h720UDQ17207@greed.delorie.com> (DJ Delorie's message of "Fri, 1 Aug 2003 20:30:13 -0400") Message-ID: <87zniszvpa.fsf@egil.codesourcery.com> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-08/txt/msg00052.txt.bz2 DJ Delorie writes: > I'm working on converting PROMOTE_PROTOTYPES to be a target hook, > sensitive to any attributes that might have been added to the function > decl. Unfortunately, one of the places it's used - get_parm_info() in > c-decl.c - happens before current_function_decl is defined, and there > doesn't appear to be an obvious way to get the function type or decl. > > Alternately, can the promotions be deferred until later, when the decl > is available? If so, where's the best place to move it to? I don't have a good answer, but I think c-decl.c shouldn't have to know about this particular target hook. Adjusting as-passed argument types should happen only when converting to RTL. zw