From: Joseph Myers <joseph@codesourcery.com>
To: David Malcolm <dmalcolm@redhat.com>
Cc: <gcc-patches@gcc.gnu.org>, <jit@gcc.gnu.org>
Subject: Re: [PATCH 1/2] driver: support state cleanup
Date: Thu, 01 Jan 2015 00:00:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.10.1508251347380.326@digraph.polyomino.org.uk> (raw)
In-Reply-To: <1438872724-18658-2-git-send-email-dmalcolm@redhat.com>
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_manager::restore): New.
> Poison getenv and putenv.
> (DEFAULT_TARGET_SYSTEM_ROOT): New.
> (target_system_root): Update initialization to use
> DEFAULT_TARGET_SYSTEM_ROOT.
> (struct spec_list): Add field "default_ptr".
> (INIT_STATIC_SPEC): Initialize new field "default_ptr".
> (init_spec): Likewise.
> (set_spec): Clear field "default_ptr".
> (read_specs): Free "spec" and "buffer".
> (xputenv): Reimplement in terms of env_manager.
> (process_command): Replace ::getenv calls with calls to the
> env_manager singleton.
> (process_brace_body): Free string in three places.
> (driver::driver): New.
> (driver::~driver): New.
> (used_arg): Convert from a function to...
> (class used_arg_t): ...this class, and...
> (used_arg): ...this new global instance.
> (used_arg_t::finalize): New function.
> (getenv_spec_function): Add "const" to local "value". Replace
> ::getenv call with call to the env_manager singleton.
> (path_prefix_reset): New function.
> (driver::finalize): New function.
> * gcc.h (driver::driver): New.
> (driver::~driver): New.
> (driver::finalize): New.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2015-08-25 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 0:00 [PATCH 0/2] Embed driver within libgccjit David Malcolm
2015-01-01 0:00 ` [PATCH 2/2] jit: use an embedded copy of the driver David Malcolm
2015-01-01 0:00 ` [PATCH 1/2] driver: support state cleanup David Malcolm
2015-01-01 0:00 ` Joseph Myers [this message]
2015-01-01 0:00 ` David Malcolm
2015-01-01 0:00 ` Joseph Myers
2015-01-01 0:00 ` [PING] Re: [PATCH 0/2] Embed driver within libgccjit David Malcolm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.10.1508251347380.326@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=dmalcolm@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jit@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).