From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dmta1007.nifty.com (mta-snd01013.nifty.com [106.153.227.45]) by sourceware.org (Postfix) with ESMTPS id 285883856948 for ; Fri, 9 Jun 2023 00:22:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 285883856948 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 by dmta1007.nifty.com with ESMTP id <20230609002232897.ZXVN.19115.HP-Z230@nifty.com>; Fri, 9 Jun 2023 09:22:32 +0900 Date: Fri, 9 Jun 2023 09:22:33 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: =?UTF-8?B?TcO8bWlu?= A. Subject: Re: Memory Barriers at pthread using CYGWIN Message-Id: <20230609092233.952b3d191906006ba36ed36c@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 8 Jun 2023 22:58:59 +0000 Mümin A. wrote: > r1=0 and r2=0 > That is my result with Cygwin on windows. It’s false. > > When I compiled with gcc. The result is correct but when I use lasted Cygwin gcc in windows 10. The result is false. I cannot reproduce your problem. If I compile main.cpp with 'g++ main.cpp', a.exe outputs r1 = 1, r2 = 1 If I use cmake, I get an error message: CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.26 or higher is required. You are running version 3.25.3 My environment is: cygwin 3.4.6 g++ (GCC) 11.4.0 cmake version 3.25.3 all packages are updated. -- Takashi Yano