aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-tir.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-12 10:30:21 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-12 10:30:21 +0000
commit5f771d47c711c5292df87c35ac726c0ac18a3820 (patch)
tree6aefc3a1720a5ec0775090470f29c4d33d3ba6b2 /bfd/vms-tir.c
parent36823076169d65c84df46c8d03e30a3201fda0f9 (diff)
downloadfsf-binutils-gdb-5f771d47c711c5292df87c35ac726c0ac18a3820.zip
fsf-binutils-gdb-5f771d47c711c5292df87c35ac726c0ac18a3820.tar.gz
fsf-binutils-gdb-5f771d47c711c5292df87c35ac726c0ac18a3820.tar.bz2
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Use EMPTY_HOWTO as appropriate. Fill in structure initializations. Add casts. * reloc.c (EMPTY_HOWTO): Define. * bfd-in2.h: Rebuild. * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless comparisons against 0. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change previous_ibfd_e_flags to unsigned long. * vms.h (struct vms_private_data_struct): Change section_count to unsigned. * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. (_bfd_vms_write_gsd): Change symnum to unsigned. * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. * vms-tir.c (etir_sta): Change psect to unsigned. (alloc_section): Change idx to unsigned. (tir_sta, tir_ctl): Change psect to unsigned. (_bfd_vms_write_tir): Change len and before to bfd_size_type. * vms.c (priv_section_count): Change to unsigned.
Diffstat (limited to 'bfd/vms-tir.c')
-rw-r--r--bfd/vms-tir.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/bfd/vms-tir.c b/bfd/vms-tir.c
index 6e5d97c..124b1b3 100644
--- a/bfd/vms-tir.c
+++ b/bfd/vms-tir.c
@@ -61,7 +61,7 @@ check_section (abfd, size)
int offset;
offset = PRIV(image_ptr) - PRIV(image_section)->contents;
- if ((offset + size) > PRIV(image_section)->_raw_size)
+ if ((bfd_size_type) (offset + size) > PRIV(image_section)->_raw_size)
{
PRIV(image_section)->contents = bfd_realloc (PRIV(image_section)->contents, offset + size);
if (PRIV(image_section)->contents == 0)
@@ -121,7 +121,7 @@ image_dump (abfd, ptr, size, offset)
bfd *abfd;
unsigned char *ptr;
int size;
- int offset;
+ int offset ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (8, "image_dump from (%p, %d) to (%p)\n", ptr, size, PRIV(image_ptr));
@@ -301,7 +301,7 @@ etir_sta (abfd, cmd, ptr)
case ETIR_S_C_STA_PQ:
{
uquad dummy;
- int psect;
+ unsigned int psect;
psect = bfd_getl32 (ptr);
if (psect >= PRIV(section_count))
@@ -559,7 +559,7 @@ static boolean
etir_opr (abfd, cmd, ptr)
bfd *abfd;
int cmd;
- unsigned char *ptr;
+ unsigned char *ptr ATTRIBUTE_UNUSED;
{
long op1, op2;
@@ -791,7 +791,7 @@ static boolean
etir_stc (abfd, cmd, ptr)
bfd *abfd;
int cmd;
- unsigned char *ptr;
+ unsigned char *ptr ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
@@ -907,7 +907,7 @@ etir_stc (abfd, cmd, ptr)
static asection *
new_section (abfd, idx)
- bfd *abfd;
+ bfd *abfd ATTRIBUTE_UNUSED;
int idx;
{
asection *section;
@@ -947,7 +947,7 @@ new_section (abfd, idx)
static int
alloc_section (abfd, idx)
bfd *abfd;
- int idx;
+ unsigned int idx;
{
#if VMS_DEBUG
_bfd_vms_debug (4, "alloc_section %d\n", idx);
@@ -1058,7 +1058,7 @@ tir_sta (bfd *abfd, unsigned char *ptr)
*/
{
unsigned long dummy;
- int psect;
+ unsigned int psect;
if (cmd == TIR_S_C_STA_PB)
psect = *ptr++;
@@ -1090,7 +1090,7 @@ tir_sta (bfd *abfd, unsigned char *ptr)
*/
{
unsigned long dummy;
- int psect;
+ unsigned int psect;
if (cmd == TIR_S_C_STA_PW)
psect = *ptr++;
@@ -1122,7 +1122,7 @@ tir_sta (bfd *abfd, unsigned char *ptr)
*/
{
unsigned long dummy;
- int psect;
+ unsigned int psect;
if (cmd == TIR_S_C_STA_PL)
psect = *ptr++;
@@ -1670,7 +1670,7 @@ tir_ctl (bfd *abfd, unsigned char *ptr)
*/
{
unsigned long dummy;
- int psect;
+ unsigned int psect;
#if VMS_DEBUG
_bfd_vms_debug (5, "tir_ctl %d\n", *ptr);
@@ -1940,7 +1940,7 @@ _bfd_vms_slurp_tir (abfd, objtype)
int
_bfd_vms_slurp_dbg (abfd, objtype)
bfd *abfd;
- int objtype;
+ int objtype ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (2, "DBG/EDBG\n");
@@ -1958,8 +1958,8 @@ _bfd_vms_slurp_dbg (abfd, objtype)
int
_bfd_vms_slurp_tbt (abfd, objtype)
- bfd *abfd;
- int objtype;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ int objtype ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (2, "TBT/ETBT\n");
@@ -1976,8 +1976,8 @@ _bfd_vms_slurp_tbt (abfd, objtype)
int
_bfd_vms_slurp_lnk (abfd, objtype)
- bfd *abfd;
- int objtype;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ int objtype ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (2, "LNK\n");
@@ -2092,7 +2092,7 @@ end_etir_record (abfd)
int
_bfd_vms_write_tir (abfd, objtype)
bfd *abfd;
- int objtype;
+ int objtype ATTRIBUTE_UNUSED;
{
asection *section;
vms_section *sptr;
@@ -2175,10 +2175,10 @@ _bfd_vms_write_tir (abfd, objtype)
for (;;)
{
bfd_size_type addr = (*rptr)->address;
- int len = bfd_get_reloc_size ((*rptr)->howto);
+ bfd_size_type len = bfd_get_reloc_size ((*rptr)->howto);
if (sptr->offset < addr) /* sptr starts before reloc */
{
- int before = addr - sptr->offset;
+ bfd_size_type before = addr - sptr->offset;
if (sptr->size <= before) /* complete before */
{
sto_imm (abfd, sptr, vaddr, section->index);
@@ -2461,8 +2461,8 @@ _bfd_vms_write_tir (abfd, objtype)
int
_bfd_vms_write_tbt (abfd, objtype)
- bfd *abfd;
- int objtype;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ int objtype ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (2, "vms_write_tbt (%p, %d)\n", abfd, objtype);
@@ -2476,8 +2476,8 @@ _bfd_vms_write_tbt (abfd, objtype)
int
_bfd_vms_write_dbg (abfd, objtype)
- bfd *abfd;
- int objtype;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ int objtype ATTRIBUTE_UNUSED;
{
#if VMS_DEBUG
_bfd_vms_debug (2, "vms_write_dbg (%p, objtype)\n", abfd, objtype);