https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287
--- Comment #39 from luoxhu at gcc dot gnu.org --- Author: luoxhu Date: Mon Aug 26 08:53:27 2019 New Revision: 274921 URL: https://gcc.gnu.org/viewcvs?rev=274921&root=gcc&view=rev Log: Backport r274411 from trunk to gcc-9-branch Backport r274411 of "Enable math functions linking with static library for LTO" from mainline to gcc-9-branch. Bootstrapped/Regression-tested on Linux POWER8 LE. gcc/ChangeLog 2019-08-26 Xiong Hu Luo <luo...@linux.ibm.com> Backport r274411 from trunk to gcc-9-branch. 2019-08-14 Xiong Hu Luo <luo...@linux.ibm.com> PR lto/91287 * builtins.c (builtin_with_linkage_p): New function. * builtins.h (builtin_with_linkage_p): New function. * symtab.c (write_symbol): Remove redundant assert. * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p): Remove FIXME and use builtin_with_linkage_p. Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/builtins.c branches/gcc-9-branch/gcc/builtins.h branches/gcc-9-branch/gcc/lto-streamer-out.c branches/gcc-9-branch/gcc/symtab.c