GNU C Library master sources branch master updated. glibc-2.23-415-gcda672e

carlos@sourceware.org carlos@sourceware.org
Sat Jun 4 00:11:00 GMT 2016


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  cda672e7bd2e2d11bae1e4bf5d2dd4532a610ebd (commit)
      from  8cbd1453ec1c59e54652edcd88256f4023ff77b9 (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=cda672e7bd2e2d11bae1e4bf5d2dd4532a610ebd

commit cda672e7bd2e2d11bae1e4bf5d2dd4532a610ebd
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Fri Jun 3 17:21:53 2016 -0400

    Fix include/wchar.h for C++
    
    When trying to compile regression tests that use
    C++ and the threads header you get this failure:
    
    In file included from /usr/include/c++/5.3.1/cwchar:44:0,
    from /usr/include/c++/5.3.1/bits/postypes.h:40,
    from /usr/include/c++/5.3.1/bits/char_traits.h:40,
    from /usr/include/c++/5.3.1/string:40,
    from /usr/include/c++/5.3.1/stdexcept:39,
    from /usr/include/c++/5.3.1/array:38,
    from /usr/include/c++/5.3.1/tuple:39,
    from /usr/include/c++/5.3.1/functional:55,
    from /usr/include/c++/5.3.1/thread:39,
    from tst-thread-quick_exit.cc:19:
    ../include/wchar.h:105:23: error: invalid conversion from ‘wchar_t*
    (*)(wchar_t*, wchar_t, size_t) throw () {aka wchar_t* (*)(wchar_t*,
    wchar_t, long unsigned int) throw ()}’ to ‘int’ [-fpermissive]
    extern typeof (wmemset) __wmemset;
    ^
    ../include/wchar.h:105:25: error: expected ‘,’ or ‘;’ before ‘__wmemset’
    extern typeof (wmemset) __wmemset;
    ^
    
    The simplest fix for C++ is to avoid the use of
    typeof and just declare the prototype as expected.
    
    No regressions on x86_64. Committed as obvious.
    The include/wchar.h header is only for internal
    build uses and therefore is not ever seen by any
    external users and needs no bug #.

diff --git a/ChangeLog b/ChangeLog
index 3e16edf..fac360e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-03  Carlos O'Donell  <carlos@redhat.com>
+
+	* include/wchar.h (__wmemset): Declare function without typeof.
+
 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #20205]
diff --git a/include/wchar.h b/include/wchar.h
index 0f33d09..96b0438 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -102,7 +102,7 @@ extern int __wcscoll (const wchar_t *__s1, const wchar_t *__s2) __THROW;
 libc_hidden_proto (__wcscoll)
 libc_hidden_proto (wcspbrk)
 
-extern typeof (wmemset) __wmemset;
+extern wchar_t *__wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
 extern wchar_t *__wmemchr (const wchar_t *__s, wchar_t __c, size_t __n)
      __THROW __attribute_pure__;
 libc_hidden_proto (wmemchr)

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

Summary of changes:
 ChangeLog       |    4 ++++
 include/wchar.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)


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



More information about the Glibc-cvs mailing list