libcc1 base API: add set_verbose and new version of compile
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 31 Jan 2017 01:00:51 +0000 (01:00 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 31 Jan 2017 01:00:51 +0000 (01:00 +0000)
commit3b5c10724d7a0c29ae613bee7a0822131b06b5a8
tree527bb62c7f3019515db3568acbcb3b35bd60842e
parent023721aab10f963e82eee27d732d2397c44af1de
libcc1 base API: add set_verbose and new version of compile

for  include/ChangeLog

* gcc-interface.h (enum gcc_base_api_version): Add comment to
GCC_FE_VERSION_1.
(struct gcc_base_vtable): Rename compile to compile_v0.
Update comment for compile.  New methods set_verbose and
compile.

for  libcc1/ChangeLog

* libcc1.cc: Include intl.h.
(struct libcc1): Add field verbose.
(libcc1::libcc1): Initialize it.
(libcc1_set_verbose): New function.
(libcc1_set_arguments): Print messages for VERBOSE.
(libcc1_compile): Remove parameter verbose.  Use VERBOSE from
SELF.
(libcc1_compile_v0): New function.
(vtable): Use libcc1_compile_v0 and add libcc1_compile and
libcc1_set_verbose.

From-SVN: r245048
include/ChangeLog
include/gcc-interface.h
libcc1/ChangeLog
libcc1/libcc1.cc