From a98af3e01c164f729be70f6319cc0b280f7e8182 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 5 Aug 2001 21:31:30 +0000 Subject: 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 --- gcc/line-map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/line-map.c') 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) -- cgit v1.2.1