GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "backend.h"
#include "bitmap.h"
#include "tree.h"
#include "cgraph.h"
#include "hash-map.h"
#include "diagnostic-spec.h"
#include "pretty-print.h"
#include "options.h"
Functions | |
bool | warning_suppressed_at (location_t loc, opt_code opt) |
bool | suppress_warning_at (location_t loc, opt_code opt, bool supp) |
void | put_warning_spec_at (location_t loc, unsigned bits) |
void | copy_warning (location_t to, location_t from) |
Variables | |
nowarn_map_t * | nowarn_map |
void copy_warning | ( | location_t | to, |
location_t | from ) |
Copy the no-warning disposition from one location to another.
References hash_map< KeyId, Value, Traits >::get(), nowarn_map, NULL, hash_map< KeyId, Value, Traits >::put(), hash_map< KeyId, Value, Traits >::remove(), and RESERVED_LOCATION_P.
Referenced by copy_tree_body_r(), copy_var_decl(), create_access_replacement(), create_one_component_var(), expand_builtin_strcmp(), expand_builtin_strncmp(), expand_call_stmt(), fold_truth_not_expr(), gimple_build_call_from_tree(), gimple_fold_builtin_sprintf(), gimplify_cond_expr(), gimplify_expr(), gimplify_modify_expr(), gimplify_return_expr(), lookup_field_for_decl(), and remap_gimple_op_r().
void put_warning_spec_at | ( | location_t | loc, |
unsigned | bits ) |
Change the warning disposition for LOC to match OPTSPEC.
References hash_map< KeyId, Value, Traits >::create_ggc(), nowarn_spec_t::from_bits(), gcc_checking_assert, nowarn_map, hash_map< KeyId, Value, Traits >::put(), hash_map< KeyId, Value, Traits >::remove(), and RESERVED_LOCATION_P.
Referenced by put_warning_spec().
bool suppress_warning_at | ( | location_t | loc, |
opt_code | opt = all_warnings, | ||
bool | supp = true ) |
Set the disposition for a warning (or all warnings by default) at a location to disabled by default.
References hash_map< KeyId, Value, Traits >::create_ggc(), gcc_checking_assert, hash_map< KeyId, Value, Traits >::get(), no_warning, nowarn_map, NULL, hash_map< KeyId, Value, Traits >::put(), hash_map< KeyId, Value, Traits >::remove(), and RESERVED_LOCATION_P.
Referenced by suppress_warning(), and suppress_warning().
bool warning_suppressed_at | ( | location_t | loc, |
opt_code | opt ) |
Return the no-warning disposition for location LOC and option OPT or for all/any otions by default.
References gcc_checking_assert, hash_map< KeyId, Value, Traits >::get(), nowarn_map, and RESERVED_LOCATION_P.
nowarn_map_t* nowarn_map |
A mapping from a 'location_t' to the warning spec set for it.
Referenced by copy_warning(), copy_warning(), get_nowarn_spec(), get_nowarn_spec(), put_warning_spec_at(), suppress_warning_at(), and warning_suppressed_at().