OSDN Git Service

* config/ia64/ia64.md (cstorebi4): Fix thinko.
[pf3gnuchains/gcc-fork.git] / gcc / config / darwin9.h
1 /* Target definitions for Darwin (Mac OS X) systems.
2    Copyright (C) 2006, 2007, 2010 Free Software Foundation, Inc.
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
9 the Free Software Foundation; either version 3, or (at your option)
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
18 along with GCC; see the file COPYING3.  If not see
19 <http://www.gnu.org/licenses/>.  */
20
21 /* Prefer DWARF2.  */
22 #undef PREFERRED_DEBUGGING_TYPE
23 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
24 #define DARWIN_PREFER_DWARF
25
26 /* Since DWARF2 is default, conditions for running dsymutil are different.  */
27 #undef DSYMUTIL_SPEC
28 #define DSYMUTIL_SPEC \
29    "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
30     %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm|.s: \
31     %{g*:%{!gstabs*:%{!g0: " DSYMUTIL " %{o*:%*}%{!o:a.out}}}}}}}}}}}}"
32
33 /* libSystem contains unwind information for signal frames.  */
34 #define DARWIN_LIBSYSTEM_HAS_UNWIND
35
36 #undef  ASM_OUTPUT_ALIGNED_COMMON
37 #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN)              \
38   do {                                                                  \
39     unsigned HOST_WIDE_INT _new_size = (SIZE);                          \
40     fprintf ((FILE), "\t.comm ");                                               \
41     assemble_name ((FILE), (NAME));                                     \
42     if (_new_size == 0) _new_size = 1;                                  \
43     fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",            \
44              _new_size, floor_log2 ((ALIGN) / BITS_PER_UNIT));          \
45   } while (0)