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: [RFA][PATCH] Fix an ia64 Ada bootstrap problem


> But that makes *no* sense when the trap is in the else block.  The label
> has been deleted from the insn chain and more importantly, we want to
> fallthru if we do not trap!
> 
> Thankfully the the CFG checking code detected this inconsistency.  It's
> been latent since 2002!  Clearly we aren't doing a lot of optimizing
> conditional jumps over/to traps into conditional traps!

Not clear IMO, this seems to have been broken by r120686.

> Anyway, the fix is trivial.  When trap_bb == then_bb, run the code as
> is.  When trap_bb == else_bb we only want to remove the conditinoal jump
> as we want to fallthru if the conditional trap doesn't trigger.
> 
> With this patch applied and Kirill's patch removed, I can almost
> bootstrap the ia64 port with Ada enabled (comparison failure that AFAICT
> is not related to the isolate-erroneous-paths optimization)
> 
> 
> 
> OK for the trunk if it passes a bootstrap & regtest on x86_64 overnight?

Yes, this looks fine to me.

-- 
Eric Botcazou


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