Re: [PATCH 09/16] libiberty.h: Provide CTIMER_PUSH/POP

2015-06-02 Thread Jeff Law
On 06/01/2015 03:30 PM, DJ Delorie wrote: libiberty is not an API to gcc, it is a portability library. If GCC is exporting a timer, GCC's headers should have the interface in it. Agreed. jeff

Re: [PATCH 09/16] libiberty.h: Provide CTIMER_PUSH/POP

2015-06-01 Thread DJ Delorie
libiberty is not an API to gcc, it is a portability library. If GCC is exporting a timer, GCC's headers should have the interface in it.

[PATCH 09/16] libiberty.h: Provide CTIMER_PUSH/POP

2015-06-01 Thread David Malcolm
gcc provides a timing mechanism, with a C++-based API. This patch provide a C-based API so that we can call into it from binutils. include/ChangeLog: * libiberty.h (struct ctimer): New. (CTIMER_PUSH): New macro. (CTIMER_POP): New macro. --- include/libiberty.h | 32 ++