OSDN Git Service

Fix Bug savannah/1825:
authorciceron <ciceron>
Sun, 1 Dec 2002 11:02:08 +0000 (11:02 +0000)
committerciceron <ciceron>
Sun, 1 Dec 2002 11:02:08 +0000 (11:02 +0000)
commita4ff1a7bb8a1d391e7499db8c97982bffb77f481
treeebbe6ba0b17c73d6a7d22b1fdf79a591d32ef0db
parentff9e02a66a75e42a94c803a972733d572804158c
Fix Bug savannah/1825:
* config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
that are not pc-relative.
(m68hc11_relax_frag): Declare.

* config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
the offsetable indexed addressing modes (n,r).
(build_insn): Cleanup some locals.
(m68hc11_relax_frag): New function imported from tc-cris.c to handle
relaxation of difference between two symbols of same section.
(md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
only when this is a PC-relative operand and the offset is not absolute.
(md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
be handled by m68hc11_relax_frag.
gas/ChangeLog
gas/config/tc-m68hc11.c
gas/config/tc-m68hc11.h