diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-18 01:59:27 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-18 01:59:27 +0000 |
commit | b09de2c2a24eff1fa2f166bef1e0c442a0a79786 (patch) | |
tree | 254e6bb8b4a921a8a579572c3fb4970aa70112b1 /gcc/tree-optimize.c | |
parent | c5ef4c3ba0b663419c095180298126619ba78c9a (diff) | |
download | gcc-b09de2c2a24eff1fa2f166bef1e0c442a0a79786.tar.gz |
* tree-optimize.c (tree_rest_of_compilation): Save and restore
input_location.
* semantics.c (expand_body): Don't save/restore input_location.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 253fda2f3cd..397bb490cb6 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -95,6 +95,8 @@ clear_decl_rtl (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, void *data) void tree_rest_of_compilation (tree fndecl, bool nested_p) { + location_t saved_loc; + timevar_push (TV_EXPAND); if (flag_unit_at_a_time && !cgraph_global_info_ready) @@ -102,6 +104,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) /* Initialize the RTL code for the function. */ current_function_decl = fndecl; + saved_loc = input_location; input_location = DECL_SOURCE_LOCATION (fndecl); init_function_start (fndecl); @@ -232,5 +235,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) DECL_ARGUMENTS (fndecl) = 0; } + input_location = saved_loc; + timevar_pop (TV_EXPAND); } |