Fix comdat_group check with Solaris as
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 31 Jan 2018 22:18:21 +0000 (22:18 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 31 Jan 2018 22:18:21 +0000 (22:18 +0000)
* lib/target-supports.exp (check_effective_target_comdat_group):
Allow for Solaris as comdat syntax.

* g++.dg/debug/dwarf2/nested-4.C: Xfail scan-assembler-times on
Solaris with comdat_group support and as.

From-SVN: r257272

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/nested-4.C
gcc/testsuite/lib/target-supports.exp

index 149df85427cce9a4a863c2a4711e5afd01ae3daf..c6741d8c8423f6187b24233f71929a6864600c0e 100644 (file)
@@ -1,3 +1,11 @@
+2018-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lib/target-supports.exp (check_effective_target_comdat_group):
+       Allow for Solaris as comdat syntax.
+
+       * g++.dg/debug/dwarf2/nested-4.C: Xfail scan-assembler-times on
+       Solaris with comdat_group support and as.
+
 2018-01-31  Marek Polacek  <polacek@redhat.com>
 
        PR c/81779
index 75cc97b78b840becc9ff5b00057637a459431513..6cf76446f402d11c8c0bb627982d7cb3fdd32469 100644 (file)
@@ -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 {};
index c2ec93b9c8080734a7e59b1a6051dc2c9c06f531..8bb809503c60d858a60f904034c6ffe1a683df73 100644 (file)
@@ -8975,7 +8975,7 @@ proc check_effective_target_tls_get_addr_via_got { } {
 # 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;