[all-commits] [llvm/llvm-project] f4d8e8: [test][NFC] Do ptrdiff_t comparison with signed in...

Hubert Tong via All-commits all-commits at lists.llvm.org
Sun Oct 18 09:47:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4d8e86dbed599145490069fb547a87dbaff4a3e
      https://github.com/llvm/llvm-project/commit/f4d8e86dbed599145490069fb547a87dbaff4a3e
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugArangeSetTest.cpp

  Log Message:
  -----------
  [test][NFC] Do ptrdiff_t comparison with signed instead of unsigned constants

... because using unsigned constants for comparing against signed values
is liable to mutate the signed value via conversion to an unsigned type
due to the usual arithmetic conversions.


  Commit: 2980ce98be117a756ec5ad485273fd5400049683
      https://github.com/llvm/llvm-project/commit/2980ce98be117a756ec5ad485273fd5400049683
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M llvm/lib/Object/COFFObjectFile.cpp
    M llvm/lib/ProfileData/GCOV.cpp
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  Fix various format specifier mismatches

Format specifiers of incorrect length are replaced with format specifier
macros from `<cinttypes>` matching the typedefs used to declare the type
of the value being printed.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D89637


  Commit: 126094485ab99dac3e6df9c201124d48a1d798ce
      https://github.com/llvm/llvm-project/commit/126094485ab99dac3e6df9c201124d48a1d798ce
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2020-10-18 (Sun, 18 Oct 2020)

  Changed paths:
    M clang/lib/Sema/DeclSpec.cpp
    M clang/test/Parser/altivec.c
    M clang/test/Parser/cxx-altivec.cpp

  Log Message:
  -----------
  [PowerPC][AIX] Make `__vector [un]signed long` an error

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.

Reviewed By: ZarkoCA

Differential Revision: https://reviews.llvm.org/D89443


Compare: https://github.com/llvm/llvm-project/compare/6de8d7f1adc8...126094485ab9


More information about the All-commits mailing list