This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: fix warning regression in java/parse.y
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 9 Oct 2002 13:47:59 -0400 (EDT)
- Subject: Patch: fix warning regression in java/parse.y
Fixes:
> java/parse.y:13780: warning: suggest parentheses around arithmetic in operand of |
This regressed within the last couple of days.
Tested on sparc-sun-solaris2.7, there were no java regressions.
Ok to install?
Thanks,
--Kaveh
2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* parse.y (merge_string_cste): Add parentheses around & within |.
diff -rup orig/egcc-CVS20021008/gcc/java/parse.y egcc-CVS20021008/gcc/java/parse.y
--- orig/egcc-CVS20021008/gcc/java/parse.y 2002-10-08 16:00:22.000000000 -0400
+++ egcc-CVS20021008/gcc/java/parse.y 2002-10-09 10:19:25.410585076 -0400
@@ -13777,7 +13777,7 @@ merge_string_cste (op1, op2, after)
else
{
*p++ = c >> 6 | 0xc0;
- *p++ = c & 0x3f | 0x80;
+ *p++ = (c & 0x3f) | 0x80;
}
*p = '\0';