diff options
author | Stephane Carrez <Stephane.Carrez@worldnet.fr> | 2000-09-13 21:34:05 +0200 |
---|---|---|
committer | Stephane Carrez <ciceron@gcc.gnu.org> | 2000-09-13 21:34:05 +0200 |
commit | c349e40b5bd6e44ed3afb6a91633f736ddc668d6 (patch) | |
tree | 9f0163da7788dbdbf5f9158a769923ef406ce1d1 /gcc/final.c | |
parent | 2856c3e3f58327d111a846d4351c3c9568384944 (diff) | |
download | gcc-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/final.c')
-rw-r--r-- | gcc/final.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c index 404fcc3..c22df2f 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2922,6 +2922,14 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) extract_insn (insn); cleanup_subreg_operands (insn); + /* Dump the insn in the assembly for debugging. */ + if (flag_dump_rtl_in_asm) + { + print_rtx_head = ASM_COMMENT_START; + print_rtl_single (asm_out_file, insn); + print_rtx_head = ""; + } + if (! constrain_operands (1)) fatal_insn_not_found (insn); |