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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to