This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 4.0 RC2


Ian Lance Taylor <ian@airs.com> writes:
> Richard Sandiford <rsandifo@redhat.com> writes:
>> Huh.  For the record: it can't.  get_attr_length() returns 0
>> for ADDR_VECs regardless of JUMP_IN_TEXT_SECTION.  I'll update
>> the comment when applying the bug-fix patch to mainline.
>
> shorten_branches handles JUMP_TABLES_IN_TEXT_SECTION correctly.  You
> don't need ADJUST_INSN_LENGTHS unless you need to call get_attr_length
> somewhere else.

The code I mentioned isn't related to ADJUST_INSN_LENGTHS.
It's a subroutine of the mips16 constant layout code.

As far as shorten_branches() goes: I realise that it handles text jump
tables correctly, but the mips16 layout code runs in reorg, before
shorten_branches() has been called.

I suppose we could call shorten_branches() from the mips16 layout
code, but I don't like the idea of relying on the cached results of
shorten_branches() in a pass that is specifically supposed to
_increase_ the distance between things.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]