2010-07-22 Richard Guenther <rguenther@suse.de>
* lib/target-supports-dg.exp (dg-require-linker-plugin): New proc.
* lib/target-supports.exp (check_linker_plugin_available): Likewise.
PR lto/43373
* gcc.dg/lto/
20100722-1_0.c: New testcase.
From-SVN: r162414
+2010-07-22 Richard Guenther <rguenther@suse.de>
+
+ * lib/target-supports-dg.exp (dg-require-linker-plugin): New proc.
+ * lib/target-supports.exp (check_linker_plugin_available): Likewise.
+
+ PR lto/43373
+ * gcc.dg/lto/20100722-1_0.c: New testcase.
+
2010-07-22 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/44891
--- /dev/null
+/* { dg-lto-do run } */
+/* { dg-require-lto-plugin "" } */
+/* { dg-extra-ld-options "-fuse-linker-plugin" } */
+
+int main() { return 0; }
+
}
}
+proc dg-require-linker-plugin { args } {
+ set linker_plugin_available [ check_linker_plugin_available ]
+ if { $linker_plugin_available == 0 } {
+ upvar dg-do-what dg-do-what
+ set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
+ }
+}
+
# Add any target-specific flags needed for accessing the given list
# of features. This must come after all dg-options.
} "-static"]
}
+proc check_linker_plugin_available { } {
+ return [check_no_compiler_messages_nocache linker_plugin executable {
+ int main() { return 0; }
+ } "-flto -fuse-linker-plugin"]
+}
+
# Return 1 if the target supports executing 750CL paired-single instructions, 0
# otherwise. Cache the result.