GCC Middle and Back End API Reference
|
Functions | |
void | find_file_set_debug (bool debug_state) |
char * | find_a_file (struct path_prefix *pprefix, const char *name, int mode) |
void | do_add_prefix (struct path_prefix *pprefix, const char *prefix, bool first) |
void | add_prefix (struct path_prefix *pprefix, const char *prefix) |
void | add_prefix_begin (struct path_prefix *pprefix, const char *prefix) |
void | prefix_from_env (const char *env, struct path_prefix *pprefix) |
void | prefix_from_string (const char *p, struct path_prefix *pprefix) |
Variables | |
static bool | debug = false |
void add_prefix | ( | struct path_prefix * | pprefix, |
const char * | prefix ) |
Add an entry for PREFIX at the end of prefix list PREFIX.
References do_add_prefix(), and prefix_list::prefix.
Referenced by main(), prefix_from_string(), and driver::set_up_specs().
void add_prefix_begin | ( | struct path_prefix * | pprefix, |
const char * | prefix ) |
Add an entry for PREFIX at the begin of prefix list PREFIX.
References do_add_prefix(), and prefix_list::prefix.
Referenced by main().
void do_add_prefix | ( | struct path_prefix * | pprefix, |
const char * | prefix, | ||
bool | first ) |
Add an entry for PREFIX to prefix list PREFIX. Add at beginning if FIRST is true.
References path_prefix::max_len, prefix_list::next, path_prefix::plist, and prefix_list::prefix.
Referenced by add_prefix(), and add_prefix_begin().
char * find_a_file | ( | struct path_prefix * | pprefix, |
const char * | name, | ||
int | mode ) |
References debug, free(), HOST_EXECUTABLE_SUFFIX, path_prefix::max_len, prefix_list::next, NULL, path_prefix::plist, prefix_list::prefix, and S_ISDIR.
Referenced by main(), main(), driver::maybe_run_linker(), and driver::set_up_specs().
void prefix_from_env | ( | const char * | env, |
struct path_prefix * | pprefix ) |
Take the value of the environment variable ENV, break it into a path, and add of the entries to PPREFIX.
References env, and prefix_from_string().
Referenced by main(), and setup_prefixes().
void prefix_from_string | ( | const char * | p, |
struct path_prefix * | pprefix ) |
References add_prefix(), debug, DIR_SEPARATOR, free(), and PATH_SEPARATOR.
Referenced by prefix_from_env(), and setup_prefixes().
Utility functions for finding files relative to GCC binaries. Copyright (C) 1992-2024 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/>.
Referenced by find_a_file(), find_file_set_debug(), and prefix_from_string().