summaryrefslogtreecommitdiff
path: root/gcc/line-map.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-08-07 17:55:01 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-08-07 17:55:01 +0000
commit42dcba3463e9fafa2fe0419e88d490860f0a7cb3 (patch)
treeeeb068aafafef2b19aa1d78e652937139b129316 /gcc/line-map.h
parente85152835015727927dcece51f9d73f2a92c12f4 (diff)
downloadgcc-42dcba3463e9fafa2fe0419e88d490860f0a7cb3.tar.gz
cpplib.h, line-map.h: Update comments.
* cpplib.h, line-map.h: Update comments. * cppmain.c (printer_init): Move inline. (maybe_print_line, print_line): Take a map pointer. (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update. (cb_file_change): Don't use prior value of print.map. From-SVN: r44697
Diffstat (limited to 'gcc/line-map.h')
-rw-r--r--gcc/line-map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/line-map.h b/gcc/line-map.h
index d5705c75614..865fbced5b6 100644
--- a/gcc/line-map.h
+++ b/gcc/line-map.h
@@ -69,7 +69,8 @@ extern void free_line_maps
at least as long as the final call to lookup_line ().
FROM_LINE should be monotonic increasing across calls to this
- function. */
+ function. A call to this function can relocate the previous set of
+ maps, so any stored line_map pointers should not be used. */
extern struct line_map *add_line_map
PARAMS ((struct line_maps *, enum lc_reason,
unsigned int from_line, const char *to_file, unsigned int to_line));