2007-08-28 David Heine <dlheine@tensilica.com>
authorBob Wilson <bob.wilson@acm.org>
Tue, 28 Aug 2007 18:43:03 +0000 (18:43 +0000)
committerBob Wilson <bob.wilson@acm.org>
Tue, 28 Aug 2007 18:43:03 +0000 (18:43 +0000)
* elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
narrowing instructions.

bfd/ChangeLog
bfd/elf32-xtensa.c

index 0fb40788f6748215a6cd66de5d0a3b7cd79c7252..b4e0a1d4a30cef9f9edc600ee9a088e9f392d1e4 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-28  David Heine  <dlheine@tensilica.com>
+
+       * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
+       narrowing instructions.
+
 2007-08-28  Mark Shinwell  <shinwell@codesourcery.com>
             Joseph Myers  <joseph@codesourcery.com>
 
index 2531df5810d90bf700a39baa168b7259d6dd5df3..2ade49f0dd568d9ab64ac534acbea418012ddda7 100644 (file)
@@ -6926,6 +6926,8 @@ compute_ebb_actions (ebb_constraint *ebb_table)
                      bad_alignment = FALSE;
                      break;
                    }
+                 if (new_action->do_action)
+                   removed_bytes += new_action->removed_bytes;
                }
              if (!bad_alignment)
                {