From: Rainer Orth Date: Tue, 26 Mar 2019 18:29:16 +0000 (+0000) Subject: Fix g++.dg/abi/lambda-static-1.C with Solaris as X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9df23a66ce63ac649eb523014c7678c947b73090;p=gcc.git Fix g++.dg/abi/lambda-static-1.C with Solaris as * g++.dg/abi/lambda-static-1.C: Handle Solaris as comdat group syntax. From-SVN: r269952 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 39fb94476a9..16bfddf5acc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-03-26 Rainer Orth + + * g++.dg/abi/lambda-static-1.C: Handle Solaris as comdat group + syntax. + 2019-03-26 Bin Cheng PR tree-optimization/81740 diff --git a/gcc/testsuite/g++.dg/abi/lambda-static-1.C b/gcc/testsuite/g++.dg/abi/lambda-static-1.C index 3d23ddc4007..6299733fe21 100644 --- a/gcc/testsuite/g++.dg/abi/lambda-static-1.C +++ b/gcc/testsuite/g++.dg/abi/lambda-static-1.C @@ -21,5 +21,7 @@ void indirect () // The call operator and the static invoker should be comdat, but not // the same group. (that would be a compiler incompatibility) -// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENKUlvE_clEv,\[^\n\r]*,_ZZ5lambyvENKUlvE_clEv,comdat" } } -// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r]*,_ZZ5lambyvENUlvE_4_FUNEv,comdat" } } +// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENKUlvE_clEv,\[^\n\r]*,_ZZ5lambyvENKUlvE_clEv,comdat" { target { { ! *-*-solaris2.* } || { gas } } } } } +// { dg-final { scan-assembler ".section\[\t ]*.text._ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r]*,_ZZ5lambyvENUlvE_4_FUNEv,comdat" { target { { ! *-*-solaris2.* } || { gas } } } } } +// { dg-final { scan-assembler ".group\[\t \]*_ZZ5lambyvENKUlvE_clEv,\[^\n\r\]*,#comdat" { target { *-*-solaris2.* && { ! gas } } } } } +// { dg-final { scan-assembler ".group\[\t \]*_ZZ5lambyvENUlvE_4_FUNEv,\[^\n\r\]*,#comdat" { target { *-*-solaris2.* && { ! gas } } } } }