This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [test] Fix sem_init_glibc.cpp test for glibc 2.36 on i386
AbandonedPublic

Authored by mgorny on Oct 1 2022, 1:20 PM.

Details

Summary

Update sem_init_glibc.cpp to apply the "newer" GET_SEM_VALUE(v) logic
to i386 if glibc is 2.36 or newer. With this glibc version, the old
macro returns "84" instead of "42".

Fixes #58079

Diff Detail

Event Timeline

mgorny created this revision.Oct 1 2022, 1:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2022, 1:20 PM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
mgorny requested review of this revision.Oct 1 2022, 1:20 PM
mgorny edited the summary of this revision. (Show Details)
mgorny added subscribers: thesamesam, MaskRay.

@MaskRay, @thesamesam, any chance you could reproduce/test this?

mgorny abandoned this revision.Oct 2 2022, 12:00 AM

Abandoning in favor of D135023.