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/21053] [SH] Namespace pollution from sys/ucontext.h


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

--- Comment #2 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  3e1b518550634792de13332edaab0ad722322c2b (commit)
      from  f3bef6a748097d02d196df247f7b292c7b83744c (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=3e1b518550634792de13332edaab0ad722322c2b

commit 3e1b518550634792de13332edaab0ad722322c2b
Author: James Clarke <jrtc27@jrtc27.com>
Date:   Tue Jan 24 09:20:06 2017 -0200

    Bug 21053: sh: Reduce namespace pollution from sys/ucontext.h

    The problem is basically that sys/ucontext.h is defining R0..R15
    which happens to conflict with some packages like Firefox when
    trying to build on SH.

    The very same problem existed on arm back then [1] and it was fixed by
    renaming R0..R15 to REG_R0..REG_R15.  This patch imploy a similar
    strategy for SH.

    Checked on sh4-linux-gnu with run-built-tests=no and I also got reports
    that it fixes Firefox build on Debian sh4.

        * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
        constants instead of the old R* ones.
        * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
        * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
        (NGREG): ... to this, to fit in with other architectures.
        (gpregset_t): Use new NGREG macro.
        [__USE_GNU]: Remove condition; all architectures other than tile
        are unconditional.
        (R*): Rename to REG_R*.

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

Summary of changes:
 ChangeLog                                     |   12 ++++
 sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym |   32 ++++++------
 sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym |   32 ++++++------
 sysdeps/unix/sysv/linux/sh/sys/ucontext.h     |   70 ++++++++++++-------------
 4 files changed, 78 insertions(+), 68 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]