* config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.

This commit is contained in:
Bob Wilson 2005-09-30 21:58:28 +00:00
parent c843b1bbc1
commit 3ea38ac270
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-09-30 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am: Run "make dep-am".

View File

@ -5030,7 +5030,15 @@ xtensa_init_fix_data (fixS *x)
void
xtensa_frob_label (symbolS *sym)
{
float freq = get_subseg_target_freq (now_seg, now_subseg);
float freq;
if (cur_vinsn.inside_bundle)
{
as_bad (_("labels are not valid inside bundles"));
return;
}
freq = get_subseg_target_freq (now_seg, now_subseg);
/* Since the label was already attached to a frag associated with the
previous basic block, it now needs to be reset to the current frag. */