diff options
| author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-25 08:58:54 +0000 |
|---|---|---|
| committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-25 08:58:54 +0000 |
| commit | 5ebe21437f1bd988a9887289d6f33db552a83b89 (patch) | |
| tree | 9772bc60a136c3ea7e6977711cf51d5fb4469798 /libcpp/ChangeLog | |
| parent | 7abb12dacb7560a632d491646ffa1cd9d7cf6862 (diff) | |
| download | ppe42-gcc-5ebe21437f1bd988a9887289d6f33db552a83b89.tar.gz ppe42-gcc-5ebe21437f1bd988a9887289d6f33db552a83b89.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180426 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/ChangeLog')
| -rw-r--r-- | libcpp/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 3c477955240..d7fb84f576b 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,21 @@ +2011-10-24 Dodji Seketeli <dodji@redhat.com> + + * 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. + + * line-map.c (linemap_macro_map_lookup): Fix logic. + 2011-10-22 Dodji Seketeli <dodji@redhat.com> PR bootstrap/50778 |

