aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/compile/internal/gc/main.go3
-rw-r--r--test/fixedbugs/issue28688.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go
index 9199db830c..68506c7a7b 100644
--- a/src/cmd/compile/internal/gc/main.go
+++ b/src/cmd/compile/internal/gc/main.go
@@ -158,6 +158,9 @@ func Main(archInit func(*ssagen.ArchInfo)) {
dwarf.EnableLogging(base.Debug.DwarfInl != 0)
}
if base.Debug.SoftFloat != 0 {
+ if objabi.Experiment.RegabiArgs {
+ log.Fatalf("softfloat mode with GOEXPERIMENT=regabiargs not implemented ")
+ }
ssagen.Arch.SoftFloat = true
}
diff --git a/test/fixedbugs/issue28688.go b/test/fixedbugs/issue28688.go
index 0d2000e149..8ef0802812 100644
--- a/test/fixedbugs/issue28688.go
+++ b/test/fixedbugs/issue28688.go
@@ -1,4 +1,4 @@
-// run -gcflags=-d=softfloat
+// run -gcflags=-d=softfloat -goexperiment noregabiargs
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style