aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-04-13 04:15:10 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-04-14 17:06:26 -0400
commit4f2a7b5121a682dd924cafc252c8ded8813f0f61 (patch)
tree459c87098687f3fb370fb64c973ddbfbf476e485 /gas/config/tc-ppc.c
parent85e53f6272cc71b16db89239a3a542184d01996c (diff)
downloadgdb-4f2a7b5121a682dd924cafc252c8ded8813f0f61.zip
gdb-4f2a7b5121a682dd924cafc252c8ded8813f0f61.tar.gz
gdb-4f2a7b5121a682dd924cafc252c8ded8813f0f61.tar.bz2
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 <tbsaunde+binutils@tbsaunde.org> * 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.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c2
1 files changed, 1 insertions, 1 deletions
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;