diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-10 20:21:35 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-10 20:21:35 +0000 |
commit | 77c2564f74400dabf79543b2a87a254532ed7a53 (patch) | |
tree | 43c04315a7c8d22053182e57daa6df240867adeb /gcc/gensupport.c | |
parent | 960ebfe702d97f43ba95d96859528624bc81069e (diff) | |
download | gcc-77c2564f74400dabf79543b2a87a254532ed7a53.tar.gz |
gcc/
* read-md.h (read_rtx_lineno): Rename to...
(read_md_lineno): ...this.
(read_rtx_filename): Rename to...
(read_md_filename): ...this.
(copy_rtx_ptr_loc): Rename to...
(copy_md_ptr_loc): ...this.
(print_rtx_ptr_loc): Rename to...
(print_md_ptr_loc): ...this.
* read-md.c: Likewise. Update references after renaming.
(string_obstack): Replace RTL with MD in comment.
(set_rtx_ptr_loc): Rename to...
(set_md_ptr_loc): ...this.
(get_rtx_ptr_loc): Rename to...
(get_md_ptr_loc): ...this.
* genconditions.c: Update references after renaming.
* genemit.c: Likewise.
* genoutput.c: Likewise.
* genpreds.c: Likewise.
* gensupport.c: Likewise.
* read-rtl.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 4332772444d..0905ca78cee 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -230,11 +230,11 @@ process_include (rtx desc, int lineno) /* Save old cursor; setup new for the new file. Note that "lineno" the argument to this function is the beginning of the include statement, - while read_rtx_lineno has already been advanced. */ - old_filename = read_rtx_filename; - old_lineno = read_rtx_lineno; - read_rtx_filename = pathname; - read_rtx_lineno = 1; + while read_md_lineno has already been advanced. */ + old_filename = read_md_filename; + old_lineno = read_md_lineno; + read_md_filename = pathname; + read_md_lineno = 1; if (include_callback) include_callback (pathname); @@ -246,8 +246,8 @@ process_include (rtx desc, int lineno) /* Do not free pathname. It is attached to the various rtx queue elements. */ - read_rtx_filename = old_filename; - read_rtx_lineno = old_lineno; + read_md_filename = old_filename; + read_md_lineno = old_lineno; fclose (input_file); } @@ -260,15 +260,15 @@ process_rtx (rtx desc, int lineno) switch (GET_CODE (desc)) { case DEFINE_INSN: - queue_pattern (desc, &define_insn_tail, read_rtx_filename, lineno); + queue_pattern (desc, &define_insn_tail, read_md_filename, lineno); break; case DEFINE_COND_EXEC: - queue_pattern (desc, &define_cond_exec_tail, read_rtx_filename, lineno); + queue_pattern (desc, &define_cond_exec_tail, read_md_filename, lineno); break; case DEFINE_ATTR: - queue_pattern (desc, &define_attr_tail, read_rtx_filename, lineno); + queue_pattern (desc, &define_attr_tail, read_md_filename, lineno); break; case DEFINE_PREDICATE: @@ -277,7 +277,7 @@ process_rtx (rtx desc, int lineno) case DEFINE_REGISTER_CONSTRAINT: case DEFINE_MEMORY_CONSTRAINT: case DEFINE_ADDRESS_CONSTRAINT: - queue_pattern (desc, &define_pred_tail, read_rtx_filename, lineno); + queue_pattern (desc, &define_pred_tail, read_md_filename, lineno); break; case INCLUDE: @@ -309,7 +309,7 @@ process_rtx (rtx desc, int lineno) split_cond = XSTR (desc, 4); if (split_cond[0] == '&' && split_cond[1] == '&') { - copy_rtx_ptr_loc (split_cond + 2, split_cond); + copy_md_ptr_loc (split_cond + 2, split_cond); split_cond = join_c_conditions (XSTR (desc, 2), split_cond + 2); } XSTR (split, 1) = split_cond; @@ -323,16 +323,16 @@ process_rtx (rtx desc, int lineno) /* Queue them. */ insn_elem - = queue_pattern (desc, &define_insn_tail, read_rtx_filename, + = queue_pattern (desc, &define_insn_tail, read_md_filename, lineno); split_elem - = queue_pattern (split, &other_tail, read_rtx_filename, lineno); + = queue_pattern (split, &other_tail, read_md_filename, lineno); insn_elem->split = split_elem; break; } default: - queue_pattern (desc, &other_tail, read_rtx_filename, lineno); + queue_pattern (desc, &other_tail, read_md_filename, lineno); break; } } @@ -865,7 +865,7 @@ process_one_cond_exec (struct queue_elem *ce_elem) XVECEXP (split, 2, i) = pattern; } /* Add the new split to the queue. */ - queue_pattern (split, &other_tail, read_rtx_filename, + queue_pattern (split, &other_tail, read_md_filename, insn_elem->split->lineno); } } @@ -988,8 +988,8 @@ init_md_reader_args_cb (int argc, char **argv, bool (*parse_opt)(const char *)) fatal ("cannot read standard input twice"); base_dir = NULL; - read_rtx_filename = in_fname = "<stdin>"; - read_rtx_lineno = 1; + read_md_filename = in_fname = "<stdin>"; + read_md_lineno = 1; input_file = stdin; already_read_stdin = true; @@ -1018,8 +1018,8 @@ init_md_reader_args_cb (int argc, char **argv, bool (*parse_opt)(const char *)) else base_dir = NULL; - read_rtx_filename = in_fname; - read_rtx_lineno = 1; + read_md_filename = in_fname; + read_md_lineno = 1; input_file = fopen (in_fname, "r"); if (input_file == 0) { @@ -1037,8 +1037,8 @@ init_md_reader_args_cb (int argc, char **argv, bool (*parse_opt)(const char *)) if (!in_fname) { base_dir = NULL; - read_rtx_filename = in_fname = "<stdin>"; - read_rtx_lineno = 1; + read_md_filename = in_fname = "<stdin>"; + read_md_lineno = 1; input_file = stdin; while (read_rtx (input_file, &desc, &lineno)) @@ -1086,7 +1086,7 @@ read_md_rtx (int *lineno, int *seqnr) elem = *queue; *queue = elem->next; desc = elem->data; - read_rtx_filename = elem->filename; + read_md_filename = elem->filename; *lineno = elem->lineno; *seqnr = sequence_num; |