diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:21:14 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:21:14 +0000 |
commit | 60ad3b0ebe854dee275302eb74126ceaa8ce9b16 (patch) | |
tree | fa0c13cb0e70d6ed10a21b63a57adb511b304704 /gcc/gengenrtl.c | |
parent | 639eef5b9d68b45e3579d67bd4146a4efe088c57 (diff) | |
download | gcc-60ad3b0ebe854dee275302eb74126ceaa8ce9b16.tar.gz |
* doc/invoke.texi (-fdump-unnumbered): Update docs when line number
notes are gone.
* print-rtl.c (flag_dump_unnumbered): Update comments.
(print_rtl): Fix my previous change.
* emit-rtl.c (emit_note_before, emit_note_after): Clear out note
specific data.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengenrtl.c')
-rw-r--r-- | gcc/gengenrtl.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index fd4a0218eb2..5088df5cab6 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -191,7 +191,7 @@ gendecl (const char *format) const char *p; int i, pos; - printf ("extern rtx gen_rtx_fmt_%s\t (RTX_CODE, ", format); + printf ("extern rtx gen_rtx_fmt_%s_stat\t (RTX_CODE, ", format); printf ("enum machine_mode mode"); /* Write each parameter that is needed and start a new line when the line @@ -208,8 +208,18 @@ gendecl (const char *format) printf (" %sarg%d", type_from_format (*p), i++); pos += ourlen; } + printf (" MEM_STAT_DECL"); printf (");\n"); + printf ("#define gen_rtx_fmt_%s(c, m", format); + for (p = format, i = 0; *p != 0; p++) + if (*p != '0') + printf (", p%i",i++); + printf (")\\\n gen_rtx_fmt_%s_stat (c, m", format); + for (p = format, i = 0; *p != 0; p++) + if (*p != '0') + printf (", p%i",i++); + printf (" MEM_STAT_INFO)\n\n"); } /* Generate macros to generate RTL of code IDX using the functions we @@ -257,18 +267,18 @@ gendef (const char *format) /* Start by writing the definition of the function name and the types of the arguments. */ - printf ("rtx\ngen_rtx_fmt_%s (RTX_CODE code, enum machine_mode mode", format); + printf ("rtx\ngen_rtx_fmt_%s_stat (RTX_CODE code, enum machine_mode mode", format); for (p = format, i = 0; *p != 0; p++) if (*p != '0') printf (",\n\t%sarg%d", type_from_format (*p), i++); - puts (")"); + puts (" MEM_STAT_DECL)"); /* Now write out the body of the function itself, which allocates the memory and initializes it. */ puts ("{"); puts (" rtx rt;"); - puts (" rt = rtx_alloc (code);\n"); + puts (" rt = rtx_alloc_stat (code PASS_MEM_STAT);\n"); puts (" PUT_MODE (rt, mode);"); @@ -299,6 +309,7 @@ genheader (void) puts ("#ifndef GCC_GENRTL_H"); puts ("#define GCC_GENRTL_H\n"); + puts ("#include \"statistics.h\"\n"); for (fmt = formats; *fmt; ++fmt) gendecl (*fmt); |