From: Tom Tromey Date: Sun, 20 May 2018 17:12:57 +0000 (-0600) Subject: Make context_stack_size static in buildsym.c X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~1417 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca;p=thirdparty%2Fbinutils-gdb.git Make context_stack_size static in buildsym.c context_stack_size is declared in buildsym.h, but only used in buildsym.c. This makes it static in buildsym.c. gdb/ChangeLog 2018-07-16 Tom Tromey * buildsym.h (context_stack_size): Don't declare. * buildsym.c (context_stack_size): New global. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b053f8c4cfb..39936a40757 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-07-16 Tom Tromey + + * buildsym.h (context_stack_size): Don't declare. + * buildsym.c (context_stack_size): New global. + 2018-07-16 Tom Tromey * dbxread.c (processing_acc_compilation): New global. diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 1cbde1d7628..26c511086bb 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -257,6 +257,10 @@ struct subfile_stack static struct subfile_stack *subfile_stack; +/* Currently allocated size of context stack. */ + +static int context_stack_size; + static void free_buildsym_compunit (void); static int compare_line_numbers (const void *ln1p, const void *ln2p); diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 088c1d790e4..191db8ca4fa 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -159,10 +159,6 @@ EXTERN struct context_stack *context_stack; EXTERN int context_stack_depth; -/* Currently allocated size of context stack. */ - -EXTERN int context_stack_size; - /* Non-zero if the context stack is empty. */ #define outermost_context_p() (context_stack_depth == 0)