GCC Middle and Back End API Reference
xcoffout.c File Reference

Data Structures

struct  xcoff_type_number


static void xcoffout_block (tree, int, tree)
static void xcoffout_source_file (FILE *, const char *, int)
int xcoff_assign_fundamental_type_number ()
int stab_to_sclass ()
static void xcoffout_source_file ()
void xcoffout_source_line (unsigned int line, const char *filename, int discriminator, bool is_stmt)
static void xcoffout_block ()
void xcoffout_begin_block ()
void xcoffout_end_block ()
void xcoffout_declare_function ()
void xcoffout_begin_prologue (unsigned int line, const char *file)
void xcoffout_end_function ()
void xcoffout_end_epilogue (unsigned int line, const char *file)


static int xcoff_begin_function_line = -1
static int xcoff_inlining = 0
const char * xcoff_current_include_file
static const char * xcoff_current_function_file
char * xcoff_bss_section_name
char * xcoff_private_data_section_name
char * xcoff_tls_data_section_name
char * xcoff_tbss_section_name
char * xcoff_read_only_section_name
const char * xcoff_lastfile
static struct xcoff_type_number xcoff_type_numbers []
static int do_block = 0

Function Documentation

int stab_to_sclass ( )
   Conversion routine from BSD stabs to AIX storage classes.  
int xcoff_assign_fundamental_type_number ( )
   Returns an XCOFF fundamental type number for DECL (assumed to be a
   TYPE_DECL), or 0 if dbxout.c should assign a type number normally.  
     Do not waste time searching the list for non-intrinsic types.  
     Linear search, blech, but the list is too small to bother
     doing anything else.  
     -4 and -10 should be replaced with -31 and -32, respectively,
     when used for a 64-bit type.  

References xcoff_type_number::number.

void xcoffout_begin_block ( )
   Describe the beginning of an internal block within a function.
   Also output descriptions of variables defined in this block.

   N is the number of the block, by order of beginning, counting from 1,
   and not counting the outermost (function top-level) block.
   The blocks match the BLOCKs in DECL_INITIAL (current_function_decl),
   if the count starts at 0 for the outermost one.  
     The IBM AIX compiler does not emit a .bb for the function level scope,
     so we avoid it here also.  
void xcoffout_begin_prologue ( unsigned int  line,
const char *  file 
   Called at beginning of function body (at start of prologue).
   Record the function's starting line number, so we can output
   relative line numbers for the other lines.
   Record the file name that this function is contained in.  
     Emit the symbols for the outermost BLOCK's variables.  sdbout.c does this
     in sdbout_begin_block, but there is no guarantee that there will be any
     inner block 1, so we must do it here.  This gives a result similar to
     dbxout, so it does make some sense.  
static void xcoffout_block ( tree  ,
int  ,
static void xcoffout_block ( )
         Ignore blocks never expanded or otherwise marked as real.  
             When we reach the specified block, output its symbols.  
                 Output the syms of the block.  
                 We are now done with the block.  Don't go to inner blocks.  
             If we are past the specified block, stop the scan.  
             Output the subblocks.  
void xcoffout_declare_function ( )
   Called at beginning of function (before prologue).
   Declare function as needed for debugging.  
     Any pending .bi or .ei must occur before the .function pseudo op.
     Otherwise debuggers will think that the function is in the previous
     file and/or at the wrong line number.  
     .function NAME, TOP, MAPPING, TYPE, SIZE
     16 and 044 are placeholders for backwards compatibility 

References asm_out_file, current_function_decl, dbxout_parms(), and xcoffout_block().

void xcoffout_end_block ( )
   Describe the end line-number of an internal block within a function.  
void xcoffout_end_epilogue ( unsigned int  line,
const char *  file 
   Output xcoff info for the absolute end of a function.
   Called after the epilogue is output.  
     We need to pass the correct function size to .function, otherwise,
     the xas assembler can't figure out the correct size for the function
     aux entry.  So, we emit a label after the last instruction which can
     be used by the .function pseudo op to calculate the function size.  
void xcoffout_end_function ( )
   Called at end of function (before epilogue).
   Describe end of outermost block.  
static void xcoffout_source_file ( FILE *  ,
const char *  ,
static void xcoffout_source_file ( )
   Output debugging info to FILE to switch to sourcefile FILENAME.
   INLINE_P is true if this is from an inlined function.  
void xcoffout_source_line ( unsigned int  line,
const char *  filename,
int  discriminator,
bool  is_stmt 
   Output a line number symbol entry for location (FILENAME, LINE).  

References dbxout_reg_parms(), dbxout_syms(), and DINFO_LEVEL_TERSE.

Variable Documentation

int do_block = 0
   Output the symbols defined in block number DO_BLOCK.

   This function works by walking the tree structure of blocks,
   counting blocks until it finds the desired block.  
int xcoff_begin_function_line = -1

Output xcoff-format symbol table information from GNU compiler. Copyright (C) 1992-2013 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/.

   Output xcoff-format symbol table data.  The main functionality is contained
   in dbxout.c.  This file implements the sdbout-like parts of the xcoff
   interface.  Many functions are very similar to their counterparts in
   This defines the C_* storage classes.  
   Line number of beginning of current function, minus one.
   Negative means not in a function or not using xcoff.  
char* xcoff_bss_section_name
   Names of bss and data sections.  These should be unique names for each
   compilation unit.  
const char* xcoff_current_function_file
   Name of the current function file.  This is the file the `.bf' is
   emitted from.  In case a line is emitted from a different file,
   (by including that file of course), then the line number will be
const char* xcoff_current_include_file
   Name of the current include file.  
int xcoff_inlining = 0
const char* xcoff_lastfile
   Last source file name mentioned in a NOTE insn.  
char* xcoff_private_data_section_name
char* xcoff_read_only_section_name
char* xcoff_tbss_section_name
char* xcoff_tls_data_section_name
struct xcoff_type_number xcoff_type_numbers[]
Initial value:
{ "int", -1 },
{ "char", -2 },
{ "short int", -3 },
{ "long int", -4 },
{ "unsigned char", -5 },
{ "signed char", -6 },
{ "short unsigned int", -7 },
{ "unsigned int", -8 },
{ "long unsigned int", -10 },
{ "void", -11 },
{ "float", -12 },
{ "double", -13 },
{ "long double", -14 },
{ "wchar", -30 },
{ "long long int", -31 },
{ "long long unsigned int", -32 },