diff options
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 7969060c117..596b88564c7 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -1,5 +1,5 @@ /* Support routines for the various generation passes. - Copyright (C) 2000-2015 Free Software Foundation, Inc. + Copyright (C) 2000-2016 Free Software Foundation, Inc. This file is part of GCC. @@ -1068,12 +1068,12 @@ collect_insn_data (rtx pattern, int *palt, int *pmax) switch (code) { case MATCH_OPERAND: - i = n_alternatives (XSTR (pattern, 2)); + case MATCH_SCRATCH: + i = n_alternatives (XSTR (pattern, code == MATCH_SCRATCH ? 1 : 2)); *palt = (i > *palt ? i : *palt); /* Fall through. */ case MATCH_OPERATOR: - case MATCH_SCRATCH: case MATCH_PARALLEL: i = XINT (pattern, 0); if (i > *pmax) |