aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-xtensa.c
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/config/tc-xtensa.c
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/config/tc-xtensa.c')
-rw-r--r--gas/config/tc-xtensa.c10
1 files changed, 9 insertions, 1 deletions
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. */