aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2003-05-30 12:02:45 +0000
committerRainer Orth <ro@gcc.gnu.org>2003-05-30 12:02:45 +0000
commit3bd4f460899946ebee93cc35e1ddd6ca7d2cc143 (patch)
treefa4265f4d4db90631534076f84df34438014e4fc /gcc
parentc5b6351bd6020fe65557793b099654c11ef04b92 (diff)
downloadgcc-3bd4f460899946ebee93cc35e1ddd6ca7d2cc143.zip
gcc-3bd4f460899946ebee93cc35e1ddd6ca7d2cc143.tar.gz
gcc-3bd4f460899946ebee93cc35e1ddd6ca7d2cc143.tar.bz2
mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move -mdebug/-no-mdebug switches ...
* config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move -mdebug/-no-mdebug switches ... (MDEBUG_ASM_SPEC): ... here. Use only with gas. (EXTRA_SPECS): Initialize mdebug_asm_spec. From-SVN: r67242
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/mips/mips.h12
2 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e60d81..0282c04 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
+ -mdebug/-no-mdebug switches ...
+ (MDEBUG_ASM_SPEC): ... here.
+ Use only with gas.
+ (EXTRA_SPECS): Initialize mdebug_asm_spec.
+
2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
* gthr-gnat.c: Remove #undef UNUSED.
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 2f1a4ee..bda524f 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1103,9 +1103,18 @@ extern int mips_abi;
%{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
%{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
%{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3} \
-%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}"
+%(mdebug_asm_spec)"
#endif
+/* Beginning with gas 2.13, -mdebug must be passed to correctly handle COFF
+ and stabs debugging info. */
+#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GAS) != 0
+/* GAS */
+#define MDEBUG_ASM_SPEC "%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}"
+#else /* not GAS */
+#define MDEBUG_ASM_SPEC ""
+#endif /* not GAS */
+
/* SUBTARGET_ASM_SPEC is always passed to the assembler. It may be
overridden by subtargets. */
@@ -1234,6 +1243,7 @@ extern int mips_abi;
{ "subtarget_mips_as_asm_spec", SUBTARGET_MIPS_AS_ASM_SPEC }, \
{ "subtarget_asm_optimizing_spec", SUBTARGET_ASM_OPTIMIZING_SPEC }, \
{ "subtarget_asm_debugging_spec", SUBTARGET_ASM_DEBUGGING_SPEC }, \
+ { "mdebug_asm_spec", MDEBUG_ASM_SPEC }, \
{ "subtarget_asm_spec", SUBTARGET_ASM_SPEC }, \
{ "asm_abi_default_spec", ASM_ABI_DEFAULT_SPEC }, \
{ "endian_spec", ENDIAN_SPEC }, \