Re: clang amd64 libm: declare copysign() correctly

2016-12-21 Thread Philip Guenther
On Wed, Dec 21, 2016 at 4:49 AM, Mark Kettenis wrote: >> Date: Wed, 21 Dec 2016 13:28:26 +0100 >> From: Christian Weisgerber >> >> libm uses copysign() and copysignf() internally, but fails to declare >> the amd64 assembly versions that way. When

Re: clang amd64 libm: declare copysign() correctly

2016-12-21 Thread Mark Kettenis
> Date: Wed, 21 Dec 2016 13:28:26 +0100 > From: Christian Weisgerber > > libm uses copysign() and copysignf() internally, but fails to declare > the amd64 assembly versions that way. When built with clang, this > results in undefined references to _libm_copysign etc. > >

clang amd64 libm: declare copysign() correctly

2016-12-21 Thread Christian Weisgerber
libm uses copysign() and copysignf() internally, but fails to declare the amd64 assembly versions that way. When built with clang, this results in undefined references to _libm_copysign etc. Presumably gcc replaces those calls to copysign with a builtin, but clang doesn't. Index: