diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-27 12:04:21 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-27 12:04:21 +0000 |
commit | 58287c3f4b74a0bb479c7036117d5804eb6765c4 (patch) | |
tree | c299b554740820453d3def4a8e59007a86edd7c7 /gcc/genattr.c | |
parent | db827453ce1b7f76552f8ba9a8d18e65d7bf8de8 (diff) | |
download | gcc-58287c3f4b74a0bb479c7036117d5804eb6765c4.tar.gz |
2012-11-26 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 193836 using svnmerge.py
**broken, gcc/melt/xtramelt-ana-base.melt dont compile**
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@193843 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index bb5cf9688a0..ade8c52cfb1 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see static void gen_attr (rtx); -static VEC (rtx, heap) *const_attrs, *reservations; +static vec<rtx> const_attrs, reservations; static void @@ -42,7 +42,7 @@ gen_attr (rtx attr) int is_const = GET_CODE (XEXP (attr, 2)) == CONST; if (is_const) - VEC_safe_push (rtx, heap, const_attrs, attr); + const_attrs.safe_push (attr); printf ("#define HAVE_ATTR_%s 1\n", XSTR (attr, 0)); @@ -119,13 +119,13 @@ find_tune_attr (rtx exp) if (strcmp (XSTR (exp, 0), "alternative") == 0) return false; - FOR_EACH_VEC_ELT (rtx, const_attrs, i, attr) + FOR_EACH_VEC_ELT (const_attrs, i, attr) if (strcmp (XSTR (attr, 0), XSTR (exp, 0)) == 0) { unsigned int j; rtx resv; - FOR_EACH_VEC_ELT (rtx, reservations, j, resv) + FOR_EACH_VEC_ELT (reservations, j, resv) if (! check_tune_attr (XSTR (attr, 0), XEXP (resv, 2))) return false; return true; @@ -204,14 +204,14 @@ main (int argc, char **argv) else if (GET_CODE (desc) == DEFINE_INSN_RESERVATION) { num_insn_reservations++; - VEC_safe_push (rtx, heap, reservations, desc); + reservations.safe_push (desc); } } if (num_insn_reservations > 0) { bool has_tune_attr - = find_tune_attr (XEXP (VEC_index (rtx, reservations, 0), 2)); + = find_tune_attr (XEXP (reservations[0], 2)); /* Output interface for pipeline hazards recognition based on DFA (deterministic finite state automata. */ printf ("\n/* DFA based pipeline interface. */"); |