diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-23 16:28:14 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-23 16:28:14 +0000 |
commit | 4d31ecc403a5db4eeeab35a1be99f48a98321133 (patch) | |
tree | 21c3c537b4d132c613ac2e0d01dacf9b6b81424a /gcc/toplev.h | |
parent | 639f32a2555beca61653b1cd13c7c04a014be2de (diff) | |
download | gcc-4d31ecc403a5db4eeeab35a1be99f48a98321133.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index 55037957339..6b423be3c51 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -28,7 +28,8 @@ extern unsigned int save_decoded_options_count; class toplev { public: - toplev (bool use_TV_TOTAL); + toplev (bool use_TV_TOTAL, + bool init_signals); ~toplev (); int main (int argc, char **argv); @@ -40,6 +41,7 @@ private: void start_timevars (); bool m_use_TV_TOTAL; + bool m_init_signals; }; extern void rest_of_decl_compilation (tree, int, int); |