[PATCH] D118095: [AVR][clang] Reject non assembly source files for the avr1 family

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 29 18:21:39 PST 2022


benshi001 added a comment.

In D118095#3282039 <https://reviews.llvm.org/D118095#3282039>, @MaskRay wrote:

> I do not know whether the complexity is justified. Rejecting some -mmcu= for C source files looks quite dubious. Does it really help users?
>
> Bear in mind that all these complexity translates to clang executable size increase for other users (most people don't use AVR).

Actually I would like to make clang+llvm+lld fully compatible with gcc+binutils (functionality, ABI, quality, ...), and finally replace avr-gcc as Arduino's default toolchain. (https://www.arduino.cc/en/software, Arduino is a popular MCU platform for hardware prototype development & verification)

Even many avr-libc (https://www.nongnu.org/avr-libc/) developers are trying build it with clang.

If you think it is complex, we can remove the extreme check of `-x  assembler-with-cpp`, which is rarely in a real world.


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

https://reviews.llvm.org/D118095



More information about the cfe-commits mailing list