Skip to content

Commit aa3481e

Browse files
aykevldeadprogram
authored andcommitted
avr: fix target triple
It was `avr-atmel-none`, which is incorrect. It must be `avr-unknown-unknown`. Additionally, there is no reason to specify the target triple per chip, it can be done for all AVR chips at once as it doesn't vary like Cortex-M chips.
1 parent 2136cb2 commit aa3481e

File tree

7 files changed

+3
-6
lines changed

7 files changed

+3
-6
lines changed

targets/atmega1284p.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"inherits": ["avr"],
3-
"llvm-target": "avr-atmel-none",
43
"cpu": "atmega1284p",
54
"build-tags": ["atmega1284p", "atmega"],
65
"cflags": [

targets/atmega2560.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"inherits": ["avr"],
3-
"llvm-target": "avr-atmel-none",
43
"cpu": "atmega2560",
54
"build-tags": ["atmega2560", "atmega"],
65
"cflags": [

targets/atmega328p.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"inherits": ["avr"],
3-
"llvm-target": "avr-atmel-none",
43
"cpu": "atmega328p",
54
"build-tags": ["atmega328p", "atmega", "avr5"],
65
"cflags": [

targets/avr.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"llvm-target": "avr-unknown-unknown",
23
"build-tags": ["avr", "baremetal", "linux", "arm"],
34
"goos": "linux",
45
"goarch": "arm",

targets/digispark.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"inherits": ["avr"],
3-
"llvm-target": "avr-atmel-none",
43
"cpu": "attiny85",
54
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
65
"cflags": [

transform/testdata/interrupt-avr.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
target datalayout = "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
2-
target triple = "avr-atmel-none"
2+
target triple = "avr-unknown-unknown"
33

44
%"runtime/interrupt.handle" = type { %runtime.funcValue, %"runtime/interrupt.Interrupt" } %runtime.funcValue = type { i8*, i16 }
55
%runtime.typecodeID = type { %runtime.typecodeID*, i16 }

transform/testdata/interrupt-avr.out.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
target datalayout = "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
2-
target triple = "avr-atmel-none"
2+
target triple = "avr-unknown-unknown"
33

44
%runtime.typecodeID = type { %runtime.typecodeID*, i16 }
55
%runtime.funcValueWithSignature = type { i16, %runtime.typecodeID* }

0 commit comments

Comments
 (0)