Simplify testing symbol sections
authorMatthew Glazar <strager.nds@gmail.com>
Sat, 14 Nov 2020 04:59:05 +0000 (23:59 -0500)
committerJeff Law <law@torsion.usersys.redhat.com>
Sat, 14 Nov 2020 05:02:02 +0000 (00:02 -0500)
commit8270a7238ba1b535cc81848ef026d30e9d96447f
tree538a0af93d1ffce02df1b00f291cfad485a2c6a4
parent207de83922bda8707aa33d6a2185e691116377e7
Simplify testing symbol sections

gcc/testsuite

* lib/scanasm.exp (dg-scan): Extract file globbing code ...
(dg_glob_remote): ... into this new procedure.
(scan-assembler-symbol-section): Define.
(scan-symbol-section): Define.
* g++.dg/gomp/tls-5.C: Add symbol section test.
* g++.dg/opt/const4.C: Likewise.
* gcc.dg/20021029-1.c: Likewise.
* gcc.dg/array-quals-1.c: Likewise.
* gcc.dg/darwin-sections.c: Likewise.
* gcc.dg/pr25376.c: Likewise.
* gcc.test-framework/test-framework.exp: Load scanasm and test .S files.
* gcc.test-framework/dg-scan-symbol-section-1-exp-F.S: New test.
* gcc.test-framework/dg-scan-symbol-section-2-exp-F.S: New test.
* gcc.test-framework/dg-scan-symbol-section-3-exp-F.S: New test.
* gcc.test-framework/dg-scan-symbol-section-exp-P.S: New test.
12 files changed:
gcc/testsuite/g++.dg/gomp/tls-5.C
gcc/testsuite/g++.dg/opt/const4.C
gcc/testsuite/gcc.dg/20021029-1.c
gcc/testsuite/gcc.dg/array-quals-1.c
gcc/testsuite/gcc.dg/darwin-sections.c
gcc/testsuite/gcc.dg/pr25376.c
gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-1-exp-F.S [new file with mode: 0644]
gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-2-exp-F.S [new file with mode: 0644]
gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-3-exp-F.S [new file with mode: 0644]
gcc/testsuite/gcc.test-framework/dg-scan-symbol-section-exp-P.S [new file with mode: 0644]
gcc/testsuite/gcc.test-framework/test-framework.exp
gcc/testsuite/lib/scanasm.exp