OSDN Git Service

* config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2002 19:54:50 +0000 (19:54 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2002 19:54:50 +0000 (19:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52633 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sol2-bi.h

index ab675e0..9f5db05 100644 (file)
@@ -1,4 +1,8 @@
-2002-04-21  Mark Mitchell  <mark@codesourcery.com>
+2002-04-22  Richard Henderson  <rth@redhat.com>
+
+       * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
+
+2002-04-22  Mark Mitchell  <mark@codesourcery.com>
 
        PR f/6138.
        * function.c (fixup_memory_subreg): Add promoted_mode parameter.
index 85b790e..d097a20 100644 (file)
    use dwarf2 in 64-bit mode.  */
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE (TARGET_ARCH32 ? DBX_DEBUG : DWARF2_DEBUG)
+
+/* We can't use the above definition for the purposes of specs.  */
+#if defined(HAVE_AS_GDWARF2_DEBUG_FLAG) && defined(HAVE_AS_GSTABS_DEBUG_FLAG)
+# if DEFAULT_ARCH32_P
+#  define ASM_DEBUG_SPEC "%{gdwarf-2*:--gdwarf2}%{!gdwarf-2*:%{g*:--gstabs}}"
+# else
+#  define ASM_DEBUG_SPEC "%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}"
+# endif
+#endif