This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 go/81451] missing futex check - libgo/runtime/thread-linux.c:12:0 futex.h:13:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451

--- Comment #4 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Tue Jul 18 23:14:29 2017
New Revision: 250326

URL: https://gcc.gnu.org/viewcvs?rev=250326&root=gcc&view=rev
Log:
        PR go/81451
    runtime: inline runtime_osinit

    We had two identical copies of runtime_osinit. They set runtime_ncpu,
    a variable that is no longer used. Removing that leaves us with two lines.
    Inline those two lines in the two places the function was called.

    This fixes GCC PR 81451.

    Reviewed-on: https://go-review.googlesource.com/48862

Removed:
    trunk/libgo/runtime/thread-linux.c
    trunk/libgo/runtime/thread-sema.c
Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/Makefile.am
    trunk/libgo/Makefile.in
    trunk/libgo/go/runtime/stubs.go
    trunk/libgo/runtime/go-libmain.c
    trunk/libgo/runtime/go-main.c
    trunk/libgo/runtime/proc.c
    trunk/libgo/runtime/runtime.h

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