This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300: Remove -mrtl-dump.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jun 2003 07:58:54 -0400 (EDT)
- Subject: [patch] h8300: Remove -mrtl-dump.
Hi,
Attached is a patch to remove -mrtl-dump. -mrtl-dump is an old piece
of code whose function is subsumed by -dP. This option is
undocumented, so there is no need to touch doc/invoke.texi.
Tested on h8300 port.
Kazu Hirata
2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
* config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
(TARGET_RTL_DUMP): Likewise.
(TARGET_SWITHCES): Remove -mrtl-dump.
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.233
diff -u -r1.233 h8300.c
--- h8300.c 11 Jun 2003 03:19:55 -0000 1.233
+++ h8300.c 11 Jun 2003 11:55:14 -0000
@@ -1650,13 +1650,6 @@
const int uid = INSN_UID (insn);
- if (TARGET_RTL_DUMP)
- {
- fprintf (asm_out_file, "\n****************");
- print_rtl (asm_out_file, PATTERN (insn));
- fprintf (asm_out_file, "\n");
- }
-
if (TARGET_ADDRESSES)
{
fprintf (asm_out_file, "; 0x%x %d\n", INSN_ADDRESSES (uid),
Index: h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.144
diff -u -r1.144 h8300.h
--- h8300.h 8 Jun 2003 19:30:59 -0000 1.144
+++ h8300.h 11 Jun 2003 11:55:15 -0000
@@ -101,7 +101,6 @@
#define MASK_SLOWBYTE 0x00000100
#define MASK_NORMAL_MODE 0x00000200
#define MASK_RELAX 0x00000400
-#define MASK_RTL_DUMP 0x00000800
#define MASK_H8300H 0x00001000
#define MASK_ALIGN_300 0x00002000
@@ -120,10 +119,6 @@
/* Pretend byte accesses are slow. */
#define TARGET_SLOWBYTE (target_flags & MASK_SLOWBYTE)
-/* Dump each assembler insn's rtl into the output file.
- This is for debugging the compiler only. */
-#define TARGET_RTL_DUMP (target_flags & MASK_RTL_DUMP)
-
/* Select between the H8/300 and H8/300H CPUs. */
#define TARGET_H8300 (! TARGET_H8300H && ! TARGET_H8300S)
#define TARGET_H8300H (target_flags & MASK_H8300H)
@@ -160,7 +155,6 @@
{"slowbyte", MASK_SLOWBYTE, \
N_("Consider access to byte sized memory slow")}, \
{"relax", MASK_RELAX, N_("Enable linker relaxing")}, \
- {"rtl-dump", MASK_RTL_DUMP, NULL}, \
{"h", MASK_H8300H, N_("Generate H8/300H code")}, \
{"n", MASK_NORMAL_MODE, N_("Enable the normal mode")}, \
{"no-h", -MASK_H8300H, N_("Do not generate H8/300H code")}, \