GCC Middle and Back End API Reference
file-find.c File Reference
#include "config.h"
#include "system.h"
#include "filenames.h"
#include "file-find.h"
Include dependency graph for file-find.c:

Functions

void find_file_set_debug ()
char * find_a_file ()
void add_prefix ()
void prefix_from_env ()
void prefix_from_string ()

Variables

static bool debug = false

Function Documentation

void add_prefix ( )

Add an entry for PREFIX to prefix list PPREFIX.

Keep track of the longest prefix.

References prefix_list::next, and path_prefix::plist.

Referenced by prefix_from_string().

char* find_a_file ( )

Determine the filename to execute (special case for absolute paths).

References debug, HOST_EXECUTABLE_SUFFIX, path_prefix::max_len, prefix_list::next, NULL, path_prefix::plist, prefix_list::prefix, and S_ISDIR.

Referenced by fatal_signal(), handle_braces(), and print_multilib_info().

void find_file_set_debug ( )

References debug.

void prefix_from_env ( )

Take the value of the environment variable ENV, break it into a path, and add of the entries to PPREFIX.

void prefix_from_string ( )

Variable Documentation

bool debug = false
static

Utility functions for finding files relative to GCC binaries. Copyright (C) 1992-2013 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/.