Skip to content

Commit

Permalink
specs: Set max-atomic-width to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and Rahix committed Sep 15, 2024
1 parent 416bd01 commit b631bab
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega1280.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega1284p.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega128a.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega164pa.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega168.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega2560.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega328.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega328p.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega32a.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega32u4.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega48p.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-atmega8.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-attiny167.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-attiny2313.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-attiny85.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
2 changes: 1 addition & 1 deletion avr-specs/avr-attiny88.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"linker": "avr-gcc",
"linker-flavor": "gnu-cc",
"llvm-target": "avr-unknown-unknown",
"max-atomic-width": 8,
"max-atomic-width": 16,
"metadata": {
"description": null,
"host_tools": null,
Expand Down
4 changes: 3 additions & 1 deletion avr-specs/sync-from-upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
# needed because we currently rely on avr-libc
"no-default-libraries": False,
# 8-bit operations on AVR are atomic
"max-atomic-width": 8,
# LLVM also supports 16-bit atomics by disabling interrupts
# see also https://github.com/rust-lang/rust/pull/114495
"max-atomic-width": 16,
}


Expand Down

0 comments on commit b631bab

Please sign in to comment.