osprey-gcc/gcc/c-incpath.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "machmode.h"
#include "target.h"
#include "tm.h"
#include "cpplib.h"
#include "prefix.h"
#include "intl.h"
#include "c-incpath.h"
#include "cppdefault.h"

Include dependency graph for c-incpath.c:

Go to the source code of this file.

Defines

#define INO_T_EQ(A, B)   ((A) == (B))
#define INO_T_COPY(DEST, SRC)   (DEST) = (SRC)
#define TARGET_EXTRA_INCLUDES   hook_void_charptr_charptr_int
#define TARGET_EXTRA_PRE_INCLUDES   hook_void_charptr_charptr_int

Enumerations

enum  { REASON_QUIET = 0, REASON_NOENT, REASON_DUP, REASON_DUP_SYS }

Functions/Subroutines

static void add_env_var_paths (const char *, int)
static void add_standard_paths (const char *, const char *, int)
static void free_path (struct cpp_dir *, int)
static void merge_include_chains (cpp_reader *, int)
static struct cpp_dirremove_duplicates (cpp_reader *, struct cpp_dir *, struct cpp_dir *, struct cpp_dir *, int)
void split_quote_chain (void)
void add_cpp_dir_path (cpp_dir *p, int chain)
void add_path (char *path, int chain, int cxx_aware, bool user_supplied_p)
void register_include_chains (cpp_reader *pfile, const char *sysroot, const char *iprefix, int stdinc, int cxx_stdinc, int verbose)
static void hook_void_charptr_charptr_int (const char *sysroot ATTRIBUTE_UNUSED, const char *iprefix ATTRIBUTE_UNUSED, int stdinc ATTRIBUTE_UNUSED)

Variables

static struct cpp_dirheads [4]
static struct cpp_dirtails [4]
static bool quote_ignores_source_dir
struct target_c_incpath_s target_c_incpath = { TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES }


Define Documentation

#define INO_T_COPY ( DEST,
SRC   )     (DEST) = (SRC)

Definition at line 45 of file c-incpath.c.

#define INO_T_EQ ( A,
B   )     ((A) == (B))

Definition at line 43 of file c-incpath.c.

#define TARGET_EXTRA_INCLUDES   hook_void_charptr_charptr_int

Definition at line 401 of file c-incpath.c.

#define TARGET_EXTRA_PRE_INCLUDES   hook_void_charptr_charptr_int

Definition at line 404 of file c-incpath.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
REASON_QUIET 
REASON_NOENT 
REASON_DUP 
REASON_DUP_SYS 

Definition at line 60 of file c-incpath.c.


Function Documentation

void add_cpp_dir_path ( cpp_dir p,
int  chain 
)

Definition at line 317 of file c-incpath.c.

Referenced by add_framework_path(), add_path(), and add_system_framework_path().

static void add_env_var_paths ( const char *  env_var,
int  chain 
) [static]

Definition at line 93 of file c-incpath.c.

References add_path(), GET_ENVIRONMENT, memcpy, p, path, PATH_SEPARATOR, q, SYSTEM, xmalloc(), and xstrdup().

Referenced by register_include_chains().

void add_path ( char *  path,
int  chain,
int  cxx_aware,
bool  user_supplied_p 
)

Definition at line 329 of file c-incpath.c.

static void add_standard_paths ( const char *  sysroot,
const char *  iprefix,
int  cxx_stdinc 
) [static]

static void free_path ( struct cpp_dir path,
int  reason 
) [static]

Definition at line 64 of file c-incpath.c.

References _, fprintf(), free(), cpp_dir::name, REASON_DUP, REASON_DUP_SYS, REASON_NOENT, and REASON_QUIET.

Referenced by remove_duplicates().

static void hook_void_charptr_charptr_int ( const char *sysroot  ATTRIBUTE_UNUSED,
const char *iprefix  ATTRIBUTE_UNUSED,
int stdinc  ATTRIBUTE_UNUSED 
) [static]

Definition at line 393 of file c-incpath.c.

static void merge_include_chains ( cpp_reader pfile,
int  verbose 
) [static]

Definition at line 261 of file c-incpath.c.

References _, AFTER, BRACKET, fprintf(), cpp_dir::name, cpp_dir::next, p, QUOTE, remove_duplicates(), and SYSTEM.

Referenced by register_include_chains().

void register_include_chains ( cpp_reader pfile,
const char *  sysroot,
const char *  iprefix,
int  stdinc,
int  cxx_stdinc,
int  verbose 
)

static struct cpp_dir * remove_duplicates ( cpp_reader pfile,
struct cpp_dir head,
struct cpp_dir system,
struct cpp_dir join,
int  verbose 
) [static, read]

void split_quote_chain ( void   ) 

Definition at line 304 of file c-incpath.c.

Referenced by c_common_handle_option().


Variable Documentation

struct cpp_dir* heads[4] [static]

Definition at line 57 of file c-incpath.c.

Referenced by GTY(), note_prediction_to_br_prob(), and tree_bb_level_predictions().

Definition at line 59 of file c-incpath.c.

Referenced by register_include_chains(), and split_quote_chain().

struct cpp_dir* tails[4] [static]

Definition at line 58 of file c-incpath.c.

struct target_c_incpath_s target_c_incpath = { TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES }

Definition at line 407 of file c-incpath.c.

Referenced by register_include_chains().


Generated on Wed Apr 8 14:19:34 2009 for Open64 by  doxygen 1.5.6