GCC Middle and Back End API Reference
print-tree.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRINT_DECL_ORIGIN   0x1
 
#define PRINT_DECL_NAME   0x2
 
#define PRINT_DECL_UNIQUE_NAME   0x4
 
#define PRINT_DECL_REMAP_DEBUG   0x8
 

Functions

void debug_tree (tree)
 
void debug_raw (const tree_node &ref)
 
void debug_raw (const tree_node *ptr)
 
void debug (const tree_node &ref)
 
void debug (const tree_node *ptr)
 
void debug_verbose (const tree_node &ref)
 
void debug_verbose (const tree_node *ptr)
 
void debug_head (const tree_node &ref)
 
void debug_head (const tree_node *ptr)
 
void debug_body (const tree_node &ref)
 
void debug_body (const tree_node *ptr)
 
void debug (vec< tree, va_gc > &ref)
 
void debug (vec< tree, va_gc > *ptr)
 
void debug_raw (vec< tree, va_gc > &ref)
 
void debug_raw (vec< tree, va_gc > *ptr)
 
void print_decl_identifier (FILE *, tree, int flags)
 

Macro Definition Documentation

◆ PRINT_DECL_NAME

#define PRINT_DECL_NAME   0x2

◆ PRINT_DECL_ORIGIN

#define PRINT_DECL_ORIGIN   0x1

◆ PRINT_DECL_REMAP_DEBUG

#define PRINT_DECL_REMAP_DEBUG   0x8

◆ PRINT_DECL_UNIQUE_NAME

#define PRINT_DECL_UNIQUE_NAME   0x4

Function Documentation

◆ debug() [1/4]

void debug ( const tree_node & ref)
extern

References dump_tree_via_hooks(), and TDF_NONE.

◆ debug() [2/4]

void debug ( const tree_node * ptr)
extern

References debug.

◆ debug() [3/4]

void debug ( vec< tree, va_gc > & ref)
extern

◆ debug() [4/4]

void debug ( vec< tree, va_gc > * ptr)
extern

◆ debug_body() [1/2]

void debug_body ( const tree_node & ref)
extern

References debug, dump_function_to_file(), TDF_NONE, and TREE_CODE.

Referenced by debug_body().

◆ debug_body() [2/2]

void debug_body ( const tree_node * ptr)
extern

References debug_body().

◆ debug_head() [1/2]

void debug_head ( const tree_node & ref)
extern

References debug.

Referenced by debug_head().

◆ debug_head() [2/2]

void debug_head ( const tree_node * ptr)
extern

References debug_head().

◆ debug_raw() [1/4]

void debug_raw ( const tree_node & ref)
extern

References debug_tree().

Referenced by debug_raw(), debug_raw(), and debug_raw().

◆ debug_raw() [2/4]

void debug_raw ( const tree_node * ptr)
extern

References debug_raw().

◆ debug_raw() [3/4]

void debug_raw ( vec< tree, va_gc > & ref)
extern
Print the vector of trees VEC on standard error, for debugging. Most nodes referred to by this one are printed recursively down to a depth of six.

References debug_raw(), dump_addr(), and FOR_EACH_VEC_ELT.

◆ debug_raw() [4/4]

void debug_raw ( vec< tree, va_gc > * ptr)
extern

References debug_raw().

◆ debug_tree()

void debug_tree ( tree node)
extern
Declarations for printing trees in human readable form Copyright (C) 2013-2025 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Print the node NODE on standard error, for debugging. Most nodes referred to by this one are printed recursively down to a depth of six.

References HASH_SIZE, NULL, print_node(), and table.

Referenced by debug_raw(), expand_debug_expr(), operands_scanner::get_expr_operands(), gimplify_expr(), odr_types_equivalent_p(), cgraph_node::verify_node(), verify_opaque_type(), verify_type(), verify_type_variant(), and will_be_nonconstant_expr_predicate().

◆ debug_verbose() [1/2]

void debug_verbose ( const tree_node & ref)
extern

◆ debug_verbose() [2/2]

void debug_verbose ( const tree_node * ptr)
extern

◆ print_decl_identifier()