This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Fix build with GLIBC
ClosedPublic

Authored by vitalybuka on Jan 3 2023, 7:32 PM.

Details

Reviewers
ldionne
philnik
Group Reviewers
Restricted Project
Commits
rGd19fbfed47d9: [libcxx] Fix build with GLIBC

Diff Detail

Event Timeline

vitalybuka created this revision.Jan 3 2023, 7:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 7:32 PM
vitalybuka requested review of this revision.Jan 3 2023, 7:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 7:32 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added a subscriber: philnik.Jan 3 2023, 7:36 PM

Which glibc version affects this? Also, why not just use __builtin_abort instead? That would remove the need for the forward declaration all together.

vitalybuka updated this revision to Diff 486152.Jan 3 2023, 7:55 PM

__builtin_abort

Which glibc version affects this?

2.27, but it's 23 years the same https://github.com/bminor/glibc/blame/master/stdlib/stdlib.h#L611

Also, why not just use __builtin_abort instead? That would remove the need for the forward declaration all together.

Thanks for the hint, done

philnik accepted this revision.Jan 3 2023, 8:08 PM

Which glibc version affects this?

2.27, but it's 23 years the same https://github.com/bminor/glibc/blame/master/stdlib/stdlib.h#L611

Did the compiler warn or something, or how did you find this?

LGTM with CI passing.

This revision is now accepted and ready to land.Jan 3 2023, 8:08 PM

Which glibc version affects this?

2.27, but it's 23 years the same https://github.com/bminor/glibc/blame/master/stdlib/stdlib.h#L611

Did the compiler warn or something, or how did you find this?

LGTM with CI passing.

error: exception specification in declaration does not match previous declaration
https://godbolt.org/z/6ofjG7xej

This revision was automatically updated to reflect the committed changes.