Bug 241611 - [exp-run] with additional __isnan macros in math.h
Summary: [exp-run] with additional __isnan macros in math.h
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
Depends on:
Blocks: 241550
  Show dependency treegraph
Reported: 2019-10-31 07:06 UTC by Dimitry Andric
Modified: 2019-11-02 17:02 UTC (History)
2 users (show)

See Also:
koobs: exp-run?

Add __isnan and __isnanf to math.h (1.54 KB, patch)
2019-10-31 07:06 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer 2019-10-31 07:06:19 UTC
Created attachment 208724 [details]
Add __isnan and __isnanf to math.h

In bug 241550, Gleb Popov reports that trivia CUDA programs can't be compiled due to missing __isnan and __isnanf functions.  These are apparently Linuxisms.

I have prepared a patch which adds these as macro aliases to <math.h>, but since these isnan functions and macros have a long history of compatibility problems, I would prefer to see an exp-run done before I commit it.
Comment 1 Dimitry Andric freebsd_committer 2019-11-02 17:02:32 UTC
Committed patch in base r354255.