]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/input.c
Support expansion of reserved locations wrapped in virtual locations
authorDodji Seketeli <dodji@redhat.com>
Tue, 25 Oct 2011 08:58:54 +0000 (08:58 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 25 Oct 2011 08:58:54 +0000 (10:58 +0200)
commit84756fd40adc5ceb732dccc84056e08d3ef0186d
tree9772bc60a136c3ea7e6977711cf51d5fb4469798
parentae5f5715d62c096065139a40cc91e4acfc070c8c
Support expansion of reserved locations wrapped in virtual locations

libcpp/

* include/line-map.h (linemap_expand_location): Take a line table
parameter.  Update comment.
(linemap_resolve_location): Update comment.
(linemap_expand_location_full): Remove.
* line-map.c (linemap_resolve_location):  Handle reserved
locations; return a NULL map in those cases.
(linemap_expand_location): If location is reserved, return a
zeroed expanded location.  Update comment.  Take a line table to
assert that the function takes non-virtual locations only.
(linemap_expand_location_full): remove.
(linemap_dump_location): Handle the fact that
linemap_resolve_location can return NULL line maps when the
location resolves to a reserved location.

gcc/
* input.c (expand_location): Rewrite using
linemap_resolve_location and linemap_expand_location.  Add a
comment.

From-SVN: r180426
gcc/ChangeLog
gcc/input.c
libcpp/ChangeLog
libcpp/include/line-map.h
libcpp/line-map.c