From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Problem with library images on Windows (again) Date: Fri, 20 May 2005 16:46:38 +0100 Message-ID: <428E065E.6040307@gnu.org> References: <01c55c26$Blat.v2.4$0ef86680@zahav.net.il> <01c55ca5$Blat.v2.4$dd149500@zahav.net.il> <01c55d0c$Blat.v2.4$8d418800@zahav.net.il> <428DB8F3.3070108@gnu.org> <01c55d4a$Blat.v2.4$8e2e76e0@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116604209 30447 80.91.229.2 (20 May 2005 15:50:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 15:50:09 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 20 17:49:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZ9is-0005Db-OS for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 17:47:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ9lk-0001hu-I5 for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 11:50:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZ9km-0001QO-9Y for emacs-devel@gnu.org; Fri, 20 May 2005 11:49:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZ9ki-0001OH-5p for emacs-devel@gnu.org; Fri, 20 May 2005 11:49:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ9kh-0001Mq-Te for emacs-devel@gnu.org; Fri, 20 May 2005 11:49:31 -0400 Original-Received: from [217.207.198.106] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZ9q2-0000gp-5Y; Fri, 20 May 2005 11:55:02 -0400 Original-Received: from ASSP-nospam (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2RRVM52D; Fri, 20 May 2005 16:44:42 +0100 Original-Received: from 217.205.90.2 ([217.205.90.2] helo=[10.10.5.77]) by ASSP-nospam ; 20 May 05 15:44:41 -0000 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: <01c55d4a$Blat.v2.4$8e2e76e0@zahav.net.il> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37393 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37393 Eli Zaretskii wrote: >That seems to be the problem. What I still don't get is how come the >same declaration that uses FARPROC works for the MinGW build? Can you >figure this out? > > Without looking at the disassembly, I'd guess that MinGW gcc and non-optimised MSVC builds restore the stack pointer from a known location regardless of the calling convention, which should always work. >If we know this, we could fix the DEF_IMGLIB_FN macro so that it does >TRT for both compilers, e.g., by using __MINGW__ condition. > > I think TRT will not depend on __MINGW__. Mingw works despite there being a bug, not because of it.