This is the mail archive of the gcc-patches@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]

[patch c++]: Add special code for linker-plugin and libstdc++


Hello,

By running for x86_64-w64-mingw32 target g++.dg's testsuite
(torture/stackalign/stackalign.exp)
I noticed that some LTO tests are failing due unresolved symbols,
which are part of libstc++.
By this I found that c++ driver did not add for enabled linker-plugin
linker-specific option
-plugin-opt=-pass-through=-l<library-name> for libstdc++ and libm.a.

2011-01-17  Kai Tietz

	* g++spec.c (lang_specific_driver): Add
	linker specific options for libstdc++/libm when
	LTO and linker-plugin are used.


Tested for x86_64-pc-linux-gnu and x86_64-w64-mingw32. Ok for apply?


Regards,
Kai

Attachment: cxx_linker_plugin.txt
Description: Text document


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