delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/08/04:45:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <4A9A228A249B4E60B27FDC1EB3EFD860@PPPHP>
From: "Paul Edwards" <mutazilah AT gmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: gcc -ansi produces unexpected floating point result
Date: Sat, 8 Dec 2012 20:45:26 +1100
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Marco.

> gcc4 is for building on cygwin for cygwin.

> -mno-cygwin was for building on cygwin for NO cygwin, like mingw.
> It is now a deprecated tweak.

> For that scope are now available 2 cross-compilers
> see packages:

>  mingw-gcc-core
>  mingw64-i686-gcc-core

> both as 4.5.x versions

Thanks for the info. One works, one doesn't.


C:\devel\bwbasic>i686-pc-mingw32-gcc --version
i686-pc-mingw32-gcc (GCC) 4.5.2

C:\devel\bwbasic>i686-pc-mingw32-gcc zatest.c

C:\devel\bwbasic>a
2.000000
2.000000

C:\devel\bwbasic>i686-pc-mingw32-gcc -ansi zatest.c

C:\devel\bwbasic>a
0.000000
2.000000



C:\devel\bwbasic>i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.5.3

C:\devel\bwbasic>i686-w64-mingw32-gcc zatest.c

C:\devel\bwbasic>a
2.000000
2.000000

C:\devel\bwbasic>i686-w64-mingw32-gcc -ansi zatest.c

C:\devel\bwbasic>a
2.000000
2.000000



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019