Re: [PATCH 3/5] timevar.h: Add an auto_timevar class

2014-10-15 Thread Richard Biener
On Tue, Oct 14, 2014 at 5:51 PM, David Malcolm wrote: > On Tue, 2014-10-14 at 11:03 +0200, Richard Biener wrote: >> On Mon, Oct 13, 2014 at 7:45 PM, David Malcolm wrote: >> > This is used in a couple of places in jit/jit-playback.c to ensure >> > that we pop the timevar on every exit path from a

Re: [PATCH 3/5] timevar.h: Add an auto_timevar class

2014-10-14 Thread David Malcolm
On Tue, 2014-10-14 at 11:03 +0200, Richard Biener wrote: > On Mon, Oct 13, 2014 at 7:45 PM, David Malcolm wrote: > > This is used in a couple of places in jit/jit-playback.c to ensure > > that we pop the timevar on every exit path from a function. > > > > I could rewrite them if need be, but it do

Re: [PATCH 3/5] timevar.h: Add an auto_timevar class

2014-10-14 Thread Richard Biener
On Mon, Oct 13, 2014 at 7:45 PM, David Malcolm wrote: > This is used in a couple of places in jit/jit-playback.c to ensure > that we pop the timevar on every exit path from a function. > > I could rewrite them if need be, but it does simplify things. Sorry to be bikeshedding but auto_timevar soun

[PATCH 3/5] timevar.h: Add an auto_timevar class

2014-10-13 Thread David Malcolm
This is used in a couple of places in jit/jit-playback.c to ensure that we pop the timevar on every exit path from a function. I could rewrite them if need be, but it does simplify things. Written by Tom Tromey. gcc/ChangeLog: * timevar.h (class auto_timevar): New class. --- gcc/timevar