This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch, mips, stabs] Fix stabs failures in GCC testsuite
- From: "Steve Ellcey " <sellcey at imgtec dot com>
- To: <binutils at sourceware dot org>, <rdsandiford at googlemail dot com>
- Date: Thu, 2 May 2013 11:32:17 -0700
- Subject: [patch, mips, stabs] Fix stabs failures in GCC testsuite
Richard,
A while back you sent me this MIPS assembler patch to fix some failures
in the GCC testsuite that I was seeing. I have tested it and would like
to see it checked in. Would you be willing to check this in and/or give
me the OK to check it in? This question usually results in an email
string about removing stabs support but I would like to just check this
in so that they work for now and leave the question of removing stabs
support for later.
Steve Ellcey
sellcey@imgtec.com
2013-05-02 Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (mips_pseudo_table): Add stabd and stabs entries.
(s_mips_stab): Do not restrict to stabn only.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 29d2c02..fa4270e 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -1472,7 +1472,9 @@ static const pseudo_typeS mips_pseudo_table[] =
{"section", s_change_section, 0},
{"short", s_cons, 1},
{"single", s_float_cons, 'f'},
+ {"stabd", s_mips_stab, 'd'},
{"stabn", s_mips_stab, 'n'},
+ {"stabs", s_mips_stab, 's'},
{"text", s_change_sec, 't'},
{"word", s_cons, 2},
@@ -17097,9 +17099,7 @@ s_insn (int ignore ATTRIBUTE_UNUSED)
static void
s_mips_stab (int type)
{
- if (type == 'n')
- mips_mark_labels ();
-
+ mips_mark_labels ();
s_stab (type);
}