From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31659 invoked by alias); 18 Jul 2002 21:09:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 31652 invoked from network); 18 Jul 2002 21:09:37 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 18 Jul 2002 21:09:37 -0000 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [172.16.24.7]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g6ILA8Q32394; Thu, 18 Jul 2002 14:10:08 -0700 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id g6IL9b115154; Thu, 18 Jul 2002 14:09:37 -0700 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Thu, 18 Jul 2002 14:11:00 -0000 From: Richard Henderson To: Zack Weinberg Cc: gcc-patches@gcc.gnu.org Subject: Re: RFC: Improvements to alternate-entry-point handling Message-ID: <20020718140937.B15120@redhat.com> Mail-Followup-To: Richard Henderson , Zack Weinberg , gcc-patches@gcc.gnu.org References: <20020718004720.GF8656@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020718004720.GF8656@codesourcery.com>; from zack@codesourcery.com on Wed, Jul 17, 2002 at 05:47:20PM -0700 X-SW-Source: 2002-07/txt/msg00989.txt.bz2 On Wed, Jul 17, 2002 at 05:47:20PM -0700, Zack Weinberg wrote: > +output_alternate_entry_point (file, insn) > + FILE *file; > + rtx insn; > +{ > + const char *name = LABEL_NAME (insn); > + > + switch (LABEL_KIND (insn)) > + { > + case LABEL_WEAK_ENTRY: > +#ifdef ASM_WEAKEN_LABEL > + ASM_WEAKEN_LABEL (file, name); > +#endif > + case LABEL_GLOBAL_ENTRY: > + ASM_GLOBALIZE_LABEL (file, name); Ideally for ELF we'd also mark the type of this symbol as a function. This would require some reorganization of the existing macros though. r~