[all-commits] [llvm/llvm-project] 268273: Remove checks for old gcc versions for LLVM_ATTRIB...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Oct 12 11:20:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26827337dff26ba3450721f880d4c6caaf2a8219
      https://github.com/llvm/llvm-project/commit/26827337dff26ba3450721f880d4c6caaf2a8219
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Support/Compiler.h

  Log Message:
  -----------
  Remove checks for old gcc versions for LLVM_ATTRIBUTE_*

According to [1] we only support gcc 5.1+. So these checks for older gcc versions are not supported.

Some gcc 5.1+ versions still don't support __has_builtin, so just check __GNUC__ in those cases.

Add a missing #endif for LLVM_ATTRIBUTE_UNREACHABLE.

[1] https://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library

Reviewed By: MaskRay

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




More information about the All-commits mailing list