GCC Middle and Back End API Reference
file-find.c File Reference

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).  
           Some systems have a suffix for executable files.
           So try appending that.  
           Some systems have a suffix for executable files.
           So try appending that.  

References debug, free(), len, path_prefix::max_len, prefix_list::next, path_prefix::plist, prefix_list::prefix, and strlen().

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

void find_file_set_debug ( )

References debug, and debug_state().

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 ( )

References add_prefix(), and debug.


Variable Documentation

bool debug = false
static
@verbatim 

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/.