diff options
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 ca15001fead..127082e1530 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; |