This is an archive of the discontinued LLVM Phabricator instance.

[test] Make Linux/sem_init_glibc.cpp robust
ClosedPublic

Authored by MaskRay on Oct 1 2022, 6:43 PM.

Details

Reviewers
mgorny
thesamesam
Group Reviewers
Restricted Project
Commits
rG6f46ff3765dc: [test] Make Linux/sem_init_glibc.cpp robust
Summary

and fix it for 32-bit ports defining sem_init@GLIBC_2.0 (i386, mips32, powerpc32) for glibc>=2.36.

Fix https://github.com/llvm/llvm-project/issues/58079

Diff Detail

Event Timeline

MaskRay created this revision.Oct 1 2022, 6:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2022, 6:43 PM
MaskRay requested review of this revision.Oct 1 2022, 6:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2022, 6:43 PM
MaskRay updated this revision to Diff 464533.Oct 1 2022, 6:46 PM

fix a comment typo

MaskRay updated this revision to Diff 464534.Oct 1 2022, 7:03 PM

blind mips64 fix

MaskRay updated this revision to Diff 464538.Oct 1 2022, 10:29 PM
MaskRay edited the summary of this revision. (Show Details)

actually fix mips64

mgorny accepted this revision.Oct 2 2022, 12:44 AM

I can confirm that this fixes the problem for me on amd64 (with i386 multilib). I have also confirmed that the patched version works on arm64 with both glibc 2.35 and 2.36.

This revision is now accepted and ready to land.Oct 2 2022, 12:44 AM
MaskRay edited the summary of this revision. (Show Details)Oct 2 2022, 12:46 AM
This revision was automatically updated to reflect the committed changes.