This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[fortran] fix bootstrap problem in add_global_entry


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]