darwin.h (ASM_DEBUG_SPEC): New.
authorIain Sandoe <iains@gcc.gnu.org>
Sat, 19 Nov 2011 12:21:08 +0000 (12:21 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 19 Nov 2011 12:21:08 +0000 (12:21 +0000)
gcc:

* config/darwin.h (ASM_DEBUG_SPEC): New.
* config/darwin9.h (ASM_DEBUG_SPEC): New.

From-SVN: r181507

gcc/ChangeLog
gcc/config/darwin.h
gcc/config/darwin9.h

index 5cc9271debcf44f8145b56980b8d72efcd5246d4..27dace67c25aeb98f6d795208580e748171771b4 100644 (file)
@@ -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
index 0c8f2769abe7995b695bf4969074d1f9ddad4ef7..7ae751972f9598fed27cc0a1392847f508149148 100644 (file)
@@ -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
index 483a7e5269cfb4a95f468534de6fea1aef1b2963..92429cae57c54c7b1403ea8dc27e16460ecb8ef8 100644 (file)
@@ -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 {                                                                 \