Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
To: "David Carter" <david@carter.net>
Cc: <cygwin@cygwin.com>
Subject: Re: Up-to-date info on '-mno-cygwin' vs. Mingw32
References: <000501c13210$54396e40$6401a8c0@atl.mediaone.net>
From: James Youngman <jay@gnu.org>
Date: 31 Aug 2001 22:51:45 +0100
In-Reply-To: <000501c13210$54396e40$6401a8c0@atl.mediaone.net>
Message-ID: <x6ae0f99u6.fsf@no-such-thing-as-a.free-lunch.demon.co.uk>
Lines: 23
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

"David Carter" <david@carter.net> writes:

> - use the cygwin tools, passing -mno-cygwin to the compiler (& linker? I
> do it to be sure, but not sure if it's required)

As an (off-topic) aside, I noticed recently that it makes a difference
whether you pass -O to the preprocessor or not, but it appears that
autoconf doesn't know that (configure doesn't pass the -O to the
preprocessor) and glibc behaves differently (G<IBC 2.2.3 #defines
printf, for example).


(this test on GCC 2.96, but I initially noticed it with GC 2.95.3
under Cygwin 1.3.2.) 

bash-2.04$ diff <(cpp -dM -E - < /dev/null ) <(cpp -dM -O4 -E - < /dev/null) 
11a12
> #define __OPTIMIZE__ 1

-- 
James Youngman
Manchester, UK.  +44 161 226 7339
PGP (GPG) key ID for <jay@gnu.org> is 64A95EE5 (F1B83152).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

