DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 58FIn3nO3669672 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 58FIn3nO3669672 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=jVBzvUKG X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DFA33857806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1757962140; bh=+/9YxSzijKnXUvei7hMqC731g3IZblssdJ6g93ZXnSc=; h=Date:To:cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=jVBzvUKGKbC6DJASMAh8Qz22zACUze1XlW9E8RVMeAkZS3SCFQR9LKV8zFJrsSAS6 obPBw7jb0wg88n+5CZNjhNq5nrS/GcY+hTvnLusk9DJyVn7R6Bbovlnl1F3Ycn542/ o2eiq93j6TDF5lJKa4Mh1ur732P2zbca5+R/rtFQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 968FA3857BB9 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 968FA3857BB9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757961932; cv=none; b=fueMK7IzRC2tkrubK+zB6ep43NDs3+iUCgl6zIqiF+E5+Kayf/gxB9t3LuiL29gQJBIdvdcNwXScsSxUXjY71hQVPvK8ZbdIXbseFyroo5yep+7dCU98jvIA5LcZ4ufgdztD/4aCJaalai/b9ia9msLO7vD0ZYYWWIGNgqES+nE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757961932; c=relaxed/simple; bh=C9biZdSQbC/g8Nr7eCI7ADu9j3+e+hpPIWGyXlIQb08=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=ebNeG5H6uQhRdye0Pm1iZRs1CFUhJs2kikHUO9bEUnaIhPOusq/cn138822cr/B3HN6Ygkr//skKPN1ehq3JDF4vKnp5PQT7l+SjcVkneWwbzhG4wjh4vVLx0VTferQUfR/O84oYJPSLbrM5jp3i3tUxZbnh5q21qmt/UCl0pAo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 968FA3857BB9 Date: Mon, 15 Sep 2025 11:45:32 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: Christian Franke via Cygwin cc: Christian Franke Subject: Re: clang 20.1.8+21.1.1: __stdcall__ warning only from Cygwin version In-Reply-To: <5c3c354b-8662-c961-9e13-bdfd4b6a9a75@t-online.de> Message-ID: <82307f10-1fb1-9f84-1ecb-8081bf224d29@jdrake.com> References: <5c3c354b-8662-c961-9e13-bdfd4b6a9a75 AT t-online DOT de> MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Drake via Cygwin Reply-To: Jeremy Drake Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 58FIn3nO3669672 On Fri, 12 Sep 2025, Christian Franke via Cygwin wrote: > 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). > This should be fixed in 21.1.1-2, just uploaded. Thanks for the report. -- 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