diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2010-06-06 15:38:13 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-06-06 15:38:13 +0000 |
commit | f7b4a38334869a374e6cc050939dd3015d0a76f5 (patch) | |
tree | da17d9cb81391d461da68e122f1d5dcf239c7f88 /gcc/tree-profile.c | |
parent | 3333e14626d3841c6a3e09857ea90f8e4d16379d (diff) | |
download | gcc-f7b4a38334869a374e6cc050939dd3015d0a76f5.zip gcc-f7b4a38334869a374e6cc050939dd3015d0a76f5.tar.gz gcc-f7b4a38334869a374e6cc050939dd3015d0a76f5.tar.bz2 |
stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the newly built CALL_EXPR.
* stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
newly built CALL_EXPR.
* tree-profile.c (tree_profiling): Return 0 for built-in stuff.
From-SVN: r160344
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index ca15001..127082e 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -467,6 +467,10 @@ tree_profiling (void) || cfun->after_tree_profile) return 0; + /* Don't profile functions produced for builtin stuff. */ + if (DECL_SOURCE_LOCATION (current_function_decl) == BUILTINS_LOCATION) + return 0; + /* Re-set global shared temporary variable for edge-counters. */ gcov_type_tmp_var = NULL_TREE; |