This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-362-g4f646bc


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  4f646bce1cae4031bfe7517e4793f1edc1a15220 (commit)
       via  a07c4427111dc4abffec21d9491d059eebcfe3d6 (commit)
       via  1469f466967a48d11411aaaef7621db39caaee59 (commit)
      from  11e3417af6e354f1942c68a271ae51e892b2814d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4f646bce1cae4031bfe7517e4793f1edc1a15220

commit 4f646bce1cae4031bfe7517e4793f1edc1a15220
Author: Torvald Riegel <triegel@redhat.com>
Date:   Mon Dec 15 20:13:11 2014 +0100

    Ignore warning in string/tester.c.

diff --git a/ChangeLog b/ChangeLog
index df38352..8ce0f92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-12-16  Torvald Riegel  <triegel@redhat.com>
 
+	* string/tester.c: Include <libc-internal.h>.
+	(test_memset): Ignore -Wmemset-transposed-args.
+
+2014-12-16  Torvald Riegel  <triegel@redhat.com>
+
 	* misc/tst-mntent2.c (do_test): Fix warning.
 
 2014-12-16  Torvald Riegel  <triegel@redhat.com>
diff --git a/string/tester.c b/string/tester.c
index 62905a7..b219693 100644
--- a/string/tester.c
+++ b/string/tester.c
@@ -32,6 +32,7 @@
 #include <string.h>
 #include <strings.h>
 #include <fcntl.h>
+#include <libc-internal.h>
 
 
 #define	STREQ(a, b)	(strcmp((a), (b)) == 0)
@@ -1303,8 +1304,15 @@ test_memset (void)
   check(memset(one+1, 'x', 3) == one+1, 1);	/* Return value. */
   equal(one, "axxxefgh", 2);		/* Basic test. */
 
+  DIAG_PUSH_NEEDS_COMMENT;
+#if __GNUC_PREREQ (5, 0)
+  /* GCC 5.0 warns about a zero-length memset because the arguments to memset
+     may be in the wrong order.  But we really want to test this.  */
+  DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args")
+#endif
   (void) memset(one+2, 'y', 0);
   equal(one, "axxxefgh", 3);		/* Zero-length set. */
+  DIAG_POP_NEEDS_COMMENT;
 
   (void) memset(one+5, 0, 1);
   equal(one, "axxxe", 4);			/* Zero fill. */

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a07c4427111dc4abffec21d9491d059eebcfe3d6

commit a07c4427111dc4abffec21d9491d059eebcfe3d6
Author: Torvald Riegel <triegel@redhat.com>
Date:   Mon Dec 15 22:11:56 2014 +0100

    Fix warning in misc/tst-mntent2.c.

diff --git a/ChangeLog b/ChangeLog
index 62767e5..df38352 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-16  Torvald Riegel  <triegel@redhat.com>
 
+	* misc/tst-mntent2.c (do_test): Fix warning.
+
+2014-12-16  Torvald Riegel  <triegel@redhat.com>
+
 	* elf/tst-unique4lib.cc(a): Mark as used.
 
 2014-12-16  Florian Weimer  <fweimer@redhat.com>
diff --git a/misc/tst-mntent2.c b/misc/tst-mntent2.c
index e61d506..ba1ee0a 100644
--- a/misc/tst-mntent2.c
+++ b/misc/tst-mntent2.c
@@ -17,7 +17,7 @@ do_test (void)
   mef.mnt_passno = 2;
 
 #define TEST(opt, found) \
-  if (!!hasmntopt (&mef, (opt)) != (found))				\
+  if ((!!hasmntopt (&mef, (opt))) != (found))				\
     {									\
       printf ("Option %s was %sfound\n", (opt), (found) ? "not " : "");	\
       result = 1;							\

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1469f466967a48d11411aaaef7621db39caaee59

commit 1469f466967a48d11411aaaef7621db39caaee59
Author: Torvald Riegel <triegel@redhat.com>
Date:   Mon Dec 15 22:05:06 2014 +0100

    Fix warning in elf/tst-unique4lib.cc.

diff --git a/ChangeLog b/ChangeLog
index ee147e2..62767e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-16  Torvald Riegel  <triegel@redhat.com>
+
+	* elf/tst-unique4lib.cc(a): Mark as used.
+
 2014-12-16  Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #17630]
diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc
index 20a10e9..17a7cdf 100644
--- a/elf/tst-unique4lib.cc
+++ b/elf/tst-unique4lib.cc
@@ -6,7 +6,7 @@ int S<N>::i = N;
 template<int N>
 const int S<N>::j __attribute__ ((used)) = -1;
 
-static int a[24] =
+static int a[24] __attribute__ ((used)) =
   {
     S<1>::i, S<2>::i, S<3>::i, S<4>::i, S<5>::i, S<6>::i, S<7>::i, S<8>::i,
     S<9>::i, S<10>::i, S<11>::i, S<12>::i, S<13>::i, S<14>::i, S<15>::i,

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |   13 +++++++++++++
 elf/tst-unique4lib.cc |    2 +-
 misc/tst-mntent2.c    |    2 +-
 string/tester.c       |    8 ++++++++
 4 files changed, 23 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]