[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:26:47 PST 2017
Lekensteyn created this revision.
The -mmcu option for GCC sets macros like __AVR_ATmega328P__ (with the trailing
underscores), be sure to include these underscores for Clangs -mcpu option.
See "AVR Built-in Macros" in https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html
https://reviews.llvm.org/D29817
Files:
lib/Basic/Targets.cpp
test/CodeGen/avr/target-cpu-defines/atmega328p.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29817.87973.patch
Type: text/x-patch
Size: 20727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170210/d81a409d/attachment-0001.bin>
More information about the cfe-commits
mailing list