From patchwork Sun Jan 30 19:53:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add HP-UX -mt option from specs to new hpux11.opt Date: Sun, 30 Jan 2011 09:53:40 -0000 From: "Joseph S. Myers" X-Patchwork-Id: 81041 Message-Id: To: gcc-patches@gcc.gnu.org Cc: dave.anglin@nrc-cnrc.gc.ca, sje@cup.hp.com 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 the -mt option from HP-UX specs to a new hpux11.opt file. (This option would only have worked previously for driver commands not running cc1, because of all -m* options being passed down to cc1 automatically.) Tested building cc1 and xgcc for crosses to: ia64-hp-hpux11.23 hppa2.0w-hp-hpux11.23 hppa64-hp-hpux11.23. OK to commit? 2011-01-30 Joseph Myers * config/hpux11.opt: New. * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*, ia64*-*-hpux*): Use hpux11.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169317) +++ gcc/config.gcc (working copy) @@ -1091,7 +1091,7 @@ hppa*64*-*-hpux11*) ;; esac extra_options="${extra_options} pa/pa-hpux.opt \ - pa/pa-hpux1010.opt pa/pa64-hpux.opt" + pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt" need_64bit_hwint=yes tmake_file="pa/t-pa64 pa/t-pa-hpux pa/t-hpux-shlib" # Set the libgcc version number @@ -1127,7 +1127,8 @@ hppa[12]*-*-hpux11*) esac tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h" - extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt" + extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \ + hpux11.opt" case ${target} in *-*-hpux11.[1-9]*) tm_file="${tm_file} pa/pa-hpux1111.h" @@ -1592,7 +1593,7 @@ ia64*-*-hpux*) use_collect2=no c_target_objs="ia64-c.o" cxx_target_objs="ia64-c.o" - extra_options="${extra_options} ia64/ilp32.opt" + extra_options="${extra_options} ia64/ilp32.opt hpux11.opt" use_gcc_stdint=wrap tm_file="${tm_file} hpux-stdint.h" ;; Index: gcc/config/hpux11.opt =================================================================== --- gcc/config/hpux11.opt (revision 0) +++ gcc/config/hpux11.opt (revision 0) @@ -0,0 +1,30 @@ +; HP-UX 11 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. + +mt +Driver RejectNegative + +; This comment is to ensure we retain the blank line above.