summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-14 17:40:53 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-14 17:40:53 +0000
commitc513754a899164fdc32b6f3813bc6a379d5f6e95 (patch)
treeeada207080ac63627087ff1b702269b3d8acb613 /gcc/fix-header.c
parent08c53a6e374a41439057485946be695f68e4b6d2 (diff)
downloadgcc-c513754a899164fdc32b6f3813bc6a379d5f6e95.tar.gz
* fix-header.c (line_table): Move local variable in main to global.
* scan.h (line_table): Use it. * scan-decls.c (scan_decls): Need to call linemap_lookup on token's line (recently renamed to src_loc) before calling recognized_function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77808 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 43916c54789..67666b6544c 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -84,6 +84,8 @@ static void v_fatal (const char *, va_list)
ATTRIBUTE_PRINTF (1,0) ATTRIBUTE_NORETURN;
static void fatal (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
+struct line_maps line_table;
+
sstring buf;
int verbose = 0;
@@ -590,7 +592,6 @@ read_scan_file (char *in_fname, int argc, char **argv)
struct fn_decl *fn;
int i, strings_processed;
struct symbol_list *cur_symbols;
- struct line_maps line_table;
obstack_init (&scan_file_obstack);