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

Functions

static void setup_prefixes ()
int main ()

Variables

static const char standard_exec_prefix [] = STANDARD_EXEC_PREFIX
static const char standard_libexec_prefix [] = STANDARD_LIBEXEC_PREFIX
static const char standard_bin_prefix [] = STANDARD_BINDIR_PREFIX
static const char *const tooldir_base_prefix = TOOLDIR_BASE_PREFIX
static const char * self_exec_prefix
static const char * self_libexec_prefix
static const char * self_tooldir_prefix
static const char *const target_machine = DEFAULT_TARGET_MACHINE
static const char *const target_version = DEFAULT_TARGET_VERSION
static struct path_prefix target_path
static struct path_prefix path
static const char dir_separator [] = { DIR_SEPARATOR, 0 }

Function Documentation

int main ( )
 Find the GCC LTO plugin  
 Find the wrapped binutils program.   
 Create new command line with plugin  
 Run utility  
 ??? the const is misplaced in pex_one's argv?  
static void setup_prefixes ( )
static
 Relocate the exec prefix.   
 Relocate libexec prefix.   
 Build the relative path to the target-specific tool directory.   
 Add the target-specific tool bin prefix.   
 Add the target-specific libexec prefix.   
 Add path as a last resort.   

Variable Documentation

const char dir_separator[] = { DIR_SEPARATOR, 0 }
static

The directory separator.

struct path_prefix path
static

The collection path prefixes.

const char* self_exec_prefix
static

The exec prefix as relocated from the location of this program.

const char* self_libexec_prefix
static

The libexec prefix as relocated from the location of this program.

const char* self_tooldir_prefix
static

The tools prefix as relocated from the location of this program.

const char standard_bin_prefix[] = STANDARD_BINDIR_PREFIX
static

The bindir prefix as derived at compile-time from –prefix.

const char standard_exec_prefix[] = STANDARD_EXEC_PREFIX
static

Wrapper for ar/ranlib/nm to pass the LTO plugin. Copyright (C) 2011-2013 Free Software Foundation, Inc. Contributed by Andi Kleen.

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/. The exec prefix as derived at compile-time from –prefix.

const char standard_libexec_prefix[] = STANDARD_LIBEXEC_PREFIX
static

The libexec prefix as derived at compile-time from –prefix.

const char* const target_machine = DEFAULT_TARGET_MACHINE
static

The name of the machine that is being targeted.

struct path_prefix target_path
static

The collection of target specific path prefixes.

const char* const target_version = DEFAULT_TARGET_VERSION
static

The target version.

const char* const tooldir_base_prefix = TOOLDIR_BASE_PREFIX
static

A relative path to be used in finding the location of tools relative to this program.