DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 58CBTn5P1053302 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 58CBTn5P1053302 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=eigYQOsy X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06E383857C6E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1757676588; bh=QfVCB+EvFqeF3u0d61XnbAlb3jPQ5ksi3xdPZg0Gquw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=eigYQOsyf1X3Ewn4gLDMz7L/0aiV4JnV5JV69tLPkPngslYLis8rYmfTVU7RYCy8D k8FKwLGZgJGZ4xEoo8/Txgi0Q3vJE9WtByH+rVzS19UwxE5vWBjM3eGLSLuWoLgtqa WgfaYPQRfTeV3Q5ChdYVjP6ZxzSPnP7RfuJtIj+w= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C03A3858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C03A3858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757676527; cv=none; b=L1I3ajOW3jygD9megbNmfihKklfSnnPiT/h/TGa40t9FNxHS541OJPDzpc7HJcUk4hWbZxEuM2flCjoUb74ixtL2/XKUd8l4V5oUzCCSlFE1Ole60pTz9S/pGuL1AT0UWWWh8X8ALHDtSXCp2FT3DxolOTc89sm6gqzOaUAxkIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757676527; c=relaxed/simple; bh=ZFDMmKqr56gKn+kbNV6ZJ9ZLHx0wqh2carVM10xiesU=; h=To:From:Subject:Message-ID:Date:MIME-Version; b=nQTscHtfWv7mR5OYQB/97dioL9C+vqGz+mtH+2n4pONTQFpvy5mQzeDSY3ghQToiKaRroHiupZKV3hnXOS48Kz+F6cNbnlHPqZwUvrrXlc80O8KtOF88Wcn7+vYHUk4XBrwxM49iWEkU0OOzcFC7+PFBaKt0sFDH9leVptRbPLU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C03A3858D21 To: cygwin AT cygwin DOT com Subject: clang 20.1.8+21.1.1: __stdcall__ warning only from Cygwin version Message-ID: <5c3c354b-8662-c961-9e13-bdfd4b6a9a75@t-online.de> Date: Fri, 12 Sep 2025 13:28:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.21 MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1757676523-DA7FA4E6-D0B88152/0/0 CLEAN NORMAL X-TOI-MSGID: 1b1c9d23-6321-4ce6-a59c-1461b82ff3b3 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Christian Franke Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 58CBTn5P1053302 First of all: thanks for providing recent clang packages! Testcase: $ cat winapi.c #include int WINAPI SomeDllFunction(int, int, int, int, int); int call_it() {   return SomeDllFunction(1, 2, 3, 4, 5); } $ clang -S winapi.c  # with 20.1.8 and 21.1.1 winapi.c:2:5: warning: '__stdcall__' calling convention is not supported for this target       [-Wignored-attributes]     2 | int WINAPI SomeDllFunction(int, int, int, int, int);       |     ^ /usr/include/w32api/minwindef.h:98:16: note: expanded from macro 'WINAPI'    98 | #define WINAPI __stdcall       |                ^ :400:34: note: expanded from macro '__stdcall'   400 | #define __stdcall __attribute__((__stdcall__))       |                                  ^ 1 warning generated. $ clang -Wsystem-headers -S winapi.c 2>&1 \ | grep -c 'warning:.*stdcall.* not supported' 8082 $ x86_64-w64-mingw32-clang -Wsystem-headers -S winapi.c 2>&1 \ | grep -c 'warning:.*stdcall.* not supported' 0 The generated assembly code is identical. The warning does not occur with __cdecl__ attribute (no difference from __stdcall__ in the x86_64 ABI). -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple