This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][AIX] Make `__vector [un]signed long` an error
ClosedPublic

Authored by hubert.reinterpretcast on Oct 14 2020, 8:08 PM.

Details

Summary

The semantics associated with __vector [un]signed long are neither consistently specified nor consistently implemented. The IBM XL compilers on AIX traditionally treated these as deprecated aliases for the corresponding __vector int type in both 32-bit and 64-bit modes. The newer, Clang-based, IBM XL compilers on AIX make usage of the previously deprecated types an error. This is also consistent with IBM XL C/C++ for Linux on Power (on little endian distributions).

In line with the above, this patch upgrades (on AIX) the deprecation of __vector long to become removal.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2020, 8:08 PM
Herald added a subscriber: shchenz. · View Herald Transcript
hubert.reinterpretcast requested review of this revision.Oct 14 2020, 8:08 PM
ZarkoCA accepted this revision.Oct 16 2020, 7:01 AM

LGTM

clang/lib/Sema/DeclSpec.cpp
1200

minor nit, prefer to divide the comment in 2 sentences.

This revision is now accepted and ready to land.Oct 16 2020, 7:01 AM
This revision was automatically updated to reflect the committed changes.
hubert.reinterpretcast marked an inline comment as done.