[COMMITTED] reload1: Change return type of predicate function from int to bool
Checks
Commit Message
gcc/ChangeLog:
* rtl.h (function_invariant_p): Change return type from int to bool.
* reload1.cc (function_invariant_p): Change return type from
int to bool and adjust function body accordingly.
Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
Uros.
@@ -5949,14 +5949,14 @@ free_for_value_p (int regno, machine_mode mode, int opnum,
return 1;
}
-/* Return nonzero if the rtx X is invariant over the current function. */
+/* Return true if the rtx X is invariant over the current function. */
/* ??? Actually, the places where we use this expect exactly what is
tested here, and not everything that is function invariant. In
particular, the frame pointer and arg pointer are special cased;
pic_offset_table_rtx is not, and we must not spill these things to
memory. */
-int
+bool
function_invariant_p (const_rtx x)
{
if (CONSTANT_P (x))
@@ -4307,7 +4307,7 @@ extern void fix_register (const char *, int, int);
extern const HARD_REG_SET *valid_mode_changes_for_regno (unsigned int);
/* In reload1.cc */
-extern int function_invariant_p (const_rtx);
+extern bool function_invariant_p (const_rtx);
/* In calls.cc */
enum libcall_type