Bootstrap failure on cygwin - undefined reference to `ix86_valid_ decl_attribute_p'

Neil Booth neil@daikokuya.demon.co.uk
Wed Jun 27 23:24:00 GMT 2001


Hi David,

Sorry for the breakage.  I'm going to commit this as obvious without a
bootstrap, I'm pretty sure it fixes it.

Neil.

config:
	* i386/i386.c (ix86_valid_type_attribute_p): Give external
	linkage, move declaration to...
	* i386/i386-protos.h: ...here.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.270
diff -u -p -r1.270 i386.c
--- i386.c	2001/06/26 18:08:47	1.270
+++ i386.c	2001/06/28 06:22:21
@@ -607,7 +607,6 @@ static int ix86_fp_comparison_sahf_cost 
 static int ix86_fp_comparison_cost PARAMS ((enum rtx_code code));
 static int ix86_save_reg PARAMS ((int, int));
 static void ix86_compute_frame_layout PARAMS ((struct ix86_frame *));
-static int ix86_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
 
 /* Initialize the GCC target structure.  */
 #ifdef TARGET_DLLIMPORT_DECL_ATTRIBUTES
@@ -877,7 +876,7 @@ optimization_options (level, size)
    attribute for TYPE.  The attributes in ATTRIBUTES have previously been
    assigned to TYPE.  */
 
-static int
+int
 ix86_valid_type_attribute_p (type, attributes, identifier, args)
      tree type;
      tree attributes ATTRIBUTE_UNUSED;
Index: config/i386/i386-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386-protos.h,v
retrieving revision 1.51
diff -u -p -r1.51 i386-protos.h
--- i386-protos.h	2001/06/26 18:08:47	1.51
+++ i386-protos.h	2001/06/28 06:22:22
@@ -175,6 +175,5 @@ extern int ix86_return_pops_args PARAMS 
 extern int ix86_data_alignment PARAMS ((tree, int));
 extern int ix86_local_alignment PARAMS ((tree, int));
 extern int ix86_constant_alignment PARAMS ((tree, int));
+extern int ix86_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
 #endif
-
-



More information about the Gcc-bugs mailing list