* config/tc-xtensa.c (xtensa_sanity_check): Check for RELAX_IMMED
authorBob Wilson <bob.wilson@acm.org>
Mon, 27 Nov 2006 23:58:39 +0000 (23:58 +0000)
committerBob Wilson <bob.wilson@acm.org>
Mon, 27 Nov 2006 23:58:39 +0000 (23:58 +0000)
as the first slot_subtype, not the frag subtype.

gas/ChangeLog
gas/config/tc-xtensa.c

index ce26d2ee3eac65d5939fa94eeecc946e8458ca37..5a87bd47dc5eec1e26809f4f03f884bc9a8ffd75 100644 (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.
index dbffac400b32fa900c0f91d46d7279e09c9374ca..a8cfd2be7e1c56e37885345d66b79ee6b09a9da2 100644 (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;