From 8bb9de2bab988b8b610a7a99ea0e89eaf71123a1 Mon Sep 17 00:00:00 2001 From: bwilson Date: Mon, 27 Nov 2006 23:58:39 +0000 Subject: [PATCH] * config/tc-xtensa.c (xtensa_sanity_check): Check for RELAX_IMMED as the first slot_subtype, not the frag subtype. --- gas/ChangeLog | 5 +++++ gas/config/tc-xtensa.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index ce26d2ee3e..5a87bd47dc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-11-27 Sterling Augustine + + * 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 * config/tc-xtensa.c (XSHAL_ABI): Add default definition. diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index dbffac400b..a8cfd2be7e 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; -- 2.11.0