]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/d/d-lang.cc
d: Remove dependency on front-end OutBuffer for diagnostic and deps file generation.
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 16 Jun 2020 13:42:23 +0000 (15:42 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 16 Jun 2020 21:37:33 +0000 (23:37 +0200)
commita23b6d61bca7ee91e326264f2923a609908d1d04
tree6f3e6b7e52a9572c4b7af518cfa2ecf822503557
parent0a98123c7a6570b4a00b3fa01e3883224e5e8e69
d: Remove dependency on front-end OutBuffer for diagnostic and deps file generation.

gcc/d/ChangeLog:

* d-diagnostic.cc (expand_d_format): Replace OutBuffer with obstack.
(d_diagnostic_report_diagnostic): Don't free xformat.
* d-lang.cc (struct d_option_data): Change deps_target type from
OutBuffer to vec <const char *>.
(deps_add_target): Update to push each target to deps_target.
(deps_write_string): New function.
(deps_write): Change buffer type to obstack* and remove colmax.
(d_init_options): Update initialization of deps_target.
(d_parse_file): Replace OutBuffer with obstack.
gcc/d/d-diagnostic.cc
gcc/d/d-lang.cc