* reg-stack.c (constrain_asm_operands): Set n_alternatives to zero if
no operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19236
138bc75d-0d04-0410-961f-
82ee72b054a4
+Thu Apr 16 13:45:51 1998 Jim Wilson <wilson@cygnus.com>
+
+ * reg-stack.c (constrain_asm_operands): Set n_alternatives to zero if
+ no operands.
+
Wed Apr 15 11:33:09 1998 Alexandre Petit-Bianco <apbianco@sendai.cygnus.com>
* tree.c (build_expr_wfl): Use NULL_TREE if the file name is NULL.
already guaranteed that all operands have the same number of
alternatives. */
- n_alternatives = 1;
- for (q = constraints[0]; *q; q++)
- n_alternatives += (*q == ',');
+ if (n_operands == 0)
+ n_alternatives = 0;
+ else
+ {
+ n_alternatives = 1;
+ for (q = constraints[0]; *q; q++)
+ n_alternatives += (*q == ',');
+ }
this_alternative = 0;
while (this_alternative < n_alternatives)