diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2011-11-19 12:21:08 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2011-11-19 12:21:08 +0000 |
commit | 40353fb3aa64e07ac3dd27fc2306b5c5010b91d2 (patch) | |
tree | 116b4687e0788263a72e984361656fda1389a60b | |
parent | fc09e5b6bdee97136601e24eeba7bf10b083a352 (diff) | |
download | gcc-40353fb3aa64e07ac3dd27fc2306b5c5010b91d2.zip gcc-40353fb3aa64e07ac3dd27fc2306b5c5010b91d2.tar.gz gcc-40353fb3aa64e07ac3dd27fc2306b5c5010b91d2.tar.bz2 |
darwin.h (ASM_DEBUG_SPEC): New.
gcc:
* config/darwin.h (ASM_DEBUG_SPEC): New.
* config/darwin9.h (ASM_DEBUG_SPEC): New.
From-SVN: r181507
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.h | 5 | ||||
-rw-r--r-- | gcc/config/darwin9.h | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5cc9271..27dace6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-19 Iain Sandoe <iains@gcc.gnu.org> + + * config/darwin.h (ASM_DEBUG_SPEC): New. + * config/darwin9.h (ASM_DEBUG_SPEC): New. + 2011-11-18 Jan Hubicka <jh@suse.cz> * config/i386/i386.c (atom_cost): Disable SSE loop until alignment diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 0c8f276..7ae7519 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -395,6 +395,11 @@ extern GTY(()) int darwin_ms_struct; %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \ %{static}" +/* Default ASM_DEBUG_SPEC. Darwin's as cannot currently produce dwarf + debugging data. */ + +#define ASM_DEBUG_SPEC "%{g*:%{!g0:%{!gdwarf*:--gstabs}}}" + /* We still allow output of STABS. */ #define DBX_DEBUGGING_INFO 1 diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index 483a7e5..92429ca 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -41,6 +41,12 @@ along with GCC; see the file COPYING3. If not see %{mdynamic-no-pic: %n'-mdynamic-no-pic' overrides '-pie', '-fpie' or '-fPIE'; \ :-pie}}" +/* Only ask as for debug data if the debug style is stabs (since as doesn't + yet generate dwarf.) */ + +#undef ASM_DEBUG_SPEC +#define ASM_DEBUG_SPEC "%{g*:%{!g0:%{gstabs:--gstabs}}}" + #undef ASM_OUTPUT_ALIGNED_COMMON #define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \ do { \ |