[Bug lto/55994] multiple definition or memset or strlen for builtins tests with LTO options
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 15 17:44:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55994
--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2013-01-15 17:44:20 UTC ---
"-Wl,--allow-multiple-definition" should be appended to additional_flags for
affected targets.
--cut here--
Index: builtins.exp
===================================================================
--- builtins.exp (revision 195056)
+++ builtins.exp (working copy)
@@ -40,6 +40,8 @@
set additional_flags ""
if [istarget "powerpc-*-darwin*"] {
lappend additional_flags "-Wl,-multiply_defined,suppress"
+} elseif [istarget "arm-*-*"] {
+ lappend additional_flags "-Wl,--allow-multiple-definition"
}
foreach src [lsort [find $srcdir/$subdir *.c]] {
--cut here--
Probably this option should be the default in builtins.exp.
More information about the Gcc-bugs
mailing list