[PATCH] D137572: [AVR][Clang] Implement __AVR_HAVE_*__ macros
Ayke via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 15 04:14:58 PST 2022
aykevl updated this revision to Diff 475419.
aykevl added a comment.
- Fix ArchHas3BytePC to remove arch 107 (of which no chips have more than 128kB flash)
- Fix ArchHasELPM/ArchHasELPMX to add arch 102 (it does support elpm even though avr-gcc claims it doesn't).
- Add notes where the provided macros may not be correct in all cases. It's still better than avr-gcc though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137572/new/
https://reviews.llvm.org/D137572
Files:
clang/lib/Basic/Targets/AVR.cpp
clang/test/Preprocessor/avr-atmega328p.c
clang/test/Preprocessor/avr-attiny104.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137572.475419.patch
Type: text/x-patch
Size: 4401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221115/9ac18e30/attachment.bin>
More information about the cfe-commits
mailing list