From 298144d0a49c9d96bfffd315700b5fe03a43c7c2 Mon Sep 17 00:00:00 2001 From: pk Date: Fri, 16 Feb 1996 22:19:26 +0000 Subject: [PATCH] Declare `md_reloc_size' as a const. --- gnu/usr.bin/gas/config/tc-a29k.c | 6 +++--- gnu/usr.bin/gas/config/tc-h8300.c | 2 +- gnu/usr.bin/gas/config/tc-i386.c | 4 ++-- gnu/usr.bin/gas/config/tc-i860.c | 2 +- gnu/usr.bin/gas/config/tc-i960.c | 4 ++-- gnu/usr.bin/gas/config/tc-m68k.c | 2 +- gnu/usr.bin/gas/config/tc-ns32k.c | 2 +- gnu/usr.bin/gas/tc.h | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gnu/usr.bin/gas/config/tc-a29k.c b/gnu/usr.bin/gas/config/tc-a29k.c index 84ec97a6caa6..1e453e31013d 100644 --- a/gnu/usr.bin/gas/config/tc-a29k.c +++ b/gnu/usr.bin/gas/config/tc-a29k.c @@ -86,12 +86,12 @@ int md_short_jump_size = 4; int md_long_jump_size = 4; #if defined(BFD_HEADERS) #ifdef RELSZ -int md_reloc_size = RELSZ; /* Coff headers */ +const int md_reloc_size = RELSZ; /* Coff headers */ #else -int md_reloc_size = 12; /* something else headers */ +const int md_reloc_size = 12; /* something else headers */ #endif #else -int md_reloc_size = 12; /* Not bfdized*/ +const int md_reloc_size = 12; /* Not bfdized*/ #endif /* This array holds the chars that always start a comment. If the diff --git a/gnu/usr.bin/gas/config/tc-h8300.c b/gnu/usr.bin/gas/config/tc-h8300.c index db4786bbfac2..8165ec6066ca 100644 --- a/gnu/usr.bin/gas/config/tc-h8300.c +++ b/gnu/usr.bin/gas/config/tc-h8300.c @@ -47,7 +47,7 @@ const pseudo_typeS md_pseudo_table[] = { { 0,0,0 } }; -int md_reloc_size ; +const int md_reloc_size ; const char EXP_CHARS[] = "eE"; diff --git a/gnu/usr.bin/gas/config/tc-i386.c b/gnu/usr.bin/gas/config/tc-i386.c index 88ccef83d382..6f41ce8199ee 100644 --- a/gnu/usr.bin/gas/config/tc-i386.c +++ b/gnu/usr.bin/gas/config/tc-i386.c @@ -25,7 +25,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: tc-i386.c,v 1.9 1996/01/18 22:09:08 mycroft Exp $"; +static char rcsid[] = "$Id: tc-i386.c,v 1.10 1996/02/16 22:19:45 pk Exp $"; #endif #include "as.h" @@ -1871,7 +1871,7 @@ register fragS * fragP; int md_short_jump_size = 2; /* size of byte displacement jmp */ int md_long_jump_size = 5; /* size of dword displacement jmp */ -int md_reloc_size = 8; /* Size of relocation record */ +const int md_reloc_size = 8; /* Size of relocation record */ void md_create_short_jump(ptr, from_addr, to_addr, frag, to_symbol) char *ptr; diff --git a/gnu/usr.bin/gas/config/tc-i860.c b/gnu/usr.bin/gas/config/tc-i860.c index a4698f86601b..0359132a03c4 100644 --- a/gnu/usr.bin/gas/config/tc-i860.c +++ b/gnu/usr.bin/gas/config/tc-i860.c @@ -1157,7 +1157,7 @@ relax_addressT segment_address_in_file; */ -int md_reloc_size = 12; +const int md_reloc_size = 12; void tc_aout_fix_to_chars(where, fixP, segment_address_in_file) char *where; diff --git a/gnu/usr.bin/gas/config/tc-i960.c b/gnu/usr.bin/gas/config/tc-i960.c index 8f9091ce5f06..ff5a371c681d 100644 --- a/gnu/usr.bin/gas/config/tc-i960.c +++ b/gnu/usr.bin/gas/config/tc-i960.c @@ -87,9 +87,9 @@ extern struct hash_control *po_hash; extern char *next_object_file_charP; #ifdef OBJ_COFF -int md_reloc_size = sizeof(struct reloc); +const int md_reloc_size = sizeof(struct reloc); #else /* OBJ_COFF */ -int md_reloc_size = sizeof(struct relocation_info); +const int md_reloc_size = sizeof(struct relocation_info); #endif /* OBJ_COFF */ /*************************** diff --git a/gnu/usr.bin/gas/config/tc-m68k.c b/gnu/usr.bin/gas/config/tc-m68k.c index 1aed016c7eed..4ab6c880f35c 100644 --- a/gnu/usr.bin/gas/config/tc-m68k.c +++ b/gnu/usr.bin/gas/config/tc-m68k.c @@ -64,7 +64,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXeEpP"; but nothing is ideal around here. */ -int md_reloc_size = 8; /* Size of relocation record */ +const int md_reloc_size = 8; /* Size of relocation record */ /* Its an arbitrary name: This means I don't approve of it */ /* See flames below */ diff --git a/gnu/usr.bin/gas/config/tc-ns32k.c b/gnu/usr.bin/gas/config/tc-ns32k.c index 5843fe594a29..83a71e988c08 100644 --- a/gnu/usr.bin/gas/config/tc-ns32k.c +++ b/gnu/usr.bin/gas/config/tc-ns32k.c @@ -1824,7 +1824,7 @@ segT segment; int md_short_jump_size = 3; int md_long_jump_size = 5; -int md_reloc_size = 8; /* Size of relocation record */ +const int md_reloc_size = 8; /* Size of relocation record */ void md_create_short_jump(ptr,from_addr,to_addr,frag,to_symbol) diff --git a/gnu/usr.bin/gas/tc.h b/gnu/usr.bin/gas/tc.h index f36629c71702..2aa6dad62b4c 100644 --- a/gnu/usr.bin/gas/tc.h +++ b/gnu/usr.bin/gas/tc.h @@ -18,7 +18,7 @@ along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* - * $Id: tc.h,v 1.1 1993/10/02 20:57:58 pk Exp $ + * $Id: tc.h,v 1.2 1996/02/16 22:19:26 pk Exp $ */ @@ -42,7 +42,7 @@ relax_typeS; extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */ -extern int md_reloc_size; /* Size of a relocation record */ +extern const int md_reloc_size; /* Size of a relocation record */ extern void (*md_emit_relocations)();