aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorStephane Carrez <Stephane.Carrez@worldnet.fr>2000-09-13 21:34:05 +0200
committerStephane Carrez <ciceron@gcc.gnu.org>2000-09-13 21:34:05 +0200
commitc349e40b5bd6e44ed3afb6a91633f736ddc668d6 (patch)
tree9f0163da7788dbdbf5f9158a769923ef406ce1d1 /gcc/toplev.c
parent2856c3e3f58327d111a846d4351c3c9568384944 (diff)
downloadgcc-c349e40b5bd6e44ed3afb6a91633f736ddc668d6.zip
gcc-c349e40b5bd6e44ed3afb6a91633f736ddc668d6.tar.gz
gcc-c349e40b5bd6e44ed3afb6a91633f736ddc668d6.tar.bz2
flags.h (flag_dump_rtl_in_asm): Declare.
* 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. From-SVN: r36394
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 5e819fb..95ef7a2 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;