r238792 - in /trunk: gcc/ChangeLog gcc/input.c ...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Wed Jul 27 17:21:00 GMT 2016


Author: dmalcolm
Date: Wed Jul 27 17:21:20 2016
New Revision: 238792

URL: https://gcc.gnu.org/viewcvs?rev=238792&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/input.c
    trunk/gcc/input.h
    trunk/gcc/tree.c
    trunk/gcc/tree.h
    trunk/libcpp/ChangeLog
    trunk/libcpp/include/line-map.h



More information about the Gcc-cvs mailing list