This is the mail archive of the gcc-patches@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]

Re: Uninitialized memory access in final.c


On Tue, Sep 19, 2000 at 03:45:03PM +0100, Bernd Schmidt wrote:
> Is it ever valid for an insn's length to be increased during
> shorten_branches?  It seems to me that this would cause the
> algorithm to be no longer guaranteed to terminate.

I thought we started with smallest lengths and always expanded.
Otherwise you wouldn't find the minimal solution.

> 	* final.c (insn_current_reference_address): Use INSN_SHUID of seq
> 	rather than that of branch.
> 	(shorten_branches): Don't increment insn_current_address twice.

Ok.


r~

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