* config/tc-xtensa.c (xtensa_sanity_check): Check for RELAX_IMMED

as the first slot_subtype, not the frag subtype.
This commit is contained in:
Bob Wilson 2006-11-27 23:58:39 +00:00
parent eb1a93576a
commit a7284bf13b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-11-27 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (xtensa_sanity_check): Check for RELAX_IMMED
as the first slot_subtype, not the frag subtype.
2006-11-27 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (XSHAL_ABI): Add default definition.

View File

@ -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;