Browse Source

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.
pull/1197/head
Ayke van Laethem 4 years ago
committed by Ron Evans
parent
commit
aa3481e06a
  1. 1
      targets/atmega1284p.json
  2. 1
      targets/atmega2560.json
  3. 1
      targets/atmega328p.json
  4. 1
      targets/avr.json
  5. 1
      targets/digispark.json
  6. 2
      transform/testdata/interrupt-avr.ll
  7. 2
      transform/testdata/interrupt-avr.out.ll

1
targets/atmega1284p.json

@ -1,6 +1,5 @@
{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"cpu": "atmega1284p",
"build-tags": ["atmega1284p", "atmega"],
"cflags": [

1
targets/atmega2560.json

@ -1,6 +1,5 @@
{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"cpu": "atmega2560",
"build-tags": ["atmega2560", "atmega"],
"cflags": [

1
targets/atmega328p.json

@ -1,6 +1,5 @@
{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"cpu": "atmega328p",
"build-tags": ["atmega328p", "atmega", "avr5"],
"cflags": [

1
targets/avr.json

@ -1,4 +1,5 @@
{
"llvm-target": "avr-unknown-unknown",
"build-tags": ["avr", "baremetal", "linux", "arm"],
"goos": "linux",
"goarch": "arm",

1
targets/digispark.json

@ -1,6 +1,5 @@
{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"cpu": "attiny85",
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
"cflags": [

2
transform/testdata/interrupt-avr.ll

@ -1,5 +1,5 @@
target datalayout = "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
target triple = "avr-atmel-none"
target triple = "avr-unknown-unknown"
%"runtime/interrupt.handle" = type { %runtime.funcValue, %"runtime/interrupt.Interrupt" } %runtime.funcValue = type { i8*, i16 }
%runtime.typecodeID = type { %runtime.typecodeID*, i16 }

2
transform/testdata/interrupt-avr.out.ll

@ -1,5 +1,5 @@
target datalayout = "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
target triple = "avr-atmel-none"
target triple = "avr-unknown-unknown"
%runtime.typecodeID = type { %runtime.typecodeID*, i16 }
%runtime.funcValueWithSignature = type { i16, %runtime.typecodeID* }

Loading…
Cancel
Save