Skip to content
Snippets Groups Projects
Commit 9353b8e0 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[machdep] avoid warnings when generating AVR machdeps

turns out clang wants to have a specific CPU when using -target avr
parent 6bd10f15
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ cpp_arch_flags:
- -target
- avr
- -m16
- -mmcu=atmega16
custom_defs: |
#undef AVR
#define AVR 1
......@@ -33,6 +34,8 @@ custom_defs: |
#define __ATOMIC_SEQ_CST 5
#undef __AVR
#define __AVR 1
#undef __AVR_ATmega16__
#define __AVR_ATmega16__ 1
#undef __AVR__
#define __AVR__ 1
#undef __BIGGEST_ALIGNMENT__
......@@ -645,6 +648,8 @@ custom_defs: |
#define __clang_version__ "15.0.7 "
#undef __clang_wide_literal_encoding__
#define __clang_wide_literal_encoding__ "UTF-16"
#undef __flash
#define __flash __attribute__((address_space(1)))
#undef __llvm__
#define __llvm__ 1
eof: (-1)
......
......@@ -15,6 +15,7 @@ compiler: clang
cpp_arch_flags:
- -target
- avr
- -mmcu=atmega8
custom_defs: |
#undef AVR
#define AVR 1
......@@ -32,6 +33,8 @@ custom_defs: |
#define __ATOMIC_SEQ_CST 5
#undef __AVR
#define __AVR 1
#undef __AVR_ATmega8__
#define __AVR_ATmega8__ 1
#undef __AVR__
#define __AVR__ 1
#undef __BIGGEST_ALIGNMENT__
......@@ -644,6 +647,8 @@ custom_defs: |
#define __clang_version__ "15.0.7 "
#undef __clang_wide_literal_encoding__
#define __clang_wide_literal_encoding__ "UTF-16"
#undef __flash
#define __flash __attribute__((address_space(1)))
#undef __llvm__
#define __llvm__ 1
eof: (-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment