From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1814) id A37933858D37; Mon, 10 Oct 2022 07:17:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A37933858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665386235; bh=C9qVBKApF8k+Y8nxkoLYP9EMysj4pxthm41q6OqBqgQ=; h=From:To:Subject:Date:From; b=LRW7v3SgKD+10SODof9EzPiMCG4iWxy6LOTfPDdlzJKHAGBB+J1aXnEyIyNIDTuwj gQLoGrfzjFnYFo9dX9Mg+mJqobkzp9t49VYnkROdlJR5SbYozUwwfLQitXxlEjIOnR PuZutghqHjgbFGJ0h6HaDkmZS2SXyO2oWhMp6pHM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Yong To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3182] libgfortran: Use `__gthread_t` instead of `pthread_t` X-Act-Checkin: gcc X-Git-Author: LIU Hao X-Git-Refname: refs/heads/master X-Git-Oldrev: 570eb458c64a15d33817994f8e4640b63c81d6d4 X-Git-Newrev: decbb5bf7cc7317fefa53f0d64082cf020e85e42 Message-Id: <20221010071715.A37933858D37@sourceware.org> Date: Mon, 10 Oct 2022 07:17:15 +0000 (GMT) List-Id: https://gcc.gnu.org/g:decbb5bf7cc7317fefa53f0d64082cf020e85e42 commit r13-3182-gdecbb5bf7cc7317fefa53f0d64082cf020e85e42 Author: LIU Hao Date: Fri May 27 23:12:48 2022 +0800 libgfortran: Use `__gthread_t` instead of `pthread_t` It used to cause errors if a thread model other than `posix` was selected, which looks like a leftover from a79878585a1c5e32bafbc6d1e73f91fd6e4293bf. libgfortran/ * io/async.h (struct async_unit): Use `__gthread_t` instead of `pthread_t`. Signed-off-by: LIU Hao Signed-off-by: Jonathan Yong <10walls@gmail.com> Diff: --- libgfortran/io/async.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h index efd542a45e8..d57722a95e4 100644 --- a/libgfortran/io/async.h +++ b/libgfortran/io/async.h @@ -351,7 +351,7 @@ typedef struct async_unit struct adv_cond work; struct adv_cond emptysignal; struct st_parameter_dt *pdt; - pthread_t thread; + __gthread_t thread; struct transfer_queue *head; struct transfer_queue *tail;