Re: [PATCH] Move global state in timevar.c to a new "timer" class

2015-05-11 Thread Jeff Law
On 05/08/2015 03:41 PM, David Malcolm wrote: I want to make the timevar infrastructure be more flexible, to better serve some JIT use-cases. The following is a "removal of global state" patch which gathers together the state within timevar.c into a new "timer" class. Within the classic cc1/cc1p

[PATCH] Move global state in timevar.c to a new "timer" class

2015-05-08 Thread David Malcolm
I want to make the timevar infrastructure be more flexible, to better serve some JIT use-cases. The following is a "removal of global state" patch which gathers together the state within timevar.c into a new "timer" class. Within the classic cc1/cc1plus/etc use-case, this timer class is a singlet