# HG changeset patch
# Parent 1125e724541b493d75e4a215f8426cb530d7f623
Fix comdat_group check with Solaris as
@@ -8985,7 +8985,7 @@ proc check_effective_target_tls_get_addr
# 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 {
+ return [check_no_messages_and_pattern comdat_group "\.section\[^\n\r]*,comdat|\.group\[^\n\r]*,#comdat" assembly {
// C++
inline int foo () { return 1; }
int (*fn) () = foo;
@@ -1,6 +1,6 @@
// PR debug/53235
// { dg-options "-gdwarf-4 -fdebug-types-section" }
-// { dg-final { scan-assembler-times "debug_types" 2 { xfail { powerpc-ibm-aix* || { *-*-darwin* || { *-*-solaris2.1[1-9]* && { ! gas } } } } } } }
+// { dg-final { scan-assembler-times "debug_types" 2 { xfail { powerpc-ibm-aix* || { *-*-darwin* || { *-*-solaris2.* && { comdat_group && { ! gas } } } } } } } }
namespace E {
class O {};