aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-09-30 21:58:28 +0000
committerBob Wilson <bob.wilson@acm.org>2005-09-30 21:58:28 +0000
commit3ea38ac27086efbfe6a597fdc9898a2ae7261ffb (patch)
tree473b1cb3f4e6604b0eaf394651f90ad35fd89aab /gas
parentc843b1bbc1010727f8482bb524df0fca46917ea9 (diff)
downloadgdb-3ea38ac27086efbfe6a597fdc9898a2ae7261ffb.zip
gdb-3ea38ac27086efbfe6a597fdc9898a2ae7261ffb.tar.gz
gdb-3ea38ac27086efbfe6a597fdc9898a2ae7261ffb.tar.bz2
* config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-xtensa.c10
2 files changed, 13 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2645af9..0b7ddc5 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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".
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index c93a4df..3b551c4 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -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. */