d: Explicitly determine which built-in copysign function to call.
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 13 Nov 2020 08:57:57 +0000 (09:57 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 13 Nov 2020 13:58:58 +0000 (14:58 +0100)
commitd975d6dce98a3e26ddd304d50dad2786b3acecc4
tree8cf58c1b5f6da63b055ade7469a7ebb6be4002c0
parent5d4b824faf1e5846ec684a74f93912cf347928df
d: Explicitly determine which built-in copysign function to call.

For some targets, mathfn_built_in returns NULL as copysign is not
implicitly available, causing an ICE.  Now copysign is explicitly
requested when expanding the intrinsic.

gcc/d/ChangeLog:

* intrinsics.cc (expand_intrinsic_copysign): Explicitly determine
which built-in copysign function to call.
gcc/d/intrinsics.cc