osprey-gcc-4.2.0/include/libiberty.h File Reference

#include "ansidecl.h"
#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>

Include dependency graph for libiberty.h:

Go to the source code of this file.

Data Types

type  pex_time

Defines

#define basename   basename_cannot_be_used_without_a_prototype
#define ACONCAT(ACONCAT_PARAMS)
#define XNEW(T)   ((T *) xmalloc (sizeof (T)))
#define XCNEW(T)   ((T *) xcalloc (1, sizeof (T)))
#define XDELETE(P)   free ((void*) (P))
#define XNEWVEC(T, N)   ((T *) xmalloc (sizeof (T) * (N)))
#define XCNEWVEC(T, N)   ((T *) xcalloc ((N), sizeof (T)))
#define XRESIZEVEC(T, P, N)   ((T *) xrealloc ((void *) (P), sizeof (T) * (N)))
#define XDELETEVEC(P)   free ((void*) (P))
#define XNEWVAR(T, S)   ((T *) xmalloc ((S)))
#define XCNEWVAR(T, S)   ((T *) xcalloc (1, (S)))
#define XRESIZEVAR(T, P, S)   ((T *) xrealloc ((P), (S)))
#define XOBNEW(O, T)   ((T *) obstack_alloc ((O), sizeof (T)))
#define XOBFINISH(O, T)   ((T) obstack_finish ((O)))
#define _hex_array_size   256
#define _hex_bad   99
#define hex_p(c)   (hex_value (c) != _hex_bad)
#define hex_value(c)   ((unsigned int) _hex_value[(unsigned char) (c)])
#define PEX_RECORD_TIMES   0x1
#define PEX_USE_PIPES   0x2
#define PEX_SAVE_TEMPS   0x4
#define PEX_LAST   0x1
#define PEX_SEARCH   0x2
#define PEX_SUFFIX   0x4
#define PEX_STDERR_TO_STDOUT   0x8
#define PEX_BINARY_INPUT   0x10
#define PEX_BINARY_OUTPUT   0x20
#define PEXECUTE_FIRST   1
#define PEXECUTE_LAST   2
#define PEXECUTE_ONE   (PEXECUTE_FIRST + PEXECUTE_LAST)
#define PEXECUTE_SEARCH   4
#define PEXECUTE_VERBOSE   8
#define ARRAY_SIZE(a)   (sizeof (a) / sizeof ((a)[0]))
#define alloca(x)   C_alloca(x)
#define USE_C_ALLOCA   1
#define C_ALLOCA   1
#define ASTRDUP(X)

Functions/Subroutines

void unlock_stream (FILE *)
void unlock_std_streams (void)
FILEfopen_unlocked (const char *, const char *)
FILEfdopen_unlocked (int, const char *)
FILEfreopen_unlocked (const char *, const char *, FILE *)
char ** buildargv (const char *) ATTRIBUTE_MALLOC
void freeargv (char **)
char ** dupargv (char **) ATTRIBUTE_MALLOC
void expandargv PARAMS ((int *, char ***))
const char * lbasename (const char *)
char * lrealpath (const char *)
char * concat (const char *,...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL
char * reconcat (char *, const char *,...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL
unsigned long concat_length (const char *,...) ATTRIBUTE_SENTINEL
char * concat_copy (char *, const char *,...) ATTRIBUTE_SENTINEL
char * concat_copy2 (const char *,...) ATTRIBUTE_SENTINEL
int fdmatch (int fd1, int fd2)
char * getpwd (void)
long get_run_time (void)
char * make_relative_prefix (const char *, const char *, const char *) ATTRIBUTE_MALLOC
char * choose_temp_base (void) ATTRIBUTE_MALLOC
char * make_temp_file (const char *) ATTRIBUTE_MALLOC
int unlink_if_ordinary (const char *)
const char * spaces (int count)
int errno_max (void)
const char * strerrno (int)
int strtoerrno (const char *)
char * xstrerror (int)
int signo_max (void)
const char * strsigno (int)
int strtosigno (const char *)
int xatexit (void(*fn)(void))
void xexit (int status) ATTRIBUTE_NORETURN
void xmalloc_set_program_name (const char *)
void xmalloc_failed (size_t) ATTRIBUTE_NORETURN
voidxmalloc (size_t) ATTRIBUTE_MALLOC
voidxrealloc (void *, size_t)
voidxcalloc (size_t, size_t) ATTRIBUTE_MALLOC
char * xstrdup (const char *) ATTRIBUTE_MALLOC
char * xstrndup (const char *, size_t) ATTRIBUTE_MALLOC
voidxmemdup (const void *, size_t, size_t) ATTRIBUTE_MALLOC
double physmem_total (void)
double physmem_available (void)
void hex_init (void)
struct pex_objpex_init (int flags, const char *pname, const char *tempbase)
const char * pex_run (struct pex_obj *obj, int flags, const char *executable, char *const *argv, const char *outname, const char *errname, int *err)
const char * pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, char *const *argv, char *const *env, const char *outname, const char *errname, int *err)
FILEpex_input_file (struct pex_obj *obj, int flags, const char *in_name)
FILEpex_input_pipe (struct pex_obj *obj, int binary)
FILEpex_read_output (struct pex_obj *, int binary)
int pex_get_status (struct pex_obj *, int count, int *vector)
int pex_get_times (struct pex_obj *, int count, struct pex_time *vector)
void pex_free (struct pex_obj *)
const char * pex_one (int flags, const char *executable, char *const *argv, const char *pname, const char *outname, const char *errname, int *status, int *err)
int pexecute (const char *, char *const *, const char *, const char *, char **, char **, int)
int pwait (int, int *, int)
int asprintf (char **, const char *,...) ATTRIBUTE_PRINTF_2
int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2
voidC_alloca (size_t) ATTRIBUTE_MALLOC

Variables

char * libiberty_concat_ptr
const unsigned char _hex_value [_hex_array_size]
const char * libiberty_optr
char * libiberty_nptr
unsigned long libiberty_len


Define Documentation

#define _hex_array_size   256

Definition at line 336 of file libiberty.h.

#define _hex_bad   99

Definition at line 337 of file libiberty.h.

#define ACONCAT ( ACONCAT_PARAMS   ) 

Value:

(libiberty_concat_ptr = (char *) alloca (concat_length ACONCAT_PARAMS + 1), \
   concat_copy2 ACONCAT_PARAMS)

Definition at line 161 of file libiberty.h.

#define alloca (  )     C_alloca(x)

Definition at line 601 of file libiberty.h.

#define ARRAY_SIZE ( a   )     (sizeof (a) / sizeof ((a)[0]))

Definition at line 582 of file libiberty.h.

#define ASTRDUP ( X   ) 

Value:

Definition at line 609 of file libiberty.h.

#define basename   basename_cannot_be_used_without_a_prototype

#define C_ALLOCA   1

Definition at line 605 of file libiberty.h.

#define hex_p ( c   )     (hex_value (c) != _hex_bad)

Definition at line 340 of file libiberty.h.

#define hex_value ( c   )     ((unsigned int) _hex_value[(unsigned char) (c)])

Definition at line 343 of file libiberty.h.

#define PEX_BINARY_INPUT   0x10

Definition at line 387 of file libiberty.h.

Referenced by pex_run_in_environment().

#define PEX_BINARY_OUTPUT   0x20

Definition at line 394 of file libiberty.h.

Referenced by pex_input_file(), and pex_run_in_environment().

#define PEX_LAST   0x1

Definition at line 374 of file libiberty.h.

Referenced by collect_execute(), execute(), pex_run_in_environment(), and pexecute().

#define PEX_RECORD_TIMES   0x1

Definition at line 348 of file libiberty.h.

Referenced by execute(), pex_free(), and pex_get_status_and_time().

#define PEX_SAVE_TEMPS   0x4

Definition at line 354 of file libiberty.h.

Referenced by pex_run_in_environment().

#define PEX_SEARCH   0x2

#define PEX_STDERR_TO_STDOUT   0x8

Definition at line 383 of file libiberty.h.

Referenced by pex_djgpp_exec_child(), pex_unix_exec_child(), and pex_win32_exec_child().

#define PEX_SUFFIX   0x4

Definition at line 380 of file libiberty.h.

Referenced by pex_run_in_environment(), and temp_file().

#define PEX_USE_PIPES   0x2

#define PEXECUTE_FIRST   1

Definition at line 538 of file libiberty.h.

#define PEXECUTE_LAST   2

Definition at line 539 of file libiberty.h.

#define PEXECUTE_ONE   (PEXECUTE_FIRST + PEXECUTE_LAST)

Definition at line 540 of file libiberty.h.

#define PEXECUTE_SEARCH   4

Definition at line 541 of file libiberty.h.

#define PEXECUTE_VERBOSE   8

Definition at line 542 of file libiberty.h.

#define USE_C_ALLOCA   1

Definition at line 603 of file libiberty.h.

#define XCNEW ( T   )     ((T *) xcalloc (1, sizeof (T)))

Definition at line 313 of file libiberty.h.

#define XCNEWVAR ( T,
S   )     ((T *) xcalloc (1, (S)))

Definition at line 326 of file libiberty.h.

#define XCNEWVEC ( T,
 )     ((T *) xcalloc ((N), sizeof (T)))

Definition at line 319 of file libiberty.h.

#define XDELETE ( P   )     free ((void*) (P))

Definition at line 314 of file libiberty.h.

#define XDELETEVEC ( P   )     free ((void*) (P))

Definition at line 321 of file libiberty.h.

#define XNEW ( T   )     ((T *) xmalloc (sizeof (T)))

Definition at line 312 of file libiberty.h.

#define XNEWVAR ( T,
S   )     ((T *) xmalloc ((S)))

Definition at line 325 of file libiberty.h.

#define XNEWVEC ( T,
 )     ((T *) xmalloc (sizeof (T) * (N)))

Definition at line 318 of file libiberty.h.

#define XOBFINISH ( O,
T   )     ((T) obstack_finish ((O)))

#define XOBNEW ( O,
T   )     ((T *) obstack_alloc ((O), sizeof (T)))

Definition at line 331 of file libiberty.h.

#define XRESIZEVAR ( T,
P,
S   )     ((T *) xrealloc ((P), (S)))

Definition at line 327 of file libiberty.h.

#define XRESIZEVEC ( T,
P,
 )     ((T *) xrealloc ((void *) (P), sizeof (T) * (N)))

Definition at line 320 of file libiberty.h.


Function Documentation

int asprintf ( char **  ,
const char *  ,
  ... 
)

char** buildargv ( const char *   ) 

Definition at line 162 of file argv.c.

References alloca, EOS, freeargv(), INITIAL_MAXARGC, ISBLANK, ISSPACE, malloc, NULL, realloc, strdup, and strlen().

void* C_alloca ( size_t   ) 

char* choose_temp_base ( void   ) 

char* concat ( const char *  ,
  ... 
)

Definition at line 152 of file concat.c.

References args, VA_CLOSE, VA_FIXEDARG, VA_OPEN, vconcat_copy(), vconcat_length(), and XNEWVEC.

char* concat_copy ( char *  ,
const char *  ,
  ... 
)

Definition at line 116 of file concat.c.

References args, VA_CLOSE, VA_FIXEDARG, VA_OPEN, and vconcat_copy().

char* concat_copy2 ( const char *  ,
  ... 
)

Definition at line 141 of file concat.c.

References args, libiberty_concat_ptr, VA_CLOSE, VA_FIXEDARG, VA_OPEN, and vconcat_copy().

unsigned long concat_length ( const char *  ,
  ... 
)

Definition at line 101 of file concat.c.

References args, length, VA_CLOSE, VA_FIXEDARG, VA_OPEN, and vconcat_length().

Referenced by process_command().

char** dupargv ( char **   ) 

Definition at line 78 of file argv.c.

References copy, freeargv(), len, malloc, NULL, strcpy, and strlen().

Referenced by expandargv().

int errno_max ( void   ) 

Definition at line 591 of file strerror.c.

References error_names, init_error_tables(), MAX, NULL, num_error_names, and sys_nerr.

Referenced by mpw_start_progress().

int fdmatch ( int  fd1,
int  fd2 
)

Definition at line 49 of file fdmatch.c.

References fstat, stat::st_dev, and stat::st_ino.

FILE* fdopen_unlocked ( int  ,
const char *   
)

Definition at line 118 of file fopen_unlocked.c.

References fdopen, fp, and unlock_1().

FILE* fopen_unlocked ( const char *  ,
const char *   
)

Definition at line 105 of file fopen_unlocked.c.

References fopen, fp, and unlock_1().

void freeargv ( char **   ) 

Definition at line 122 of file argv.c.

References free(), NULL, and scan().

Referenced by buildargv(), and dupargv().

FILE* freopen_unlocked ( const char *  ,
const char *  ,
FILE  
)

Definition at line 121 of file fopen_unlocked.c.

References fp, freopen, and unlock_1().

long get_run_time ( void   ) 

char* getpwd ( void   ) 

void hex_init ( void   ) 

Definition at line 160 of file hex.c.

References _hex_array_size, _hex_bad, _hex_value, and i.

Referenced by general_init(), ihex_init(), main(), srec_init(), and tekhex_init().

const char* lbasename ( const char *   ) 

Definition at line 49 of file lbasename.c.

References base, IS_DIR_SEPARATOR, and ISALPHA.

char* lrealpath ( const char *   ) 

Definition at line 76 of file lrealpath.c.

References basename, buf, free(), len, malloc, NULL, pathconf(), realpath(), ret, and strdup.

char* make_relative_prefix ( const char *  ,
const char *  ,
const char *   
)

char* make_temp_file ( const char *   ) 

void expandargv PARAMS ( (int *, char ***)   ) 

void pex_free ( struct pex_obj  ) 

int pex_get_status ( struct pex_obj ,
int  count,
int *  vector 
)

Definition at line 501 of file pex-common.c.

References pex_obj::count, err, memcpy, memset, NULL, pex_get_status_and_time(), and pex_obj::status.

Referenced by collect_wait(), execute(), pex_one(), and pwait().

int pex_get_times ( struct pex_obj ,
int  count,
struct pex_time vector 
)

Definition at line 526 of file pex-common.c.

References pex_obj::count, err, memcpy, memset, NULL, pex_get_status_and_time(), pex_obj::status, and pex_obj::time.

Referenced by execute().

struct pex_obj* pex_init ( int  flags,
const char *  pname,
const char *  tempbase 
) [read]

FILE* pex_input_file ( struct pex_obj obj,
int  flags,
const char *  in_name 
)

FILE* pex_input_pipe ( struct pex_obj obj,
int  binary 
)

const char* pex_one ( int  flags,
const char *  executable,
char *const *  argv,
const char *  pname,
const char *  outname,
const char *  errname,
int *  status,
int *  err 
)

Definition at line 24 of file pex-one.c.

References NULL, pex_free(), pex_get_status(), pex_init(), and pex_run().

FILE* pex_read_output ( struct pex_obj ,
int  binary 
)

const char* pex_run ( struct pex_obj obj,
int  flags,
const char *  executable,
char *const *  argv,
const char *  outname,
const char *  errname,
int *  err 
)

Definition at line 337 of file pex-common.c.

References NULL, and pex_run_in_environment().

Referenced by collect_execute(), execute(), pex_one(), pexecute(), and scan_prog_file().

const char* pex_run_in_environment ( struct pex_obj obj,
int  flags,
const char *  executable,
char *const *  argv,
char *const *  env,
const char *  outname,
const char *  errname,
int *  err 
)

int pexecute ( const char *  ,
char *const *  ,
const char *  ,
const char *  ,
char **  ,
char **  ,
int   
)

double physmem_available ( void   ) 

Definition at line 187 of file physmem.c.

References ARRAY_SIZE, h, len, NULL, physmem_total(), and sysconf.

double physmem_total ( void   ) 

Definition at line 83 of file physmem.c.

References ARRAY_SIZE, h, len, NULL, and sysconf.

Referenced by ggc_min_expand_heuristic(), ggc_min_heapsize_heuristic(), and physmem_available().

int pwait ( int  ,
int *  ,
int   
)

char* reconcat ( char *  ,
const char *  ,
  ... 
)

int signo_max ( void   ) 

Definition at line 376 of file strsignal.c.

References init_signal_tables(), MAX, NULL, num_signal_names, signal_names, and sys_nsig.

const char* spaces ( int  count  ) 

const char* strerrno ( int   ) 

Definition at line 697 of file strerror.c.

References buf, error_names, init_error_tables(), NULL, num_error_names, and sprintf().

const char* strsigno ( int   ) 

Definition at line 476 of file strsignal.c.

References buf, init_signal_tables(), NULL, num_signal_names, signal_names, and sprintf().

int strtoerrno ( const char *   ) 

Definition at line 739 of file strerror.c.

References error_names, init_error_tables(), NULL, num_error_names, and strcmp().

int strtosigno ( const char *   ) 

Definition at line 510 of file strsignal.c.

References init_signal_tables(), NULL, num_signal_names, signal_names, and strcmp().

int unlink_if_ordinary ( const char *   ) 

Definition at line 63 of file unlink-if-ordinary.c.

References lstat, S_ISLNK, S_ISREG, stat::st_mode, and unlink.

void unlock_std_streams ( void   ) 

Definition at line 100 of file fopen_unlocked.c.

References unlock_1().

Referenced by fnotice(), general_init(), init_md_reader_args_cb(), and main().

void unlock_stream ( FILE  ) 

Definition at line 93 of file fopen_unlocked.c.

References unlock_1().

int vasprintf ( char **  ,
const char *  ,
va_list   
)

int xatexit ( void(*)(void fn  ) 

void* xcalloc ( size_t  ,
size_t   
)

Definition at line 151 of file xmalloc.c.

References calloc(), PTR, and xmalloc_failed().

Referenced by _cpp_init_files(), _cpp_save_file_entries(), add_candidate_1(), add_loop(), add_to_list(), addarg(), alloc_iv(), alloc_mem(), alloc_page(), alloc_small_page(), alloc_use_cost_map(), allocate_edge_info(), allocate_reg_info(), allocate_reg_life_data(), analyze_function(), analyze_insns_in_loop(), arm_init_machine_status(), block_alloc(), build_btr_def_use_webs(), build_web_parts_and_conflicts(), calculate_global_regs_live(), cgraph_decide_inlining(), cgraph_decide_inlining_of_small_functions(), cgraph_expand_all_functions(), cgraph_postorder(), cleanup_dead_labels(), collect_expansion(), combine_givs(), combine_instructions(), compute_alignments(), compute_rvuse_and_antic_safe(), compute_store_table(), conditional_skip(), conflict_graph_new(), conflicts_between_webs(), connect_traces(), create_alias_map_for(), create_array(), create_coalesce_list(), create_ddg(), create_file(), create_insn_info(), create_loop_notes(), create_nesting_tree(), create_pointer(), create_program_flow_graph(), create_scalar_type(), cris_init_machine_status(), cse_main(), cselib_init(), d30v_init_machine_status(), debug_tree(), delete_null_pointer_checks(), delete_trivially_dead_insns(), demangled_hash_lookup(), deps_init(), determine_invariantness_stmt(), df_alloc(), df_init(), dfs_enumerate_from(), do_line(), dump_ggc_loc_statistics(), dump_hash_table(), duplicate_eh_regions(), duplicate_loop(), duplicate_loop_exit_test(), duplicate_loop_to_header_edge(), expand_inline_function(), expr_reaches_here_p(), fibheap_new(), fibnode_new(), file_hash_lookup(), fill_hash_bucket(), final(), find_exits(), find_invariant_insn(), find_or_create_group(), find_param_structure(), find_path(), find_source(), find_structure(), flow_loops_find(), flow_preorder_transversal_compute(), free_loop_data(), frv_optimize_membar(), gcalloc(), gen_split(), get_loop_body(), get_loop_body_in_bfs_order(), get_loop_body_in_dom_order(), get_loop_body_in_if_conv_order(), get_opcode(), get_ssa_name_ann(), get_tmt_for(), ggc_alloc_cleared(), ggc_alloc_cleared_stat(), ggc_pch_read(), ggc_pch_this_base(), global_alloc(), gt_pch_note_object(), hash_init(), hoist_code(), hoist_expr_reaches_here_p(), ht_create(), ht_expand(), htab_create(), ia64_reorg(), init_alias_analysis(), init_alias_info(), init_bb_info(), init_cpp_parse(), init_deps(), init_elim_table(), init_ggc(), init_ggc_pch(), init_pre(), init_predicate_table(), init_propagate_block_info(), init_resource_info(), init_reswords(), init_spec(), insert_aux(), ipa_create_methodlist_node(), ipa_edges_create(), ipa_node_create(), ipa_utils_reduced_inorder(), iv_ca_new(), kill_redundant_phi_nodes(), lang_new_vers_node(), lang_specific_driver(), loop_optimize(), loop_optimizer_init(), loop_regs_scan(), loopify(), lower_try_finally_copy(), main(), make_cpp_dir(), make_cpp_file(), mark_dfs_back_edges(), migrate_btr_defs(), mmix_init_machine_status(), move_movables(), move_sese_region_to_fn(), new_decision(), new_ggc_zone(), new_graph(), new_loop_vec_info(), new_omp_region(), new_stmt_vec_info(), new_structure(), new_temp_expr_table(), one_cprop_pass(), optimize_attrs(), output_data(), partition_hot_cold_basic_blocks(), parts_to_webs(), peel_loop_completely(), pp_construct(), pre_expr_reaches_here_p(), pre_gcse(), print_rtl_with_bb(), process_define_predicate(), process_file(), push_context(), push_gimplify_context(), ra_build_realloc(), read_count_file(), read_counts_file(), read_graph_file(), read_tfile(), record_edge_info(), record_ref(), record_use(), reg_alloc(), reg_is_remote_constant_p(), reload(), reload_as_needed(), remove_path(), remove_unreachable_regions(), rest_of_compilation(), rewrite_into_loop_closed_ssa(), rs6000_init_machine_status(), rtl_verify_flow_info_1(), run_compiles(), run_shell(), schedule_sm(), see_commit_changes(), see_initialize_data_structures(), set_page_table_entry(), setup_pointers_and_addressables(), sh_md_init_global(), shorten_branches(), sjlj_build_landing_pads(), skip_if_group(), static_execute(), strength_reduce(), symbol_hash_lookup(), tail_duplicate(), tic4x_disassemble(), tree_ssa_iv_optimize_init(), try_recolor_web(), unroll_loop(), unroll_loop_constant_iterations(), unroll_loop_runtime_iterations(), update_equiv_regs(), update_life_info(), variable_union(), varray_init(), verify_flow_info(), verify_loop_structure(), verify_ssa(), walk_dominator_tree(), web_main(), xmemdup(), xtensa_init_machine_status(), yyparse(), and zone_allocate_marks().

void xexit ( int  status  ) 

Definition at line 47 of file xexit.c.

References _xexit_cleanup, exit(), and NULL.

void* xmalloc ( size_t   ) 

Definition at line 136 of file xmalloc.c.

References malloc, PTR, and xmalloc_failed().

void xmalloc_failed ( size_t   ) 

Definition at line 111 of file xmalloc.c.

References environ, fprintf(), NULL, sbrk(), and xexit().

Referenced by xcalloc(), xmalloc(), and xrealloc().

void xmalloc_set_program_name ( const char *   ) 

Definition at line 106 of file xmalloc.c.

References NULL, and sbrk().

void* xmemdup ( const void ,
size_t  ,
size_t   
)

void* xrealloc ( void ,
size_t   
)

char* xstrdup ( const char *   ) 

Definition at line 31 of file xstrdup.c.

References len, memcpy, ret, strlen(), and XNEWVEC.

char* xstrerror ( int   ) 

char* xstrndup ( const char *  ,
size_t   
)

Definition at line 48 of file xstrndup.c.

References len, memcpy, result, strlen(), and XNEWVEC.


Variable Documentation

const unsigned char _hex_value[_hex_array_size]

Definition at line 76 of file hex.c.

Definition at line 140 of file concat.c.

unsigned long libiberty_len

Definition at line 62 of file alloca.c.

Definition at line 61 of file alloca.c.

const char* libiberty_optr

Definition at line 60 of file alloca.c.


Generated on Wed Apr 8 15:00:45 2009 for Open64 by  doxygen 1.5.6