diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2019-08-07 16:15:35 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2019-08-07 16:15:35 +0000 |
commit | c822ac7daa0d0c920bbb87cdba847fed6331ba73 (patch) | |
tree | c4a145999042758ab7474f359273bb4ebfe103a2 /gcc/cgraphclones.c | |
parent | 529bc4103b78fa16cbd93d7947724472a4ffb31e (diff) | |
download | gcc-c822ac7daa0d0c920bbb87cdba847fed6331ba73.zip gcc-c822ac7daa0d0c920bbb87cdba847fed6331ba73.tar.gz gcc-c822ac7daa0d0c920bbb87cdba847fed6331ba73.tar.bz2 |
PR driver/91130 Use CL_DRIVER when handling of COLLECT_GCC_OPTIONS in lto-wrapper.c
Some options are handled differently by the main driver (gcc, g++,
etc) from the back-end compiler programs (cc1, cc1plus, etc) in that
in the driver they do not take an additional argument, while in the
compiler programs they do. The processing option option CL_DRIVER
controls this alternative interpretation of the options.
The environment variable COLLECT_GCC_OPTIONS is the list of options to
add to a compile if the compiler re-invokes itself at some point. As
such, the options are driver options, so CL_DRIVER should be used when
processing this list. Currently lto-wrapper is doing this
incorrectly.
PR driver/91130
* lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
processing COLLECT_GCC_OPTIONS.
(run_gcc): Likewise.
From-SVN: r274176
Diffstat (limited to 'gcc/cgraphclones.c')
0 files changed, 0 insertions, 0 deletions