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 | |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/opts.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f4b61d..f620ffd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-04 Caroline Tice <cmtice@google.com> + + * opts.c (finish_options): Disallow -fvtable-verify and -flto to be + specified together. + 2019-09-04 Marek Polacek <polacek@redhat.com> * doc/invoke.texi: Remove -fdeduce-init-list documentation. @@ -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) { |