osprey-gcc-4.2.0/gcc/tlink.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "intl.h"
#include "obstack.h"
#include "hashtab.h"
#include "demangle.h"
#include "collect2.h"

Include dependency graph for tlink.c:

Go to the source code of this file.

Data Types

type  symbol_hash_entry
type  file_hash_entry
type  demangled_hash_entry
type  symbol_stack_entry
type  file_stack_entry

Defines

#define MAX_ITERATIONS   17

Typedefs

typedef struct symbol_hash_entry symbol
typedef struct file_hash_entry file
typedef struct demangled_hash_entry demangled

Functions/Subroutines

static int hash_string_eq (const void *, const void *)
static hashval_t hash_string_hash (const void *)
static struct symbol_hash_entrysymbol_hash_lookup (const char *, int)
static struct file_hash_entryfile_hash_lookup (const char *)
static struct
demangled_hash_entry
demangled_hash_lookup (const char *, int)
static void symbol_push (symbol *)
static symbolsymbol_pop (void)
static void file_push (file *)
static filefile_pop (void)
static void tlink_init (void)
static int tlink_execute (const char *, char **, const char *, const char *)
static char * frob_extension (const char *, const char *)
static char * obstack_fgets (FILE *, struct obstack *)
static char * tfgets (FILE *)
static char * pfgets (FILE *)
static void freadsym (FILE *, file *, int)
static void read_repo_file (file *)
static void maybe_tweak (char *, file *)
static int recompile_files (void)
static int read_repo_files (char **)
static void demangle_new_symbols (void)
static int scan_linker_output (const char *)
void do_tlink (char **ld_argv, char **object_lst ATTRIBUTE_UNUSED)

Variables

int prepends_underscore
static int tlink_verbose
static char initial_cwd [MAXPATHLEN+1]
static htab_t symbol_table
static htab_t file_table
static htab_t demangled_table
struct obstack symbol_stack_obstack
struct symbol_stack_entrysymbol_stack
struct obstack file_stack_obstack
struct file_stack_entryfile_stack


Define Documentation

#define MAX_ITERATIONS   17

Definition at line 35 of file tlink.c.


Typedef Documentation


Function Documentation

static void demangle_new_symbols ( void   )  [static]

static struct demangled_hash_entry * demangled_hash_lookup ( const char *  string,
int  create 
) [static, read]

void do_tlink ( char **  ld_argv,
char **object_lst  ATTRIBUTE_UNUSED 
)

static struct file_hash_entry * file_hash_lookup ( const char *  string  )  [static, read]

static file * file_pop ( void   )  [static]

static void file_push ( file p  )  [static]

static void freadsym ( FILE stream,
file f,
int  chosen 
) [static]

Definition at line 338 of file tlink.c.

References file_push(), NULL, sym, symbol_hash_lookup(), symbol_push(), and tfgets().

static char * frob_extension ( const char *  s,
const char *  ext 
) [static]

Definition at line 292 of file tlink.c.

References obstack_copy0, obstack_grow, p, strlen(), strrchr(), and temporary_obstack.

static int hash_string_eq ( const void s1_p,
const void s2_p 
) [static]

Definition at line 77 of file tlink.c.

References s1, s2, and strcmp().

static hashval_t hash_string_hash ( const void s_p  )  [static]

Definition at line 85 of file tlink.c.

References htab_hash_string(), and s.

static void maybe_tweak ( char *  line,
file f 
) [static]

Definition at line 424 of file tlink.c.

References sym, and symbol_hash_lookup().

static char * obstack_fgets ( FILE stream,
struct obstack ob 
) [static]

Definition at line 306 of file tlink.c.

References c, EOF, getc(), NULL, obstack_1grow, obstack_object_size, and XOBFINISH.

static char * pfgets ( FILE stream  )  [static]

Definition at line 324 of file tlink.c.

References tfgets(), and xstrdup().

static void read_repo_file ( file f  )  [static]

static int read_repo_files ( char **  object_lst  )  [static]

static int recompile_files ( void   )  [static]

static int scan_linker_output ( const char *  fname  )  [static]

static struct symbol_hash_entry * symbol_hash_lookup ( const char *  string,
int  create 
) [static, read]

static symbol * symbol_pop ( void   )  [static]

static void symbol_push ( symbol p  )  [static]

static char * tfgets ( FILE stream  )  [static]

Definition at line 318 of file tlink.c.

References obstack_fgets(), and temporary_obstack.

static int tlink_execute ( const char *  prog,
char **  argv,
const char *  outname,
const char *  errname 
) [static]

Definition at line 282 of file tlink.c.

References collect_execute(), collect_wait(), and pex.

static void tlink_init ( void   )  [static]


Variable Documentation

Definition at line 154 of file tlink.c.

Definition at line 192 of file tlink.c.

Definition at line 191 of file tlink.c.

htab_t file_table [static]

Definition at line 134 of file tlink.c.

char initial_cwd[MAXPATHLEN+1] [static]

Definition at line 42 of file tlink.c.

Definition at line 184 of file tlink.c.

Definition at line 183 of file tlink.c.

htab_t symbol_table [static]

Definition at line 91 of file tlink.c.

int tlink_verbose [static]

Definition at line 40 of file tlink.c.


Generated on Wed Apr 8 15:46:22 2009 for Open64 by  doxygen 1.5.6