Re: [PATCH 1/2] driver: support state cleanup

2015-08-25 Thread Joseph Myers
I've committed as obvious this patch to fix a build failure this introduced for targets not defining EXTRA_SPECS, in which case extra_specs is not declared. (nvptx-none was the target for which I came across such a failure.) 2015-08-25 Joseph Myers * gcc.c (driver::finalize): Only

Re: [PATCH 1/2] driver: support state cleanup

2015-08-25 Thread David Malcolm
On Tue, 2015-08-25 at 13:48 +, Joseph Myers wrote: > On Thu, 6 Aug 2015, David Malcolm wrote: > > > gcc/ChangeLog: > > * gcc-main.c (main): Add params to driver ctor. > > * gcc.c (class env_manager): New. > > (env): New global. > > (env_manager::init): New. > > (env_manager

Re: [PATCH 1/2] driver: support state cleanup

2015-08-25 Thread Joseph Myers
On Thu, 6 Aug 2015, David Malcolm wrote: > gcc/ChangeLog: > * gcc-main.c (main): Add params to driver ctor. > * gcc.c (class env_manager): New. > (env): New global. > (env_manager::init): New. > (env_manager::get): New. > (env_manager::xput): New. > (env_m

[PATCH 1/2] driver: support state cleanup

2015-08-06 Thread David Malcolm
This patch implements enough state cleanup with the driver to allow it to be linked within libgccjit.so and repeatedly run in-process. The state cleanup is optional and is only performed by libgccjit. When run within the driver executables, the code does the same as before. This corresponds to th