diff options
author | Bob Wilson <bob.wilson@acm.org> | 2005-09-30 21:58:28 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2005-09-30 21:58:28 +0000 |
commit | 223da61e86540e24074052e795680c7e4a2391fb (patch) | |
tree | 0f3432f49a3aec6683d3935d741095ee0c58dcf2 /gas/config/tc-xtensa.c | |
parent | 662c66a7e1a187c9d41d522770ae5bd6bc3cf81c (diff) | |
download | binutils-redhat-223da61e86540e24074052e795680c7e4a2391fb.tar.gz |
* 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.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index c93a4dfafe..3b551c4e58 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. */ |