From patchwork Thu Feb 3 20:21:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 81715 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 D2322B70E4 for ; Fri, 4 Feb 2011 07:22:08 +1100 (EST) Received: (qmail 25905 invoked by alias); 3 Feb 2011 20:22:07 -0000 Received: (qmail 25894 invoked by uid 22791); 3 Feb 2011 20:22:06 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_MX, 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:22:02 +0000 Received: (qmail 13993 invoked from network); 3 Feb 2011 20:22:00 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Feb 2011 20:22:00 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1Pl5gl-0005Fa-BL; Thu, 03 Feb 2011 20:21:59 +0000 Date: Thu, 3 Feb 2011 20:21:59 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: echristo@apple.com, rdsandiford@googlemail.com Subject: Add MIPS options from specs to mips.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.h to mips.opt. -EB and -EL are used in specs in various other headers as well; -noasmopt in ASM_SPEC (via some levels of indirection). For multilib selection based on features the equivalence of -EB to -meb and -EL to -mel will need to be better expressed in the .opt files - probably by making one form of the options an Alias for the other. (Given that, specs could be simplified to handle only the form not marked as an Alias, and multilib configurations would need updating to use only the non-Alias form, with MULTILIB_MATCHES between the two forms removed.) Right now, -EB/-EL are more or less treated as canonical for the driver (by multilib configurations at least) and -meb/-mel for cc1 (indeed, they are the only form that works with cc1). Tested building cc1 and xgcc for cross to mips-elf. OK to commit? 2011-02-03 Joseph Myers * config/mips/mips.opt (EB, EL, noasmopt): New Driver options. Index: gcc/config/mips/mips.opt =================================================================== --- gcc/config/mips/mips.opt (revision 169769) +++ gcc/config/mips/mips.opt (working copy) @@ -1,6 +1,6 @@ ; Options for the MIPS port of the compiler ; -; Copyright (C) 2005, 2007, 2008, 2010 Free Software Foundation, Inc. +; Copyright (C) 2005, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. ; ; This file is part of GCC. ; @@ -18,6 +18,12 @@ ; along with GCC; see the file COPYING3. If not see ; . +EB +Driver + +EL +Driver + mabi= Target RejectNegative Joined -mabi=ABI Generate code that conforms to the given ABI @@ -299,3 +305,6 @@ Perform VR4130-specific alignment optimi mxgot Target Report Var(TARGET_XGOT) Lift restrictions on GOT size + +noasmopt +Driver