Merge branch 'vendor/GCC47'
[dragonfly.git] / contrib / gcc-4.7 / gcc / config / i386 / i386-opts.h
1 /* Definitions for option handling for IA-32.
2    Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3    2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
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
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public 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 #ifndef I386_OPTS_H
28 #define I386_OPTS_H
29
30 /* Algorithm to expand string function with.  */
31 enum stringop_alg
32 {
33    no_stringop,
34    libcall,
35    rep_prefix_1_byte,
36    rep_prefix_4_byte,
37    rep_prefix_8_byte,
38    loop_1_byte,
39    loop,
40    unrolled_loop
41 };
42
43 /* Available call abi.  */
44 enum calling_abi
45 {
46   SYSV_ABI = 0,
47   MS_ABI = 1
48 };
49
50 enum fpmath_unit
51 {
52   FPMATH_387 = 1,
53   FPMATH_SSE = 2
54 };
55
56 enum tls_dialect
57 {
58   TLS_DIALECT_GNU,
59   TLS_DIALECT_GNU2,
60   TLS_DIALECT_SUN
61 };
62
63 enum cmodel {
64   CM_32,        /* The traditional 32-bit ABI.  */
65   CM_SMALL,     /* Assumes all code and data fits in the low 31 bits.  */
66   CM_KERNEL,    /* Assumes all code and data fits in the high 31 bits.  */
67   CM_MEDIUM,    /* Assumes code fits in the low 31 bits; data unlimited.  */
68   CM_LARGE,     /* No assumptions.  */
69   CM_SMALL_PIC, /* Assumes code+data+got/plt fits in a 31 bit region.  */
70   CM_MEDIUM_PIC,/* Assumes code+got/plt fits in a 31 bit region.  */
71   CM_LARGE_PIC  /* No assumptions.  */
72 };
73
74 enum asm_dialect {
75   ASM_ATT,
76   ASM_INTEL
77 };
78
79 enum ix86_veclibabi {
80   ix86_veclibabi_type_none,
81   ix86_veclibabi_type_svml,
82   ix86_veclibabi_type_acml
83 };
84
85 #endif