This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-in-cxx] Patch committed: Fix gcc-in-cxx bootstrap
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 May 2009 21:37:07 -0700
- Subject: [gcc-in-cxx] Patch committed: Fix gcc-in-cxx bootstrap
I committed this patch to the gcc-in-cxx branch to fix boostrap after
the last trunk merge. I'm not sure why there seem to be different
signedness requirements--that will require further investigation.
Ian
2009-05-14 Ian Lance Taylor <iant@google.com>
* tree.c (tree_range_check_failed): Change c to int.
(omp_clause_range_check_failed): Likewise.
* fortran/trans-types.c (gfc_init_kinds): Change mode to int.
Remove uses of mode_loop.
Index: tree.c
===================================================================
--- tree.c (revision 147546)
+++ tree.c (working copy)
@@ -7147,7 +7147,7 @@ tree_range_check_failed (const_tree node
{
char *buffer;
unsigned length = 0;
- unsigned int c;
+ int c;
for (c = c1; c <= c2; ++c)
length += 4 + strlen (tree_code_name[c]);
@@ -7208,7 +7208,7 @@ omp_clause_range_check_failed (const_tre
{
char *buffer;
unsigned length = 0;
- unsigned int c;
+ int c;
for (c = c1; c <= c2; ++c)
length += 4 + strlen (omp_clause_code_name[c]);
Index: fortran/trans-types.c
===================================================================
--- fortran/trans-types.c (revision 147546)
+++ fortran/trans-types.c (working copy)
@@ -252,16 +252,13 @@ void init_c_interop_kinds (void)
void
gfc_init_kinds (void)
{
- unsigned int mode;
+ int mode;
int i_index, r_index, kind;
bool saw_i4 = false, saw_i8 = false;
bool saw_r4 = false, saw_r8 = false, saw_r16 = false;
- for (i_index = 0, mode_loop = MIN_MODE_INT;
- mode_loop <= MAX_MODE_INT;
- mode_loop++)
+ for (i_index = 0, mode = MIN_MODE_INT; mode <= MAX_MODE_INT; mode++)
{
- enum machine_mode mode = (enum machine_mode) mode_loop;
int kind, bitsize;
if (!targetm.scalar_mode_supported_p ((enum machine_mode) mode))