diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-19 22:09:00 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-19 22:09:00 +0000 |
commit | f56af3470fabd4d4c2420e18d53889ab9789b984 (patch) | |
tree | 4976016af7b8daf7a99091b4b735da509930168b /gcc/toplev.c | |
parent | d943c57f5268e6fb9817c0beaae6ec42fe65052f (diff) | |
download | gcc-f56af3470fabd4d4c2420e18d53889ab9789b984.tar.gz |
* toplev.c (DUMPFILE_FORMAT): Define default.
(open_dump_file): Use DUMPFILE_FORMAT in sprintf.
(close_dump_file, compile_file): Likewise.
* config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
* doc/hostconfig.texi (DUMPFILE_FORMAT): Document
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index a3bdba67101..08764678255 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -232,6 +232,11 @@ int input_file_stack_tick; const char *dump_base_name; +/* Format to use to print dumpfile index value */ +#ifndef DUMPFILE_FORMAT +#define DUMPFILE_FORMAT ".%02d." +#endif + /* Bit flags that specify the machine subtype we are compiling for. Bits are tested using macros TARGET_... defined in the tm.h file and set by `-m...' switches. Must be defined in rtlanal.c. */ @@ -1857,7 +1862,7 @@ open_dump_file (index, decl) if (rtl_dump_file != NULL) fclose (rtl_dump_file); - sprintf (seq, ".%02d.", index); + sprintf (seq, DUMPFILE_FORMAT, index); if (! dump_file[index].initialized) { @@ -1911,7 +1916,7 @@ close_dump_file (index, func, insns) char seq[16]; char *suffix; - sprintf (seq, ".%02d.", index); + sprintf (seq, DUMPFILE_FORMAT, index); suffix = concat (seq, dump_file[index].extension, NULL); print_rtl_graph_with_bb (dump_base_name, suffix, insns); free (suffix); @@ -5144,7 +5149,7 @@ finalize () char seq[16]; char *suffix; - sprintf (seq, ".%02d.", i); + sprintf (seq, DUMPFILE_FORMAT, i); suffix = concat (seq, dump_file[i].extension, NULL); finish_graph_dump_file (dump_base_name, suffix); free (suffix); |