Patchwork Add AIX options from specs to aix64.opt

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 3, 2011, 11:57 p.m.
Message ID <Pine.LNX.4.64.1102032356280.18971@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/81754/
State New
Headers show

Comments

Joseph S. Myers - Feb. 3, 2011, 11:57 p.m.
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 various AIX headers to
rs6000/aix64.opt.  The -posix option is matched by specs in both aix.h
and the version-specific headers, while all the version-specific
headers have specs matching -pthread.

Note that aix64.opt is the correct header for this; though there is a
file aix.opt, it appears no target actually uses aix.opt and it was
only ever used for a period of less than two days in 2005.

Tested building cc1 and xgcc for cross to powerpc-ibm-aix6.1.  OK to
commit?

2011-02-03  Joseph Myers  <joseph@codesourcery.com>

	* config/rs6000/aix64.opt (posix, pthread): New Driver options.
Joseph S. Myers - Feb. 8, 2011, 8:38 p.m.
I have committed this patch.  I have not done anything about the unused 
aix.opt.

Patch

Index: gcc/config/rs6000/aix64.opt
===================================================================
--- gcc/config/rs6000/aix64.opt	(revision 169769)
+++ gcc/config/rs6000/aix64.opt	(working copy)
@@ -1,6 +1,6 @@ 
 ; Options for the 64-bit flavor of AIX.
 ;
-; Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc.
+; Copyright (C) 2005, 2007, 2010, 2011 Free Software Foundation, Inc.
 ; Contributed by Aldy Hernandez <aldy@quesejoda.com>.
 ;
 ; This file is part of GCC.
@@ -30,3 +30,9 @@  Compile for 32-bit pointers
 mpe
 Target Report RejectNegative Var(internal_nothing_1) Save
 Support message passing with the Parallel Environment
+
+posix
+Driver
+
+pthread
+Driver