From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27089 invoked by alias); 25 Oct 2006 23:55:30 -0000 Received: (qmail 26855 invoked by uid 22791); 25 Oct 2006 23:55:27 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Oct 2006 23:55:23 +0000 Received: from bubble.grove.modra.org ([60.226.236.165]) by omta05sl.mx.bigpond.com with ESMTP id <20061025235514.DUBJ15497.omta05sl.mx.bigpond.com@bubble.grove.modra.org>; Wed, 25 Oct 2006 23:55:14 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id E82642B4FB6; Thu, 26 Oct 2006 09:26:13 +0930 (CST) Date: Wed, 25 Oct 2006 23:55:00 -0000 From: Alan Modra To: Paolo Bonzini Cc: binutils@sourceware.org, gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org Subject: Re: New port to Cell SPU Message-ID: <20061025235613.GM26170@bubble.grove.modra.org> Mail-Followup-To: Paolo Bonzini , binutils@sourceware.org, gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org References: <20061025064645.GI26170@bubble.grove.modra.org> <20061025071903.GJ26170@bubble.grove.modra.org> <453F14BB.4070102@lu.unisi.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <453F14BB.4070102@lu.unisi.ch> User-Agent: Mutt/1.5.9i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00279.txt.bz2 On Wed, Oct 25, 2006 at 04:39:39PM +0900, Paolo Bonzini wrote: > Alan Modra wrote: > >On Wed, Oct 25, 2006 at 04:16:45PM +0930, Alan Modra wrote: > >>This implements binutils support for the Sony/Toshiba/IBM Synergistic > >>Processor Unit. One feature of this port is a built-in linker overlay > >[snip] > > > >This fixes a make -j problem with this port. The newly built > >assembler is used to assemble the overlay manager code, so we need > >to ensure that the assembler is in fact built before attempting to > >use it. OK to apply to gcc and src repositories? > > I'd use a target template such as mt-wince, including > > all-ld: $(MAINT) all-gas > > Nitpicking yours, I thought we were moving away from makefile fragments? Maybe that was just in the gcc tree. Here's the alternate implementation. * configure.in: Handle spu makefile frag. * configure: Regenerate. * Makefile.in (MAINT): Define (MAINTAINER_MODE_FALSE, MAINTAINER_MODE_TRUE): Define. * config/mt-spu: New file. Index: configure.in =================================================================== RCS file: /cvs/src/src/configure.in,v retrieving revision 1.318 diff -u -p -r1.318 configure.in --- configure.in 27 Sep 2006 16:20:49 -0000 1.318 +++ configure.in 25 Oct 2006 23:49:42 -0000 @@ -1623,6 +1623,9 @@ extra_nmflags_for_target= extra_ranlibflags_for_target= target_makefile_frag=/dev/null case "${target}" in + spu-*-*) + target_makefile_frag="config/mt-spu" + ;; *-*-netware*) target_makefile_frag="config/mt-netware" ;; Index: Makefile.in =================================================================== RCS file: /cvs/src/src/Makefile.in,v retrieving revision 1.248 diff -u -p -r1.248 Makefile.in --- Makefile.in 17 Oct 2006 04:23:48 -0000 1.248 +++ Makefile.in 25 Oct 2006 23:49:49 -0000 @@ -70,6 +70,9 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_DATA = @INSTALL_DATA@ LN = @LN@ LN_S = @LN_S@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ # ------------------------------------------------- # Miscellaneous non-standard autoconf-set variables Index: config/mt-spu =================================================================== RCS file: config/mt-spu diff -N config/mt-spu --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ config/mt-spu 25 Oct 2006 23:49:49 -0000 @@ -0,0 +1,2 @@ +# spu ld makefile invokes as-new in maintainer mode. +all-ld: $(MAINT) all-gas -- Alan Modra IBM OzLabs - Linux Technology Centre