Re: [PATCH 02/16] gcc: Embed the driver in-process within libgccjit

2015-06-02 Thread Bert Wesarg
On Mon, Jun 1, 2015 at 11:04 PM, David Malcolm wrote: > Provide a way to clean up state within the driver code, and use this > from libgccjit to embed it in-process, rather that via pex. Part of > this requires restoring the environment after any putenv calls, so the > patch introduces an env_man

[PATCH 02/16] gcc: Embed the driver in-process within libgccjit

2015-06-01 Thread David Malcolm
Provide a way to clean up state within the driver code, and use this from libgccjit to embed it in-process, rather that via pex. Part of this requires restoring the environment after any putenv calls, so the patch introduces an env_manager class. No effort is made to restore the environment for t