aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-02-10 01:02:12 +0000
committerBob Wilson <bob.wilson@acm.org>2006-02-10 01:02:12 +0000
commit21af2bbd7384597a33a87f43df022222d962b80c (patch)
tree5509b6f5df93a3b545e56a21f126d0758d603d5e
parentf2098f1341cb9556ab4bae75b9ec009cdd14e86c (diff)
downloadgdb-21af2bbd7384597a33a87f43df022222d962b80c.zip
gdb-21af2bbd7384597a33a87f43df022222d962b80c.tar.gz
gdb-21af2bbd7384597a33a87f43df022222d962b80c.tar.bz2
* config/tc-xtensa.c (xg_assembly_relax): Increment steps_taken for
each relaxation step.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-xtensa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b6fd6b5..e3e155f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-09 David Heine <dlheine@tensilica.com>
+
+ * config/tc-xtensa.c (xg_assembly_relax): Increment steps_taken for
+ each relaxation step.
+
2006-02-09 Eric Botcazou <ebotcazou@libertysurf.fr>
* configure.in (CHECK_DECLS): Add vsnprintf.
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index e4d73bf..ac9274b 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -3563,10 +3563,10 @@ xg_assembly_relax (IStack *istack,
/* Walk through all of the single instruction expansions. */
while (xg_is_single_relaxable_insn (&current_insn, &single_target, FALSE))
{
+ steps_taken++;
if (xg_symbolic_immeds_fit (&single_target, pc_seg, pc_frag, pc_offset,
stretch))
{
- steps_taken++;
if (steps_taken >= min_steps)
{
istack_push (istack, &single_target);