From patchwork Mon Jan 31 22:03:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 81236 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C78BBB70E7 for ; Tue, 1 Feb 2011 09:03:29 +1100 (EST) Received: (qmail 25396 invoked by alias); 31 Jan 2011 22:03:26 -0000 Received: (qmail 25385 invoked by uid 22791); 31 Jan 2011 22:03:24 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Jan 2011 22:03:19 +0000 Received: (qmail 6001 invoked from network); 31 Jan 2011 22:03:18 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Jan 2011 22:03:18 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1Pk1q8-0003s3-Mh; Mon, 31 Jan 2011 22:03:16 +0000 Date: Mon, 31 Jan 2011 22:03:16 +0000 (UTC) From: "Joseph S. Myers" To: Rainer Orth cc: gcc-patches@gcc.gnu.org Subject: Re: Add Tru64 options from specs to new alpha/osf5.opt In-Reply-To: Message-ID: References: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Mon, 31 Jan 2011, Rainer Orth wrote: > "Joseph S. Myers" writes: > > > Index: gcc/config/alpha/osf5.opt > > =================================================================== > > --- gcc/config/alpha/osf5.opt (revision 0) > > +++ gcc/config/alpha/osf5.opt (revision 0) > > @@ -0,0 +1,39 @@ > > +; Tru64 options. > > Tru64 UNIX, please. > > > +K > > +Driver > > + > > +pthread > > +Driver > > + > > +taso > > +Driver > > + > > +threads > > +Driver > > What about malpha-as, mgas from ASM_SPEC, mno-mips-tfile > (resp. mmips-tfile) from ASM_FINAL_SPEC? -malpha-as and -mgas are already in alpha.opt. I have added -mno-mips-tfile to this patch version, which I have committed; the specs don't accept the -mmips-tfile version. (In general I have not paid attention to specs handling -m or -f options when preparing this patch series, on the basis that all such options are passed down automatically to cc1 so any such option not already listed in .opt files is already broken for any call to the driver that results in compilation rather than just calling the assembler or linker. So such options are only added to .opt files in this series if I was suspicious for some reason on seeing the specs handling them. I do plan another pass over all specs to look for missed options before preparing the patch - for 4.7 - that actually stops the driver from accepting unknown options matched by specs.) Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169317) +++ gcc/config.gcc (working copy) @@ -736,7 +736,7 @@ alpha*-dec-osf5.1*) tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf5" tm_file="${tm_file} alpha/osf5.h" tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" - extra_options="${extra_options} rpath.opt" + extra_options="${extra_options} rpath.opt alpha/osf5.opt" extra_headers=va_list.h use_gcc_stdint=provide case ${enable_threads} in Index: gcc/config/alpha/osf5.opt =================================================================== --- gcc/config/alpha/osf5.opt (revision 0) +++ gcc/config/alpha/osf5.opt (revision 0) @@ -0,0 +1,42 @@ +; Tru64 UNIX options. + +; Copyright (C) 2011 +; Free Software Foundation, Inc. +; +; This file is part of GCC. +; +; GCC is free software; you can redistribute it and/or modify it under +; the terms of the GNU General Public License as published by the Free +; Software Foundation; either version 3, or (at your option) any later +; version. +; +; GCC is distributed in the hope that it will be useful, but WITHOUT ANY +; WARRANTY; without even the implied warranty of MERCHANTABILITY or +; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +; for more details. +; +; You should have received a copy of the GNU General Public License +; along with GCC; see the file COPYING3. If not see +; . + +; See the GCC internals manual (options.texi) for a description of +; this file's format. + +; Please try to keep this file in ASCII collating order. + +K +Driver + +mno-mips-tfile +Driver RejectNegative + +pthread +Driver + +taso +Driver + +threads +Driver + +; This comment is to ensure we retain the blank line above.