diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 87200bca3c0067998a78b07e05af67b741e98bd3..d2dac95791771a763d9551537959f76d8eff5023 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
+
 2002-06-30  Devang Patel  <dpatel@apple.com>
 
 	* objc/objc-act.c (finish_file): Avoid finish_objc() if
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 67e3fc1590e343dec3327f4168f0ffa0dad06609..301f7cac9d2af2ab106f23d5644b8b18903b564d 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -2573,11 +2573,10 @@ extern enum reg_class mips_char_to_class[256];
 /* For o64 we should be checking the mode for SFmode as well.  */
 
 #define FUNCTION_ARG_REGNO_P(N)					\
-  ((((N) >= GP_ARG_FIRST && (N) <= GP_ARG_LAST)			\
-    || ((N) >= FP_ARG_FIRST && (N) <= FP_ARG_LAST		\
-	&& (((N) % FP_INC) == 0					\
-	    && (! mips_abi == ABI_O64)))			\
-   && !fixed_regs[N]))
+  ((IN_RANGE((N), GP_ARG_FIRST, GP_ARG_LAST)			\
+    || (IN_RANGE((N), FP_ARG_FIRST, FP_ARG_LAST)		\
+	&& ((N) % FP_INC == 0) && mips_abi != ABI_O64))		\
+   && !fixed_regs[N])
 
 /* A C expression which can inhibit the returning of certain function
    values in registers, based on the type of value.  A nonzero value says