Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: gdb/gnulib/import/float.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/gnulib/import/extra/snippet/warn-on-use.h ('k') | gdb/gnulib/import/float+.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/gnulib/import/float.c
diff --git a/gdb/gnulib/import/mbsrtowcs.c b/gdb/gnulib/import/float.c
similarity index 51%
copy from gdb/gnulib/import/mbsrtowcs.c
copy to gdb/gnulib/import/float.c
index e3ec8767c33a7280b4a641b15a22873f40b27548..ea31866548b66c4ed87a93eb4a91036541bb1047 100644
--- a/gdb/gnulib/import/mbsrtowcs.c
+++ b/gdb/gnulib/import/float.c
@@ -1,6 +1,6 @@
-/* Convert string to wide string.
- Copyright (C) 2008-2012 Free Software Foundation, Inc.
- Written by Bruno Haible <bruno@clisp.org>, 2008.
+/* Auxiliary definitions for <float.h>.
+ Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -18,15 +18,16 @@
#include <config.h>
/* Specification. */
-#include <wchar.h>
-
-#include <errno.h>
-#include <limits.h>
-#include <stdlib.h>
-
-#include "strnlen1.h"
-
-
-extern mbstate_t _gl_mbsrtowcs_state;
-
-#include "mbsrtowcs-impl.h"
+#include <float.h>
+
+#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__
+const union gl_long_double_union gl_LDBL_MAX =
+ { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } };
+#elif defined __i386__
+const union gl_long_double_union gl_LDBL_MAX =
+ { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } };
+#else
+/* This declaration is solely to ensure that after preprocessing
+ this file is never empty. */
+typedef int dummy;
+#endif
« no previous file with comments | « gdb/gnulib/import/extra/snippet/warn-on-use.h ('k') | gdb/gnulib/import/float+.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698