+2015-01-28 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/64612
+ * doc/sourcebuild.texi (comdat_group): Document.
+
2015-01-28 Terry Guo <terry.guo@arm.com>
* config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
@item wchar_t_char32_t_compatible
Target supports @code{wchar_t} that is compatible with @code{char32_t}.
+
+@item comdat_group
+Target uses comdat groups.
@end table
@subsubsection Local to tests in @code{gcc.target/i386}
+2015-01-28 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/64612
+ * lib/target-supports.exp (check_effective_target_comdat_group): New.
+ * g++.dg/ipa/pr64612.C: Guard scan-assembler test with
+ { target comdat_group }.
+
2015-01-27 Tobias Burnus <burnus@net-b.de>
PR fortran/63861
/* { dg-do compile } */
/* { dg-options "-O3 -std=c++11" } */
-/* { dg-final { scan-assembler "_ZN5QListI7QStringED1Ev" } } */
+/* { dg-final { scan-assembler "_ZN5QListI7QStringED1Ev" { target comdat_group } } } */
class A
{
return $pie_copyreloc_available_saved
}
+
+# Return 1 if the target uses comdat groups.
+
+proc check_effective_target_comdat_group {} {
+ return [check_no_messages_and_pattern comdat_group "\.section\[^\n\r]*,comdat" assembly {
+ // C++
+ inline int foo () { return 1; }
+ int (*fn) () = foo;
+ }]
+}