diff options
author | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-18 09:00:22 +0000 |
---|---|---|
committer | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-18 09:00:22 +0000 |
commit | 60d578d489b5c0bf86e0f9fc1ea5e50cceaad78c (patch) | |
tree | fff1f2d130096327303f4f0437fbb8ca6589d52a /gcc/tree-core.h | |
parent | 3dac50ccbd5bbab3743cf3d1ea9254a07ca18ba8 (diff) | |
download | gcc-60d578d489b5c0bf86e0f9fc1ea5e50cceaad78c.tar.gz |
2014-06-18 Olivier Hainque <hainque@adacore.com>
improve sloc assignment on bind_expr entry/exit code
gcc/
* tree-core.h (tree_block): Add an "end_locus" field, allowing
memorization of the end of block source location.
* tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
* gimplify.c (gimplify_bind_expr): Propagate the block start and
end source location info we have on the block entry/exit code we
generate.
testsuite/
* gnat.dg/blocklocs.adb: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-core.h')
-rw-r--r-- | gcc/tree-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-core.h b/gcc/tree-core.h index a17655389b4..c9d43d0732e 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1253,6 +1253,7 @@ struct GTY(()) tree_block { unsigned block_num : 31; location_t locus; + location_t end_locus; tree vars; vec<tree, va_gc> *nonlocalized_vars; |