aboutsummaryrefslogtreecommitdiffhomepage
path: root/compileopts/target.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-09-22 02:23:57 +0200
committerRon Evans <[email protected]>2021-10-04 18:22:55 +0200
commit36f1517e8dbd84ab0c8c2ad4fc9ed8fdca09500b (patch)
tree96b1d54548d03f72168ecf0066483c7da8a78e0c /compileopts/target.go
parent04040453b488a825c35b7323121bda056e92713e (diff)
downloadtinygo-36f1517e8dbd84ab0c8c2ad4fc9ed8fdca09500b.tar.gz
tinygo-36f1517e8dbd84ab0c8c2ad4fc9ed8fdca09500b.zip
arm: use armv7 instead of thumbv7
At the moment, thumbv7 is crashing. I'm not exactly sure why, but it appears that there is an unknown instruction in __aeabi_uldivmod (probably from libgcc). I've fixed this by switching to armv7, which is also somewhat modern. Maybe we can switch back to Thumb2 (aka thumbv7) once we start using musl and compiler-rt. In the meantime, this does fix a miscompilation (illegal instruction).
Diffstat (limited to 'compileopts/target.go')
-rw-r--r--compileopts/target.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compileopts/target.go b/compileopts/target.go
index df3b5d3ff..8d00d6ef5 100644
--- a/compileopts/target.go
+++ b/compileopts/target.go
@@ -172,7 +172,7 @@ func LoadTarget(target string) (*TargetSpec, error) {
"386": "i386",
"amd64": "x86_64",
"arm64": "aarch64",
- "arm": "thumbv7",
+ "arm": "armv7",
}[goarch]
if llvmarch == "" {
llvmarch = goarch