This is the mail archive of the glibc-bugs@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]

[Bug libc/17721] __restrict defined as /* Ignore */ even in c11


https://sourceware.org/bugzilla/show_bug.cgi?id=17721

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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  383e87c96b9eee3b4b2d78dbeeaa8e2c0db35feb (commit)
      from  d92c2759976600decd8353730a5b5ce30c2758d8 (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=383e87c96b9eee3b4b2d78dbeeaa8e2c0db35feb

commit 383e87c96b9eee3b4b2d78dbeeaa8e2c0db35feb
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Feb 6 21:48:35 2018 +0000

    Fix non-__GNUC__ definitions of __inline and __restrict (bug 17721).

    Bug 17721 reports that the non-__GNUC__ definitions of __inline and
    __restrict are suboptimal, in that they are defined to empty when they
    could be defined to inline and restrict for appropriate language
    versions.  This patch makes those fixes.

    Tested for x86_64 (however, I have not done any testing with an actual
    non-__GNUC__ compiler and it's likely such compilers may have other
    problems with glibc headers).

        [BZ #17721]
        * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
        && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
        [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
        199901L] (__restrict): Define to restrict.

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

Summary of changes:
 ChangeLog        |    6 ++++++
 misc/sys/cdefs.h |   13 +++++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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