This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fortran] fix bootstrap problem in add_global_entry
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Cc: aldot at gcc dot gnu dot org
- Date: Tue, 11 Dec 2007 08:48:08 -0400
- Subject: [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;