diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1d4a1ff71dbc..d23394aa5478 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+	* config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
+	instead of 'O' for the constraint for the second operand.
+
 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
 
 	PR c++/8391
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index ab2573ab5b94..ed1ee8612c6d 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -1006,7 +1006,7 @@
 (define_insn ""
   [(set (match_operand:QI 0 "bit_operand" "=r,U")
 	(and:QI (match_operand:QI 1 "bit_operand" "%0,0")
-		(match_operand:QI 2 "nonmemory_operand" "rn,O")))]
+		(match_operand:QI 2 "nonmemory_operand" "rn,n")))]
   "register_operand (operands[0], QImode)
    || single_zero_operand (operands[2], QImode)"
   "@