r274411 - in /trunk/gcc: ChangeLog builtins.c b...
luoxhu@gcc.gnu.org
luoxhu@gcc.gnu.org
Wed Aug 14 02:18:00 GMT 2019
Author: luoxhu
Date: Wed Aug 14 02:18:33 2019
New Revision: 274411
URL: https://gcc.gnu.org/viewcvs?rev=274411&root=gcc&view=rev
Log:
Enable math functions linking with static library for LTO
In LTO mode, if static library and dynamic library contains same
function and both libraries are passed as arguments, linker will link
the function in dynamic library no matter the sequence. This patch
will output LTO symbol node as UNDEF if BUILT_IN_NORMAL function FNDECL
is a math function, then the function in static library will be linked
first if its sequence is ahead of the dynamic library.
gcc/ChangeLog
2019-08-14 Xiong Hu Luo <luoxhu@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:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/builtins.h
trunk/gcc/lto-streamer-out.c
trunk/gcc/symtab.c
More information about the Gcc-cvs
mailing list