diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2007-08-07 23:44:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2007-08-07 23:44:59 +0000 |
commit | 8d5a7d1f8e00bf65bce222eb81a3f9efef74a36c (patch) | |
tree | 5dedb48ab335a56b7d0176746501250ce787dd2b /gcc/flags.h | |
parent | d4fd3465b63ef4d5e4c7d0d894dc6d69e7f54103 (diff) | |
download | gcc-8d5a7d1f8e00bf65bce222eb81a3f9efef74a36c.zip gcc-8d5a7d1f8e00bf65bce222eb81a3f9efef74a36c.tar.gz gcc-8d5a7d1f8e00bf65bce222eb81a3f9efef74a36c.tar.bz2 |
common.opt (finstrument-functions-exclude-function-list): New option.
./: * common.opt (finstrument-functions-exclude-function-list): New
option.
(finstrument-functions-exclude-file-list): New option.
* opts.c (char_p): Define and DEF_VEC.
(flag_instrument_functions_exclude_functions): New static
variable.
(flag_instrument_functions_exclude_files): New static variable.
(add_instrument_functions_exclude_list): New static function.
(flag_instrument_functions_exclude_p): New function.
(common_handle_option): Handle new options.
* flags.h (flag_instrument_functions_exclude_p): Declare.
* gimplify.c (gimplify_function_tree): Call
flag_instrument_functions_exclude_p.
* doc/invoke.texi (Option Summary): Mention new options.
(Code Gen Options): Document new options.
testsuite/:
* gcc.dg/instrument-1.c: New test.
* gcc.dg/instrument-2.c: New test.
* gcc.dg/instrument-3.c: New test.
From-SVN: r127284
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 215dc27..d52d030 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -281,6 +281,10 @@ extern bool flag_speculative_prefetching_set; #define abi_version_at_least(N) \ (flag_abi_version == 0 || flag_abi_version >= (N)) +/* Return whether the function should be excluded from + instrumentation. */ +extern bool flag_instrument_functions_exclude_p (tree fndecl); + /* True if the given mode has a NaN representation and the treatment of NaN operands is important. Certain optimizations, such as folding x * 0 into 0, are not correct for NaN operands, and are normally |