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.
Referenced by general_init(), and main().
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.
References num_compiler_params.
Referenced by init_options_struct().
void global_init_params | ( | void | ) |
Add all parameters and default values that can be set in both the driver and the compiler proper.
References add_params(), and LAST_PARAM.
Referenced by general_init(), and main().
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.
References set_param_value_internal().
Referenced by default_options_optimization(), and finish_options().
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.
References error(), num_compiler_params, option(), and set_param_value_internal().
Referenced by common_handle_option(), and handle_param().
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 print_filtered_help().