diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-27 20:19:36 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-27 20:19:36 +0000 |
commit | 53c04ec92a37b35a7f37e00bd5a4b611cf470e3c (patch) | |
tree | c8823405a2ab3de543e96e14ffc83037629e01f9 /gcc/jit/jit-logging.c | |
parent | 710700abb804afc0846423ab246034dec745a599 (diff) | |
download | gcc-53c04ec92a37b35a7f37e00bd5a4b611cf470e3c.zip gcc-53c04ec92a37b35a7f37e00bd5a4b611cf470e3c.tar.gz gcc-53c04ec92a37b35a7f37e00bd5a4b611cf470e3c.tar.bz2 |
toplev: gcc version information for jit
gcc/ChangeLog:
* toplev.c (print_version): Add param "show_global_state", and
only print GGC and plugin information if it is true.
(init_asm_output): Pass in "true" for the new param when calling
print_version.
(process_options): Likewise.
(toplev::main): Likewise.
* toplev.h (print_version): Add new param to decl.
gcc/jit/ChangeLog:
* docs/internals/test-hello-world.exe.log.txt: Add example version
lines.
* jit-common.h (gcc::jit::dump::get_file): New accessor.
* jit-logging.c: Include toplev.h.
(gcc::jit::logger::logger): Log the GCC version.
* jit-recording.c: Include toplev.h.
(gcc:jit::recording::context::dump_reproducer_to_file): Log the
GCC version.
From-SVN: r220190
Diffstat (limited to 'gcc/jit/jit-logging.c')
-rw-r--r-- | gcc/jit/jit-logging.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/jit/jit-logging.c b/gcc/jit/jit-logging.c index 61b898b..22ab6fd 100644 --- a/gcc/jit/jit-logging.c +++ b/gcc/jit/jit-logging.c @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "toplev.h" /* for print_version */ #include "jit-logging.h" @@ -41,6 +42,8 @@ logger::logger (FILE *f_out, m_indent_level (0), m_log_refcount_changes (false) { + /* Begin the log by writing the GCC version. */ + print_version (f_out, "JIT:", false); } /* The destructor for gcc::jit::logger, invoked via |