]>
Commit | Line | Data |
---|---|---|
22f70bff | 1 | /* Target definitions for Darwin (Mac OS X) systems. |
5624e564 | 2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
22f70bff GK |
3 | Contributed by Apple Inc. |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
2f83c7d6 | 9 | the Free Software Foundation; either version 3, or (at your option) |
22f70bff GK |
10 | any later version. |
11 | ||
12 | GCC is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
2f83c7d6 NC |
18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
22f70bff | 20 | |
80c85ca2 MS |
21 | /* Prefer DWARF2. */ |
22 | #undef PREFERRED_DEBUGGING_TYPE | |
23 | #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG | |
24 | #define DARWIN_PREFER_DWARF | |
25 | ||
22f70bff | 26 | /* Since DWARF2 is default, conditions for running dsymutil are different. */ |
50eb566f IS |
27 | #undef DSYMUTIL_SPEC |
28 | #define DSYMUTIL_SPEC \ | |
29 | "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ | |
11afe8e8 MS |
30 | %{v} \ |
31 | %{g*:%{!gstabs*:%{!g0: -idsym}}}\ | |
082b966f | 32 | %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm|.s|.f|.f90|.f95|.f03|.f77|.for|.F|.F90|.F95|.F03: \ |
11afe8e8 MS |
33 | %{g*:%{!gstabs*:%{!g0: -dsym}}}}}}}}}}}" |
34 | ||
7e82085a | 35 | /* Tell collect2 to run dsymutil for us as necessary. */ |
11afe8e8 | 36 | #define COLLECT_RUN_DSYMUTIL 1 |
75b1b789 | 37 | |
0e9197f5 IS |
38 | #undef PIE_SPEC |
39 | #define PIE_SPEC \ | |
40 | "%{fpie|pie|fPIE: \ | |
41 | %{mdynamic-no-pic: %n'-mdynamic-no-pic' overrides '-pie', '-fpie' or '-fPIE'; \ | |
42 | :-pie}}" | |
43 | ||
40353fb3 IS |
44 | /* Only ask as for debug data if the debug style is stabs (since as doesn't |
45 | yet generate dwarf.) */ | |
46 | ||
47 | #undef ASM_DEBUG_SPEC | |
48 | #define ASM_DEBUG_SPEC "%{g*:%{!g0:%{gstabs:--gstabs}}}" | |
49 | ||
4beb5c4b MS |
50 | #undef ASM_OUTPUT_ALIGNED_COMMON |
51 | #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \ | |
52 | do { \ | |
d9dbda20 | 53 | unsigned HOST_WIDE_INT _new_size = (SIZE); \ |
83bf7f5e | 54 | fprintf ((FILE), "\t.comm "); \ |
4beb5c4b MS |
55 | assemble_name ((FILE), (NAME)); \ |
56 | if (_new_size == 0) _new_size = 1; \ | |
16998094 | 57 | fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \ |
d9dbda20 | 58 | _new_size, floor_log2 ((ALIGN) / BITS_PER_UNIT)); \ |
4beb5c4b | 59 | } while (0) |
558c362a IS |
60 | |
61 | #undef DEF_MIN_OSX_VERSION | |
62 | #define DEF_MIN_OSX_VERSION "10.5" | |
63 | ||
8f931eff IS |
64 | #undef STACK_CHECK_STATIC_BUILTIN |
65 | #define STACK_CHECK_STATIC_BUILTIN 1 |