diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-27 17:21:20 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-27 17:21:20 +0000 |
commit | f17776ffcba650feb512137e3e22a04f3f433c84 (patch) | |
tree | e95187d29ed6854ea7491bfd9df3af7b2456d81d /gcc/ChangeLog | |
parent | 725ab85c7345829fe35cea1e8689ecdd76ee20eb (diff) | |
download | gcc-f17776ffcba650feb512137e3e22a04f3f433c84.tar.gz |
Move make_location from tree.h/c to input.h/c
For some reason I added make_location and some related functions to
tree.h/c, rather than to input.h/c. Move them there, so we can use them
without requiring tree, and add some selftest coverage.
gcc/ChangeLog:
* input.c (get_pure_location): Move here from tree.c.
(make_location): Likewise. Add header comment.
(selftest::test_accessing_ordinary_linemaps): Verify
pure_location_p, make_location, get_location_from_adhoc_loc and
get_range_from_loc.
* input.h (get_pure_location): Move declaration here from tree.h.
(get_finish): Likewise for inline function.
(make_location): Likewise for declaration.
* tree.c (get_pure_location): Move to input.c.
(make_location): Likewise.
* tree.h (get_pure_location): Move declaration to tree.h.
(get_finish): Likewise for inline function.
(make_location): Likewise for declaration.
libcpp/ChangeLog:
* include/line-map.h (source_location): Fix line numbers in
comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0caa798e4f5..9e359bc1e69 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,19 @@ +2016-07-27 David Malcolm <dmalcolm@redhat.com> + + * input.c (get_pure_location): Move here from tree.c. + (make_location): Likewise. Add header comment. + (selftest::test_accessing_ordinary_linemaps): Verify + pure_location_p, make_location, get_location_from_adhoc_loc and + get_range_from_loc. + * input.h (get_pure_location): Move declaration here from tree.h. + (get_finish): Likewise for inline function. + (make_location): Likewise for declaration. + * tree.c (get_pure_location): Move to input.c. + (make_location): Likewise. + * tree.h (get_pure_location): Move declaration to tree.h. + (get_finish): Likewise for inline function. + (make_location): Likewise for declaration. + 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> PR middle-end/71078 |