GCC Middle and Back End API Reference
dwarf2cfi.c File Reference
#include "expr.h"
Include dependency graph for dwarf2cfi.c:

Data Structures

struct  dw_cfi_row_struct
struct  reg_saved_in_data_struct
struct  dw_trace_info
struct  trace_info_hasher
struct  queued_reg_save

Typedefs

typedef struct dw_cfi_row_struct dw_cfi_row
typedef struct
reg_saved_in_data_struct 
reg_saved_in_data
typedef dw_trace_infodw_trace_info_ref

Functions

rtx expand_builtin_dwarf_sp_column ()
static void init_return_column_size ()
void expand_builtin_init_dwarf_reg_sizes ()
static dw_trace_infoget_trace_info ()
static bool save_point_p ()
static HOST_WIDE_INT div_data_align ()
static bool need_data_align_sf_opcode ()
static dw_cfi_ref new_cfi ()
static dw_cfi_rownew_cfi_row ()
static dw_cfi_rowcopy_cfi_row ()
static char * dwarf2out_cfi_label ()
static void add_cfi ()
static void add_cfi_args_size ()
static void add_cfi_restore ()
static void update_row_reg_save ()
static void get_cfa_from_loc_descr ()
void lookup_cfa_1 ()
bool cfa_equal_p ()
static bool cfi_oprnd_equal_p ()
static bool cfi_equal_p ()
static bool cfi_row_equal_p ()
static dw_cfi_ref def_cfa_0 ()
static void def_cfa_1 ()
static void reg_save ()
static void notice_args_size ()
static void notice_eh_throw ()
static unsigned dwf_regno ()
static bool compare_reg_or_pc ()
static void record_reg_saved_in_reg ()
static void queue_reg_save ()
static void dwarf2out_flush_queued_reg_saves ()
static bool clobbers_queued_reg_save ()
static rtx reg_saved_in ()
static void dwarf2out_frame_debug_def_cfa ()
static void dwarf2out_frame_debug_adjust_cfa ()
static void dwarf2out_frame_debug_cfa_offset ()
static void dwarf2out_frame_debug_cfa_register ()
static void dwarf2out_frame_debug_cfa_expression ()
static void dwarf2out_frame_debug_cfa_restore ()
static void dwarf2out_frame_debug_cfa_window_save ()
static void dwarf2out_frame_debug_expr ()
static void dwarf2out_frame_debug ()
static void change_cfi_row ()
static bool cfi_label_required_p ()
static void add_cfis_to_fde ()
static void maybe_record_trace_start ()
static void maybe_record_trace_start_abnormal ()
static void create_trace_edges ()
static void scan_insn_after ()
static void scan_trace ()
static void create_cfi_notes ()
static rtx before_next_cfi_note ()
static void connect_traces ()
static void create_pseudo_cfg ()
static void initial_return_save ()
static void create_cie_data ()
static unsigned int execute_dwarf2_frame ()
static const char * dwarf_cfi_name ()
static void output_cfa_loc ()
static void output_cfa_loc_raw ()
void output_cfi ()
void output_cfi_directive ()
void dwarf2out_emit_cfi ()
static void dump_cfi_row ()
void debug_cfi_row (dw_cfi_row *row)
void debug_cfi_row ()
bool dwarf2out_do_frame ()
bool dwarf2out_do_cfi_asm ()
static bool gate_dwarf2_frame ()
rtl_opt_passmake_pass_dwarf2_frame ()

Variables

static vec< dw_trace_infotrace_info
static vec< dw_trace_info_reftrace_work_list
static hash_table
< trace_info_hasher
trace_index
cfi_vec cie_cfi_vec
static dw_cfi_rowcie_cfi_row
static reg_saved_in_datacie_return_save
static unsigned long dwarf2out_cfi_label_num
static rtx add_cfi_insn
static cfi_vecadd_cfi_vec
static dw_trace_infocur_trace
static dw_cfi_rowcur_row
static dw_cfa_locationcur_cfa
static vec< queued_reg_savequeued_reg_saves
static bool any_cfis_emitted
static unsigned dw_stack_pointer_regnum
static unsigned dw_frame_pointer_regnum
static signed char saved_do_cfi_asm = 0

Typedef Documentation

typedef struct dw_cfi_row_struct dw_cfi_row
A collected description of an entire row of the abstract CFI table.   
The caller's ORIG_REG is saved in SAVED_IN_REG.   

Function Documentation

static void add_cfi ( )
static
static void add_cfis_to_fde ( )
static
static rtx before_next_cfi_note ( )
static
Return the insn before the first NOTE_INSN_CFI after START.   

Referenced by connect_traces().

bool cfa_equal_p ( )
Determine if two dw_cfa_location structures define the same data.   

References cfa_loc::base_offset, cfa_loc::indirect, cfa_loc::offset, and cfa_loc::reg.

Referenced by cfi_row_equal_p(), convert_cfa_to_fb_loc_list(), and def_cfa_0().

static bool cfi_equal_p ( )
static
static bool cfi_label_required_p ( )
static
Examine CFI and return true if a cfi label and set_loc is needed
   beforehand.  Even when generating CFI assembler instructions, we
   still have to add the cfi to the list so that lookup_cfa_1 works
   later on.  When -g2 and above we even need to force emitting of
   CFI labels and add to list a DW_CFA_set_loc for convert_cfa_to_fb_loc_list
   purposes.  If we're generating DWARF3 output we use DW_OP_call_frame_cfa
   and so don't use convert_cfa_to_fb_loc_list.   

References DINFO_LEVEL_TERSE, dw_cfi_struct::dw_cfi_opc, DWARF2_DEBUG, dwarf2out_do_cfi_asm(), and VMS_AND_DWARF2_DEBUG.

Referenced by add_cfis_to_fde().

static bool cfi_row_equal_p ( )
static
static void change_cfi_row ( )
static
Emit CFI info to change the state from OLD_ROW to NEW_ROW.   

References add_cfi(), add_cfi_restore(), dw_cfi_row_struct::cfa, dw_cfi_row_struct::cfa_cfi, cfi_equal_p(), def_cfa_0(), dw_cfi_row_struct::reg_save, and vec_safe_length().

Referenced by connect_traces().

static bool clobbers_queued_reg_save ( )
static
Does INSN clobber any register which QUEUED_REG_SAVES lists a saved
   location for?  Or, does it clobber a register which we've previously
   said that some other register is saved in, and for which we now
   have a new location for?   

References compare_reg_or_pc(), cur_trace, modified_in_p(), reg_saved_in_data_struct::orig_reg, queued_reg_save::reg, dw_trace_info::regs_saved_in_regs, and reg_saved_in_data_struct::saved_in_reg.

Referenced by dwarf2out_frame_debug(), and scan_trace().

static bool compare_reg_or_pc ( )
static
Compare X and Y for equivalence.  The inputs may be REGs or PC_RTX.   

Referenced by clobbers_queued_reg_save(), queue_reg_save(), and record_reg_saved_in_reg().

static dw_cfi_row* copy_cfi_row ( )
static
Return a copy of an existing CFI row.   

References dw_cfi_row_struct::reg_save, and vec_safe_copy().

Referenced by maybe_record_trace_start(), and scan_trace().

static void create_cfi_notes ( )
static
Scan the function and create the initial set of CFI notes.   

References scan_trace().

Referenced by execute_dwarf2_frame().

static void create_trace_edges ( )
static
void debug_cfi_row ( dw_cfi_row row)
void debug_cfi_row ( )

References dump_cfi_row().

static dw_cfi_ref def_cfa_0 ( )
static
The CFA is now calculated from NEW_CFA.  Consider OLD_CFA in determining
   what opcode to emit.  Returns the CFI opcode to effect the change, or
   NULL if NEW_CFA == OLD_CFA.   

References build_cfa_loc(), cfa_equal_p(), dw_cfi_oprnd_struct::dw_cfi_loc, dw_cfi_oprnd_struct::dw_cfi_offset, dw_cfi_struct::dw_cfi_opc, dw_cfi_struct::dw_cfi_oprnd1, dw_cfi_struct::dw_cfi_oprnd2, dw_cfi_oprnd_struct::dw_cfi_reg_num, cfa_loc::indirect, new_cfi(), cfa_loc::offset, and cfa_loc::reg.

Referenced by change_cfi_row(), def_cfa_1(), and dump_cfi_row().

static void def_cfa_1 ( )
static
static HOST_WIDE_INT div_data_align ( )
inlinestatic
Divide OFF by DWARF_CIE_DATA_ALIGNMENT, asserting no remainder.   

References HOST_WIDE_INT.

Referenced by output_cfi().

static char* dwarf2out_cfi_label ( )
static
Generate a new label for the CFI info to refer to.   

References dwarf2out_cfi_label_num.

Referenced by add_cfis_to_fde().

bool dwarf2out_do_cfi_asm ( void  )
bool dwarf2out_do_frame ( void  )
Decide whether we want to emit frame unwind information for the current
   translation unit.   

References DWARF2_DEBUG, targetm, UI_DWARF2, and VMS_AND_DWARF2_DEBUG.

Referenced by compile_file(), dwarf2out_begin_prologue(), dwarf2out_do_cfi_asm(), final_end_function(), final_scan_insn(), and gate_dwarf2_frame().

void dwarf2out_emit_cfi ( )
static void dwarf2out_flush_queued_reg_saves ( )
static
static void dwarf2out_frame_debug_adjust_cfa ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_ADJUST_CFA note.   

References cur_cfa, dwf_regno(), cfa_loc::indirect, cfa_loc::offset, cfa_loc::reg, and SET.

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_cfa_offset ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_CFA_OFFSET note.   

References cur_cfa, dwf_regno(), HOST_WIDE_INT, limit, cfa_loc::offset, offset, pc_rtx, cfa_loc::reg, reg_save(), and targetm.

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_cfa_register ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_CFA_REGISTER note.   

References dwf_regno(), pc_rtx, record_reg_saved_in_reg(), and reg_save().

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_cfa_restore ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_CFA_RESTORE note.   

References add_cfi_restore(), cur_row, dwf_regno(), and update_row_reg_save().

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_cfa_window_save ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_CFA_WINDOW_SAVE.
   ??? Perhaps we should note in the CIE where windows are saved (instead of
   assuming 0(cfa)) and what registers are in the window.   

References add_cfi(), dw_cfi_struct::dw_cfi_opc, and new_cfi().

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_def_cfa ( )
static
A subroutine of dwarf2out_frame_debug, process a REG_DEF_CFA note.   

References cfa_loc::base_offset, cur_cfa, dwf_regno(), cfa_loc::indirect, memset(), cfa_loc::offset, and cfa_loc::reg.

Referenced by dwarf2out_frame_debug().

static void dwarf2out_frame_debug_expr ( )
static
Record call frame debugging information for an expression EXPR,
   which either sets SP or FP (adjusting how we calculate the frame
   address) or saves a register to the stack or another register.
   LABEL indicates the address of EXPR.

   This function encodes a state machine mapping rtxes to actions on
   cfa, cfa_store, and cfa_temp.reg.  We describe these rules so
   users need not read the source code.

  The High-Level Picture

  Changes in the register we use to calculate the CFA: Currently we
  assume that if you copy the CFA register into another register, we
  should take the other one as the new CFA register; this seems to
  work pretty well.  If it's wrong for some target, it's simple
  enough not to set RTX_FRAME_RELATED_P on the insn in question.

  Changes in the register we use for saving registers to the stack:
  This is usually SP, but not always.  Again, we deduce that if you
  copy SP into another register (and SP is not the CFA register),
  then the new register is the one we will be using for register
  saves.  This also seems to work.

  Register saves: There's not much guesswork about this one; if
  RTX_FRAME_RELATED_P is set on an insn which modifies memory, it's a
  register save, and the register used to calculate the destination
  had better be the one we think we're using for this purpose.
  It's also assumed that a copy from a call-saved register to another
  register is saving that register if RTX_FRAME_RELATED_P is set on
  that instruction.  If the copy is from a call-saved register to
  the *same* register, that means that the register is now the same
  value as in the caller.

  Except: If the register being saved is the CFA register, and the
  offset is nonzero, we are saving the CFA, so we assume we have to
  use DW_CFA_def_cfa_expression.  If the offset is 0, we assume that
  the intent is to save the value of SP from the previous frame.

  In addition, if a register has previously been saved to a different
  register,

  Invariants / Summaries of Rules

  cfa          current rule for calculating the CFA.  It usually
               consists of a register and an offset.  This is
               actually stored in *cur_cfa, but abbreviated
               for the purposes of this documentation.
  cfa_store    register used by prologue code to save things to the stack
               cfa_store.offset is the offset from the value of
               cfa_store.reg to the actual CFA
  cfa_temp     register holding an integral value.  cfa_temp.offset
               stores the value, which will be used to adjust the
               stack pointer.  cfa_temp is also used like cfa_store,
               to track stores to the stack via fp or a temp reg.

  Rules  1- 4: Setting a register's value to cfa.reg or an expression
               with cfa.reg as the first operand changes the cfa.reg and its
               cfa.offset.  Rule 1 and 4 also set cfa_temp.reg and
               cfa_temp.offset.

  Rules  6- 9: Set a non-cfa.reg register value to a constant or an
               expression yielding a constant.  This sets cfa_temp.reg
               and cfa_temp.offset.

  Rule 5:      Create a new register cfa_store used to save items to the
               stack.

  Rules 10-14: Save a register to the stack.  Define offset as the
               difference of the original location and cfa_store's
               location (or cfa_temp's location if cfa_temp is used).

  Rules 16-20: If AND operation happens on sp in prologue, we assume
               stack is realigned.  We will use a group of DW_OP_XXX
               expressions to represent the location of the stored
               register instead of CFA+offset.

  The Rules

  "{a,b}" indicates a choice of a xor b.
  "<reg>:cfa.reg" indicates that <reg> must equal cfa.reg.

  Rule 1:
  (set <reg1> <reg2>:cfa.reg)
  effects: cfa.reg = <reg1>
           cfa.offset unchanged
           cfa_temp.reg = <reg1>
           cfa_temp.offset = cfa.offset

  Rule 2:
  (set sp ({minus,plus,losum} {sp,fp}:cfa.reg
                              {<const_int>,<reg>:cfa_temp.reg}))
  effects: cfa.reg = sp if fp used
           cfa.offset += {+/- <const_int>, cfa_temp.offset} if cfa.reg==sp
           cfa_store.offset += {+/- <const_int>, cfa_temp.offset}
             if cfa_store.reg==sp

  Rule 3:
  (set fp ({minus,plus,losum} <reg>:cfa.reg <const_int>))
  effects: cfa.reg = fp
           cfa_offset += +/- <const_int>

  Rule 4:
  (set <reg1> ({plus,losum} <reg2>:cfa.reg <const_int>))
  constraints: <reg1> != fp
               <reg1> != sp
  effects: cfa.reg = <reg1>
           cfa_temp.reg = <reg1>
           cfa_temp.offset = cfa.offset

  Rule 5:
  (set <reg1> (plus <reg2>:cfa_temp.reg sp:cfa.reg))
  constraints: <reg1> != fp
               <reg1> != sp
  effects: cfa_store.reg = <reg1>
           cfa_store.offset = cfa.offset - cfa_temp.offset

  Rule 6:
  (set <reg> <const_int>)
  effects: cfa_temp.reg = <reg>
           cfa_temp.offset = <const_int>

  Rule 7:
  (set <reg1>:cfa_temp.reg (ior <reg2>:cfa_temp.reg <const_int>))
  effects: cfa_temp.reg = <reg1>
           cfa_temp.offset |= <const_int>

  Rule 8:
  (set <reg> (high <exp>))
  effects: none

  Rule 9:
  (set <reg> (lo_sum <exp> <const_int>))
  effects: cfa_temp.reg = <reg>
           cfa_temp.offset = <const_int>

  Rule 10:
  (set (mem ({pre,post}_modify sp:cfa_store (???? <reg1> <const_int>))) <reg2>)
  effects: cfa_store.offset -= <const_int>
           cfa.offset = cfa_store.offset if cfa.reg == sp
           cfa.reg = sp
           cfa.base_offset = -cfa_store.offset

  Rule 11:
  (set (mem ({pre_inc,pre_dec,post_dec} sp:cfa_store.reg)) <reg>)
  effects: cfa_store.offset += -/+ mode_size(mem)
           cfa.offset = cfa_store.offset if cfa.reg == sp
           cfa.reg = sp
           cfa.base_offset = -cfa_store.offset

  Rule 12:
  (set (mem ({minus,plus,losum} <reg1>:{cfa_store,cfa_temp} <const_int>))

       <reg2>)
  effects: cfa.reg = <reg1>
           cfa.base_offset = -/+ <const_int> - {cfa_store,cfa_temp}.offset

  Rule 13:
  (set (mem <reg1>:{cfa_store,cfa_temp}) <reg2>)
  effects: cfa.reg = <reg1>
           cfa.base_offset = -{cfa_store,cfa_temp}.offset

  Rule 14:
  (set (mem (post_inc <reg1>:cfa_temp <const_int>)) <reg2>)
  effects: cfa.reg = <reg1>
           cfa.base_offset = -cfa_temp.offset
           cfa_temp.offset -= mode_size(mem)

  Rule 15:
  (set <reg> {unspec, unspec_volatile})
  effects: target-dependent

  Rule 16:
  (set sp (and: sp <const_int>))
  constraints: cfa_store.reg == sp
  effects: cfun->fde.stack_realign = 1
           cfa_store.offset = 0
           fde->drap_reg = cfa.reg if cfa.reg != sp and cfa.reg != fp

  Rule 17:
  (set (mem ({pre_inc, pre_dec} sp)) (mem (plus (cfa.reg) (const_int))))
  effects: cfa_store.offset += -/+ mode_size(mem)

  Rule 18:
  (set (mem ({pre_inc, pre_dec} sp)) fp)
  constraints: fde->stack_realign == 1
  effects: cfa_store.offset = 0
           cfa.reg != HARD_FRAME_POINTER_REGNUM

  Rule 19:
  (set (mem ({pre_inc, pre_dec} sp)) cfa.reg)
  constraints: fde->stack_realign == 1
               && cfa.offset == 0
               && cfa.indirect == 0
               && cfa.reg != HARD_FRAME_POINTER_REGNUM
  effects: Use DW_CFA_def_cfa_expression to define cfa
           cfa.reg == fde->drap_reg   

References cfa_loc::base_offset, dw_trace_info::cfa_store, dw_trace_info::cfa_temp, cfun, cur_cfa, cur_trace, dw_fde_struct::drap_reg, dw_fde_struct::drap_reg_saved, dw_frame_pointer_regnum, dw_stack_pointer_regnum, dwarf2out_flush_queued_reg_saves(), dwf_regno(), function::fde, HOST_WIDE_INT, cfa_loc::indirect, limit, cfa_loc::offset, offset, queue_reg_save(), cfa_loc::reg, reg_saved_in(), SET, dw_fde_struct::stack_realign, dw_fde_struct::stack_realignment, and targetm.

Referenced by dwarf2out_frame_debug().

static const char* dwarf_cfi_name ( )
static
Convert a DWARF call frame info. operation to its string name  

Referenced by output_cfi().

static unsigned dwf_regno ( )
inlinestatic
Short-hand inline for the very common D_F_R (REGNO (x)) operation.   
??? This ought to go into dwarf2out.h, except that dwarf2out.h is
   used in places where rtl is prohibited.   

Referenced by dwarf2out_flush_queued_reg_saves(), dwarf2out_frame_debug(), dwarf2out_frame_debug_adjust_cfa(), dwarf2out_frame_debug_cfa_expression(), dwarf2out_frame_debug_cfa_offset(), dwarf2out_frame_debug_cfa_register(), dwarf2out_frame_debug_cfa_restore(), dwarf2out_frame_debug_def_cfa(), dwarf2out_frame_debug_expr(), and initial_return_save().

static unsigned int execute_dwarf2_frame ( )
static
Annotate the function with NOTE_INSN_CFI notes to record the CFI
   state at each location within the function.  These notes will be
   emitted during pass_final.   

References add_cfis_to_fde(), connect_traces(), create_cfi_notes(), create_cie_data(), create_pseudo_cfg(), hash_table< Descriptor, Allocator >::dispose(), dwarf2out_alloc_current_fde(), and dw_trace_info::regs_saved_in_regs.

rtx expand_builtin_dwarf_sp_column ( void  )
Hook used by __throw.   

Referenced by expand_builtin().

void expand_builtin_init_dwarf_reg_sizes ( )
Generate code to initialize the register size table.   

References choose_hard_reg_mode(), emit_move_insn(), expand_normal(), gen_int_mode(), gen_rtx_MEM(), HOST_WIDE_INT, init_return_column_size(), offset, and targetm.

Referenced by expand_builtin().

static bool gate_dwarf2_frame ( )
static

References dwarf2out_do_frame().

static void get_cfa_from_loc_descr ( )
static
static void init_return_column_size ( )
static
MEM is a memory reference for the register size table, each element of
   which has mode MODE.  Initialize column C as a return address column.   

References emit_move_insn(), HOST_WIDE_INT, and offset.

Referenced by expand_builtin_init_dwarf_reg_sizes().

static void initial_return_save ( )
static
Record the initial position of the return address.  RTL is
   INCOMING_RETURN_ADDR_RTX.   

References dw_cfi_row_struct::cfa, cur_row, dwf_regno(), HOST_WIDE_INT, cfa_loc::offset, offset, pc_rtx, record_reg_saved_in_reg(), and reg_save().

Referenced by create_cie_data().

void lookup_cfa_1 ( )
Find the previous value for the CFA, iteratively.  CFI is the opcode
   to interpret, *LOC will be updated as necessary, *REMEMBER is used for
   one level of remember/restore state processing.   

References dw_cfi_oprnd_struct::dw_cfi_loc, dw_cfi_oprnd_struct::dw_cfi_offset, dw_cfi_struct::dw_cfi_opc, dw_cfi_struct::dw_cfi_oprnd1, dw_cfi_struct::dw_cfi_oprnd2, dw_cfi_oprnd_struct::dw_cfi_reg_num, get_cfa_from_loc_descr(), cfa_loc::in_use, cfa_loc::offset, and cfa_loc::reg.

Referenced by convert_cfa_to_fb_loc_list().

rtl_opt_pass* make_pass_dwarf2_frame ( )
static void maybe_record_trace_start_abnormal ( )
static
Similarly, but handle the args_size and CFA reset across EH
   and non-local goto edges.   

References dw_cfi_row_struct::cfa, cur_row, cur_trace, dw_trace_info::end_true_args_size, HOST_WIDE_INT, maybe_record_trace_start(), cfa_loc::offset, and cfa_loc::reg.

Referenced by create_trace_edges().

static bool need_data_align_sf_opcode ( )
inlinestatic
Return true if we need a signed version of a given opcode
   (e.g. DW_CFA_offset_extended_sf vs DW_CFA_offset_extended).   

Referenced by reg_save().

static dw_cfi_row* new_cfi_row ( )
static
Return a newly allocated CFI row, with no defined data.   

References dw_cfi_row_struct::cfa, and cfa_loc::reg.

Referenced by create_cie_data().

static void notice_args_size ( )
static
A subroutine of scan_trace.  Check INSN for a REG_ARGS_SIZE note
   and adjust data structures to match.   

References cur_cfa, cur_trace, dw_trace_info::end_true_args_size, find_reg_note(), HOST_WIDE_INT, cfa_loc::indirect, cfa_loc::offset, and cfa_loc::reg.

Referenced by scan_insn_after().

static void notice_eh_throw ( )
static
A subroutine of scan_trace.  INSN is can_throw_internal.  Update the
   data within the trace related to EH insns and args_size.   

References add_cfi_args_size(), dw_trace_info::beg_delay_args_size, cur_trace, dw_trace_info::eh_head, dw_trace_info::end_delay_args_size, dw_trace_info::end_true_args_size, and HOST_WIDE_INT.

Referenced by scan_trace().

static void output_cfa_loc ( )
static
This routine will generate the correct assembly data for a location
   description based on a cfi entry with a complex address.   

References dw2_asm_output_data(), dw2_asm_output_data_uleb128(), dw_cfi_oprnd_struct::dw_cfi_loc, dw_cfi_struct::dw_cfi_opc, dw_cfi_struct::dw_cfi_oprnd1, dw_cfi_struct::dw_cfi_oprnd2, dw_cfi_oprnd_struct::dw_cfi_reg_num, output_loc_sequence(), and size_of_locs().

Referenced by output_cfi().

static void queue_reg_save ( )
static
Add an entry to QUEUED_REG_SAVES saying that REG is now saved at
   SREG, or if SREG is NULL then it is saved at OFFSET to the CFA.   

References compare_reg_or_pc(), and queued_reg_save::reg.

Referenced by dwarf2out_frame_debug_expr().

static void record_reg_saved_in_reg ( )
static
Record SRC as being saved in DEST.  DEST may be null to delete an
   existing entry.  SRC may be a register or PC_RTX.   

References compare_reg_or_pc(), cur_trace, reg_saved_in_data_struct::orig_reg, dw_trace_info::regs_saved_in_regs, and reg_saved_in_data_struct::saved_in_reg.

Referenced by dwarf2out_flush_queued_reg_saves(), dwarf2out_frame_debug_cfa_register(), and initial_return_save().

static bool save_point_p ( )
static

References inside_basic_block_p().

Referenced by create_pseudo_cfg(), and scan_trace().

static void scan_insn_after ( )
static
A subroutine of scan_trace.  Do what needs to be done "after" INSN.   

References dwarf2out_frame_debug(), and notice_args_size().

Referenced by scan_trace().

static void update_row_reg_save ( )
static
Perform ROW->REG_SAVE[COLUMN] = CFI.  CFI may be null, indicating
   that the register column is no longer saved.   

References dw_cfi_row_struct::reg_save, vec_safe_grow_cleared(), and vec_safe_length().

Referenced by dwarf2out_frame_debug_cfa_expression(), dwarf2out_frame_debug_cfa_restore(), and reg_save().


Variable Documentation

rtx add_cfi_insn
static
The insn after which a new CFI note should be emitted.   

Referenced by add_cfi(), connect_traces(), and scan_trace().

cfi_vec* add_cfi_vec
static
When non-null, add_cfi will add the CFI to this vector.   

Referenced by add_cfi(), and create_cie_data().

bool any_cfis_emitted
static
True if any CFI directives were emitted at the current insn.   
dw_cfi_row* cie_cfi_row
static
The state of the first row of the FDE table, which includes the
   state provided by the CIE.   

Referenced by connect_traces(), create_cie_data(), and create_pseudo_cfg().

cfi_vec cie_cfi_vec
A vector of call frame insns for the CIE.   

Referenced by convert_cfa_to_fb_loc_list(), create_cie_data(), and output_call_frame_info().

reg_saved_in_data* cie_return_save
static
dw_cfa_location* cur_cfa
static
A copy of the current CFA, for use during the processing of a
   single insn.   

Referenced by dwarf2out_frame_debug_adjust_cfa(), dwarf2out_frame_debug_cfa_offset(), dwarf2out_frame_debug_def_cfa(), dwarf2out_frame_debug_expr(), notice_args_size(), and scan_trace().

unsigned dw_frame_pointer_regnum
static
unsigned dw_stack_pointer_regnum
static
Short-hand for commonly used register numbers.   

Referenced by create_cie_data(), and dwarf2out_frame_debug_expr().

unsigned long dwarf2out_cfi_label_num
static
vec<queued_reg_save> queued_reg_saves
static
signed char saved_do_cfi_asm = 0
static
Save the result of dwarf2out_do_frame across PCH.
   This variable is tri-state, with 0 unset, >0 true, <0 false.   

Referenced by dwarf2out_do_cfi_asm().

hash_table<trace_info_hasher> trace_index
static
vec<dw_trace_info> trace_info
static
The variables making up the pseudo-cfg, as described above.   
vec<dw_trace_info_ref> trace_work_list
static