From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9B1C385828C; Sat, 30 Dec 2023 06:26:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9B1C385828C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703917570; bh=VnQWCDZLhdmcoC+RB+nZW0br6LNa/4VeN1NlyxZ0vhA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W0yAJ23VyN8MsB+gjNqtfrVfXSMINWua405fSXUYLINzcrguSypUl8qxGVxp7TKdU FWq3SjqiUYpZzt4wyM/85hTILZhAMyw7UTbzmEIWvw+noBg5vHf5nLXtNymlckbyJ1 pu7P5Qq8UiZL3Uhq8ZTL181uhy0WqKD6VTmvum+0= From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/113143] Remove usage of ucontext.h Date: Sat, 30 Dec 2023 06:26:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113143 --- Comment #12 from Ian Lance Taylor --- libgo/runtime/runtime.h: #if defined(__x86_64__) && defined(__linux__) && !defined(__CET__) ... #else #define __go_context_t ucontext_t #define __go_getcontext(c) getcontext(c) #define __go_setcontext(c) setcontext(c) #define __go_makecontext(c, fn, sp, size) \ ((c)->uc_stack.ss_sp =3D sp, (c)->uc_stack.ss_size =3D size, makeco= ntext(c, fn, 0)) #endif libgo/runtime/proc.c: various calls to __go_getcontext, __go_setcontext, and __go_makecontext.=