]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: i386: Fix gcc.target/i386/pr71321.c on Solaris/x86
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 2 Feb 2024 10:25:45 +0000 (11:25 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 2 Feb 2024 10:25:45 +0000 (11:25 +0100)
commite5b14d956e38d88542d51bdb697f2161838d1b67
treeb93bc069840b246bfbc64502e1e2282e59d6e1f0
parentf60d7e1c64518936797ec1009cb49f72f8fe45b9
testsuite: i386: Fix gcc.target/i386/pr71321.c on Solaris/x86

gcc.target/i386/pr71321.c FAILs on 64-bit Solaris/x86 with the native
assembler:

FAIL: gcc.target/i386/pr71321.c scan-assembler-not lea.*0

The problem is that /bin/as doesn't fully support cfi directives, so the
.eh_frame section is specified explicitly, which includes ".long 0".
The regular expression above includes ".*", which does multiline
matches.  AFAICS those aren't needed here.

This patch changes the RE not to use multiline patches.

Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu.

2024-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.target/i386/pr71321.c (scan-assembler-not): Avoid multiline
matches.
gcc/testsuite/gcc.target/i386/pr71321.c