From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18215 invoked by alias); 19 Jun 2003 21:59:35 -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 8802 invoked from network); 19 Jun 2003 21:56:34 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 19 Jun 2003 21:56:34 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9/8.12.9) with ESMTP id h5JLuWgL023927; Thu, 19 Jun 2003 17:56:32 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9/8.12.9/Submit) id h5JLuVxj023926; Thu, 19 Jun 2003 17:56:31 -0400 (EDT) Message-Id: <200306192156.h5JLuVxj023926@hiauly1.hia.nrc.ca> Subject: Re: [PATCH] Fix PCH failures on SPARC To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Thu, 19 Jun 2003 22:29:00 -0000 From: "John David Anglin" Cc: gcc-patches@gcc.gnu.org, ebotcazou@libertysurf.fr In-Reply-To: from "John David Anglin" at Jun 19, 2003 04:15:31 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg02320.txt.bz2 > I believe that the patch needs to strip the encoding from the function > string. That's where the `*' comes from. The following patch fixes the problem. I will install after a full bootstrap and check completes. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) 2003-06-19 John David Anglin * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to strip name encoding. Index: config/pa/som.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/pa/som.h,v retrieving revision 1.42 diff -u -3 -p -r1.42 som.h --- config/pa/som.h 17 Jun 2003 08:06:57 -0000 1.42 +++ config/pa/som.h 19 Jun 2003 21:40:16 -0000 @@ -30,16 +30,20 @@ Boston, MA 02111-1307, USA. */ /* We make the first line stab special to avoid adding several gross hacks to GAS. */ #undef ASM_OUTPUT_SOURCE_LINE -#define ASM_OUTPUT_SOURCE_LINE(file, line, counter) \ - { static tree last_function_decl = NULL; \ - if (current_function_decl == last_function_decl) \ - fprintf (file, "\t.stabn 68,0,%d,L$M%d-%s\nL$M%d:\n", \ - line, counter, \ - XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0) + 1, \ - counter); \ - else \ - fprintf (file, "\t.stabn 68,0,%d,0\n", line); \ - last_function_decl = current_function_decl; \ +#define ASM_OUTPUT_SOURCE_LINE(file, line, counter) \ + { static tree last_function_decl = NULL; \ + if (current_function_decl == last_function_decl) \ + { \ + rtx func = DECL_RTL (current_function_decl); \ + const char *name = XSTR (XEXP (func, 0), 0); \ + fprintf (file, "\t.stabn 68,0,%d,L$M%d-%s\nL$M%d:\n", \ + line, counter, \ + (* targetm.strip_name_encoding) (name), \ + counter); \ + } \ + else \ + fprintf (file, "\t.stabn 68,0,%d,0\n", line); \ + last_function_decl = current_function_decl; \ } /* gdb needs a null N_SO at the end of each file for scattered loading. */