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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=ByajW8jt0t9wzDPaYfKyfJ0vltS0O nnd+4hl+xsPDkv06mbOxN/FeUogLYXA4qzWPC5g1BmoCY1z7ZIk/mCqc3z2F3XCC UvGKwdar0lAgDRUdYBnd9FHkv+Yc6HIpgm+HAcCVkEtEx4N5CjRSPO0JtvuGMvor hv3i7W4ee7HLAM= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=9JdYAOmsT7jhaEB+Iksh1PXeESQ=; b=V/E YInNeNAAlI/fiebRJ+7CHPRScxOd3vWaGQeSZRCbPb2lOienypFnEarrD44xV54s IHuOdFebpkzfdnsfn/iIWBkB7rKoW6rIgmxDzXVRjD7IdiXDfyGHcTKJz5nsWePv dTu6kZVy5HNfuDhE/3xy9LRFidJ+hz2e0jrwk1ho= 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.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f46.google.com MIME-Version: 1.0 X-Received: by 10.68.203.198 with SMTP id ks6mr13631830pbc.140.1411476426221; Tue, 23 Sep 2014 05:47:06 -0700 (PDT) Date: Tue, 23 Sep 2014 09:47:06 -0300 Message-ID: Subject: ffs problem in windows64 From: =?UTF-8?Q?Paulo_C=C3=A9sar_Pereira_de_Andrade?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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 (...) Thanks, Paulo -- 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