On Tue, Jan 26, 2016 at 04:44:39PM +0100, Jakub Jelinek wrote:
> 2016-01-26  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR lto/69254
>       * lto-opts.c (lto_write_options): Write also -f{,no-}sanitize=
>       options.
>       * lto-wrapper.c (struct lto_decoded_options): New type.
>       (append_option, merge_and_complain, append_compiler_options,
>       append_linker_options, append_offload_options,
>       compile_offload_image, compile_images_for_offload_targets,
>       find_and_merge_options): Pass around options
>       in struct lto_decoded_options instead of struct cl_decoded_option
>       pointer and count pair.
>       (get_options_from_collect_gcc_options): Likewise.  Parse -fsanitize=
>       options and if in the end any ub sanitizers are enabled, set
>       decoded_opts->sanitize_undefined to true.
>       (run_gcc): Adjust callers of these functions.  If
>       fdecoded_options.sanitize_undefined is true, append
>       -fsanitize=shift after the linker options.

Now successfully bootstrapped/regtested on x86_64-linux and i686-linux.

        Jakub

Reply via email to