compiler: defer to middle-end for complex division
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 02:59:18 +0000 (18:59 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Dec 2020 16:21:02 +0000 (08:21 -0800)
commitcd34d5f2c40f3c65407f4b0bee0b49fc84e4a4ab
tree843df1c1321bbc66e1bee850fa8513c54dd25dc8
parent65af6bc9f87bc6b329fb7a16e3f736dd0a042bf5
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
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
gcc/testsuite/go.test/test/cmplxdivide.c
gcc/testsuite/go.test/test/cmplxdivide.go
gcc/testsuite/go.test/test/cmplxdivide1.go
libgo/Makefile.am
libgo/Makefile.in
libgo/runtime/go-cdiv.c [deleted file]