diff options
author | Caroline Tice <cmtice@google.com> | 2019-09-04 15:33:27 -0700 |
---|---|---|
committer | Caroline Tice <ctice@gcc.gnu.org> | 2019-09-04 15:33:27 -0700 |
commit | 9eb730b8391794c7d451c7fde661b18ccacfbc3a (patch) | |
tree | 90fabb2998007c9e7aed70f6e622082d68cc2fb5 /gcc/opts.c | |
parent | db9d22747831cd595b6e909a588a1c87ead2a698 (diff) | |
download | gcc-9eb730b8391794c7d451c7fde661b18ccacfbc3a.zip gcc-9eb730b8391794c7d451c7fde661b18ccacfbc3a.tar.gz gcc-9eb730b8391794c7d451c7fde661b18ccacfbc3a.tar.bz2 |
Disallow -fvtable-verify and -flto to be used together.
Vtable verification currently does not work properly with
link time optimization. Until this can be fixed users should
not be allowed to specify both options together.
2019-09-04 Caroline Tice <cmtice@google.com>
* opts.c (finish_options): Disallow -fvtable-verify and -flto to be
specified together.
From-SVN: r275388
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1226,6 +1226,10 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, if (opts->x_flag_live_patching && opts->x_flag_lto) sorry ("live patching is not supported with LTO"); + /* Currently vtable verification is not supported for LTO */ + if (opts->x_flag_vtable_verify && opts->x_flag_lto) + sorry ("vtable verification is not supported with LTO"); + /* Control IPA optimizations based on different -flive-patching level. */ if (opts->x_flag_live_patching) { |