V3 PATCH: library fallback for mathematical __builtin_xxx

Gabriel Dos Reis gdr@codesourcery.com
Wed Jul 25 01:17:00 GMT 2001


This patch implements the stubs for missing functions required for V3
in <math.h>.  It should fix PR 3474. 

Bootstrapped and tested on an i686-pc-linux.  Applied to mainline 
only -- branch will go through the same treatment after a day or two.

-- Gaby

2001-07-25  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

	* acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
	hypotl, atan2f, atan2l.  Remove from REPLACE_MATHFUNCS list.
	* aclocal.m4: Regenerate.
	* config.h.in: Likewise.
	* configure: Likewise.
	* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
	(EXTRA_DIST): Remove hypot.c hypotf.c.
	* libmath/Makefile.am: Regenerate.
	* libmath/hypotf.c: Remove.
	* libmath/hypot.c: Likewise.
	* libmath/hypotl.c: Likewise.
	* libmath/stubs.c: The macros seen here are HAVE_xxx, not
	_GLIBCPP_HAVE_xxx.  Add long double versions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stubs.patch.gz
Type: application/x-gzip
Size: 31846 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20010725/31f3ec66/attachment.bin>


More information about the Libstdc++ mailing list