+Mon Nov 19 16:57:44 2001 Douglas B. Rupp <rupp@gnat.com>
+
+ * 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
+
2001-11-19 Jeff Law <law@redhat.com>
* gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
#undef SUCCESS_EXIT_CODE
#define SUCCESS_EXIT_CODE 0
#undef FATAL_EXIT_CODE
-#define FATAL_EXIT_CODE (1)
-#ifdef exit
+#define FATAL_EXIT_CODE 1
#undef exit
-#endif
#define exit __posix_exit
void __posix_exit (int);
#define HOST_EXECUTABLE_SUFFIX ".exe"
#define HOST_OBJECT_SUFFIX ".obj"
+
+#define DUMPFILE_FORMAT "_%02d_"
have been allocated with malloc.
@end table
+@findex DUMPFILE_FORMAT
+@item DUMPFILE_FORMAT
+Define this macro to be a C string representing the format to use
+for constructing the index part of the dump file name on your host machine.
+If you do not define this macro, GCC will use @samp{.%02d.}. The full
+filename will be the prefix of the assembler file name concatenated with
+the string resulting from applying this format concatenated with a string
+unique to each dump file kind, e.g. @samp{rtl}.
+
@findex bzero
@findex bcmp
In addition, configuration files for system V define @code{bcopy},
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. */
if (rtl_dump_file != NULL)
fclose (rtl_dump_file);
- sprintf (seq, ".%02d.", index);
+ sprintf (seq, DUMPFILE_FORMAT, index);
if (! dump_file[index].initialized)
{
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);
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);