https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123888
--- Comment #16 from Jan Hubicka <hubicka at ucw dot cz> --- > --param max-devirt-targets=1 doesn't help when specified on the g++ -shared > link line, > will try to specify it on the -c -flto -fprofile-use command lines next. It is an optimization option, so it is streamed into the .o files and needs to be set at compile time. I am looking into the WPA files.
