This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin



------- Comment #15 from d dot g dot gorbachev at gmail dot com  2010-01-18 18:48 -------
Created an attachment (id=19649)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19649&action=view)
Simple patch

It leaves -plugin-opt in LINK_COMMAND_SPEC, but I think it is not quite right,
as LIBGCC_SPEC and LIB_SPEC are redefined by many targets (and, for example,
choose libc or libc_p depending on -p / -pg / -profile).

GCC r155915 bootstrapped with this patch on i686-pc-linux-gnu with and without
--disable-shared option. It seems to work.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]