diff options
author | Dylan McKay <me@dylanmckay.io> | 2017-02-11 21:06:07 +0000 |
---|---|---|
committer | Dylan McKay <me@dylanmckay.io> | 2017-02-11 21:06:07 +0000 |
commit | 315edb0216579960f532d6caa45d20d4ec2eb7af (patch) | |
tree | 33a872b2d96438e8ee10501a6774101ac076054b /clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c | |
parent | 579ca307abf976db4d7c8c10170554f688becf71 (diff) | |
download | bcm5719-llvm-315edb0216579960f532d6caa45d20d4ec2eb7af.tar.gz bcm5719-llvm-315edb0216579960f532d6caa45d20d4ec2eb7af.zip |
[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
Diffstat (limited to 'clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c')
-rw-r--r-- | clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c b/clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c index 14b5e0d9420..83b0accbb93 100644 --- a/clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c +++ b/clang/test/CodeGen/avr/target-cpu-defines/atmega328p.c @@ -3,5 +3,5 @@ // CHECK: #define AVR 1 // CHECK: #define __AVR 1 -// CHECK: #define __AVR_ATmega328P 1 +// CHECK: #define __AVR_ATmega328P__ 1 // CHECK: #define __AVR__ 1 |