https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124323
Bug ID: 124323
Summary: algol68/execute/posix-perror-1.a68 FAILs
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: algol68
Assignee: algol68 at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: i386-pc-solaris2.11, i686-pc-linux-gnu,
i386-apple-darwin
The algol68/execute/posix-perror-1.a68 test FAILs on 32-bit Solaris/x86,
Linux/x86_64, and Darwin/i386:
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O0
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O1
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O2
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O2
-fcheck=bounds
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O2 -fcheck=nil
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O2
-fomit-frame-pointer -finline-functions
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O2
-fomit-frame-pointer -finline-functions -funroll-loops
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -O3 -g
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -Os
FAIL: algol68/execute/posix-perror-1.a68 output pattern test, -flto
On Solaris, the test prints
: No such file or directory
truss shows
27234: openat64(AT_FDCWD, "doesn't exist", O_RDWR) Err#2 ENOENT
27234: openat64(AT_FDCWD, "doesn't exist", O_RDONLY) Err#2 ENOENT
27234: openat64(AT_FDCWD, "doesn't exist", O_WRONLY) Err#2 ENOENT
27234: write(2, 0x0806D728, 0) = 0
: 27234: write(2, " : ", 2) = 2
No such file or directory27234: write(2, " N o s u c h f i l e".., 25)
= 25
27234: write(2, "\n", 1)
Linux prints the same output, but SEGVs afterwards.
Darwin prints
: No such file or directory
: No such file or directory