From patchwork Wed Feb 2 22:47:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 81561 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 9C723B70CD for ; Thu, 3 Feb 2011 09:47:30 +1100 (EST) Received: (qmail 32386 invoked by alias); 2 Feb 2011 22:47:28 -0000 Received: (qmail 32378 invoked by uid 22791); 2 Feb 2011 22:47:27 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_MW, 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; Wed, 02 Feb 2011 22:47:22 +0000 Received: (qmail 13140 invoked from network); 2 Feb 2011 22:47:21 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Feb 2011 22:47:21 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PklTr-0008T8-Kt; Wed, 02 Feb 2011 22:47:19 +0000 Date: Wed, 2 Feb 2011 22:47:19 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: dave.anglin@nrc-cnrc.gc.ca, sje@cup.hp.com Subject: Add more HP-UX options from specs to .opt files 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 Further to , this patch adds more HP-UX options from specs to .opt files. -pthread (HP-UX 11) is added to hpux11.opt, -threads (HP-UX 10 only) to a new pa/pa-hpux10.opt and -nolibdld and -rdynamic (PA HP-UX only) to pa/pa-hpux.opt. Tested building cc1 and xgcc for crosses to: hppa1.0-hp-hpux10.10 hppa64-hp-hpux11.23 hppa2.0w-hp-hpux11.23 ia64-hp-hpux11.23. OK to commit? 2011-02-02 Joseph Myers * config/pa/pa-hpux10.opt: New. * config/hpux11.opt (pthread): New Driver option. * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options. * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169769) +++ gcc/config.gcc (working copy) @@ -1044,7 +1044,7 @@ hppa[12]*-*-hpux10*) esac tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ pa/pa-hpux.h pa/pa-hpux10.h" - extra_options="${extra_options} pa/pa-hpux.opt" + extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt" case ${target} in *-*-hpux10.[1-9]*) tm_file="${tm_file} pa/pa-hpux1010.h" Index: gcc/config/hpux11.opt =================================================================== --- gcc/config/hpux11.opt (revision 169769) +++ gcc/config/hpux11.opt (working copy) @@ -27,4 +27,7 @@ mt Driver RejectNegative +pthread +Driver + ; This comment is to ensure we retain the blank line above. Index: gcc/config/pa/pa-hpux.opt =================================================================== --- gcc/config/pa/pa-hpux.opt (revision 169769) +++ gcc/config/pa/pa-hpux.opt (working copy) @@ -1,6 +1,6 @@ ; Options for the HP PA-RISC port of the compiler. -; Copyright (C) 2005, 2007 Free Software Foundation, Inc. +; Copyright (C) 2005, 2007, 2011 Free Software Foundation, Inc. ; ; This file is part of GCC. ; @@ -29,3 +29,9 @@ Specify UNIX standard for predefines and mwsio Target RejectNegative InverseMask(SIO) Generate cpp defines for workstation IO + +nolibdld +Driver + +rdynamic +Driver Index: gcc/config/pa/pa-hpux10.opt =================================================================== --- gcc/config/pa/pa-hpux10.opt (revision 0) +++ gcc/config/pa/pa-hpux10.opt (revision 0) @@ -0,0 +1,22 @@ +; Options specific to HP-UX 10. + +; 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 +; . + +threads +Driver