* config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
authorBob Wilson <bob.wilson@acm.org>
Fri, 30 Sep 2005 21:58:28 +0000 (21:58 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 30 Sep 2005 21:58:28 +0000 (21:58 +0000)
gas/ChangeLog
gas/config/tc-xtensa.c

index 2645af95fd741b2e210a7380b65010bdb754f113..0b7ddc576aaed26194520ed655ce66e690b29bfa 100644 (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".
index c93a4dfafe90e6d28137b8c81493f8bf0aeb4165..3b551c4e583ec6bfc52e38908ffc97a4df004ada 100644 (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.  */
This page took 0.04145 seconds and 4 git commands to generate.