GCC Middle and Back End API Reference
|
Go to the source code of this file.
Data Structures | |
struct | param_info |
Typedefs | |
typedef struct param_info | param_info |
typedef enum compiler_param | compiler_param |
Enumerations | |
enum | compiler_param { LAST_PARAM } |
Functions | |
size_t | get_num_compiler_params (void) |
void | add_params (const param_info params[], size_t n) |
void | set_param_value (const char *name, int value, int *params, int *params_set) |
void | maybe_set_param_value (compiler_param num, int value, int *params, int *params_set) |
void | set_default_param_value (compiler_param num, int value) |
void | global_init_params (void) |
void | finish_params (void) |
int | default_param_value (compiler_param num) |
void | init_param_values (int *params) |
Variables | |
param_info * | compiler_params |
typedef enum compiler_param compiler_param |
The parameters in use by language-independent code.
typedef struct param_info param_info |
The information associated with each parameter.
enum compiler_param |
void add_params | ( | const param_info | params[], |
size_t | n | ||
) |
Add the N PARAMS to the current list of compiler parameters.
int default_param_value | ( | compiler_param | num | ) |
Return the default value of parameter NUM.
void finish_params | ( | void | ) |
Note that all parameters have been added and all default values set.
References params_finished.
size_t get_num_compiler_params | ( | void | ) |
Returns the number of entries in the table, for the use by plugins.
Return the current value of num_compiler_params, for the benefit of plugins that use parameters as features.
void global_init_params | ( | void | ) |
Add all parameters and default values that can be set in both the driver and the compiler proper.
References params_finished.
void init_param_values | ( | int * | params | ) |
Initialize an array PARAMS with default values of the parameters.
void maybe_set_param_value | ( | compiler_param | num, |
int | value, | ||
int * | params, | ||
int * | params_set | ||
) |
Set the value of the parameter given by NUM to VALUE, implicitly, if it has not been set explicitly by the user, in the table PARAMS using PARAMS_SET to indicate which have been explicitly set.
Set the value of the parameter given by NUM to VALUE in PARAMS and PARAMS_SET, implicitly, if it has not been set explicitly by the user.
void set_default_param_value | ( | compiler_param | num, |
int | value | ||
) |
Set the default value of a parameter given by NUM to VALUE, before option processing.
void set_param_value | ( | const char * | name, |
int | value, | ||
int * | params, | ||
int * | params_set | ||
) |
Set the VALUE associated with the parameter given by NAME in the table PARAMS using PARAMS_SET to indicate which have been explicitly set.
Set the VALUE associated with the parameter given by NAME in PARAMS and PARAMS_SET.
Make sure nobody tries to set a parameter to an invalid value.
Scan the parameter table to find a matching entry.
If we didn't find this parameter, issue an error message.
param_info* compiler_params |
An array containing the compiler parameters and their current values.
@verbatim
params.c - Run-time parameters. Copyright (C) 2001-2013 Free Software Foundation, Inc. Written by Mark Mitchell mark@. code sourc ery. com
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/.
An array containing the compiler parameters and their current values.
Referenced by wrap_help().