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]
Other format: [Raw text]

Re: [PATCH 6/9] Emit the prologue/epilogue using frame offsets.


On 08/05/2010 11:30 AM, H.J. Lu wrote:
> I think this patch is clearer and also fixes the issue.

> -	  addr = GEN_INT (-crtl->stack_alignment_needed / BITS_PER_UNIT);
> +	  addr = GEN_INT (-(crtl->stack_alignment_needed
> +			    / BITS_PER_UNIT));

Not quite.  Here you get 0xfffffff0u not -16, which is different
for 64-bit HOST_WIDE_INT.  Which technically works, but the unwind
info is larger since -16 encodes smaller.


r~


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