This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Trivial fix for signed vs. unsigned comparison warnings
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: [Patch] Trivial fix for signed vs. unsigned comparison warnings
- From: Daniel Egger <degger at fhm dot edu>
- Date: 17 Oct 2001 12:13:38 +0200
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)))