From 53c04ec92a37b35a7f37e00bd5a4b611cf470e3c Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 27 Jan 2015 20:19:36 +0000 Subject: 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 --- gcc/jit/jit-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/jit/jit-common.h') diff --git a/gcc/jit/jit-common.h b/gcc/jit/jit-common.h index 09d63badd9c..8753651a2be 100644 --- a/gcc/jit/jit-common.h +++ b/gcc/jit/jit-common.h @@ -178,6 +178,8 @@ public: recording::location * make_location () const; + FILE *get_file () const { return m_file; } + private: recording::context &m_ctxt; const char *m_filename; -- cgit v1.2.1