* events.c (hash_param_callback): Read and pass parameter type.
[official-gcc.git] / gcc / print-rtl.c
blobbc2854d9179c3b6d2180e41fecd9ca94c24b2745
1 /* Print RTL for GCC.
2 Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999, 2000, 2002, 2003,
3 2004, 2005, 2007, 2008, 2009
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 /* This file is compiled twice: once for the generator programs,
23 once for the compiler. */
24 #ifdef GENERATOR_FILE
25 #include "bconfig.h"
26 #else
27 #include "config.h"
28 #endif
30 #include "system.h"
31 #include "coretypes.h"
32 #include "tm.h"
33 #include "rtl.h"
35 /* These headers all define things which are not available in
36 generator programs. */
37 #ifndef GENERATOR_FILE
38 #include "tree.h"
39 #include "real.h"
40 #include "flags.h"
41 #include "hard-reg-set.h"
42 #include "basic-block.h"
43 #include "diagnostic.h"
44 #include "cselib.h"
45 #endif
47 static FILE *outfile;
49 static int sawclose = 0;
51 static int indent;
53 static void print_rtx (const_rtx);
55 /* String printed at beginning of each RTL when it is dumped.
56 This string is set to ASM_COMMENT_START when the RTL is dumped in
57 the assembly output file. */
58 const char *print_rtx_head = "";
60 /* Nonzero means suppress output of instruction numbers
61 in debugging dumps.
62 This must be defined here so that programs like gencodes can be linked. */
63 int flag_dump_unnumbered = 0;
65 /* Nonzero means suppress output of instruction numbers for previous
66 and next insns in debugging dumps.
67 This must be defined here so that programs like gencodes can be linked. */
68 int flag_dump_unnumbered_links = 0;
70 /* Nonzero means use simplified format without flags, modes, etc. */
71 int flag_simple = 0;
73 /* Nonzero if we are dumping graphical description. */
74 int dump_for_graph;
76 #ifndef GENERATOR_FILE
77 void
78 print_mem_expr (FILE *outfile, const_tree expr)
80 fputc (' ', outfile);
81 print_generic_expr (outfile, CONST_CAST_TREE (expr), 0);
83 #endif
85 /* Print IN_RTX onto OUTFILE. This is the recursive part of printing. */
87 static void
88 print_rtx (const_rtx in_rtx)
90 int i = 0;
91 int j;
92 const char *format_ptr;
93 int is_insn;
95 if (sawclose)
97 if (flag_simple)
98 fputc (' ', outfile);
99 else
100 fprintf (outfile, "\n%s%*s", print_rtx_head, indent * 2, "");
101 sawclose = 0;
104 if (in_rtx == 0)
106 fputs ("(nil)", outfile);
107 sawclose = 1;
108 return;
110 else if (GET_CODE (in_rtx) > NUM_RTX_CODE)
112 fprintf (outfile, "(??? bad code %d\n)", GET_CODE (in_rtx));
113 sawclose = 1;
114 return;
117 is_insn = INSN_P (in_rtx);
119 /* When printing in VCG format we write INSNs, NOTE, LABEL, and BARRIER
120 in separate nodes and therefore have to handle them special here. */
121 if (dump_for_graph
122 && (is_insn || NOTE_P (in_rtx)
123 || LABEL_P (in_rtx) || BARRIER_P (in_rtx)))
125 i = 3;
126 indent = 0;
128 else
130 /* Print name of expression code. */
131 if (flag_simple && CONST_INT_P (in_rtx))
132 fputc ('(', outfile);
133 else
134 fprintf (outfile, "(%s", GET_RTX_NAME (GET_CODE (in_rtx)));
136 if (! flag_simple)
138 if (RTX_FLAG (in_rtx, in_struct))
139 fputs ("/s", outfile);
141 if (RTX_FLAG (in_rtx, volatil))
142 fputs ("/v", outfile);
144 if (RTX_FLAG (in_rtx, unchanging))
145 fputs ("/u", outfile);
147 if (RTX_FLAG (in_rtx, frame_related))
148 fputs ("/f", outfile);
150 if (RTX_FLAG (in_rtx, jump))
151 fputs ("/j", outfile);
153 if (RTX_FLAG (in_rtx, call))
154 fputs ("/c", outfile);
156 if (RTX_FLAG (in_rtx, return_val))
157 fputs ("/i", outfile);
159 /* Print REG_NOTE names for EXPR_LIST and INSN_LIST. */
160 if ((GET_CODE (in_rtx) == EXPR_LIST
161 || GET_CODE (in_rtx) == INSN_LIST)
162 && (int)GET_MODE (in_rtx) < REG_NOTE_MAX)
163 fprintf (outfile, ":%s",
164 GET_REG_NOTE_NAME (GET_MODE (in_rtx)));
166 /* For other rtl, print the mode if it's not VOID. */
167 else if (GET_MODE (in_rtx) != VOIDmode)
168 fprintf (outfile, ":%s", GET_MODE_NAME (GET_MODE (in_rtx)));
170 #ifndef GENERATOR_FILE
171 if (GET_CODE (in_rtx) == VAR_LOCATION)
173 if (TREE_CODE (PAT_VAR_LOCATION_DECL (in_rtx)) == STRING_CST)
174 fputs (" <debug string placeholder>", outfile);
175 else
176 print_mem_expr (outfile, PAT_VAR_LOCATION_DECL (in_rtx));
177 fputc (' ', outfile);
178 print_rtx (PAT_VAR_LOCATION_LOC (in_rtx));
179 if (PAT_VAR_LOCATION_STATUS (in_rtx)
180 == VAR_INIT_STATUS_UNINITIALIZED)
181 fprintf (outfile, " [uninit]");
182 sawclose = 1;
183 i = GET_RTX_LENGTH (VAR_LOCATION);
185 #endif
189 #ifndef GENERATOR_FILE
190 if (GET_CODE (in_rtx) == CONST_DOUBLE && FLOAT_MODE_P (GET_MODE (in_rtx)))
191 i = 5;
192 #endif
194 /* Get the format string and skip the first elements if we have handled
195 them already. */
196 format_ptr = GET_RTX_FORMAT (GET_CODE (in_rtx)) + i;
197 for (; i < GET_RTX_LENGTH (GET_CODE (in_rtx)); i++)
198 switch (*format_ptr++)
200 const char *str;
202 case 'T':
203 str = XTMPL (in_rtx, i);
204 goto string;
206 case 'S':
207 case 's':
208 str = XSTR (in_rtx, i);
209 string:
211 if (str == 0)
212 fputs (dump_for_graph ? " \\\"\\\"" : " \"\"", outfile);
213 else
215 if (dump_for_graph)
216 fprintf (outfile, " (\\\"%s\\\")", str);
217 else
218 fprintf (outfile, " (\"%s\")", str);
220 sawclose = 1;
221 break;
223 /* 0 indicates a field for internal use that should not be printed.
224 An exception is the third field of a NOTE, where it indicates
225 that the field has several different valid contents. */
226 case '0':
227 if (i == 1 && REG_P (in_rtx))
229 if (REGNO (in_rtx) != ORIGINAL_REGNO (in_rtx))
230 fprintf (outfile, " [%d]", ORIGINAL_REGNO (in_rtx));
232 #ifndef GENERATOR_FILE
233 else if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF)
235 int flags = SYMBOL_REF_FLAGS (in_rtx);
236 if (flags)
237 fprintf (outfile, " [flags 0x%x]", flags);
239 else if (i == 2 && GET_CODE (in_rtx) == SYMBOL_REF)
241 tree decl = SYMBOL_REF_DECL (in_rtx);
242 if (decl)
243 print_node_brief (outfile, "", decl, 0);
245 #endif
246 else if (i == 4 && NOTE_P (in_rtx))
248 switch (NOTE_KIND (in_rtx))
250 case NOTE_INSN_EH_REGION_BEG:
251 case NOTE_INSN_EH_REGION_END:
252 if (flag_dump_unnumbered)
253 fprintf (outfile, " #");
254 else
255 fprintf (outfile, " %d", NOTE_EH_HANDLER (in_rtx));
256 sawclose = 1;
257 break;
259 case NOTE_INSN_BLOCK_BEG:
260 case NOTE_INSN_BLOCK_END:
261 #ifndef GENERATOR_FILE
262 dump_addr (outfile, " ", NOTE_BLOCK (in_rtx));
263 #endif
264 sawclose = 1;
265 break;
267 case NOTE_INSN_BASIC_BLOCK:
269 #ifndef GENERATOR_FILE
270 basic_block bb = NOTE_BASIC_BLOCK (in_rtx);
271 if (bb != 0)
272 fprintf (outfile, " [bb %d]", bb->index);
273 #endif
274 break;
277 case NOTE_INSN_DELETED_LABEL:
279 const char *label = NOTE_DELETED_LABEL_NAME (in_rtx);
280 if (label)
281 fprintf (outfile, " (\"%s\")", label);
282 else
283 fprintf (outfile, " \"\"");
285 break;
287 case NOTE_INSN_SWITCH_TEXT_SECTIONS:
289 #ifndef GENERATOR_FILE
290 basic_block bb = NOTE_BASIC_BLOCK (in_rtx);
291 if (bb != 0)
292 fprintf (outfile, " [bb %d]", bb->index);
293 #endif
294 break;
297 case NOTE_INSN_VAR_LOCATION:
298 #ifndef GENERATOR_FILE
299 fputc (' ', outfile);
300 print_rtx (NOTE_VAR_LOCATION (in_rtx));
301 #endif
302 break;
304 default:
305 break;
308 else if (i == 8 && JUMP_P (in_rtx) && JUMP_LABEL (in_rtx) != NULL)
309 /* Output the JUMP_LABEL reference. */
310 fprintf (outfile, "\n -> %d", INSN_UID (JUMP_LABEL (in_rtx)));
311 else if (i == 0 && GET_CODE (in_rtx) == VALUE)
313 #ifndef GENERATOR_FILE
314 cselib_val *val = CSELIB_VAL_PTR (in_rtx);
316 fprintf (outfile, " %i", val->value);
317 dump_addr (outfile, " @", in_rtx);
318 dump_addr (outfile, "/", (void*)val);
319 #endif
321 else if (i == 0 && GET_CODE (in_rtx) == DEBUG_EXPR)
323 #ifndef GENERATOR_FILE
324 fprintf (outfile, " D#%i",
325 DEBUG_TEMP_UID (DEBUG_EXPR_TREE_DECL (in_rtx)));
326 #endif
328 break;
330 case 'e':
331 do_e:
332 indent += 2;
333 if (!sawclose)
334 fprintf (outfile, " ");
335 print_rtx (XEXP (in_rtx, i));
336 indent -= 2;
337 break;
339 case 'E':
340 case 'V':
341 indent += 2;
342 if (sawclose)
344 fprintf (outfile, "\n%s%*s",
345 print_rtx_head, indent * 2, "");
346 sawclose = 0;
348 fputs (" [", outfile);
349 if (NULL != XVEC (in_rtx, i))
351 indent += 2;
352 if (XVECLEN (in_rtx, i))
353 sawclose = 1;
355 for (j = 0; j < XVECLEN (in_rtx, i); j++)
356 print_rtx (XVECEXP (in_rtx, i, j));
358 indent -= 2;
360 if (sawclose)
361 fprintf (outfile, "\n%s%*s", print_rtx_head, indent * 2, "");
363 fputs ("]", outfile);
364 sawclose = 1;
365 indent -= 2;
366 break;
368 case 'w':
369 if (! flag_simple)
370 fprintf (outfile, " ");
371 fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, XWINT (in_rtx, i));
372 if (! flag_simple)
373 fprintf (outfile, " [" HOST_WIDE_INT_PRINT_HEX "]",
374 (unsigned HOST_WIDE_INT) XWINT (in_rtx, i));
375 break;
377 case 'i':
378 if (i == 4 && INSN_P (in_rtx))
380 #ifndef GENERATOR_FILE
381 /* Pretty-print insn locators. Ignore scoping as it is mostly
382 redundant with line number information and do not print anything
383 when there is no location information available. */
384 if (INSN_LOCATOR (in_rtx) && insn_file (in_rtx))
385 fprintf(outfile, " %s:%i", insn_file (in_rtx), insn_line (in_rtx));
386 #endif
388 else if (i == 6 && GET_CODE (in_rtx) == ASM_OPERANDS)
390 #ifndef GENERATOR_FILE
391 fprintf (outfile, " %s:%i",
392 locator_file (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)),
393 locator_line (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)));
394 #endif
396 else if (i == 1 && GET_CODE (in_rtx) == ASM_INPUT)
398 #ifndef GENERATOR_FILE
399 fprintf (outfile, " %s:%i",
400 locator_file (ASM_INPUT_SOURCE_LOCATION (in_rtx)),
401 locator_line (ASM_INPUT_SOURCE_LOCATION (in_rtx)));
402 #endif
404 else if (i == 6 && NOTE_P (in_rtx))
406 /* This field is only used for NOTE_INSN_DELETED_LABEL, and
407 other times often contains garbage from INSN->NOTE death. */
408 if (NOTE_KIND (in_rtx) == NOTE_INSN_DELETED_LABEL)
409 fprintf (outfile, " %d", XINT (in_rtx, i));
411 else
413 int value = XINT (in_rtx, i);
414 const char *name;
416 #ifndef GENERATOR_FILE
417 if (REG_P (in_rtx) && value < FIRST_PSEUDO_REGISTER)
418 fprintf (outfile, " %d %s", REGNO (in_rtx),
419 reg_names[REGNO (in_rtx)]);
420 else if (REG_P (in_rtx)
421 && value <= LAST_VIRTUAL_REGISTER)
423 if (value == VIRTUAL_INCOMING_ARGS_REGNUM)
424 fprintf (outfile, " %d virtual-incoming-args", value);
425 else if (value == VIRTUAL_STACK_VARS_REGNUM)
426 fprintf (outfile, " %d virtual-stack-vars", value);
427 else if (value == VIRTUAL_STACK_DYNAMIC_REGNUM)
428 fprintf (outfile, " %d virtual-stack-dynamic", value);
429 else if (value == VIRTUAL_OUTGOING_ARGS_REGNUM)
430 fprintf (outfile, " %d virtual-outgoing-args", value);
431 else if (value == VIRTUAL_CFA_REGNUM)
432 fprintf (outfile, " %d virtual-cfa", value);
433 else
434 fprintf (outfile, " %d virtual-reg-%d", value,
435 value-FIRST_VIRTUAL_REGISTER);
437 else
438 #endif
439 if (flag_dump_unnumbered
440 && (is_insn || NOTE_P (in_rtx)))
441 fputc ('#', outfile);
442 else
443 fprintf (outfile, " %d", value);
445 #ifndef GENERATOR_FILE
446 if (REG_P (in_rtx) && REG_ATTRS (in_rtx))
448 fputs (" [", outfile);
449 if (ORIGINAL_REGNO (in_rtx) != REGNO (in_rtx))
450 fprintf (outfile, "orig:%i", ORIGINAL_REGNO (in_rtx));
451 if (REG_EXPR (in_rtx))
452 print_mem_expr (outfile, REG_EXPR (in_rtx));
454 if (REG_OFFSET (in_rtx))
455 fprintf (outfile, "+" HOST_WIDE_INT_PRINT_DEC,
456 REG_OFFSET (in_rtx));
457 fputs (" ]", outfile);
459 #endif
461 if (is_insn && &INSN_CODE (in_rtx) == &XINT (in_rtx, i)
462 && XINT (in_rtx, i) >= 0
463 && (name = get_insn_name (XINT (in_rtx, i))) != NULL)
464 fprintf (outfile, " {%s}", name);
465 sawclose = 0;
467 break;
469 /* Print NOTE_INSN names rather than integer codes. */
471 case 'n':
472 fprintf (outfile, " %s", GET_NOTE_INSN_NAME (XINT (in_rtx, i)));
473 sawclose = 0;
474 break;
476 case 'u':
477 if (XEXP (in_rtx, i) != NULL)
479 rtx sub = XEXP (in_rtx, i);
480 enum rtx_code subc = GET_CODE (sub);
482 if (GET_CODE (in_rtx) == LABEL_REF)
484 if (subc == NOTE
485 && NOTE_KIND (sub) == NOTE_INSN_DELETED_LABEL)
487 if (flag_dump_unnumbered)
488 fprintf (outfile, " [# deleted]");
489 else
490 fprintf (outfile, " [%d deleted]", INSN_UID (sub));
491 sawclose = 0;
492 break;
495 if (subc != CODE_LABEL)
496 goto do_e;
499 if (flag_dump_unnumbered
500 || (flag_dump_unnumbered_links && (i == 1 || i == 2)
501 && (INSN_P (in_rtx) || NOTE_P (in_rtx)
502 || LABEL_P (in_rtx) || BARRIER_P (in_rtx))))
503 fputs (" #", outfile);
504 else
505 fprintf (outfile, " %d", INSN_UID (sub));
507 else
508 fputs (" 0", outfile);
509 sawclose = 0;
510 break;
512 case 'b':
513 #ifndef GENERATOR_FILE
514 if (XBITMAP (in_rtx, i) == NULL)
515 fputs (" {null}", outfile);
516 else
517 bitmap_print (outfile, XBITMAP (in_rtx, i), " {", "}");
518 #endif
519 sawclose = 0;
520 break;
522 case 't':
523 #ifndef GENERATOR_FILE
524 dump_addr (outfile, " ", XTREE (in_rtx, i));
525 #endif
526 break;
528 case '*':
529 fputs (" Unknown", outfile);
530 sawclose = 0;
531 break;
533 case 'B':
534 #ifndef GENERATOR_FILE
535 if (XBBDEF (in_rtx, i))
536 fprintf (outfile, " %i", XBBDEF (in_rtx, i)->index);
537 #endif
538 break;
540 default:
541 gcc_unreachable ();
544 switch (GET_CODE (in_rtx))
546 #ifndef GENERATOR_FILE
547 case MEM:
548 fprintf (outfile, " [" HOST_WIDE_INT_PRINT_DEC,
549 (HOST_WIDE_INT) MEM_ALIAS_SET (in_rtx));
551 if (MEM_EXPR (in_rtx))
552 print_mem_expr (outfile, MEM_EXPR (in_rtx));
554 if (MEM_OFFSET (in_rtx))
555 fprintf (outfile, "+" HOST_WIDE_INT_PRINT_DEC,
556 INTVAL (MEM_OFFSET (in_rtx)));
558 if (MEM_SIZE (in_rtx))
559 fprintf (outfile, " S" HOST_WIDE_INT_PRINT_DEC,
560 INTVAL (MEM_SIZE (in_rtx)));
562 if (MEM_ALIGN (in_rtx) != 1)
563 fprintf (outfile, " A%u", MEM_ALIGN (in_rtx));
565 if (!ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (in_rtx)))
566 fprintf (outfile, " AS%u", MEM_ADDR_SPACE (in_rtx));
568 fputc (']', outfile);
569 break;
571 case CONST_DOUBLE:
572 if (FLOAT_MODE_P (GET_MODE (in_rtx)))
574 char s[60];
576 real_to_decimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx),
577 sizeof (s), 0, 1);
578 fprintf (outfile, " %s", s);
580 real_to_hexadecimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx),
581 sizeof (s), 0, 1);
582 fprintf (outfile, " [%s]", s);
584 break;
585 #endif
587 case CODE_LABEL:
588 fprintf (outfile, " [%d uses]", LABEL_NUSES (in_rtx));
589 switch (LABEL_KIND (in_rtx))
591 case LABEL_NORMAL: break;
592 case LABEL_STATIC_ENTRY: fputs (" [entry]", outfile); break;
593 case LABEL_GLOBAL_ENTRY: fputs (" [global entry]", outfile); break;
594 case LABEL_WEAK_ENTRY: fputs (" [weak entry]", outfile); break;
595 default: gcc_unreachable ();
597 break;
599 default:
600 break;
603 if (dump_for_graph
604 && (is_insn || NOTE_P (in_rtx)
605 || LABEL_P (in_rtx) || BARRIER_P (in_rtx)))
606 sawclose = 0;
607 else
609 fputc (')', outfile);
610 sawclose = 1;
614 /* Print an rtx on the current line of FILE. Initially indent IND
615 characters. */
617 void
618 print_inline_rtx (FILE *outf, const_rtx x, int ind)
620 int oldsaw = sawclose;
621 int oldindent = indent;
623 sawclose = 0;
624 indent = ind;
625 outfile = outf;
626 print_rtx (x);
627 sawclose = oldsaw;
628 indent = oldindent;
631 /* Call this function from the debugger to see what X looks like. */
633 void
634 debug_rtx (const_rtx x)
636 outfile = stderr;
637 sawclose = 0;
638 print_rtx (x);
639 fprintf (stderr, "\n");
642 /* Count of rtx's to print with debug_rtx_list.
643 This global exists because gdb user defined commands have no arguments. */
645 int debug_rtx_count = 0; /* 0 is treated as equivalent to 1 */
647 /* Call this function to print list from X on.
649 N is a count of the rtx's to print. Positive values print from the specified
650 rtx on. Negative values print a window around the rtx.
651 EG: -5 prints 2 rtx's on either side (in addition to the specified rtx). */
653 void
654 debug_rtx_list (const_rtx x, int n)
656 int i,count;
657 const_rtx insn;
659 count = n == 0 ? 1 : n < 0 ? -n : n;
661 /* If we are printing a window, back up to the start. */
663 if (n < 0)
664 for (i = count / 2; i > 0; i--)
666 if (PREV_INSN (x) == 0)
667 break;
668 x = PREV_INSN (x);
671 for (i = count, insn = x; i > 0 && insn != 0; i--, insn = NEXT_INSN (insn))
673 debug_rtx (insn);
674 fprintf (stderr, "\n");
678 /* Call this function to print an rtx list from START to END inclusive. */
680 void
681 debug_rtx_range (const_rtx start, const_rtx end)
683 while (1)
685 debug_rtx (start);
686 fprintf (stderr, "\n");
687 if (!start || start == end)
688 break;
689 start = NEXT_INSN (start);
693 /* Call this function to search an rtx list to find one with insn uid UID,
694 and then call debug_rtx_list to print it, using DEBUG_RTX_COUNT.
695 The found insn is returned to enable further debugging analysis. */
697 const_rtx
698 debug_rtx_find (const_rtx x, int uid)
700 while (x != 0 && INSN_UID (x) != uid)
701 x = NEXT_INSN (x);
702 if (x != 0)
704 debug_rtx_list (x, debug_rtx_count);
705 return x;
707 else
709 fprintf (stderr, "insn uid %d not found\n", uid);
710 return 0;
714 /* External entry point for printing a chain of insns
715 starting with RTX_FIRST onto file OUTF.
716 A blank line separates insns.
718 If RTX_FIRST is not an insn, then it alone is printed, with no newline. */
720 void
721 print_rtl (FILE *outf, const_rtx rtx_first)
723 const_rtx tmp_rtx;
725 outfile = outf;
726 sawclose = 0;
728 if (rtx_first == 0)
730 fputs (print_rtx_head, outf);
731 fputs ("(nil)\n", outf);
733 else
734 switch (GET_CODE (rtx_first))
736 case INSN:
737 case JUMP_INSN:
738 case CALL_INSN:
739 case NOTE:
740 case CODE_LABEL:
741 case BARRIER:
742 for (tmp_rtx = rtx_first; tmp_rtx != 0; tmp_rtx = NEXT_INSN (tmp_rtx))
744 fputs (print_rtx_head, outfile);
745 print_rtx (tmp_rtx);
746 fprintf (outfile, "\n");
748 break;
750 default:
751 fputs (print_rtx_head, outfile);
752 print_rtx (rtx_first);
756 /* Like print_rtx, except specify a file. */
757 /* Return nonzero if we actually printed anything. */
760 print_rtl_single (FILE *outf, const_rtx x)
762 outfile = outf;
763 sawclose = 0;
764 fputs (print_rtx_head, outfile);
765 print_rtx (x);
766 putc ('\n', outf);
767 return 1;
771 /* Like print_rtl except without all the detail; for example,
772 if RTX is a CONST_INT then print in decimal format. */
774 void
775 print_simple_rtl (FILE *outf, const_rtx x)
777 flag_simple = 1;
778 print_rtl (outf, x);
779 flag_simple = 0;