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/21457] sys/ucontext.h namespace


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

--- Comment #7 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  d57cb31910ca5c200e4172276749a7f8bd17ae3c (commit)
      from  ac782f9e9ab0a39a3054e4c97653fafa8ea47a62 (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=d57cb31910ca5c200e4172276749a7f8bd17ae3c

commit d57cb31910ca5c200e4172276749a7f8bd17ae3c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Jun 28 10:33:23 2017 +0000

    Miscellaneous sys/ucontext.h namespace fixes (bug 21457).

    This patch fixes various miscellaneous namespace issues in
    sys/ucontext.h headers.

    Some struct tags are removed where the structs also have *_t typedef
    names, while other struct tags without such names are renamed to start
    __; the changes are noted in NEWS as they can affect C++ name mangling
    (although there seems to be little if any external use of these types,
    at least based on checking codesearch.debian.net).  For powerpc,
    pointers to struct pt_regs (not defined in this header) are changed to
    point to struct __ctx(pt_regs), so in the __USE_MISC case those struct
    fields continue to point to the existing struct pt_regs type for
    maximum compatibility, while when that's a namespace issue they point
    to a struct __pt_regs type which is always an incomplete struct.

    Tested for affected architectures with build-many-glibcs.py.

        [BZ #21457]
        * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (fpregset_t): Remove
        struct tag.
        * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (fpregset_t):
        Likewise.
        * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (mcontext_t):
        Likewise.
        * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (pt_regs):
        Declare struct type with __ctx.
        [__WORDSIZE != 32] (mcontext_t): Use __ctx with pt_regs struct
        tag.
        (ucontext_t) [__WORDSIZE == 32]: Use __ctx with pt_regs struct tag
        and regs field name.

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

Summary of changes:
 ChangeLog                                      |   16 ++++++++++++++++
 NEWS                                           |    5 +++++
 sysdeps/unix/sysv/linux/m68k/sys/ucontext.h    |    2 +-
 sysdeps/unix/sysv/linux/mips/sys/ucontext.h    |    2 +-
 sysdeps/unix/sysv/linux/nios2/sys/ucontext.h   |    2 +-
 sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h |   10 ++++++----
 6 files changed, 30 insertions(+), 7 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]