aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-02-14 09:40:53 -0800
committerPer Bothner <bothner@gcc.gnu.org>2004-02-14 09:40:53 -0800
commitc7762b449dca23277872cd1365c84522e42caadc (patch)
treeeada207080ac63627087ff1b702269b3d8acb613 /gcc/fix-header.c
parentcb7c0b5a3ebf751bae0be29a1cf3fff974fd1728 (diff)
downloadgcc-c7762b449dca23277872cd1365c84522e42caadc.zip
gcc-c7762b449dca23277872cd1365c84522e42caadc.tar.gz
gcc-c7762b449dca23277872cd1365c84522e42caadc.tar.bz2
fix-header.c (line_table): Move local variable in main to global.
* 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. From-SVN: r77808
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 43916c5..67666b6 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);