aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/runtime.def
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-01 18:59:18 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-03 08:21:02 -0800
commitcd34d5f2c40f3c65407f4b0bee0b49fc84e4a4ab (patch)
tree843df1c1321bbc66e1bee850fa8513c54dd25dc8 /gcc/go/gofrontend/runtime.def
parent65af6bc9f87bc6b329fb7a16e3f736dd0a042bf5 (diff)
downloadgcc-cd34d5f2c40f3c65407f4b0bee0b49fc84e4a4ab.zip
gcc-cd34d5f2c40f3c65407f4b0bee0b49fc84e4a4ab.tar.gz
gcc-cd34d5f2c40f3c65407f4b0bee0b49fc84e4a4ab.tar.bz2
compiler: defer to middle-end for complex division
Go used to use slightly different semantics than C99 for complex division, so we used runtime routines to handle the different. The gc compiler has changes its behavior to match C99, so changes ours as well. For golang/go#14644 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/274213
Diffstat (limited to 'gcc/go/gofrontend/runtime.def')
-rw-r--r--gcc/go/gofrontend/runtime.def6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/go/gofrontend/runtime.def b/gcc/go/gofrontend/runtime.def
index 9a3c680..4b606a6 100644
--- a/gcc/go/gofrontend/runtime.def
+++ b/gcc/go/gofrontend/runtime.def
@@ -62,12 +62,6 @@ DEF_GO_RUNTIME(STRINGTOSLICERUNE, "runtime.stringtoslicerune",
P2(POINTER, STRING), R1(SLICE))
-// Complex division.
-DEF_GO_RUNTIME(COMPLEX64_DIV, "__go_complex64_div",
- P2(COMPLEX64, COMPLEX64), R1(COMPLEX64))
-DEF_GO_RUNTIME(COMPLEX128_DIV, "__go_complex128_div",
- P2(COMPLEX128, COMPLEX128), R1(COMPLEX128))
-
// Make a slice.
DEF_GO_RUNTIME(MAKESLICE, "runtime.makeslice", P3(TYPE, INT, INT),
R1(POINTER))