From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1701 invoked by alias); 28 Jun 2017 02:22:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1530 invoked by uid 89); 28 Jun 2017 02:22:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*cornell.edu, H*r:ip*192.168.0.4, HContent-Transfer-Encoding:8bit X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 Jun 2017 02:22:27 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v5S2MOsB013817 for ; Tue, 27 Jun 2017 22:22:24 -0400 Received: from [192.168.0.4] (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v5S2MMAF002949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 27 Jun 2017 22:22:23 -0400 From: Ken Brown Subject: Re: Request update GCC To: cygwin@cygwin.com References: <594f1e45.14119d0a.73dda.b6f9@mx.google.com> <3a4f8ce8-e76c-678c-c11c-e91366e57ec7@gmail.com> <028199b4-9ff5-a384-34f0-73a323fbcfa0@gmail.com> <75758c6e-a76e-02b2-5b72-ac43fa666a20@gmail.com> Message-ID: <0968f64d-fdb2-ad43-cdb5-f5fc27acabc0@cornell.edu> Date: Wed, 28 Jun 2017 02:22:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00377.txt.bz2 On 6/27/2017 7:32 AM, Marco Atzeri wrote: > On 27/06/2017 03:08, JonY wrote: >> On 06/26/2017 10:16 AM, Marco Atzeri wrote: >>> >>> Jon, >>> >>> are you building the compilers on cygwin or cross compiling ? >>> >>> I was trying to test the patch for >>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47030 >>> as it is blocking PETSC porting, >>> but I was unable to build 6.3.0-1 from your >>> source package. >>> >>> >>> In file included from >>> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-1.src/gcc-6.3.0-1. >>> x86_64/src/gcc-6.3.0/gcc/rtl.h:31:0, >>> from >>> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-1.src/gcc-6.3.0-1. >>> x86_64/src/gcc-6.3.0/gcc/genopinit.c:25: >>> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-1.src/gcc-6.3.0-1.x86_64/src/gcc-6.3.0/g >>> >>> >>> cc/real.h:36:35: warning: division by zero [-Wdiv-by-zero] >>> #define SIGSZ (SIGNIFICAND_BITS / HOST_BITS_PER_LONG) >>> >>> /cygdrive/e/cyg_pub/devel/gcc/gcc-6.3.0-1.src/gcc-6.3.0-1.x86_64/src/gcc-6.3.0/g >>> >>> >>> cc/real.h:49:21: note: in expansion of macro ‘SIGSZ’ >>> unsigned long sig[SIGSZ]; >> >> On Cygwin itself, shouldn't that be 32bit and 64bit respectively for >> Cygwin? > > In theory > > gcc/real.h:#define SIGNIFICAND_BITS (128 + HOST_BITS_PER_LONG) > > gcc/hwint.h:#define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) > > > but I do not understand why SIGSZ is wrong defined. FWIW, I just rebuilt gcc-6.3.0-1 from source on 64-bit Cygwin without getting that warning. Ken -- 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