Re: [PATCH 1/2] Add gcc/typed-splay-tree.h

2015-07-01 Thread Jeff Law
On 06/29/2015 11:36 AM, David Malcolm wrote: On Thu, 2015-06-25 at 13:18 -0600, Jeff Law wrote: On 06/25/2015 01:13 PM, David Malcolm wrote: I found when implementing switch statements for the jit that it was much easier to work with libiberty's splay-tree.h by first wrapping it in a C++

Re: [PATCH 1/2] Add gcc/typed-splay-tree.h

2015-06-29 Thread David Malcolm
On Thu, 2015-06-25 at 13:18 -0600, Jeff Law wrote: On 06/25/2015 01:13 PM, David Malcolm wrote: I found when implementing switch statements for the jit that it was much easier to work with libiberty's splay-tree.h by first wrapping it in a C++ wrapper to add typesafety. This patch adds

Re: [PATCH 1/2] Add gcc/typed-splay-tree.h

2015-06-25 Thread Jeff Law
On 06/25/2015 01:13 PM, David Malcolm wrote: I found when implementing switch statements for the jit that it was much easier to work with libiberty's splay-tree.h by first wrapping it in a C++ wrapper to add typesafety. This patch adds such a wrapper, implementing the methods I needed. It's

[PATCH 1/2] Add gcc/typed-splay-tree.h

2015-06-25 Thread David Malcolm
I found when implementing switch statements for the jit that it was much easier to work with libiberty's splay-tree.h by first wrapping it in a C++ wrapper to add typesafety. This patch adds such a wrapper, implementing the methods I needed. It's unused in this patch, but is used in the followup