[PATCH] D29817: [AVR} Fix __AVR_xxx macro definitions

Peter Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 10 02:36:01 PST 2017


Lekensteyn added a comment.

Without this patch, compilation of a program using avr/io.h fails. Tested with:

  clang --target=avr -Xclang -target-cpu -Xclang atmega328p -I/usr/avr/include -Os led.c -c -o /dev/null

Btw, it seems that avr-libc 2.0.0 also uses `__AVR_ARCH__`, `__AVR_XMEGA__` and `__AVR_3_BYTE_PC__` in some places, but these are not defined in Clang.


https://reviews.llvm.org/D29817





More information about the cfe-commits mailing list