[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r15698 - in /fsf/trunk/libc: ChangeLog NEWS elf/sprof.c math/complex.h math/math.h
- To: commits@xxxxxxxxxx
- Subject: [Commits] r15698 - in /fsf/trunk/libc: ChangeLog NEWS elf/sprof.c math/complex.h math/math.h
- From: eglibc@xxxxxxxxxx
- Date: Sat, 05 Nov 2011 00:02:30 -0000
Author: eglibc
Date: Sat Nov 5 00:02:29 2011
New Revision: 15698
Log:
Import glibc-mainline for 2011-11-05
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/NEWS
fsf/trunk/libc/elf/sprof.c
fsf/trunk/libc/math/complex.h
fsf/trunk/libc/math/math.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat Nov 5 00:02:29 2011
@@ -1,3 +1,12 @@
+2011-11-04 Andreas Schwab <schwab@xxxxxxxxxx>
+
+ [BZ #10103]
+ * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
+ declarations for long double functions.
+ * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
+
+ * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
+
2011-11-03 Andreas Schwab <schwab@xxxxxxxxxx>
* nscd/nscd.c (main): Don't start AVC thread until credentials are
Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Sat Nov 5 00:02:29 2011
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes. 2011-11-1
+GNU C Library NEWS -- history of user-visible changes. 2011-11-4
Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
See the end for copying conditions.
@@ -9,10 +9,10 @@
* The following bugs are resolved with this release:
- 6779, 6783, 9696, 10709, 11589, 12403, 12847, 12868, 12852, 12874, 12885,
- 12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092,
- 13114, 13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13276,
- 13291, 13335, 13337, 13344, 13358, 13367
+ 6779, 6783, 9696, 10103, 10709, 11589, 12403, 12847, 12868, 12852, 12874,
+ 12885, 12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090,
+ 13092, 13114, 13118, 13123, 13134, 13138, 13150, 13179, 13192, 13268,
+ 13276, 13291, 13335, 13337, 13344, 13358, 13367
* New program pldd to list loaded object of a process
Implemented by Ulrich Drepper.
Modified: fsf/trunk/libc/elf/sprof.c
==============================================================================
--- fsf/trunk/libc/elf/sprof.c (original)
+++ fsf/trunk/libc/elf/sprof.c Sat Nov 5 00:02:29 2011
@@ -597,7 +597,7 @@
char origprocname[sizeof (procpath) + sizeof (int) * 3];
snprintf (origprocname, sizeof (origprocname), procpath, fd);
char *origlink = (char *) alloca (PATH_MAX);
- ssize_t n = readlink (origprocname, origlink, PATH_MAX);
+ ssize_t n = readlink (origprocname, origlink, PATH_MAX - 1);
if (n == -1)
goto no_debuginfo;
origlink[n] = '\0';
Modified: fsf/trunk/libc/math/complex.h
==============================================================================
--- fsf/trunk/libc/math/complex.h (original)
+++ fsf/trunk/libc/math/complex.h Sat Nov 5 00:02:29 2011
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000, 2006, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -85,7 +85,8 @@
/* And the long double versions. It is non-critical to define them
here unconditionally since `long double' is required in ISO C99. */
#if (__STDC__ - 0 || __GNUC__ - 0) \
- && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
+ && (!(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \
+ || defined __LDBL_COMPAT)
# ifdef __LDBL_COMPAT
# undef __MATHDECL_1
# define __MATHDECL_1(type, function, args) \
Modified: fsf/trunk/libc/math/math.h
==============================================================================
--- fsf/trunk/libc/math/math.h (original)
+++ fsf/trunk/libc/math/math.h Sat Nov 5 00:02:29 2011
@@ -98,7 +98,8 @@
# undef __MATH_PRECNAME
# if (__STDC__ - 0 || __GNUC__ - 0) \
- && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
+ && (!(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \
+ || defined __LDBL_COMPAT)
# ifdef __LDBL_COMPAT
# ifdef __USE_ISOC99
@@ -116,9 +117,6 @@
# endif
# endif
-/* Include the file of declarations again, this time using `long double'
- instead of `double' and appending l to each function name. */
-
# undef __MATHDECL_1
# define __MATHDECL_2(type, function,suffix, args, alias) \
extern type __REDIRECT_NTH(__MATH_PRECNAME(function,suffix), \
@@ -126,6 +124,9 @@
# define __MATHDECL_1(type, function,suffix, args) \
__MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix))
# endif
+
+/* Include the file of declarations again, this time using `long double'
+ instead of `double' and appending l to each function name. */
# ifndef _Mlong_double_
# define _Mlong_double_ long double
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits