This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix to cygwin breakage on trunk
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: fix to cygwin breakage on trunk
- From: "Kevin Powell" <kpowell at enuvis dot com>
- Date: Thu, 28 Jun 2001 16:05:11 -0700
I have been trying to compile the gcc trunk on cygwin for a while now,
and tracked down this small bug that causes make bootstrap to fail.
basically, the ix86_valid_decl_attribute_p and
ix86_valid_type_attribute_p did not get expunged from winnt.c. This
seems to be related to the patch that Neil Booth submitted for target
abstraction.
This is on a very recent cygwin snapshot:
$ uname -a
CYGWIN_NT-5.0 PSYCHIC_PC 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown
make bootstrap was bailing out, complaining about undefined references
to ix86_valid_decl_attribute_p and ix86_valid_type_attribute_p in
gcc/config/i386/winnt.c
Kevin Powell
Enuvis, Inc.
PS -- reply direct to me, as I didn't sub to this list
here's the patch from my file:
Index: winnt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/winnt.c,v
retrieving revision 1.21
diff -u -r1.21 winnt.c
--- winnt.c 2001/06/26 18:08:49 1.21
+++ winnt.c 2001/06/28 22:53:22
@@ -29,6 +29,7 @@
#include "flags.h"
#include "tm_p.h"
#include "toplev.h"
+#include "target.h"
/* i386/PE specific attribute support.
@@ -69,7 +70,7 @@
return TREE_CODE (decl) == VAR_DECL;
}
- return ix86_valid_decl_attribute_p (decl, attributes, attr, args);
+ return target.valid_decl_attribute (decl, attributes, attr, args);
}
/* Return nonzero if ATTR is a valid attribute for TYPE.
@@ -92,7 +93,7 @@
return 1;
}
- return ix86_valid_type_attribute_p (type, attributes, attr, args);
+ return target.valid_type_attribute (type, attributes, attr, args);
}