From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8744 invoked by alias); 13 Nov 2009 11:43:25 -0000 Received: (qmail 8733 invoked by uid 22791); 13 Nov 2009 11:43:24 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pw0-f57.google.com (HELO mail-pw0-f57.google.com) (209.85.160.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Nov 2009 11:43:19 +0000 Received: by pwi2 with SMTP id 2so2067147pwi.16 for ; Fri, 13 Nov 2009 03:43:17 -0800 (PST) Received: by 10.114.44.8 with SMTP id r8mr7885780war.80.1258112597184; Fri, 13 Nov 2009 03:43:17 -0800 (PST) Received: from Paullaptop (203-158-49-56.dyn.iinet.net.au [203.158.49.56]) by mx.google.com with ESMTPS id 21sm2158950pxi.0.2009.11.13.03.43.13 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Nov 2009 03:43:15 -0800 (PST) Message-ID: <4127BE7309294176811315EAA40B002B@Paullaptop> From: "Paul Edwards" To: "Ralf Wildenhues" Cc: "Ulrich Weigand" , "Ian Lance Taylor" , References: <200910191419.n9JEJcvD023336@d12av02.megacenter.de.ibm.com> <20091112200557.GB25110@gmx.de> In-Reply-To: <20091112200557.GB25110@gmx.de> Subject: Re: i370 port - constructing compile script Date: Fri, 13 Nov 2009 11:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original 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-11/txt/msg00378.txt.bz2 Ok, now I have some results from the auto-compile-script-generation. I got it to work, but it required some manual corrections. First of all, I got link errors, because sched-ebb etc were trying to call various functions, but those functions were not being compiled in because INSN_SCHEDULING was not defined (that's my quick analysis, anyway). So I just grepped those files out of the "source list". Next, a stack of libiberty files were not compiled - strcasecmp, vasprintf, asprintf, getpagesize, strdup. I don't know why this would be the case, because e.g. HAVE_STRCASECMP is not defined. Anyway, I added them to the source list manually, and with a script, awk and m4, I was able to produce my traditional compile script (which is a stepping stone for doing the same thing on MVS). Oh, one other change I made - I normally define PREFIX in a common header file. However, this caused a conflict between prefix.c and regex.c which both try to use this keyword. It would be good if this define was made unique within the source base. I realise there are different ways around this, but it would still be good to be unique. For now I just updated prefix.c to use "" as a default prefix if none is provided. That's neater than any immediate alternative I can think of. But anyway, the short story is that things are looking great, and it is looking like I have managed to slot into the existing build process with fairly minimal intrusive code, which bodes well for a future GCC 4 port attempt. :-) The remaining work I know of doesn't require any more intrusive code. BFN. Paul.