From 5b7f5e6261e9d0317b34663136f1e3bd33dca3d9 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 26 Dec 2023 16:44:09 +0000 Subject: testsuite: AIX csect section name. AIX sections use the csect directive to name a section. Check for csect name in attr-section testcases. gcc/testsuite/ChangeLog: * g++.dg/ext/attr-section1.C: Test for csect section directive. * g++.dg/ext/attr-section1a.C: Same. * g++.dg/ext/attr-section2.C: Same. * g++.dg/ext/attr-section2a.C: Same. * g++.dg/ext/attr-section2b.C: Same. Signed-off-by: David Edelsohn --- gcc/testsuite/g++.dg/ext/attr-section1.C | 2 +- gcc/testsuite/g++.dg/ext/attr-section1a.C | 2 +- gcc/testsuite/g++.dg/ext/attr-section2.C | 2 +- gcc/testsuite/g++.dg/ext/attr-section2a.C | 2 +- gcc/testsuite/g++.dg/ext/attr-section2b.C | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/g++.dg/ext/attr-section1.C b/gcc/testsuite/g++.dg/ext/attr-section1.C index b8ac65b..cc74bef 100644 --- a/gcc/testsuite/g++.dg/ext/attr-section1.C +++ b/gcc/testsuite/g++.dg/ext/attr-section1.C @@ -6,4 +6,4 @@ template template void fun(); -// { dg-final { scan-assembler {.section[ \t]+.foo} } } +// { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } } diff --git a/gcc/testsuite/g++.dg/ext/attr-section1a.C b/gcc/testsuite/g++.dg/ext/attr-section1a.C index be24be2..7176434 100644 --- a/gcc/testsuite/g++.dg/ext/attr-section1a.C +++ b/gcc/testsuite/g++.dg/ext/attr-section1a.C @@ -8,4 +8,4 @@ struct A { template struct A; -// { dg-final { scan-assembler {.section[ \t]+.foo} } } +// { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } } diff --git a/gcc/testsuite/g++.dg/ext/attr-section2.C b/gcc/testsuite/g++.dg/ext/attr-section2.C index a76f43b..7c9221b 100644 --- a/gcc/testsuite/g++.dg/ext/attr-section2.C +++ b/gcc/testsuite/g++.dg/ext/attr-section2.C @@ -6,4 +6,4 @@ template template int var; -// { dg-final { scan-assembler {.section[ \t]+.foo} } } +// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } } diff --git a/gcc/testsuite/g++.dg/ext/attr-section2a.C b/gcc/testsuite/g++.dg/ext/attr-section2a.C index a0b01cd..4fa898c 100644 --- a/gcc/testsuite/g++.dg/ext/attr-section2a.C +++ b/gcc/testsuite/g++.dg/ext/attr-section2a.C @@ -11,4 +11,4 @@ int A::var = 42; template struct A; -// { dg-final { scan-assembler {.section[ \t]+.foo} } } +// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } } diff --git a/gcc/testsuite/g++.dg/ext/attr-section2b.C b/gcc/testsuite/g++.dg/ext/attr-section2b.C index 7b8313b..9398773 100644 --- a/gcc/testsuite/g++.dg/ext/attr-section2b.C +++ b/gcc/testsuite/g++.dg/ext/attr-section2b.C @@ -9,4 +9,4 @@ int* fun() { template int* fun(); -// { dg-final { scan-assembler {.section[ \t]+.foo} } } +// { dg-final { scan-assembler {.(section|csect)[ \t]+.foo} } } -- cgit v1.1