aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-xtensa.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-12-20 19:37:26 +0000
committerBob Wilson <bob.wilson@acm.org>2005-12-20 19:37:26 +0000
commitb5e4a23d9f373b27ab7af4845d8ab6abcc5b2c1e (patch)
treee339bc51f46cd5e1d59f120c5d2e5ea159473f96 /gas/config/tc-xtensa.h
parent13c0b5369d0ce1e19bd79a2f70aa0da289b98f36 (diff)
downloadgdb-b5e4a23d9f373b27ab7af4845d8ab6abcc5b2c1e.zip
gdb-b5e4a23d9f373b27ab7af4845d8ab6abcc5b2c1e.tar.gz
gdb-b5e4a23d9f373b27ab7af4845d8ab6abcc5b2c1e.tar.bz2
* config/tc-xtensa.c (xtensa_mark_narrow_branches): Set
is_aligning_branch flag. (find_address_of_next_align_frag): Limit by xtensa_fetch_width. (future_alignment_required): Except for frags with is_aligning_branch flag set, call frag_wane for frags that do not need to be reexamined for aligning. (relax_frag_immed): Replace orig_vinsn with cur_vinsn to fix a leak. (convert_frag_immed): Likewise. (convert_frag_narrow): Check is_aligning_branch flag. * config/tc-xtensa.h (xtensa_frag_type): Add is_aligning_branch flag.
Diffstat (limited to 'gas/config/tc-xtensa.h')
-rw-r--r--gas/config/tc-xtensa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-xtensa.h b/gas/config/tc-xtensa.h
index 35717f0..84e7871 100644
--- a/gas/config/tc-xtensa.h
+++ b/gas/config/tc-xtensa.h
@@ -213,6 +213,10 @@ struct xtensa_frag_type
contains an instruction. */
unsigned int is_first_loop_insn : 1;
+ /* A frag with this bit set is a branch that we are using to
+ align branch targets as if it were a normal narrow instruction. */
+ unsigned int is_aligning_branch : 1;
+
/* For text fragments that can generate literals at relax time, this
variable points to the frag where the literal will be stored. For
literal frags, this variable points to the nearest literal pool