aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libmath
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2004-01-23 16:47:06 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2004-01-23 16:47:06 +0000
commit129057c1eebb4bb56dcc8471fe3d0fbf1f054597 (patch)
tree12e55bcf7fe7763eb0be2b2327c9da6a40e9c1ea /libstdc++-v3/libmath
parent0bfb39efecda063244731c8d63ae25eb834acf57 (diff)
downloadgcc-129057c1eebb4bb56dcc8471fe3d0fbf1f054597.zip
gcc-129057c1eebb4bb56dcc8471fe3d0fbf1f054597.tar.gz
gcc-129057c1eebb4bb56dcc8471fe3d0fbf1f054597.tar.bz2
re PR c/13814 (rejects different prototypes than builtin function)
PR c/13814 * config/linker-map.gnu (nan): Delete. * libmath/mathconf.h (NAN, nan): Delete. * linkage.m4 (nan): Don't check for it. * libmath/nan.c: Delete file. * config.h.in, configure: Regenerate. From-SVN: r76431
Diffstat (limited to 'libstdc++-v3/libmath')
-rw-r--r--libstdc++-v3/libmath/mathconf.h5
-rw-r--r--libstdc++-v3/libmath/nan.c36
2 files changed, 0 insertions, 41 deletions
diff --git a/libstdc++-v3/libmath/mathconf.h b/libstdc++-v3/libmath/mathconf.h
index 087631a..cd8c92a 100644
--- a/libstdc++-v3/libmath/mathconf.h
+++ b/libstdc++-v3/libmath/mathconf.h
@@ -79,11 +79,6 @@ typedef int Int64_t __attribute ((mode (DI)));
# include <nan.h>
#endif
-#ifndef NAN
-# define NAN (nan())
-double nan (void);
-#endif
-
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
diff --git a/libstdc++-v3/libmath/nan.c b/libstdc++-v3/libmath/nan.c
deleted file mode 100644
index 1814b5d..0000000
--- a/libstdc++-v3/libmath/nan.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Return quiet nan. */
-
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
-
- This file is part of the GNU ISO C++ Library. This library is free
- software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the
- Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this library; see the file COPYING. If not, write to the Free
- Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA.
-
- As a special exception, you may use this file as part of a free software
- library without restriction. Specifically, if other files instantiate
- templates or use macros or inline functions from this file, or you compile
- this file and link it with other files to produce an executable, this
- file does not by itself cause the resulting executable to be covered by
- the GNU General Public License. This exception does not however
- invalidate any other reasons why the executable file might be covered by
- the GNU General Public License. */
-
-
-#include <stdlib.h>
-#include <string.h>
-
-double
-nan ()
-{ return strtod ("nan", NULL); }