diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-05 21:31:30 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-05 21:31:30 +0000 |
commit | a98af3e01c164f729be70f6319cc0b280f7e8182 (patch) | |
tree | ba4516faab4daa3b5f2b20d3f9b83a34c0baede5 /gcc/line-map.c | |
parent | 1ea7ed2119257b80d0327b5c3d979cebd87aa894 (diff) | |
download | gcc-a98af3e01c164f729be70f6319cc0b280f7e8182.tar.gz |
PR preprocessor/3824
* line-map.c: Update comments.
* line-map.h: Update comments.
* tradcif.y: Don't consider large numbers unsigned.
* gcc.dg/cpp/tr-sign.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44651 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/line-map.c')
-rw-r--r-- | gcc/line-map.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/line-map.c b/gcc/line-map.c index a67191d3aed..27bcf2f94cd 100644 --- a/gcc/line-map.c +++ b/gcc/line-map.c @@ -93,7 +93,10 @@ add_line_map (set, reason, from_line, to_file, to_line) return map; } -/* Translate a logical line number into a (source file, line) pair. */ +/* Given a logical line, returns the map from which the corresponding + (source file, line) pair can be deduced. Since the set is built + chronologically, the logical lines are monotonic increasing, and so + the list is sorted and we can use a binary search. */ struct line_map * lookup_line (set, line) |