[fortran] fix bootstrap problem in add_global_entry

Aldy Hernandez aldyh@redhat.com
Tue Dec 11 12:48:00 GMT 2007


The following patch breaks bootstrap with a sign comparsion
incompatability.

		2007-12-11  Bernhard Fischer

		* decl.c (match_prefix): Make seen_type a boolean.
		(add_global_entry): Cache type distinction.
		* trans-decl.c: Whitespace cleanup.

Committing as obvious.

	* decl.c (add_global_entry): Make type unsigned.

--- decl.c	(revision 130775)
+++ decl.c	(local)
@@ -4334,7 +4334,7 @@ static bool
 add_global_entry (const char *name, int sub)
 {
   gfc_gsymbol *s;
-  int type;
+  unsigned int type;
 
   s = gfc_get_gsymbol(name);
   type = sub ? GSYM_SUBROUTINE : GSYM_FUNCTION;



More information about the Gcc-patches mailing list