From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15802 invoked by alias); 19 Oct 2004 17:54:53 -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 15794 invoked from network); 19 Oct 2004 17:54:52 -0000 Received: from unknown (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org with SMTP; 19 Oct 2004 17:54:52 -0000 Received: from mailgate2.apple.com (a17-128-100-204.apple.com [17.128.100.204]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id i9JHxbHJ027868 for ; Tue, 19 Oct 2004 10:59:37 -0700 (PDT) Received: from relay1.apple.com (relay1.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.3.14) with ESMTP id for ; Tue, 19 Oct 2004 10:54:52 -0700 Received: from [17.201.26.150] (il0102b-dhcp100.apple.com [17.201.26.150]) by relay1.apple.com (8.12.11/8.12.11) with ESMTP id i9JHsnrx017820; Tue, 19 Oct 2004 10:54:50 -0700 (PDT) Message-ID: <417554E9.5070909@apple.com> Date: Tue, 19 Oct 2004 17:55:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: Geoffrey Keating CC: Geoffrey Keating , gcc-patches@gcc.gnu.org Subject: Re: .machine for Darwin, new cctools required References: <20041014222912.9F21B1889121@geoffk5.apple.com> <416F00B3.3080700@apple.com> <65EABC41-1E33-11D9-AB40-000A95B1F520@apple.com> <416F5409.5030708@apple.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg01610.txt.bz2 Geoffrey Keating wrote: > > On 14/10/2004, at 9:37 PM, Stan Shebs wrote: > >> Geoffrey Keating wrote: >> >>> >>> On 14/10/2004, at 3:41 PM, Stan Shebs wrote: >>> >>>> Geoffrey Keating wrote: >>>> >>>>> This patch uses the new .machine directive in the Darwin assembler to >>>>> say which instruction set is to be used, which lets me get rid of the >>>>> workaround using -force_cpusubtype_ALL, and fixes a collection of >>>>> bugs >>>>> of the form 'if I use this combination of flags, the assembler >>>>> refuses >>>>> to assemble GCC's output', some of which were being worked around in >>>>> the testsuite. >>>>> >>>>> This patch requires a further updated cctools to work properly. You >>>>> can get it from >>>>> in >>>>> source form, and an installable package at >>>>> . >>>>> >>>> Ideally this would all be conditional on cctools version, but >>>> failing that, it would be helpful to mention this dependency in >>>> the building-from-source docs. >>> >>> >>> >>> It can't be conditional on cctools version without having specs >>> conditional on that version, which seemed like a lot of work for no >>> point (since you already have to upgrade to -528, going -528.5 >>> doesn't seem like it would be any extra burden). >>> >>> You can build GCC, I think, with the previous cctools. You just >>> can't use -mcpu= with a non-default setting and no other flags. >> >> >> Clunk (and not even a bootstrap). >> >> /Users/sts/s/fsf-gcc/macosx/gcc/xgcc >> -B/Users/sts/s/fsf-gcc/macosx/gcc/ >> -B/usr/local/powerpc-apple-darwin7.5.0/bin/ >> -B/usr/local/powerpc-apple-darwin7.5.0/lib/ -isystem >> /usr/local/powerpc-apple-darwin7.5.0/include -isystem >> /usr/local/powerpc-apple-darwin7.5.0/sys-include -DIN_GCC -W -Wall >> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes >> -Wold-style-definition -isystem ./include -I. -I. -I../../gcc/gcc >> -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl >> -I../../gcc/gcc/../libcpp/include \ >> -c ../../gcc/gcc/config/darwin-crt2.c -o crt2.o >> /var/tmp//ccFiCTZQ.s:1:Unknown pseudo-op: .machine >> /var/tmp//ccFiCTZQ.s:1:Rest of line ignored. 1st junk character >> valued 112 (p). >> make[1]: *** [crt2.o] Error 1 >> make: *** [all-gcc] Error 2 >> >> So yes, need to update doc/install.texi at least. > > > Just so I understand what you did, you tried to bootstrap GCC on a > machine running cctools-528? > > My copy of cctools-528 does understand the .machine directive. No, my mistake, it was a pre-528. Stan