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]

Re: [LTO][PATCH] Converting inline failure reason strings to symbol constants


> (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];
 }
 

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