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]
Other format: [Raw text]

[patch] h8300.c: Parenthesize expressions appropriately.


Hi,

Attached is a patch to parenthesize expressions appropriately.
Without the patch, an address that should not be accepted by this
predicate is accepted.  Committed as obvious.

Kazu Hirata

2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
	expressions appropriately.

Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.155
diff -u -r1.155 h8300.c
--- h8300.c	12 Nov 2002 14:01:33 -0000	1.155
+++ h8300.c	12 Nov 2002 18:47:04 -0000
@@ -3909,7 +3909,7 @@
 
   return (0
 	  || (TARGET_H8300H
-	      && IN_RANGE (addr, h1, h2) || IN_RANGE (addr, h3, h4))
+	      && (IN_RANGE (addr, h1, h2) || IN_RANGE (addr, h3, h4)))
 	  || (TARGET_H8300S
-	      && IN_RANGE (addr, s1, s2) || IN_RANGE (addr, s3, s4)));
+	      && (IN_RANGE (addr, s1, s2) || IN_RANGE (addr, s3, s4))));
 }


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