From: Iain Sandoe Date: Sat, 19 Nov 2011 12:21:08 +0000 (+0000) Subject: darwin.h (ASM_DEBUG_SPEC): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40353fb3aa64e07ac3dd27fc2306b5c5010b91d2;p=gcc.git darwin.h (ASM_DEBUG_SPEC): New. gcc: * config/darwin.h (ASM_DEBUG_SPEC): New. * config/darwin9.h (ASM_DEBUG_SPEC): New. From-SVN: r181507 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5cc9271debc..27dace67c25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-19 Iain Sandoe + + * config/darwin.h (ASM_DEBUG_SPEC): New. + * config/darwin9.h (ASM_DEBUG_SPEC): New. + 2011-11-18 Jan Hubicka * config/i386/i386.c (atom_cost): Disable SSE loop until alignment diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 0c8f2769abe..7ae751972f9 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 483a7e5269c..92429cae57c 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 { \