[PATCH] D123567: [clang][AVR] add more builtin macros

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 21:48:39 PDT 2022


benshi001 added a comment.

In D123567#3444579 <https://reviews.llvm.org/D123567#3444579>, @MaskRay wrote:

> `avr-gcc -E -dM -xc /dev/null -dM  | grep __avr` has no result, so I am not sure this is correct.

The reason  I added these little case macros, is that I find other backend targets have, as shown in the compiler-rt's CMakefile, https://github.com/llvm/llvm-project/blob/main/compiler-rt/cmake/Modules/CompilerRTUtils.cmake#L155

I think we need not strictly follow avr-gcc's way, my final goal is making clang+llvm+compiler-rt+lld fully functional and can replace avr-gcc toolchain.

I expect clang+llvm+compiler-rt+lld  to be fully functioning against the Arduino boards. (https://www.arduino.cc/).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123567/new/

https://reviews.llvm.org/D123567



More information about the cfe-commits mailing list