aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2002-04-22 12:54:50 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-04-22 12:54:50 -0700
commitf942d7a5df511c42fe0af6edb0138bd806684561 (patch)
tree96b662743b93e943c4df4f54f00e272abd243b8e /gcc
parent8ed8f73189d98d9960c23061be9b0cdefa7c8f0d (diff)
downloadgcc-f942d7a5df511c42fe0af6edb0138bd806684561.zip
gcc-f942d7a5df511c42fe0af6edb0138bd806684561.tar.gz
gcc-f942d7a5df511c42fe0af6edb0138bd806684561.tar.bz2
* config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
From-SVN: r52633
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sparc/sol2-bi.h9
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ab675e0..9f5db05 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sparc/sol2-bi.h b/gcc/config/sparc/sol2-bi.h
index 85b790e..d097a20 100644
--- a/gcc/config/sparc/sol2-bi.h
+++ b/gcc/config/sparc/sol2-bi.h
@@ -264,3 +264,12 @@
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