From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17571 invoked by alias); 23 Aug 2009 02:27:46 -0000 Received: (qmail 17563 invoked by uid 22791); 23 Aug 2009 02:27:45 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f226.google.com (HELO mail-ew0-f226.google.com) (209.85.219.226) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Aug 2009 02:27:39 +0000 Received: by ewy26 with SMTP id 26so1620464ewy.29 for ; Sat, 22 Aug 2009 19:27:36 -0700 (PDT) Received: by 10.210.51.15 with SMTP id y15mr1505597eby.54.1250994456584; Sat, 22 Aug 2009 19:27:36 -0700 (PDT) Received: from Paullaptop (203-206-7-21.dyn.iinet.net.au [203.206.7.21]) by mx.google.com with ESMTPS id 5sm6675480eyh.46.2009.08.22.19.27.32 (version=SSLv3 cipher=RC4-MD5); Sat, 22 Aug 2009 19:27:35 -0700 (PDT) Message-ID: <3C5E427E13B14557920EF294E112A4AB@Paullaptop> From: "Paul Edwards" To: "Ulrich Weigand" Cc: Subject: Re: i370 port Date: Sun, 23 Aug 2009 08:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00415.txt.bz2 >> > How does this work? ASM_FORMAT_PRIVATE_NAME is not supposed >> > to completely ignore the NAME argument, the function may well >> > be called with the same LABELNO but different NAME strings, >> > and this must not result in conflicting symbols ... >> >> I have compiled the entire GCC and not come up with any duplicate >> static function names, so I think the number is always unique. > > Hmm, I see that in the 3.2.x code base this is indeed true. > However, in later compilers ASM_FORMAT_PRIVATE_NAME is used > for other purposes by the middle-end, not just static function > or variable names. You definitely can get number collisions > in later compilers ... Well I've compiled and linked all of 3.4.6 without getting name clashes either. >> > At this point, you may refer to "current_function_decl" to >> > retrieve information about the function currently being output. >> > In particular, you can retrieve the original source-level name >> > associated with the routine via DECL_NAME (current_function_decl). >> >> Thanks a lot! I couldn't use that directly, but this: > > Why not? It was missing the IDENTIFIER_POINTER so getting a compile error. > printf ("%s", IDENTIFIER_POINTER (DECL_NAME (current_function_decl))); > > should work fine ... Yes, I've adopted that, thanks. Anyway, I've finally packaged all those changes discussed on the list, and also creditted you in the documentation for your assistance in polishing the product off. Details in announcement below. BFN. Paul. Jujitsu are pleased to announce the release of the following software: GCC 3.2.3 MVS 7.5 - GCC C compiler for z/OS, MVS/380, MVS/370. Delivered in xmit format. GCC 3.2.3 CMS 7.5 - GCC C compiler for z/VM, VM/380, VM/370. Delivered in vmarc format. PDPCLIB 2.00 - C (C90-compliant) runtime library for MVS (all flavours), CMS (all flavours), Windows 32, MSDOS, OS/2, Linux (new with this release), PDOS. Provided in source form only, but also delivered as part of GCCMVS and GCCCMS. Hercules/380 3.06 v6.0 - Used to run MVS/380. It now does S/380 even if you specify S/370, so that Hercgui will work. Now has native support for ftp-rdw files (ie files that have been transferred from z/OS using ftp with the RDW option), so that you can quickly get your files restored to a V dataset. Windows executables provided. Unix users need to compile from source. You can find the products at: http://gccmvs.sourceforge.net http://pdos.sourceforge.net http://mvs380.sourceforge.net (respectively). Initial documentation can be found in gccmvs.txt, pdpclib.txt and README.S380 respectively. Any comments/questions please post over at: http://tech.groups.yahoo.com/group/hercules-os380 where our complaint department is in operation 24 hours a day, even during Ramadan - may Allah have mercy on our souls. BFN. Paul.