diff options
author | Richard Henderson <rth@redhat.com> | 2003-04-11 14:15:36 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-04-11 14:15:36 -0700 |
commit | 52859c77e9752203d3d551275df65d4d6f223df8 (patch) | |
tree | f675f00c76e2ef9d9b6ec56014ab50bc39c69884 /gcc/print-rtl.c | |
parent | 68d28100a03d7a4bb0f5763f6478c2c84bf4e2ab (diff) | |
download | gcc-52859c77e9752203d3d551275df65d4d6f223df8.zip gcc-52859c77e9752203d3d551275df65d4d6f223df8.tar.gz gcc-52859c77e9752203d3d551275df65d4d6f223df8.tar.bz2 |
rtl.def (SYMBOL_REF): Add two 0 fields.
* rtl.def (SYMBOL_REF): Add two 0 fields.
* gengtype.c (adjust_field_rtx_def): Handle them.
* print-rtl.c (print_rtx): Print them.
* rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
(SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
(SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
(SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
(SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
(SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
(SYMBOL_FLAG_MACH_DEP): New.
* optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
* varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
(assemble_static_space): Set SYMBOL_REF_FLAGS.
(assemble_trampoline_template): Likewise.
(output_constant_def, force_const_mem): Likewise.
(default_encode_section_info): New.
* output.h: Declare it.
* target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
From-SVN: r65479
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 26259e1..4c159f1 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -239,9 +239,22 @@ print_rtx (in_rtx) { if (REGNO (in_rtx) != ORIGINAL_REGNO (in_rtx)) fprintf (outfile, " [%d]", ORIGINAL_REGNO (in_rtx)); - break; } - if (i == 4 && GET_CODE (in_rtx) == NOTE) +#ifndef GENERATOR_FILE + else if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF) + { + int flags = SYMBOL_REF_FLAGS (in_rtx); + if (flags) + fprintf (outfile, " [flags 0x%x]", flags); + } + else if (i == 2 && GET_CODE (in_rtx) == SYMBOL_REF) + { + tree decl = SYMBOL_REF_DECL (in_rtx); + if (decl) + print_node_brief (outfile, "", decl, 0); + } +#endif + else if (i == 4 && GET_CODE (in_rtx) == NOTE) { switch (NOTE_LINE_NUMBER (in_rtx)) { |