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] Fix PR rtl-optimization/15381: reorg incorrectly removes


> If we wanted to be extra safe for 3.3/3.4 we could do something like:
> 
>   if (had_barrier
>       || (GET_CODE (trial) == JUMP_INSN
>           && (simplejump_p (trial) || GET_CODE (PATTER (trial)) == RETURN))

The reason I didn't do this is because it's too late to be adding in
missing barriers at this point.  Reorg makes several passes through
the insn stream, and mark_target_live_regs needs a correct set of
barriers right from the start to work correctly.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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