From: Caroline Tice Date: Wed, 4 Sep 2019 22:33:27 +0000 (-0700) Subject: Disallow -fvtable-verify and -flto to be used together. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9eb730b8391794c7d451c7fde661b18ccacfbc3a;p=gcc.git 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 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be specified together. From-SVN: r275388 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f4b61da6b8..f620ffd9a29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-04 Caroline Tice + + * opts.c (finish_options): Disallow -fvtable-verify and -flto to be + specified together. + 2019-09-04 Marek Polacek * doc/invoke.texi: Remove -fdeduce-init-list documentation. diff --git a/gcc/opts.c b/gcc/opts.c index 1417dba8e4c..07f701c26a5 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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) {