]>
Commit | Line | Data |
---|---|---|
0cbc4a01 | 1 | /* Target definitions for Darwin (Mac OS X) systems. |
1e53920f | 2 | Copyright (C) 2006, 2007, 2010, 2011 Free Software Foundation, Inc. |
0cbc4a01 | 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 | |
038d1e19 | 9 | the Free Software Foundation; either version 3, or (at your option) |
0cbc4a01 | 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 | |
038d1e19 | 18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
0cbc4a01 | 20 | |
650c26dc | 21 | /* Prefer DWARF2. */ |
22 | #undef PREFERRED_DEBUGGING_TYPE | |
23 | #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG | |
24 | #define DARWIN_PREFER_DWARF | |
25 | ||
0cbc4a01 | 26 | /* Since DWARF2 is default, conditions for running dsymutil are different. */ |
9679c3b8 | 27 | #undef DSYMUTIL_SPEC |
28 | #define DSYMUTIL_SPEC \ | |
29 | "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ | |
3f5e90a3 | 30 | %{v} \ |
31 | %{g*:%{!gstabs*:%{!g0: -idsym}}}\ | |
2afcb22d | 32 | %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm|.s|.f|.f90|.f95|.f03|.f77|.for|.F|.F90|.F95|.F03: \ |
3f5e90a3 | 33 | %{g*:%{!gstabs*:%{!g0: -dsym}}}}}}}}}}}" |
34 | ||
b90348d5 | 35 | /* Tell collect2 to run dsymutil for us as necessary. */ |
3f5e90a3 | 36 | #define COLLECT_RUN_DSYMUTIL 1 |
a15a1b51 | 37 | |
b7d1dec3 | 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 | ||
f3e0a067 | 44 | #undef ASM_OUTPUT_ALIGNED_COMMON |
45 | #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \ | |
46 | do { \ | |
f0548d0e | 47 | unsigned HOST_WIDE_INT _new_size = (SIZE); \ |
163c9fff | 48 | fprintf ((FILE), "\t.comm "); \ |
f3e0a067 | 49 | assemble_name ((FILE), (NAME)); \ |
50 | if (_new_size == 0) _new_size = 1; \ | |
51 | fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \ | |
f0548d0e | 52 | _new_size, floor_log2 ((ALIGN) / BITS_PER_UNIT)); \ |
f3e0a067 | 53 | } while (0) |
05171267 | 54 | |
55 | #undef DEF_MIN_OSX_VERSION | |
56 | #define DEF_MIN_OSX_VERSION "10.5" | |
57 | ||
df2d51d1 | 58 | #undef STACK_CHECK_STATIC_BUILTIN |
59 | #define STACK_CHECK_STATIC_BUILTIN 1 |