Re: Add overload for register_pass

2013-08-26 Thread Richard Henderson
On 08/24/2013 02:33 PM, Oleg Endo wrote: > gcc/ChangeLog: > * passes.c (register_pass): Add overload. > * tree-pass.h (register_pass): Forward declare it. > Add comment. Ok. r~

Add overload for register_pass

2013-08-24 Thread Oleg Endo
Hi, I've been working on a SH specific RTL pass and just adapted it to the new pass handling. One thing that bugged me was pass registration. How about adding an overload for 'register_pass' as in the attached patch? Registering a pass is then as simple as: register_pass (make_new_ifcvt_sh (g