From: Jakub Jelinek Date: Wed, 28 Jan 2015 07:45:56 +0000 (+0100) Subject: re PR bootstrap/64612 (profiledbootstrap failures) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=813ba013999a03821254c03c5d3d33e4512ca678;p=gcc.git re PR bootstrap/64612 (profiledbootstrap failures) 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 }. * doc/sourcebuild.texi (comdat_group): Document. From-SVN: r220198 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32dbae4f6e8..168d255b54d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-28 Jakub Jelinek + + PR bootstrap/64612 + * doc/sourcebuild.texi (comdat_group): Document. + 2015-01-28 Terry Guo * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern. diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 738e55832ae..eef5081b998 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1930,6 +1930,9 @@ Target supports @code{wchar_t} that is compatible with @code{char16_t}. @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} diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c0f0e19f5a..12c1c57d65d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-01-28 Jakub Jelinek + + 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 PR fortran/63861 diff --git a/gcc/testsuite/g++.dg/ipa/pr64612.C b/gcc/testsuite/g++.dg/ipa/pr64612.C index f1cd96ad139..b6fe39a3741 100644 --- a/gcc/testsuite/g++.dg/ipa/pr64612.C +++ b/gcc/testsuite/g++.dg/ipa/pr64612.C @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -std=c++11" } */ -/* { dg-final { scan-assembler "_ZN5QListI7QStringED1Ev" } } */ +/* { dg-final { scan-assembler "_ZN5QListI7QStringED1Ev" { target comdat_group } } } */ class A { diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index b673560df37..2cc8c219dc6 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -6199,3 +6199,13 @@ proc check_effective_target_pie_copyreloc { } { 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; + }] +}