aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/darwin.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/i386/darwin.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/i386/darwin.h')
-rw-r--r--gcc/config/i386/darwin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 5f61a7c..cf47943 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -187,6 +187,13 @@ extern void darwin_x86_file_end (void);
SUBTARGET_C_COMMON_OVERRIDE_OPTIONS; \
} while (0)
+/* Darwin on x86_64 uses dwarf-2 by default. Pre-darwin9 32-bit
+ compiles defaut to stabs+. darwin9+ defaults to dwarf-2. */
+#ifndef DARWIN_PREFER_DWARF
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE (TARGET_64BIT ? DWARF2_DEBUG : DBX_DEBUG)
+#endif
+
/* Darwin uses the standard DWARF register numbers but the default
register numbers for STABS. Fortunately for 64-bit code the
default and the standard are the same. */