From 4f2a7b5121a682dd924cafc252c8ded8813f0f61 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 13 Apr 2016 04:15:10 -0400 Subject: make a few variables static They are only used in one file, so we might as well restrict there scope to that file, and theoretically this might slightly improve compilers ability to optimize usage of these variables. gas/ChangeLog: 2016-04-14 Trevor Saunders * config/tc-nios2.c (nios2_as_options): Make file static. * config/tc-ppc.c (toc_reloc_ypes): Likewise. * config/tc-sparc.c (native_op_table): Likewise. --- gas/config/tc-ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/config/tc-ppc.c') diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 1d2c57f..8bfdfdc 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -207,7 +207,7 @@ ppc_cpu_t sticky = 0; unsigned int ppc_abiversion = 0; /* Flags set on encountering toc relocs. */ -enum { +static enum { has_large_toc_reloc = 1, has_small_toc_reloc = 2 } toc_reloc_types; -- cgit v1.1