From patchwork Fri Dec 31 16:42:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 77091 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 9C1C6B70B3 for ; Sat, 1 Jan 2011 03:43:10 +1100 (EST) Received: (qmail 6445 invoked by alias); 31 Dec 2010 16:43:09 -0000 Received: (qmail 6436 invoked by uid 22791); 31 Dec 2010 16:43:08 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_MV, 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; Fri, 31 Dec 2010 16:43:02 +0000 Received: (qmail 25387 invoked from network); 31 Dec 2010 16:43:01 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Dec 2010 16:43:01 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PYi4B-0004Rd-Ls; Fri, 31 Dec 2010 16:42:59 +0000 Date: Fri, 31 Dec 2010 16:42:59 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: Nathan Sidwell Subject: Add VxWorks options from specs to vxworks.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 VxWorks options matched by specs in vxworks.h to vxworks.opt. None of the options are matched by specs in vxworksae.h and so Condition settings are used as for the other options in vxworks.opt. Note that before this patch -Bdynamic and -Bstatic would have added various search paths based on the strings "dynamic" and "static" in addition to having the effects from specs passing them to the linker. Now they will only have the effects from specs, without also being handled as -B options; this seems in accord with the intended semantics as I interpret them. Tested building cc1 and xgcc for crosses to: arm-wrs-vxworks i686-wrs-vxworks i686-wrs-vxworksae mips-wrs-vxworks powerpc-wrs-vxworks powerpc-wrs-vxworksae sh-wrs-vxworks sparc-wrs-vxworks. OK to commit? 2010-12-31 Joseph Myers * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now, non-static): New Driver options. Index: gcc/config/vxworks.opt =================================================================== --- gcc/config/vxworks.opt (revision 168378) +++ gcc/config/vxworks.opt (working copy) @@ -1,6 +1,6 @@ ; Processor-independent options for VxWorks. ; -; Copyright (C) 2005, 2007 Free Software Foundation, Inc. +; Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc. ; Contributed by CodeSourcery, LLC. ; ; This file is part of GCC. @@ -19,6 +19,18 @@ ; along with GCC; see the file COPYING3. If not see ; . +Bdynamic +Driver Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL) + +Bstatic +Driver Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL) + +Xbind-lazy +Driver Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL) + +Xbind-now +Driver Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL) + mrtp Target Report RejectNegative Mask(VXWORKS_RTP) Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL) Assume the VxWorks RTP environment @@ -29,3 +41,6 @@ Assume the VxWorks RTP environment mvthreads Target RejectNegative Condition(VXWORKS_KIND == VXWORKS_KIND_AE) Assume the VxWorks vThreads environment + +non-static +Driver Condition(VXWORKS_KIND == VXWORKS_KIND_NORMAL)