aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-06-06 15:38:13 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-06-06 15:38:13 +0000
commitf7b4a38334869a374e6cc050939dd3015d0a76f5 (patch)
treeda17d9cb81391d461da68e122f1d5dcf239c7f88 /gcc
parent3333e14626d3841c6a3e09857ea90f8e4d16379d (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/stor-layout.c2
-rw-r--r--gcc/tree-profile.c4
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 34a2dfc..86cfe4e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
+
+ * 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.
+
2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
PR bootstrap/44427
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index ef9ec59..d38a375 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -342,7 +342,7 @@ self_referential_size (tree size)
VEC_safe_push (tree, gc, size_functions, fndecl);
/* Replace the original expression with a call to the size function. */
- return build_function_call_expr (input_location, fndecl, arg_list);
+ return build_function_call_expr (UNKNOWN_LOCATION, fndecl, arg_list);
}
/* Take, queue and compile all the size functions. It is essential that
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;