From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6033 invoked by alias); 2 Aug 2003 00:30:18 -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 6025 invoked from network); 2 Aug 2003 00:30:18 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 2 Aug 2003 00:30:18 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h720UHZ16788 for ; Fri, 1 Aug 2003 20:30:17 -0400 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h720UHI05694 for ; Fri, 1 Aug 2003 20:30:17 -0400 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h720UGd04498 for ; Fri, 1 Aug 2003 20:30:16 -0400 Received: (from dj@localhost) by greed.delorie.com (8.11.6/8.11.6) id h720UDQ17207; Fri, 1 Aug 2003 20:30:13 -0400 Date: Sat, 02 Aug 2003 03:24:00 -0000 Message-Id: <200308020030.h720UDQ17207@greed.delorie.com> From: DJ Delorie To: gcc@gcc.gnu.org Subject: need function decl/type in get_parm_info X-SW-Source: 2003-08/txt/msg00050.txt.bz2 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?