GCC Middle and Back End API Reference
collect2.h File Reference

Go to the source code of this file.

Functions

void do_tlink (char **, char **)
struct pex_obj * collect_execute (const char *, char **, const char *, const char *, int flags)
int collect_wait (const char *, struct pex_obj *)
void dump_ld_file (const char *, FILE *)
int file_exists (const char *)
void notice_translated (const char *,...) ATTRIBUTE_PRINTF_1
void notice (const char *,...) ATTRIBUTE_PRINTF_1

Variables

const char * ldout
const char * lderrout
const char * c_file_name
struct obstack temporary_obstack
char * temporary_firstobj
bool vflag
bool debug
bool may_unlink_output_file

Function Documentation

struct pex_obj* collect_execute ( const char *  prog,
char **  argv,
const char *  outname,
const char *  errname,
int  flags 
)
read
Execute a program, and wait for the reply.   

References at_file_supplied, debug, errno, fatal_error(), free(), notice(), response_file, and vflag.

Referenced by do_dsymutil(), fork_execute(), maybe_run_lto_and_relink(), run_gcc(), and tlink_execute().

int collect_wait ( const char *  ,
struct pex_obj *   
)
void do_tlink ( char **  ,
char **   
)

Referenced by main().

void dump_ld_file ( const char *  ,
FILE *   
)
int file_exists ( const char *  )
void notice ( const char *  ,
  ... 
)
void notice_translated ( const char *  ,
  ... 
)

Variable Documentation

const char* c_file_name

Referenced by main(), and recompile_files().

bool debug
Dump expression REF.   
Dump a rtx vector REF.   
Unified dump function for a DATA_REFERENCE structure.   
Generic dump for the above.   
End of lto-streamer.h copy.   

Referenced by collect_execute(), debug_body(), debug_head(), find_a_file(), find_file_set_debug(), main(), maybe_default_option(), maybe_unlink(), maybe_unlink_file(), prefix_from_string(), remove_forwarder_block(), rename_ssa_copies(), resolve_lib_name(), run_gcc(), scan_libraries(), scan_prog_file(), tlink_init(), and write_c_file_stat().

const char* lderrout
const char* ldout
bool may_unlink_output_file
Whether we may unlink the output file, which should be set as soon as we
   know we have successfully produced it.  This is typically useful to prevent
   blindly attempting to unlink a read-only output that the target linker
   would leave untouched.   

Referenced by do_tlink(), and maybe_unlink().