This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [LTO][PATCH] Converting inline failure reason strings to symbol constants
- From: "Rafael Espindola" <espindola at google dot com>
- To: "Doug Kwan (éæå)" <dougkwan at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Diego Novillo" <dnovillo at google dot com>
- Date: Thu, 4 Sep 2008 12:11:19 +0100
- Subject: Re: [LTO][PATCH] Converting inline failure reason strings to symbol constants
- References: <498552560809021720y1bfc98cbkedb3d747088256dd@mail.gmail.com>
> (cgraph_inline_failed_string): New function.
This broke bootstrap:
cgraph.c:1564: error: comparison of unsigned expression >= 0 is always true
Is the attached patch OK?
2008-09-04 Rafael Avila de Espindola <espindola@google.com>
* cgraph.c (cgraph_inline_failed_string): Fix waring.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 329052a..e6de3f4 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1561,7 +1561,7 @@ cgraph_inline_failed_string (cgraph_inline_failed_t reason)
#include "cif-code.def"
};
- gcc_assert (reason >= CIF_OK && reason < CIF_N_REASONS);
+ gcc_assert (reason < CIF_N_REASONS);
return cif_string_table[reason];
}