From patchwork Thu Feb 3 20:51:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 81716 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 B9005B70DA for ; Fri, 4 Feb 2011 07:51:51 +1100 (EST) Received: (qmail 29116 invoked by alias); 3 Feb 2011 20:51:50 -0000 Received: (qmail 29108 invoked by uid 22791); 3 Feb 2011 20:51:49 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_XG, 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; Thu, 03 Feb 2011 20:51:44 +0000 Received: (qmail 24434 invoked from network); 3 Feb 2011 20:51:42 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Feb 2011 20:51:42 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1Pl69V-0005P7-87; Thu, 03 Feb 2011 20:51:41 +0000 Date: Thu, 3 Feb 2011 20:51:41 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: echristo@apple.com, rdsandiford@googlemail.com, ro@CeBiTec.Uni-Bielefeld.DE Subject: Add IRIX options from specs to new mips/iris6.opt Message-ID: 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 In preparation for the driver only accepting options listed in .opt files, and not other options that simply happen to match some spec, this patch adds options from specs in mips/iris6.h to a new iris6.opt. (As noted in , I don't actually know if all these options are IRIX linker options, but they don't make much sense here if they aren't.) Tested building cc1 and xgcc for cross to mips-sgi-irix6.5. OK to commit? 2011-02-03 Joseph Myers * config/mips/iris6.opt: New. * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169769) +++ gcc/config.gcc (working copy) @@ -1817,7 +1817,7 @@ microblaze*-*-*) mips-sgi-irix6.5*) tm_file="elfos.h ${tm_file} mips/iris6.h" tmake_file="mips/t-iris mips/t-iris6 mips/t-slibgcc-irix" - extra_options="${extra_options} rpath.opt" + extra_options="${extra_options} rpath.opt mips/iris6.opt" target_cpu_default="MASK_ABICALLS" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" # Only IRIX Development Foundation 1.3 for IRIX 6.5 provides stdint.h. Index: gcc/config/mips/iris6.opt =================================================================== --- gcc/config/mips/iris6.opt (revision 0) +++ gcc/config/mips/iris6.opt (revision 0) @@ -0,0 +1,45 @@ +; IRIX 6.5 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. + +bestGnum +Driver + +call_shared +Driver + +exact_version +Driver + +no_archive +Driver + +non_shared +Driver + +pthread +Driver + +; This comment is to ensure we retain the blank line above.