Once COMDAT group support on Solaris 11+ with Sun as got re-enabled https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01120.html
g++.dg/debug/dwarf2/nested-4.C is FAILing in that configuration: FAIL: g++.dg/debug/dwarf2/nested-4.C -std=gnu++98 scan-assembler-times debug_types 2 FAIL: g++.dg/debug/dwarf2/nested-4.C -std=gnu++11 scan-assembler-times debug_types 2 FAIL: g++.dg/debug/dwarf2/nested-4.C -std=gnu++1y scan-assembler-times debug_types 2 We have this in various configurations: * without COMDAT group: .section .debug_types,"",@progbits .section .debug_types,"",@progbits * with COMDAT group with as: .section .debug_types%wt.4e05dcd4da926741,"",@progbits .group wt.4e05dcd4da926741,.debug_types%wt.4e05dcd4da926741,#comdat .section .debug_types%wt.b606c86c38313abe,"",@progbits .group wt.b606c86c38313abe,.debug_types%wt.b606c86c38313abe,#comdat .section .debug_types%wt.b606c86c38313abe,"",@progbits .section .debug_types%wt.4e05dcd4da926741,"",@progbits * with COMDAT group with gas: .section .debug_types,"G",@progbits,wt.4e05dcd4da926741,comdat .section .debug_types,"G",@progbits,wt.b606c86c38313abe,comdat Given that the last two .debug_types%wt.* sections in the COMDAT/as config (which are empty) seem like an implementation artefact, it seems best to just XFAIL the test in that configuration rather than handling this quirk. Tested with the appropriate runtest invocation on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-unknown-linux-gnu. Ok for mainline? Rainer 2014-08-12 Rainer Orth <r...@cebitec.uni-bielefeld.de> * g++.dg/debug/dwarf2/nested-4.C: XFAIL on *-*-solaris2.1[1-9]* && !gas.
# HG changeset patch # Parent 86d7cfcd3c8b070062c6347d0f931a7de1575139 XFAIL g++.dg/debug/dwarf2/nested-4.C on Solaris with Sun as diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/nested-4.C b/gcc/testsuite/g++.dg/debug/dwarf2/nested-4.C --- a/gcc/testsuite/g++.dg/debug/dwarf2/nested-4.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/nested-4.C @@ -1,6 +1,6 @@ // PR debug/53235 // { dg-options "-gdwarf-4 -fdebug-types-section" } -// { dg-final { scan-assembler-times "debug_types" 2 { xfail *-*-darwin* } } } +// { dg-final { scan-assembler-times "debug_types" 2 { xfail { *-*-darwin* || { *-*-solaris2.1[1-9]* && { ! gas } } } } } } namespace E { class O {};
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University