lto-wrapper: Use vec<cl_decoded_option> data type.
authorMartin Liska <mliska@suse.cz>
Fri, 12 Mar 2021 10:53:47 +0000 (11:53 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 12 May 2021 09:47:08 +0000 (11:47 +0200)
commit227a2ecf663d69972b851f51f1934d18927b62cd
treeb800b44fd5d863310d3f8c0c82c4f411da124dab
parent1ecd1e6c894fbdbc10fdcfee419922b24e1115ee
lto-wrapper: Use vec<cl_decoded_option> data type.

gcc/ChangeLog:

* lto-wrapper.c (get_options_from_collect_gcc_options): Change
return type.
(append_option): Remove.
(find_option): Rework to use the vector type.
(remove_option): Remove.
(merge_and_complain): Use vectors for cl_decoded_option data
type arguments.
(append_compiler_options): Likewise.
(append_diag_options): Likewise.
(append_linker_options): Likewise.
(append_offload_options): Likewise.
(compile_offload_image): Likewise.
(compile_images_for_offload_targets): Likewise.
(find_and_merge_options): Likewise.
(run_gcc): Likewise.
gcc/lto-wrapper.c