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]

[Patch] Trivial fix for signed vs. unsigned comparison warnings


Hija,

Attached is a trivial fix for an misplaced unsigned cast to
fix several warnings while bootstrapping. Please apply.

Bootstrapped on powerpc-linux.

2001-10-17  Daniel Egger  <egger@fhm.edu>

	* gcc/config/rs6000/rs6000.h: Move misplaced (unsigned) cast
	one paranthesis further to avoid bootstrap warnings.


-- 
Servus,
       Daniel
Index: gcc/config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.130
diff -u -r1.130 rs6000.h
--- rs6000.h	2001/10/02 03:36:44	1.130
+++ rs6000.h	2001/10/17 12:02:55
@@ -1358,7 +1358,7 @@
 /* 1 if N is a possible register number for function argument passing.
    On RS/6000, these are r3-r10 and fp1-fp13.  */
 #define FUNCTION_ARG_REGNO_P(N)						\
-  ((unsigned)(((N) - GP_ARG_MIN_REG) < (unsigned)(GP_ARG_NUM_REG))	\
+  (((unsigned)((N) - GP_ARG_MIN_REG) < (unsigned)(GP_ARG_NUM_REG))	\
    || ((unsigned)((N) - FP_ARG_MIN_REG) < (unsigned)(FP_ARG_NUM_REG)))
 

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