+2007-05-19 Richard Sandiford <richard@codesourcery.com>
+
+ * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
+ Use a single return statement.
+
2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR middle-end/30250
return SYMBOL_GENERAL;
}
-/* Returns true if OFFSET is within the range [0, ALIGN), where ALIGN
+/* Return true if OFFSET is within the range [0, ALIGN), where ALIGN
is the alignment (in bytes) of SYMBOL_REF X. */
static bool
mips_offset_within_alignment_p (rtx x, HOST_WIDE_INT offset)
{
/* If for some reason we can't get the alignment for the
- symbol, initializing this to one means we won't accept any
- offset. */
+ symbol, initializing this to one means we will only accept
+ a zero offset. */
HOST_WIDE_INT align = 1;
tree t;
if (t)
align = DECL_ALIGN_UNIT (t);
- if (offset >= 0 && offset < align)
- return true;
- return false;
+ return offset >= 0 && offset < align;
}
/* Return true if X is a symbolic constant that can be calculated in