Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
9353b8e0
Commit
9353b8e0
authored
1 year ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/machdeps/machdep_avr_16.yaml
+5
-0
5 additions, 0 deletions
share/machdeps/machdep_avr_16.yaml
share/machdeps/machdep_avr_8.yaml
+5
-0
5 additions, 0 deletions
share/machdeps/machdep_avr_8.yaml
with
10 additions
and
0 deletions
share/machdeps/machdep_avr_16.yaml
+
5
−
0
View file @
9353b8e0
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
share/machdeps/machdep_avr_8.yaml
+
5
−
0
View file @
9353b8e0
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment