]> git.ipfire.org Git - thirdparty/gcc.git/commit
Define HAVE_ for math long double functions declared in vxworks headers
authorAlexandre Oliva <oliva@adacore.com>
Wed, 25 Dec 2019 06:43:22 +0000 (06:43 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 25 Dec 2019 06:43:22 +0000 (06:43 +0000)
commit85129ff10afef6c9686dd566b7e728bef7a2fdc3
tree90effc097af1fd17ab3279ddfb6fe905de1f17cb
parentde0db05147815dc323c98ec9cd8b9c9ed58e2813
Define HAVE_ for math long double functions declared in vxworks headers

When cross-building for vxworks, test for declarations of long double
functions in math.h.  We don't normally test for these functions when
cross compiling, because link tests don't work, or ever really, but
not defining them as available causes replacements to be defined in
ways that may cause duplicate definition linker errors if the units
defining both the replacement and the actual implementation are
brought in because of other symbols.

for libstdc++-v3/ChangeLog

* crossconfig.m4 (GLIBCXX_CROSSCONFIG) [*-vxworks*]: Define
long double functions as available if declared by math.h.
(GLIBCXX_CHECK_MATH_DECL, GLIBCXX_CHECK_MATH_DECLS): New.
* configure: Rebuild.

From-SVN: r279731
libstdc++-v3/ChangeLog
libstdc++-v3/configure
libstdc++-v3/crossconfig.m4