diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-04 11:10:35 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-04 11:10:35 +0000 |
commit | 9e959634efbd40dadab240f0f730661e9e4fe68e (patch) | |
tree | 023da1eca2bd7656ce3641b1d6d446908d801399 /gcc/genpreds.c | |
parent | 3d577bfc01526c8ac818ff358a38ee3fb85d633a (diff) | |
download | gcc-9e959634efbd40dadab240f0f730661e9e4fe68e.tar.gz |
* rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
(print_c_condition): Declare.
* read-rtl.c (ptr_loc): New structure.
(ptr_locs, ptr_loc_obstack, joined_conditions)
(joined_conditions_obstack): New variables.
(leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
(get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
(join_c_conditions, print_c_condition): New functions.
(apply_macro_to_string): Associate the new string with the same
source location as the old one.
(add_condition_to_string): Use join_c_conditions.
(read_string): Use set_rtx_ptr_loc to record a filename and line
number for the string.
(read_rtx): Initialize the new variables above.
* genattrtab.c (write_test_expr, write_attr_value): Use
print_c_condition.
* genconditions.c (write_header): Don't define MAYBE_EVAL. Move its
comment above the GCC_VERSION check.
(write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
Inline the definition of MAYBE_EVAL.
* genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
* genoutput.c (process_template): Likewise.
* genpreds.c (write_predicate_subfunction): Likewise.
(write_predicate_expr): Use print_c_condition.
* genrecog.c (write_cond): Likewise.
* gensupport.c (process_rtx): Use join_c_conditions to join the
conditions of a define_insn_and_split. Record a source location
for the string after the "&&".
(alter_test_for_insn): Use join_c_conditions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpreds.c')
-rw-r--r-- | gcc/genpreds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 30fd3899bca..b07abedc5b0 100644 --- a/gcc/genpreds.c +++ b/gcc/genpreds.c @@ -138,6 +138,7 @@ write_predicate_subfunction (struct pred_data *p) printf ("static inline int\n" "%s_1 (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)\n", p->name); + print_rtx_ptr_loc (p->c_block); if (p->c_block[0] == '{') fputs (p->c_block, stdout); else @@ -377,7 +378,7 @@ write_predicate_expr (const char *name, rtx exp) break; case MATCH_TEST: - fputs (XSTR (exp, 0), stdout); + print_c_condition (XSTR (exp, 0)); break; default: |