From: Jan Hubicka Date: Wed, 21 Dec 2022 11:45:56 +0000 (+0100) Subject: Skip -fwhole-program when merging LTO options. X-Git-Tag: basepoints/gcc-14~2380 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89ba8366fe12fd2d04535c99ba67f33d7e305132;p=thirdparty%2Fgcc.git Skip -fwhole-program when merging LTO options. gcc/ChangeLog: 2022-12-21 Jan Hubicka * lto-opts.cc (lto_write_options): Also skip -fwhole-program. --- diff --git a/gcc/lto-opts.cc b/gcc/lto-opts.cc index b234b35d73d5..968db3546175 100644 --- a/gcc/lto-opts.cc +++ b/gcc/lto-opts.cc @@ -150,6 +150,7 @@ lto_write_options (void) case OPT_ffile_prefix_map_: case OPT_fmacro_prefix_map_: case OPT_fprofile_prefix_map_: + case OPT_fwhole_program: continue; default: