1 /* Prints out tree in human readable form - GNU C-compiler
2 Copyright (C) 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
3 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
28 /* Define the hash table of nodes already seen.
29 Such nodes are not repeated; brief cross-references are used. */
39 static struct bucket
**table
;
41 /* Print the node NODE on standard error, for debugging.
42 Most nodes referred to by this one are printed recursively
43 down to a depth of six. */
49 table
= (struct bucket
**) permalloc (HASH_SIZE
* sizeof (struct bucket
*));
50 memset ((char *) table
, 0, HASH_SIZE
* sizeof (struct bucket
*));
51 print_node (stderr
, "", node
, 0);
53 fprintf (stderr
, "\n");
56 /* Print a node in brief fashion, with just the code, address and name. */
59 print_node_brief (file
, prefix
, node
, indent
)
70 class = TREE_CODE_CLASS (TREE_CODE (node
));
72 /* Always print the slot this node is in, and its code, address and
76 fprintf (file
, "%s <%s ", prefix
, tree_code_name
[(int) TREE_CODE (node
)]);
77 fprintf (file
, HOST_PTR_PRINTF
, (char *) node
);
82 fprintf (file
, " %s", IDENTIFIER_POINTER (DECL_NAME (node
)));
84 else if (class == 't')
88 if (TREE_CODE (TYPE_NAME (node
)) == IDENTIFIER_NODE
)
89 fprintf (file
, " %s", IDENTIFIER_POINTER (TYPE_NAME (node
)));
90 else if (TREE_CODE (TYPE_NAME (node
)) == TYPE_DECL
91 && DECL_NAME (TYPE_NAME (node
)))
93 IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (node
))));
96 if (TREE_CODE (node
) == IDENTIFIER_NODE
)
97 fprintf (file
, " %s", IDENTIFIER_POINTER (node
));
98 /* We might as well always print the value of an integer. */
99 if (TREE_CODE (node
) == INTEGER_CST
)
101 if (TREE_CONSTANT_OVERFLOW (node
))
102 fprintf (file
, " overflow");
105 if (TREE_INT_CST_HIGH (node
) == 0)
106 fprintf (file
, HOST_WIDE_INT_PRINT_UNSIGNED
, TREE_INT_CST_LOW (node
));
107 else if (TREE_INT_CST_HIGH (node
) == -1
108 && TREE_INT_CST_LOW (node
) != 0)
111 fprintf (file
, HOST_WIDE_INT_PRINT_UNSIGNED
,
112 -TREE_INT_CST_LOW (node
));
115 fprintf (file
, HOST_WIDE_INT_PRINT_DOUBLE_HEX
,
116 TREE_INT_CST_HIGH (node
), TREE_INT_CST_LOW (node
));
118 if (TREE_CODE (node
) == REAL_CST
)
122 if (TREE_OVERFLOW (node
))
123 fprintf (file
, " overflow");
125 #if !defined(REAL_IS_NOT_DOUBLE) || defined(REAL_ARITHMETIC)
126 d
= TREE_REAL_CST (node
);
127 if (REAL_VALUE_ISINF (d
))
128 fprintf (file
, " Inf");
129 else if (REAL_VALUE_ISNAN (d
))
130 fprintf (file
, " Nan");
135 REAL_VALUE_TO_DECIMAL (d
, "%e", string
);
136 fprintf (file
, " %s", string
);
141 unsigned char *p
= (unsigned char *) &TREE_REAL_CST (node
);
142 fprintf (file
, " 0x");
143 for (i
= 0; i
< sizeof TREE_REAL_CST (node
); i
++)
144 fprintf (file
, "%02x", *p
++);
154 indent_to (file
, column
)
160 /* Since this is the long way, indent to desired column. */
162 fprintf (file
, "\n");
163 for (i
= 0; i
< column
; i
++)
167 /* Print the node NODE in full on file FILE, preceded by PREFIX,
168 starting in column INDENT. */
171 print_node (file
, prefix
, node
, indent
)
179 enum machine_mode mode
;
188 class = TREE_CODE_CLASS (TREE_CODE (node
));
190 /* Don't get too deep in nesting. If the user wants to see deeper,
191 it is easy to use the address of a lowest-level node
192 as an argument in another call to debug_tree. */
196 print_node_brief (file
, prefix
, node
, indent
);
200 if (indent
> 8 && (class == 't' || class == 'd'))
202 print_node_brief (file
, prefix
, node
, indent
);
206 /* It is unsafe to look at any other filds of an ERROR_MARK node. */
207 if (TREE_CODE (node
) == ERROR_MARK
)
209 print_node_brief (file
, prefix
, node
, indent
);
213 hash
= ((unsigned long) node
) % HASH_SIZE
;
215 /* If node is in the table, just mention its address. */
216 for (b
= table
[hash
]; b
; b
= b
->next
)
219 print_node_brief (file
, prefix
, node
, indent
);
223 /* Add this node to the table. */
224 b
= (struct bucket
*) permalloc (sizeof (struct bucket
));
226 b
->next
= table
[hash
];
229 /* Indent to the specified column, since this is the long form. */
230 indent_to (file
, indent
);
232 /* Print the slot this node is in, and its code, and address. */
233 fprintf (file
, "%s <%s ", prefix
, tree_code_name
[(int) TREE_CODE (node
)]);
234 fprintf (file
, HOST_PTR_PRINTF
, (char *) node
);
236 /* Print the name, if any. */
239 if (DECL_NAME (node
))
240 fprintf (file
, " %s", IDENTIFIER_POINTER (DECL_NAME (node
)));
242 else if (class == 't')
244 if (TYPE_NAME (node
))
246 if (TREE_CODE (TYPE_NAME (node
)) == IDENTIFIER_NODE
)
247 fprintf (file
, " %s", IDENTIFIER_POINTER (TYPE_NAME (node
)));
248 else if (TREE_CODE (TYPE_NAME (node
)) == TYPE_DECL
249 && DECL_NAME (TYPE_NAME (node
)))
250 fprintf (file
, " %s",
251 IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (node
))));
254 if (TREE_CODE (node
) == IDENTIFIER_NODE
)
255 fprintf (file
, " %s", IDENTIFIER_POINTER (node
));
257 if (TREE_CODE (node
) == INTEGER_CST
)
260 print_node_brief (file
, "type", TREE_TYPE (node
), indent
+ 4);
264 print_node (file
, "type", TREE_TYPE (node
), indent
+ 4);
265 if (TREE_TYPE (node
))
266 indent_to (file
, indent
+ 3);
269 if (TREE_SIDE_EFFECTS (node
))
270 fputs (" side-effects", file
);
271 if (TREE_READONLY (node
))
272 fputs (" readonly", file
);
273 if (TREE_CONSTANT (node
))
274 fputs (" constant", file
);
275 if (TREE_ADDRESSABLE (node
))
276 fputs (" addressable", file
);
277 if (TREE_THIS_VOLATILE (node
))
278 fputs (" volatile", file
);
279 if (TREE_UNSIGNED (node
))
280 fputs (" unsigned", file
);
281 if (TREE_ASM_WRITTEN (node
))
282 fputs (" asm_written", file
);
283 if (TREE_USED (node
))
284 fputs (" used", file
);
285 if (TREE_NOTHROW (node
))
286 fputs (" nothrow", file
);
287 if (TREE_PUBLIC (node
))
288 fputs (" public", file
);
289 if (TREE_PRIVATE (node
))
290 fputs (" private", file
);
291 if (TREE_PROTECTED (node
))
292 fputs (" protected", file
);
293 if (TREE_STATIC (node
))
294 fputs (" static", file
);
295 if (TREE_LANG_FLAG_0 (node
))
296 fputs (" tree_0", file
);
297 if (TREE_LANG_FLAG_1 (node
))
298 fputs (" tree_1", file
);
299 if (TREE_LANG_FLAG_2 (node
))
300 fputs (" tree_2", file
);
301 if (TREE_LANG_FLAG_3 (node
))
302 fputs (" tree_3", file
);
303 if (TREE_LANG_FLAG_4 (node
))
304 fputs (" tree_4", file
);
305 if (TREE_LANG_FLAG_5 (node
))
306 fputs (" tree_5", file
);
307 if (TREE_LANG_FLAG_6 (node
))
308 fputs (" tree_6", file
);
310 /* DECL_ nodes have additional attributes. */
312 switch (TREE_CODE_CLASS (TREE_CODE (node
)))
315 mode
= DECL_MODE (node
);
317 if (DECL_IGNORED_P (node
))
318 fputs (" ignored", file
);
319 if (DECL_ABSTRACT (node
))
320 fputs (" abstract", file
);
321 if (DECL_IN_SYSTEM_HEADER (node
))
322 fputs (" in_system_header", file
);
323 if (DECL_COMMON (node
))
324 fputs (" common", file
);
325 if (DECL_EXTERNAL (node
))
326 fputs (" external", file
);
327 if (DECL_REGISTER (node
))
328 fputs (" regdecl", file
);
329 if (DECL_NONLOCAL (node
))
330 fputs (" nonlocal", file
);
332 if (TREE_CODE (node
) == TYPE_DECL
&& TYPE_DECL_SUPPRESS_DEBUG (node
))
333 fputs (" suppress-debug", file
);
335 if (TREE_CODE (node
) == FUNCTION_DECL
&& DECL_INLINE (node
))
336 fputs (" inline", file
);
337 if (TREE_CODE (node
) == FUNCTION_DECL
&& DECL_BUILT_IN (node
))
338 fputs (" built-in", file
);
339 if (TREE_CODE (node
) == FUNCTION_DECL
&& DECL_BUILT_IN_NONANSI (node
))
340 fputs (" built-in-nonansi", file
);
342 if (TREE_CODE (node
) == FIELD_DECL
&& DECL_PACKED (node
))
343 fputs (" packed", file
);
344 if (TREE_CODE (node
) == FIELD_DECL
&& DECL_BIT_FIELD (node
))
345 fputs (" bit-field", file
);
347 if (TREE_CODE (node
) == LABEL_DECL
&& DECL_TOO_LATE (node
))
348 fputs (" too-late", file
);
350 if (TREE_CODE (node
) == VAR_DECL
&& DECL_IN_TEXT_SECTION (node
))
351 fputs (" in-text-section", file
);
353 if (TREE_CODE (node
) == PARM_DECL
&& DECL_TRANSPARENT_UNION (node
))
354 fputs (" transparent-union", file
);
356 if (DECL_VIRTUAL_P (node
))
357 fputs (" virtual", file
);
358 if (DECL_DEFER_OUTPUT (node
))
359 fputs (" defer-output", file
);
361 if (DECL_LANG_FLAG_0 (node
))
362 fputs (" decl_0", file
);
363 if (DECL_LANG_FLAG_1 (node
))
364 fputs (" decl_1", file
);
365 if (DECL_LANG_FLAG_2 (node
))
366 fputs (" decl_2", file
);
367 if (DECL_LANG_FLAG_3 (node
))
368 fputs (" decl_3", file
);
369 if (DECL_LANG_FLAG_4 (node
))
370 fputs (" decl_4", file
);
371 if (DECL_LANG_FLAG_5 (node
))
372 fputs (" decl_5", file
);
373 if (DECL_LANG_FLAG_6 (node
))
374 fputs (" decl_6", file
);
375 if (DECL_LANG_FLAG_7 (node
))
376 fputs (" decl_7", file
);
378 fprintf (file
, " %s", GET_MODE_NAME(mode
));
380 fprintf (file
, " file %s line %d",
381 DECL_SOURCE_FILE (node
), DECL_SOURCE_LINE (node
));
383 print_node (file
, "size", DECL_SIZE (node
), indent
+ 4);
384 print_node (file
, "unit size", DECL_SIZE_UNIT (node
), indent
+ 4);
386 if (TREE_CODE (node
) != FUNCTION_DECL
387 || DECL_INLINE (node
) || DECL_BUILT_IN (node
))
388 indent_to (file
, indent
+ 3);
390 if (TREE_CODE (node
) != FUNCTION_DECL
)
392 fprintf (file
, " align %d", DECL_ALIGN (node
));
393 if (TREE_CODE (node
) == FIELD_DECL
)
395 fprintf (file
, " offset_align ");
396 fprintf (file
, HOST_WIDE_INT_PRINT_UNSIGNED
,
397 DECL_OFFSET_ALIGN (node
));
400 else if (DECL_INLINE (node
))
402 fprintf (file
, " frame_size ");
403 fprintf (file
, HOST_WIDE_INT_PRINT_DEC
, DECL_FRAME_SIZE (node
));
405 else if (DECL_BUILT_IN (node
))
407 if (DECL_BUILT_IN_CLASS (node
) == BUILT_IN_MD
)
408 fprintf (file
, " built-in BUILT_IN_MD %d", DECL_FUNCTION_CODE (node
));
410 fprintf (file
, " built-in %s:%s",
411 built_in_class_names
[(int) DECL_BUILT_IN_CLASS (node
)],
412 built_in_names
[(int) DECL_FUNCTION_CODE (node
)]);
415 if (DECL_POINTER_ALIAS_SET_KNOWN_P (node
))
417 fprintf (file
, " alias set ");
418 fprintf (file
, HOST_WIDE_INT_PRINT_DEC
,
419 DECL_POINTER_ALIAS_SET (node
));
422 if (TREE_CODE (node
) == FIELD_DECL
)
424 print_node (file
, "offset", DECL_FIELD_OFFSET (node
), indent
+ 4);
425 print_node (file
, "bit offset", DECL_FIELD_BIT_OFFSET (node
),
429 print_node_brief (file
, "context", DECL_CONTEXT (node
), indent
+ 4);
430 print_node_brief (file
, "machine_attributes",
431 DECL_MACHINE_ATTRIBUTES (node
), indent
+ 4);
432 print_node_brief (file
, "abstract_origin",
433 DECL_ABSTRACT_ORIGIN (node
), indent
+ 4);
435 print_node (file
, "arguments", DECL_ARGUMENTS (node
), indent
+ 4);
436 print_node (file
, "result", DECL_RESULT_FLD (node
), indent
+ 4);
437 print_node_brief (file
, "initial", DECL_INITIAL (node
), indent
+ 4);
439 print_lang_decl (file
, node
, indent
);
441 if (DECL_RTL (node
) != 0)
443 indent_to (file
, indent
+ 4);
444 print_rtl (file
, DECL_RTL (node
));
447 if (TREE_CODE (node
) == PARM_DECL
&& DECL_INCOMING_RTL (node
) != 0)
449 indent_to (file
, indent
+ 4);
450 fprintf (file
, "incoming-rtl ");
451 print_rtl (file
, DECL_INCOMING_RTL (node
));
453 else if (TREE_CODE (node
) == FUNCTION_DECL
454 && DECL_SAVED_INSNS (node
) != 0)
456 indent_to (file
, indent
+ 4);
457 fprintf (file
, "saved-insns ");
458 fprintf (file
, HOST_PTR_PRINTF
, (char *) DECL_SAVED_INSNS (node
));
461 /* Print the decl chain only if decl is at second level. */
463 print_node (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
465 print_node_brief (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
469 /* The no-force-blk flag is used for different things in
471 if ((TREE_CODE (node
) == RECORD_TYPE
472 || TREE_CODE (node
) == UNION_TYPE
473 || TREE_CODE (node
) == QUAL_UNION_TYPE
)
474 && TYPE_NO_FORCE_BLK (node
))
475 fputs (" no-force-blk", file
);
476 else if (TREE_CODE (node
) == INTEGER_TYPE
477 && TYPE_IS_SIZETYPE (node
))
478 fputs (" sizetype", file
);
479 else if (TREE_CODE (node
) == FUNCTION_TYPE
480 && TYPE_RETURNS_STACK_DEPRESSED (node
))
481 fputs (" returns-stack-depressed", file
);
483 if (TYPE_STRING_FLAG (node
))
484 fputs (" string-flag", file
);
485 if (TYPE_NEEDS_CONSTRUCTING (node
))
486 fputs (" needs-constructing", file
);
488 /* The transparent-union flag is used for different things in
490 if (TREE_CODE (node
) == UNION_TYPE
&& TYPE_TRANSPARENT_UNION (node
))
491 fputs (" transparent-union", file
);
492 else if (TREE_CODE (node
) == ARRAY_TYPE
493 && TYPE_NONALIASED_COMPONENT (node
))
494 fputs (" nonaliased-component", file
);
495 else if (TREE_CODE (node
) == FUNCTION_TYPE
496 && TYPE_AMBIENT_BOUNDEDNESS (node
))
497 fputs (" ambient-boundedness", file
);
499 if (TYPE_PACKED (node
))
500 fputs (" packed", file
);
502 if (TYPE_LANG_FLAG_0 (node
))
503 fputs (" type_0", file
);
504 if (TYPE_LANG_FLAG_1 (node
))
505 fputs (" type_1", file
);
506 if (TYPE_LANG_FLAG_2 (node
))
507 fputs (" type_2", file
);
508 if (TYPE_LANG_FLAG_3 (node
))
509 fputs (" type_3", file
);
510 if (TYPE_LANG_FLAG_4 (node
))
511 fputs (" type_4", file
);
512 if (TYPE_LANG_FLAG_5 (node
))
513 fputs (" type_5", file
);
514 if (TYPE_LANG_FLAG_6 (node
))
515 fputs (" type_6", file
);
517 mode
= TYPE_MODE (node
);
518 fprintf (file
, " %s", GET_MODE_NAME(mode
));
520 print_node (file
, "size", TYPE_SIZE (node
), indent
+ 4);
521 print_node (file
, "unit size", TYPE_SIZE_UNIT (node
), indent
+ 4);
522 indent_to (file
, indent
+ 3);
524 fprintf (file
, " align %d", TYPE_ALIGN (node
));
525 fprintf (file
, " symtab %d", TYPE_SYMTAB_ADDRESS (node
));
526 fprintf (file
, " alias set ");
527 fprintf (file
, HOST_WIDE_INT_PRINT_DEC
, TYPE_ALIAS_SET (node
));
529 print_node (file
, "attributes", TYPE_ATTRIBUTES (node
), indent
+ 4);
531 if (TREE_CODE (node
) == ARRAY_TYPE
|| TREE_CODE (node
) == SET_TYPE
)
532 print_node (file
, "domain", TYPE_DOMAIN (node
), indent
+ 4);
533 else if (TREE_CODE (node
) == INTEGER_TYPE
534 || TREE_CODE (node
) == BOOLEAN_TYPE
535 || TREE_CODE (node
) == CHAR_TYPE
)
537 fprintf (file
, " precision %d", TYPE_PRECISION (node
));
538 print_node (file
, "min", TYPE_MIN_VALUE (node
), indent
+ 4);
539 print_node (file
, "max", TYPE_MAX_VALUE (node
), indent
+ 4);
541 else if (TREE_CODE (node
) == ENUMERAL_TYPE
)
543 fprintf (file
, " precision %d", TYPE_PRECISION (node
));
544 print_node (file
, "min", TYPE_MIN_VALUE (node
), indent
+ 4);
545 print_node (file
, "max", TYPE_MAX_VALUE (node
), indent
+ 4);
546 print_node (file
, "values", TYPE_VALUES (node
), indent
+ 4);
548 else if (TREE_CODE (node
) == REAL_TYPE
)
549 fprintf (file
, " precision %d", TYPE_PRECISION (node
));
550 else if (TREE_CODE (node
) == RECORD_TYPE
551 || TREE_CODE (node
) == UNION_TYPE
552 || TREE_CODE (node
) == QUAL_UNION_TYPE
)
553 print_node (file
, "fields", TYPE_FIELDS (node
), indent
+ 4);
554 else if (TREE_CODE (node
) == FUNCTION_TYPE
555 || TREE_CODE (node
) == METHOD_TYPE
)
557 if (TYPE_METHOD_BASETYPE (node
))
558 print_node_brief (file
, "method basetype",
559 TYPE_METHOD_BASETYPE (node
), indent
+ 4);
560 print_node (file
, "arg-types", TYPE_ARG_TYPES (node
), indent
+ 4);
562 else if (TREE_CODE (node
) == OFFSET_TYPE
)
563 print_node_brief (file
, "basetype", TYPE_OFFSET_BASETYPE (node
),
565 if (TYPE_CONTEXT (node
))
566 print_node_brief (file
, "context", TYPE_CONTEXT (node
), indent
+ 4);
568 print_lang_type (file
, node
, indent
);
570 if (TYPE_POINTER_TO (node
) || TREE_CHAIN (node
))
571 indent_to (file
, indent
+ 3);
572 print_node_brief (file
, "pointer_to_this", TYPE_POINTER_TO (node
), indent
+ 4);
573 print_node_brief (file
, "reference_to_this", TYPE_REFERENCE_TO (node
), indent
+ 4);
574 print_node_brief (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
578 print_node (file
, "vars", BLOCK_VARS (node
), indent
+ 4);
579 print_node (file
, "supercontext", BLOCK_SUPERCONTEXT (node
), indent
+ 4);
580 print_node (file
, "subblocks", BLOCK_SUBBLOCKS (node
), indent
+ 4);
581 print_node (file
, "chain", BLOCK_CHAIN (node
), indent
+ 4);
582 print_node (file
, "abstract_origin",
583 BLOCK_ABSTRACT_ORIGIN (node
), indent
+ 4);
592 if (TREE_CODE (node
) == BIND_EXPR
)
594 print_node (file
, "vars", TREE_OPERAND (node
, 0), indent
+ 4);
595 print_node (file
, "body", TREE_OPERAND (node
, 1), indent
+ 4);
596 print_node (file
, "block", TREE_OPERAND (node
, 2), indent
+ 4);
600 len
= TREE_CODE_LENGTH (TREE_CODE (node
));
602 /* Some nodes contain rtx's, not trees,
603 after a certain point. Print the rtx's as rtx's. */
604 first_rtl
= first_rtl_op (TREE_CODE (node
));
606 for (i
= 0; i
< len
; i
++)
610 indent_to (file
, indent
+ 4);
611 fprintf (file
, "rtl %d ", i
);
612 if (TREE_OPERAND (node
, i
))
613 print_rtl (file
, (struct rtx_def
*) TREE_OPERAND (node
, i
));
615 fprintf (file
, "(nil)");
616 fprintf (file
, "\n");
622 sprintf (temp
, "arg %d", i
);
623 print_node (file
, temp
, TREE_OPERAND (node
, i
), indent
+ 4);
627 if (TREE_CODE (node
) == EXPR_WITH_FILE_LOCATION
)
629 indent_to (file
, indent
+4);
630 fprintf (file
, "%s:%d:%d",
631 (EXPR_WFL_FILENAME_NODE (node
) ?
632 EXPR_WFL_FILENAME (node
) : "(no file info)"),
633 EXPR_WFL_LINENO (node
), EXPR_WFL_COLNO (node
));
635 print_node (file
, "chain", BLOCK_CHAIN (node
), indent
+ 4);
640 switch (TREE_CODE (node
))
643 if (TREE_CONSTANT_OVERFLOW (node
))
644 fprintf (file
, " overflow");
647 if (TREE_INT_CST_HIGH (node
) == 0)
648 fprintf (file
, HOST_WIDE_INT_PRINT_UNSIGNED
,
649 TREE_INT_CST_LOW (node
));
650 else if (TREE_INT_CST_HIGH (node
) == -1
651 && TREE_INT_CST_LOW (node
) != 0)
654 fprintf (file
, HOST_WIDE_INT_PRINT_UNSIGNED
,
655 -TREE_INT_CST_LOW (node
));
658 fprintf (file
, HOST_WIDE_INT_PRINT_DOUBLE_HEX
,
659 TREE_INT_CST_HIGH (node
), TREE_INT_CST_LOW (node
));
666 if (TREE_OVERFLOW (node
))
667 fprintf (file
, " overflow");
669 #if !defined(REAL_IS_NOT_DOUBLE) || defined(REAL_ARITHMETIC)
670 d
= TREE_REAL_CST (node
);
671 if (REAL_VALUE_ISINF (d
))
672 fprintf (file
, " Inf");
673 else if (REAL_VALUE_ISNAN (d
))
674 fprintf (file
, " Nan");
679 REAL_VALUE_TO_DECIMAL (d
, "%e", string
);
680 fprintf (file
, " %s", string
);
685 unsigned char *p
= (unsigned char *) &TREE_REAL_CST (node
);
686 fprintf (file
, " 0x");
687 for (i
= 0; i
< sizeof TREE_REAL_CST (node
); i
++)
688 fprintf (file
, "%02x", *p
++);
696 print_node (file
, "real", TREE_REALPART (node
), indent
+ 4);
697 print_node (file
, "imag", TREE_IMAGPART (node
), indent
+ 4);
701 fprintf (file
, " \"%s\"", TREE_STRING_POINTER (node
));
702 /* Print the chain at second level. */
704 print_node (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
706 print_node_brief (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
709 case IDENTIFIER_NODE
:
710 print_lang_identifier (file
, node
, indent
);
714 print_node (file
, "purpose", TREE_PURPOSE (node
), indent
+ 4);
715 print_node (file
, "value", TREE_VALUE (node
), indent
+ 4);
716 print_node (file
, "chain", TREE_CHAIN (node
), indent
+ 4);
720 len
= TREE_VEC_LENGTH (node
);
721 for (i
= 0; i
< len
; i
++)
722 if (TREE_VEC_ELT (node
, i
))
725 sprintf (temp
, "elt %d", i
);
726 indent_to (file
, indent
+ 4);
727 print_node_brief (file
, temp
, TREE_VEC_ELT (node
, i
), 0);
732 print_node (file
, "op1", TREE_PURPOSE (node
), indent
+ 4);
733 print_node (file
, "op2", TREE_VALUE (node
), indent
+ 4);
737 if (TREE_CODE_CLASS (TREE_CODE (node
)) == 'x')
738 lang_print_xnode (file
, node
, indent
);