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

Functions

static void setup_prefixes (const char *exec_path)
 
int main (int ac, char **av)
 

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

◆ main()

◆ setup_prefixes()

Variable Documentation

◆ dir_separator

const char dir_separator[] = { DIR_SEPARATOR, 0 }
static
The directory separator.   

Referenced by setup_prefixes().

◆ path

struct path_prefix path
static
The collection path prefixes.   

◆ self_exec_prefix

const char* self_exec_prefix
static
The exec prefix as relocated from the location of this program.   

Referenced by setup_prefixes().

◆ self_libexec_prefix

const char* self_libexec_prefix
static
The libexec prefix as relocated from the location of this program.   

Referenced by setup_prefixes().

◆ self_tooldir_prefix

const char* self_tooldir_prefix
static
The tools prefix as relocated from the location of this program.   

Referenced by setup_prefixes().

◆ standard_bin_prefix

const char standard_bin_prefix[] = STANDARD_BINDIR_PREFIX
static
The bindir prefix as derived at compile-time from --prefix.   

Referenced by setup_prefixes().

◆ standard_exec_prefix

const char standard_exec_prefix[] = STANDARD_EXEC_PREFIX
static
Wrapper for ar/ranlib/nm to pass the LTO plugin.
   Copyright (C) 2011-2024 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.   

Referenced by driver::maybe_print_and_exit(), driver::set_up_specs(), and setup_prefixes().

◆ standard_libexec_prefix

const char standard_libexec_prefix[] = STANDARD_LIBEXEC_PREFIX
static
The libexec prefix as derived at compile-time from --prefix.   

Referenced by setup_prefixes().

◆ target_machine

const char* const target_machine = DEFAULT_TARGET_MACHINE
static
The name of the machine that is being targeted.   

Referenced by main(), main(), and setup_prefixes().

◆ target_path

struct path_prefix target_path
static
The collection of target specific path prefixes.   

Referenced by main(), and setup_prefixes().

◆ target_version

const char* const target_version = DEFAULT_TARGET_VERSION
static
The target version.   

Referenced by setup_prefixes().

◆ tooldir_base_prefix

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.   

Referenced by setup_prefixes().