X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=vBRo9GhF2Iw8Tc9C uMjtDc3xYqHY41HVETerhyX4jaZ5x0j5R94co7eZ4XAk2afKsBtNBWhbw1+UDqEq C3+/OaZxcc2cCrPamGFphh/XG/ZVaqptHcjTnxsRJslVp/lK/UwrvTmXK2da21pi fAR0h9zPqtTCfOzFwqSK+oIpQns= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=N+F8uQ09boZqXaw2pbnPt5 2bOWs=; b=cTziyUwsS3Xt0o4fRQl5LIiUshuWjfIsRzRXBAan3r8fR14tig5TXu MKjhDJZFjPJarUAycRbRYEvHlmxaUMoJH85z3HA2Eu0riETDQeoJsxzEiAtb2Xlv RGSS4ab5qdjwvPEC0WXbtlfNrugsuNPA9B2A1hUZWlOriKsrGet1Y= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: csmail.cs.umass.edu Message-ID: <54216D72.2070307@cs.umass.edu> Date: Tue, 23 Sep 2014 08:54:10 -0400 From: Eliot Moss Reply-To: moss AT cs DOT umass DOT edu User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ffs problem in windows64 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 9/23/2014 8:47 AM, Paulo César Pereira de Andrade wrote: > Hi, > > I am almost done porting https://savannah.gnu.org/projects/lightning > to cygwin and windows64 abi. But I found a problem with the ffs function. > > The test case is simple: > > $ cat x.c > extern int ffs(int); > int main(void) { > long l = 0x80000000; > int i = ffs((int)l); > return 0; > } > > $ gcc -O0 -g3 x.c > > $ ./a.exe > Segmentation fault (...) WJFFM in 32 bit cygwin. Regards -- Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple