mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
2010-02-10 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
This commit is contained in:
@ -5016,16 +5016,22 @@ xtensa_find_unaligned_loops (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
addressT frag_addr;
|
addressT frag_addr;
|
||||||
xtensa_format fmt;
|
xtensa_format fmt;
|
||||||
|
|
||||||
xtensa_insnbuf_from_chars
|
if (frag->fr_fix == 0)
|
||||||
(isa, insnbuf, (unsigned char *) frag->fr_literal, 0);
|
frag = next_non_empty_frag (frag);
|
||||||
fmt = xtensa_format_decode (isa, insnbuf);
|
|
||||||
op_size = xtensa_format_length (isa, fmt);
|
if (frag)
|
||||||
frag_addr = frag->fr_address % xtensa_fetch_width;
|
{
|
||||||
|
xtensa_insnbuf_from_chars
|
||||||
if (frag_addr + op_size > xtensa_fetch_width)
|
(isa, insnbuf, (unsigned char *) frag->fr_literal, 0);
|
||||||
as_warn_where (frag->fr_file, frag->fr_line,
|
fmt = xtensa_format_decode (isa, insnbuf);
|
||||||
_("unaligned loop: %d bytes at 0x%lx"),
|
op_size = xtensa_format_length (isa, fmt);
|
||||||
op_size, (long) frag->fr_address);
|
frag_addr = frag->fr_address % xtensa_fetch_width;
|
||||||
|
|
||||||
|
if (frag_addr + op_size > xtensa_fetch_width)
|
||||||
|
as_warn_where (frag->fr_file, frag->fr_line,
|
||||||
|
_("unaligned loop: %d bytes at 0x%lx"),
|
||||||
|
op_size, (long) frag->fr_address);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
frag = frag->fr_next;
|
frag = frag->fr_next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user