llvm-project/clang/test/CodeGen/avr/target-cpu-defines
Dylan McKay 315edb0216 [AVR] Fix __AVR_xxx macro definitions; authored by Peter Wu
Summary:
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

Reviewers: jroelofs, dylanmckay

Reviewed By: jroelofs, dylanmckay

Subscribers: efriedma, cfe-commits

Differential Revision: https://reviews.llvm.org/D29817

llvm-svn: 294869
2017-02-11 21:06:07 +00:00
..
atmega328p.c [AVR] Fix __AVR_xxx macro definitions; authored by Peter Wu 2017-02-11 21:06:07 +00:00
attiny104.c [AVR] Fix __AVR_xxx macro definitions; authored by Peter Wu 2017-02-11 21:06:07 +00:00
common.c Revert "Revert "[AVR] Allow specifying the CPU on the command line"" 2017-02-07 06:04:18 +00:00