update all callers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110171
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-01-24 Richard Henderson <rth@redhat.com>
+
+ * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
+ update all callers.
+
2006-01-23 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/25890
2006-01-23 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/25890
exist and be NULL, or not yet exist within the vector. In the latter
case the vector is enlarged as appropriate. */
static void
exist and be NULL, or not yet exist within the vector. In the latter
case the vector is enlarged as appropriate. */
static void
-VEC_safe_set_locstr (VEC(locstr,heap) *v, unsigned int ix, char *str)
+VEC_safe_set_locstr (VEC(locstr,heap) **vp, unsigned int ix, char *str)
- if (ix < VEC_length (locstr, v))
+ if (ix < VEC_length (locstr, *vp))
- gcc_assert (VEC_index (locstr, v, ix) == 0);
- VEC_replace (locstr, v, ix, str);
+ gcc_assert (VEC_index (locstr, *vp, ix) == 0);
+ VEC_replace (locstr, *vp, ix, str);
- while (ix > VEC_length (locstr, v))
- VEC_safe_push (locstr,heap, v, 0);
- VEC_safe_push (locstr,heap, v, str);
+ while (ix > VEC_length (locstr, *vp))
+ VEC_safe_push (locstr, heap, *vp, 0);
+ VEC_safe_push (locstr, heap, *vp, str);
case MATCH_OPERAND:
case MATCH_SCRATCH:
case MATCH_OPERAND:
case MATCH_SCRATCH:
- VEC_safe_set_locstr (acc->oplocs, XINT (x, 0),
+ VEC_safe_set_locstr (&acc->oplocs, XINT (x, 0),
VEC_char_to_string (acc->pathstr));
break;
case MATCH_OPERATOR:
case MATCH_PARALLEL:
VEC_char_to_string (acc->pathstr));
break;
case MATCH_OPERATOR:
case MATCH_PARALLEL:
- VEC_safe_set_locstr (acc->oplocs, XINT (x, 0),
+ VEC_safe_set_locstr (&acc->oplocs, XINT (x, 0),
VEC_char_to_string (acc->pathstr));
base = (code == MATCH_OPERATOR ? '0' : 'a');
VEC_char_to_string (acc->pathstr));
base = (code == MATCH_OPERATOR ? '0' : 'a');