From 8c2a5582fb57306c48c39462476dcca6a5d92335 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Sun, 23 Nov 2003 16:10:52 +0000 Subject: recog.c (preprocess_constraints): Only zero those elements of recog_op_alt that are needed for this insn. * recog.c (preprocess_constraints): Only zero those elements of recog_op_alt that are needed for this insn. * arm.c (note_invalid_constants): A function can't contain invalid constants if it has no constraints. From-SVN: r73855 --- gcc/recog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/recog.c') diff --git a/gcc/recog.c b/gcc/recog.c index 3c67bd8..f0e75c2 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2093,7 +2093,10 @@ preprocess_constraints (void) { int i; - memset (recog_op_alt, 0, sizeof recog_op_alt); + for (i = 0; i < recog_data.n_operands; i++) + memset (recog_op_alt[i], 0, (recog_data.n_alternatives + * sizeof (struct operand_alternative))); + for (i = 0; i < recog_data.n_operands; i++) { int j; -- cgit v1.1