aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin9.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2006-11-17 06:48:01 +0000
committerMike Stump <mrs@gcc.gnu.org>2006-11-17 06:48:01 +0000
commit80c85ca2871defbcb6e6c03e27b15d7b6432c535 (patch)
treed90cad857cdc7befcd4cafdeb04e5648285d0b52 /gcc/config/darwin9.h
parent36b15ad0dc8c471bbe053131e48ab3ec49aa7009 (diff)
downloadgcc-80c85ca2871defbcb6e6c03e27b15d7b6432c535.zip
gcc-80c85ca2871defbcb6e6c03e27b15d7b6432c535.tar.gz
gcc-80c85ca2871defbcb6e6c03e27b15d7b6432c535.tar.bz2
darwin.h (LINK_COMMAND_SPEC): Don't do dwarf stuff on pre-darwin9 system, unless the user asks for it directly.
* config/darwin.h (LINK_COMMAND_SPEC): Don't do dwarf stuff on pre-darwin9 system, unless the user asks for it directly. (PREFERRED_DEBUGGING_TYPE): Likewise. * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Likewise. * config.gcc: Add suppport for darwin9.h. * config/darwin9.h: Add. * doc/install.texi (Specific): Clarify darwin documentation. From-SVN: r118917
Diffstat (limited to 'gcc/config/darwin9.h')
-rw-r--r--gcc/config/darwin9.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h
new file mode 100644
index 0000000..ef9890a
--- /dev/null
+++ b/gcc/config/darwin9.h
@@ -0,0 +1,20 @@
+/* Prefer DWARF2. */
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+#define DARWIN_PREFER_DWARF
+
+#undef LINK_COMMAND_SPEC
+#define LINK_COMMAND_SPEC "\
+%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
+ %{!Zdynamiclib:%(linker)}%{Zdynamiclib:/usr/bin/libtool} \
+ %l %X %{d} %{s} %{t} %{Z} \
+ %{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{z}} \
+ %{o*}%{!o:-o a.out} \
+ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
+ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \
+ %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \
+ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \
+ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\
+%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
+ %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \
+ %{g*:%{!gstabs*:%{!gnone: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}"