[PATCH] D123200: [compiler-rt][CMake] Add initial support of target AVR

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 07:05:15 PDT 2022


benshi001 added a comment.

In D123200#3436043 <https://reviews.llvm.org/D123200#3436043>, @aykevl wrote:

> What about chip families other than avr2 (the default)? Some have a different PC pointer size (1-3 bytes, therefore affecting the ABI), some have different instructions, etc.

There are two options `CMAKE_CXX_FLAGS` and `CMAKE_C_FLAGS" can be specified when doing cmake compiler-rt, we can specify the instruction set via them.

Since libgcc-avr has unique source code but built into several different libgcc.a files with different instruction set, I expect compiler-rt would be done in the way.

And of cource this patch just is an initial support, we still need much more patches to make it fully functional.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123200



More information about the cfe-commits mailing list