PR jit/64721: toplev: don't install signal-handlers when running within libgccjit
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 23 Jan 2015 16:28:14 +0000 (16:28 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 23 Jan 2015 16:28:14 +0000 (16:28 +0000)
commit6fc2d0f36223308d21f2347c9b48bc61fed2405c
tree21c3c537b4d132c613ac2e0d01dacf9b6b81424a
parentca72dad54a775cbcf4be545feb1f5575e064387a
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
gcc/ChangeLog
gcc/jit/ChangeLog
gcc/jit/jit-playback.c
gcc/main.c
gcc/toplev.c
gcc/toplev.h