summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-13 19:34:05 +0000
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-13 19:34:05 +0000
commitaf5e5fd060af42f06d48c3f79130b5647f362bff (patch)
tree9f0163da7788dbdbf5f9158a769923ef406ce1d1 /gcc/toplev.c
parent88f7073fedea1e7bbe377df6d27ffb1f2446658d (diff)
downloadgcc-af5e5fd060af42f06d48c3f79130b5647f362bff.tar.gz
* flags.h (flag_dump_rtl_in_asm): Declare.
* toplev.c (flag_dump_rtl_in_asm): Define. (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name if -dP is specified. * rtl.h (print_rtx_head): Declare. * print-rtl.c (print_rtx_head): Define. (print_rtx): Print the string pointed to by print_rtx_head at beginning of each dump line. (print_rtl): Likewise. (print_rtl_single): Likewise. * final.c (final_scan_insn): Dump the insn in the assembly file for debugging. * gcc.1: Document -dP option. * invoke.texi (Debugging Options): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36394 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 5e819fbc178..95ef7a292e9 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -795,6 +795,10 @@ int flag_verbose_asm = 0;
int flag_debug_asm = 0;
+/* -dP causes the rtl to be emitted as a comment in assembly. */
+
+int flag_dump_rtl_in_asm = 0;
+
/* -fgnu-linker specifies use of the GNU linker for initializations.
(Or, more generally, a linker that handles initializations.)
-fno-gnu-linker says that collect2 will be used. */
@@ -3970,6 +3974,10 @@ decode_d_option (arg)
case 'p':
flag_print_asm_name = 1;
break;
+ case 'P':
+ flag_dump_rtl_in_asm = 1;
+ flag_print_asm_name = 1;
+ break;
case 'v':
graph_dump_format = vcg;
break;