diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-23 16:28:14 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-23 16:28:14 +0000 |
commit | 6fc2d0f36223308d21f2347c9b48bc61fed2405c (patch) | |
tree | 21c3c537b4d132c613ac2e0d01dacf9b6b81424a /gcc/main.c | |
parent | ca72dad54a775cbcf4be545feb1f5575e064387a (diff) | |
download | gcc-6fc2d0f36223308d21f2347c9b48bc61fed2405c.zip gcc-6fc2d0f36223308d21f2347c9b48bc61fed2405c.tar.gz gcc-6fc2d0f36223308d21f2347c9b48bc61fed2405c.tar.bz2 |
PR jit/64721: toplev: don't install signal-handlers when running within libgccjit
gcc/ChangeLog:
PR jit/64721
* main.c (main): Construct toplev instances with init_signals=true.
* toplev.c (general_init): Add param "init_signals", and use it to
conditionalize the calls to signal and host_hooks.extra_signals.
(toplev::toplev): Add param "init_signals".
(toplev::main): When invoking general_init, pass m_init_signals
to control whether signal-handlers are installed.
* toplev.h (toplev::toplev): Add param "init_signals".
(toplev::m_init_signals): New field.
gcc/jit/ChangeLog:
PR jit/64721
* jit-playback.c (gcc::jit::playback::context::compile): Construct
toplev instances with init_signals=false.
From-SVN: r220045
Diffstat (limited to 'gcc/main.c')
-rw-r--r-- | gcc/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,7 +33,8 @@ int main (int argc, char **argv); int main (int argc, char **argv) { - toplev toplev (true); + toplev toplev (true, /* use_TV_TOTAL */ + true /* init_signals */); return toplev.main (argc, argv); } |