aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-11-27 23:58:39 +0000
committerBob Wilson <bob.wilson@acm.org>2006-11-27 23:58:39 +0000
commita7284bf13bdcfe71ea43951b352dbc6ec2d6117f (patch)
tree65fcfbc6906296fad2174faaa013e8b64caf707d /gas/config/tc-xtensa.c
parenteb1a93576a89509c4de6dd7308103eb622171a6a (diff)
downloadgdb-a7284bf13bdcfe71ea43951b352dbc6ec2d6117f.zip
gdb-a7284bf13bdcfe71ea43951b352dbc6ec2d6117f.tar.gz
gdb-a7284bf13bdcfe71ea43951b352dbc6ec2d6117f.tar.bz2
* config/tc-xtensa.c (xtensa_sanity_check): Check for RELAX_IMMED
as the first slot_subtype, not the frag subtype.
Diffstat (limited to 'gas/config/tc-xtensa.c')
-rw-r--r--gas/config/tc-xtensa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index dbffac4..a8cfd2b 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -7675,9 +7675,9 @@ xtensa_sanity_check (void)
/* Walk over all of the fragments in a subsection. */
for (fragP = frchP->frch_root; fragP; fragP = fragP->fr_next)
{
- /* Currently we only check for empty loops here. */
if (fragP->fr_type == rs_machine_dependent
- && fragP->fr_subtype == RELAX_IMMED)
+ && fragP->fr_subtype == RELAX_SLOTS
+ && fragP->tc_frag_data.slot_subtypes[0] == RELAX_IMMED)
{
static xtensa_insnbuf insnbuf = NULL;
TInsn t_insn;