From: benny AT crocodial DOT de (Benjamin Riefenstahl) Subject: Re: gcc compiler output 29 Apr 1998 23:24:15 -0700 Message-ID: <35472E4E.2E964363.cygnus.gnu-win32@crocodial.de> References: <19980429121901 DOT 22316 DOT rocketmail AT send1a DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: gnu-win32 AT cygnus DOT com Hi Earnie, Earnie Boyd wrote: > I don't know if this would work with cygwin. The specs file does a > -Di386. However, I haven't checked what happens in the specs file > with -ansi. > > > You could still detect your platform by checking for '__i386__' > > Is this true for the cygwin gcc tools? Is this macro defined? It > isn't in the specs file. Sorry, I should have checked this with a test program before I posted. I have checked it now with my b18 installation (with and without mingw32) and I assume nothing has changed in that area in b19 (?). What I stated is in the docs, and is the way it should be. For all pre-defined macros that indicate the hardware or OS platform the form '__i386__' should be always defined, 'i386' only without -ansi. At the moment it seems that actually 'i386' is always pre-defined. This is a bug. I don't know enough about the syntax of the specs file (where is that documented anyway?) to be sure about how this works, but I experimented a bit. -Di386 occurs twice in it. If I remove the -Di386 from the section "*cpp_cpu" it seems to work as documented. I also checked the compiler headers and they only seem to use __i386__ whereever they need this functionality, so removing -Di386 from the '*cpp_cpu' section seems save. so long, benny ====================================== Benjamin Riefenstahl (benny AT crocodial DOT de) Crocodial Communications EntwicklungsGmbH Ruhrstraße 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".