This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Fix warnings on AIX 32 bit
AbandonedPublic

Authored by ldionne on May 10 2022, 6:57 AM.

Details

Reviewers
mstorsjo
DavidSpickett
Group Reviewers
Restricted Project
Summary

The compiler complains about large atomic operation potentially incurring
a performance penalty with -Watomic-alignment, which is turned into an
error.

Note that I don't really intend to commit this patch as-is -- I mostly
want to have a discussion to find out why this warning begun. I don't
intend that the right fix is simply going to silence the warning, at
least not from within the headers.

Diff Detail

Event Timeline

ldionne created this revision.May 10 2022, 6:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 6:57 AM
ldionne requested review of this revision.May 10 2022, 6:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 6:57 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

See D124519 for a different fix for the warning. As for why -Werror started working here, I don’t really know - earlier, it was only unblocked by D124375, and I’ve held off applying that one into these warnings were fixed.

I bisected it - it seems that D120719 in combination with D110005 makes the -Werror flag test succeed now, even before D124375 had been landed.

ldionne abandoned this revision.May 12 2022, 8:44 AM

Thanks, I had not seen D124519 yet. I think D124519 makes more sense than this.