Trouble building gcc-3.4.0 cygwin->linux

Jim Wilson wilson@specifixinc.com
Wed Jun 16 23:02:00 GMT 2004


On Tue, 2004-06-08 at 19:20, Christopher Faylor wrote:
> On Tue, Jun 08, 2004 at 06:59:29PM -0700, Jim Wilson wrote:
> >Actually, I see that cygming.h seems to be always used where cygwin.h is
> >used, and thus we seem to have a duplicate macro definition.  Is this
> >what you are concerned about?
> 
> Yes.

OK.  The duplicate macro definitions seem to be harmless, when building
with gcc anyways.  However, this could be a problem with other
compilers.  I added the following patch to fix this.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
-------------- next part --------------
2004-06-16  James E Wilson  <wilson@specifixinc.com>

	PR c++/14808
	* config/i386/cygwin.h (TARGET_IS_PE_COFF): Delete duplicate macro.

Index: cygwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/cygwin.h,v
retrieving revision 1.85.10.1
diff -p -r1.85.10.1 cygwin.h
*** cygwin.h	8 Jun 2004 06:30:13 -0000	1.85.10.1
--- cygwin.h	16 Jun 2004 22:58:11 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 22,29 ****
  
  #define TARGET_VERSION fprintf (stderr, " (x86 Cygwin)");
  
- #define TARGET_IS_PE_COFF 1
- 
  #define EXTRA_OS_CPP_BUILTINS()  /* Nothing.  */
  
  #undef CPP_SPEC
--- 22,27 ----


More information about the Gcc mailing list