option-defaults.h revision 1.1.1.1.8.2
1/* Definitions of default options for config/rs6000 configurations. 2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 4 Free Software Foundation, Inc. 5 6 This file is part of GCC. 7 8 GCC is free software; you can redistribute it and/or modify it 9 under the terms of the GNU General Public License as published 10 by the Free Software Foundation; either version 3, or (at your 11 option) any later version. 12 13 GCC is distributed in the hope that it will be useful, but WITHOUT 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 16 License for more details. 17 18 Under Section 7 of GPL version 3, you are granted additional 19 permissions described in the GCC Runtime Library Exception, version 20 3.1, as published by the Free Software Foundation. 21 22 You should have received a copy of the GNU General Public License and 23 a copy of the GCC Runtime Library Exception along with this program; 24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 25 <http://www.gnu.org/licenses/>. */ 26 27/* This header needs to be included after any other headers affecting 28 TARGET_DEFAULT. */ 29 30#if TARGET_AIX 31#define OPT_64 "maix64" 32#define OPT_32 "maix32" 33#else 34#define OPT_64 "m64" 35#define OPT_32 "m32" 36#endif 37 38#ifndef MASK_64BIT 39#define MASK_64BIT 0 40#endif 41 42#if TARGET_DEFAULT & MASK_64BIT 43#define OPT_ARCH64 "!"OPT_32 44#define OPT_ARCH32 OPT_32 45#else 46#define OPT_ARCH64 OPT_64 47#define OPT_ARCH32 "!"OPT_64 48#endif 49 50/* Support for a compile-time default CPU, et cetera. The rules are: 51 --with-cpu is ignored if -mcpu is specified; likewise --with-cpu-32 52 and --with-cpu-64. 53 --with-tune is ignored if -mtune or -mcpu is specified; likewise 54 --with-tune-32 and --with-tune-64. 55 --with-float is ignored if -mhard-float or -msoft-float are 56 specified. */ 57#define OPTION_DEFAULT_SPECS \ 58 {"tune", "%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}" }, \ 59 {"tune_32", "%{" OPT_ARCH32 ":%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}}" }, \ 60 {"tune_64", "%{" OPT_ARCH64 ":%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}}" }, \ 61 {"cpu", "%{!mcpu=*:-mcpu=%(VALUE)}" }, \ 62 {"cpu_32", "%{" OPT_ARCH32 ":%{!mcpu=*:-mcpu=%(VALUE)}}" }, \ 63 {"cpu_64", "%{" OPT_ARCH64 ":%{!mcpu=*:-mcpu=%(VALUE)}}" }, \ 64 {"float", "%{!msoft-float:%{!mhard-float:-m%(VALUE)-float}}" } 65